趣味で少しずつ作っている自作プログラミング言語処理系です。
- レキサ: ソースコードをトークン列に変換する
- パーサ: トークン列を AST に変換する
- 抽象構文木インタプリタ: AST を解釈実行する
- バイトコードコンパイラ: AST をバイトコードに変換する
- 仮想マシン: バイトコードを実行する
- 言語サーバ
cd examples
cargo run --bin mylang_lexer -- -o hello.tok.json hello.mylang
cargo run --bin mylang_parser -- -o hello.ast.json hello.tok.json
cargo run --bin mylang_ast_interp -- hello.ast.json
cd examples
./hello