The Conlang programming language is an expression-based interpreted (todo: compiler) language
Go to file
2023-10-16 22:32:22 -05:00
.gitea/issue_template Add feature-proposal template 2023-09-21 17:46:00 -05:00
lerox integer: Match based on base, if present 2023-09-25 16:43:50 -05:00
libconlang examples/identify_tokens.rs: Overhaul user experience 2023-10-16 22:26:32 -05:00
.gitignore Update .gitignore 2023-10-16 22:32:22 -05:00
.rustfmt.toml .rustfmt.toml: Configure rustfmt to be slightly more pretty 2023-09-22 23:55:19 -05:00
Cargo.toml lerox: Add lerox, a silly little combinator library 2023-09-22 23:54:09 -05:00
dummy.cl conlang: Add break, true, false keywords, and example file 2023-09-28 01:31:46 -05:00
readme.md Update readme.md 2023-10-16 22:32:06 -05: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.

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 and while loops can be used on the right-hand side of an assignment
  • Expression type-checker
  • AST-walk interpreter for prototyping and debugging
  • Three-reference bytecode VM for standard library development
  • Semicolons are not given special treatment

Long Goals:

  • Compile to LLVM IR
  • Create a standard library for the language, with Rust-like