Conlang/readme.md

32 lines
1.3 KiB
Markdown
Raw Normal View History

2023-10-17 03:32:06 +00:00
# Conlang: Expression-Oriented Programming Language
This project began out of a desire to merge functional-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.
2023-09-23 04:51:57 +00:00
2023-10-17 03:32:06 +00:00
## 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
2023-10-17 03:32:06 +00:00
- [ ] Create tests for parser (and AST)
- [ ] Parse `dummy.cl` into a valid AST
- [x] Pretty printer, for debugging
2023-10-17 03:32:06 +00:00
- [ ] Create minimal statement grammar
- [ ] Variable definition statements
- [ ] Function definition statements
## Short Goals:
- [ ] `for` loops and `while` loops can be used on the right-hand side of an assignment
2023-10-17 04:01:09 +00:00
- [ ] Data structures and sum-type enums
2023-10-17 03:32:06 +00:00
- [ ] Expression type-checker
2023-10-17 04:01:09 +00:00
- [ ] Trait/Interface system
- [ ] Tree-walk interpreter for prototyping and debugging
2023-10-17 03:32:06 +00:00
- [ ] Three-reference bytecode VM for standard library development
## Long Goals:
2023-10-17 04:01:09 +00:00
- [ ] Semicolons are NEVER given special treatment
2023-10-17 03:32:06 +00:00
- [ ] Compile to LLVM IR
2023-10-17 04:01:09 +00:00
- [ ] Create a standard library for the language, with Rust-like abstractions.