The Conlang programming language is an expression-based interpreted (todo: compiler) language
Go to file
John 5341631781 conlang: Add constructor expression for structs!
grammar:
- Add new rules `PathLike`, `Structor`, `Fielder`
- Replace Path with PathLike in Primary expressions

cl-ast:
- Add nodes for Structor and Fielder

cl-parser:
- Add branch to path-expression parsing
- Parse Structor bodies

interpret:
- Add TODO
2024-04-20 15:02:16 -05:00
.gitea/issue_template gitea: update feature-proposal.md 2024-03-01 03:13:07 -06:00
compiler conlang: Add constructor expression for structs! 2024-04-20 15:02:16 -05:00
repline repline: Promote to its own crate! 2024-04-19 07:30:17 -05:00
sample-code cl-interpret: Give the interpreter a little love 2024-04-19 10:49:25 -05:00
stdlib stdlib: Add some funky syntax tests 2024-04-18 21:10:11 -05:00
.gitignore Update .gitignore 2024-04-13 03:38:32 -05:00
.rustfmt.toml .rustfmt.toml: Configure rustfmt to be slightly more pretty 2023-09-22 23:55:19 -05:00
Cargo.toml conlang: Move all cl-libs into the compiler directory 2024-04-19 07:39:23 -05:00
dummy.cl parser: Mockup type-expression syntax 2023-10-30 00:07:27 -05:00
grammar.ebnf conlang: Add constructor expression for structs! 2024-04-20 15:02:16 -05:00
LICENSE.md Add LICENSE 2023-10-23 21:05:51 -05:00
readme.md Conlang: Implement functions 1.0 (Resolves #12) 2023-10-29 23:47:00 -05:00

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:

  • 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 trailing side of an assignment
  • 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