28 lines
869 B
Markdown
28 lines
869 B
Markdown
I want to create my own programming language. I have some requirements, help me write the language specification. I want it to be a mix of C, HP's RPL, Rust, and Uiua. Aside from the postfix and stack based features, I would like it to be as C-Like a possible.
|
|
|
|
## C
|
|
- Statically typed
|
|
- Syntax style
|
|
- Must include an equivalent to Functions/Methods/Procedures
|
|
- Heap requires manual memory management
|
|
- Structs and Unions
|
|
- Comments start with `//`
|
|
|
|
## RPL
|
|
- All **postfix** operators (RPN)
|
|
- **Stack** based
|
|
|
|
## Rust
|
|
- Traits
|
|
- Unions are tagged
|
|
|
|
## Uiua
|
|
- Include array operators (optional modern array-oriented thinking)
|
|
|
|
## Other
|
|
- Heap is global, primarily intended for constraints and functions
|
|
- No local variables, functions or their equivalent modify the stack
|
|
- Eval operator
|
|
- Mainly interpreted, but possibly compilable in the future
|
|
- Types are implicit
|