Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.13 KB

Toon lang

Compiler features

  • Treesitter
    • Grammar parser
    • Syntax highlight
  • AST parser
    • Visitor pattern support
  • Semantic checker
    • Type checker
    • Type inference
    • Default value inference
  • LLVM IR code gen
  • Support module linker (via gcc linker)

Language features

  • Var declaration
  • Simple primary types (number, bool, string, void)
  • Simple operations (binary and unary op)
  • Scopes
  • Control operations (if-else, for-loop)
  • Function declaration
  • Function call expression
  • Lambda function call
  • Standard lib

CLI

toon 0.1.0
Tuan Vuong <[email protected]>

USAGE:
    toon <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    compile    Compile source code to asm or object code
    help       Prints this message or the help of the given subcommand(s)
    parse      Parse AST tree from source code
    run        Run generated IR code via JIT engine

Inspired by