gwenn / lemon-rs

LALR(1) parser generator for Rust based on Lemon + SQL parser
The Unlicense
48 stars 10 forks source link

Fix action parsing #11

Open gwenn opened 3 years ago

gwenn commented 3 years ago

See translate_code

Maybe we can keep original C code untouched: access YYMINORTYPE like an union but then translate this pseudo-code in valid Rust code with a proc_macro which wraps yy_reduce body: Raw action -> Pseudo code -> Rust code