Conlang/readme.md
John ee5dabb4f3 Conlang: Implement functions 1.0 (Resolves #12)
- [x] Call syntax
- [x] Function declaration syntax
TODO:
- [ ] Any form of type checking
- [ ] Static variable resolution
- [ ] Closures, etc.
2023-10-29 23:47:00 -05:00

33 lines
1.3 KiB
Markdown

# Conlang: Expression-Oriented Programming Language
This project began out of a desire to merge Rust-style control flow expressions
with Python's fun for-else/while-else syntax. I fully intend to devote my spare time
to conlang for the forseeable future, and I livestream development on Twitch for one
Friday each month.
## Immediate Goals:
- [x] Decide on a minimal set of keywords and operators to support
- [x] Lex an entire Rust source file (minus generics, paths, and lifetimes)
- [x] Write expression grammar
- [x] Write AST for expression grammar
- [x] Write parser for AST
- [ ] Create tests for parser (and AST)
- [x] Parse `dummy.cl` into a valid AST
- [x] Pretty printer, for debugging
- [x] Create minimal statement grammar
- [x] Variable definition statements
- [x] Function definition statements
## Short Goals:
- [x] `for` loops and `while` loops can be used on the trailing side of an assignment
- [x] Tree-walk interpreter for prototyping and debugging
- [ ] Data structures and sum-type enums
- [ ] Expression type-checker
- [ ] Trait/Interface system
- [ ] Three-address bytecode VM for standard library development
## Long Goals:
- [ ] Minimize the number of kinds of statements
- [ ] Compile to LLVM IR
- [ ] Create a standard library for the language, with Rust-like abstractions.
- [ ] Port the compiler to Conlang