Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.55 KB

File metadata and controls

63 lines (46 loc) · 1.55 KB

Copager

Rust製組み込み型パーサジェネレータ(Constructible Parser Generator on Rust)

Examples

$ cargo run -p example_lang_easyarith
var x;
var y;
x = 10;
y = 0x10;
print (x + x) * (y + y);
640

Features

Common

  • all
  • derive
  • prebuild
  • template
  • dev

Lex

Parse

IR

// RegexLex(lex) + LR1(parse) + SExp(ir)
copager = { ..., features = ["derive", "regexlex", "lr1", "sexp"] }

// RegexLex(lex) + LALR1(parse) + Void(ir)
copager = { ..., features = ["derive", "regexlex", "lalr1", "void"] }

Test

$ cargo test