The Conlang programming language is an expression-based interpreted (todo: compiler) language
.gitea/issue_template | ||
constr | ||
lerox | ||
libconlang | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml | ||
dummy.cl | ||
grammar.ebnf | ||
readme.md |
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.
Immediate Goals:
- Decide on a minimal set of keywords and operators to support
- Lex an entire Rust source file (minus generics, paths, and lifetimes)
- Write expression grammar
- Write AST for expression grammar
- Write parser for AST
- Create tests for parser (and AST)
- Parse
dummy.cl
into a valid AST - Pretty printer, for debugging
- Create minimal statement grammar
- Variable definition statements
- Function definition statements
Short Goals:
for
loops andwhile
loops can be used on the right-hand side of an assignment- Data structures and sum-type enums
- Expression type-checker
- Trait/Interface system
- Tree-walk interpreter for prototyping and debugging
- Three-reference bytecode VM for standard library development
Long Goals:
- Semicolons are NEVER given special treatment
- Compile to LLVM IR
- Create a standard library for the language, with Rust-like abstractions.