Skip to content

vanhtuan0409/toon-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <vanhtuan0409@gmail.com>

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

About

A toy typed-check compiled language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published