Skip to content

Tsukuba-Programming-Lab/Copager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust製 再構成可能な生成系 / IPSJ PRO / JSSST PPL

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages