lua_rust
lua syntax parser in Rust
- Greatly in progress
- LALR(1), GLR parser
- syntax referenced from lua 5.4 reference manual
project structure
tokenizer: tokenizing lua code stringparser: parsing tokenized lua code into ASTexec: executable version of theparser
Cargo Features
32bit: use 32bit integer and float forlua numerictypediag: enableto_diag()function forParseError
how to run
$ cargo run <source_file.lua>
will print the pretty-formatted Debug output of the AST ( "{:#?}" )