2023-10-17 03:32:06 +00:00
|
|
|
# Conlang: Expression-Oriented Programming Language
|
2023-10-22 23:41:10 +00:00
|
|
|
This project began out of a desire to merge Rust-style control flow expressions
|
2023-10-17 03:32:06 +00:00
|
|
|
with Python's fun for-else/while-else syntax. I fully intend to devote my spare time
|
2024-04-22 07:06:46 +00:00
|
|
|
to conlang for the forseeable future.
|
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
|
2023-10-17 03:50:15 +00:00
|
|
|
- [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)
|
2023-10-30 04:47:00 +00:00
|
|
|
- [x] Parse `dummy.cl` into a valid AST
|
2023-10-17 03:51:07 +00:00
|
|
|
- [x] Pretty printer, for debugging
|
2023-10-30 04:47:00 +00:00
|
|
|
- [x] Create minimal statement grammar
|
|
|
|
- [x] Variable definition statements
|
|
|
|
- [x] Function definition statements
|
2023-10-17 03:32:06 +00:00
|
|
|
|
|
|
|
## Short Goals:
|
2023-10-30 04:47:00 +00:00
|
|
|
- [x] `for` loops and `while` loops can be used on the trailing side of an assignment
|
|
|
|
- [x] Tree-walk interpreter for prototyping and debugging
|
2024-04-22 07:06:46 +00:00
|
|
|
- [x] Data structures and sum-type enums
|
2023-10-17 03:32:06 +00:00
|
|
|
- [ ] Expression type-checker
|
2024-04-22 07:06:46 +00:00
|
|
|
- [ ] Pattern destructuring, to take advantage of sum-type enums
|
2023-10-22 23:41:10 +00:00
|
|
|
- [ ] Three-address bytecode VM for standard library development
|
2024-04-22 07:06:46 +00:00
|
|
|
- [ ] Trait/Interface system
|
2023-10-17 03:32:06 +00:00
|
|
|
|
|
|
|
## Long Goals:
|
2023-10-22 23:41:10 +00:00
|
|
|
- [ ] Minimize the number of kinds of statements
|
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.
|
2023-10-22 23:41:10 +00:00
|
|
|
- [ ] Port the compiler to Conlang
|