lua_parser 0.2.0

syntax parser for lua language
Documentation

lua_rust

crates.io docs.rs

lua syntax parser in Rust

project structure

  • tokenizer: tokenizing lua code string
  • parser: parsing tokenized lua code into AST
  • exec: executable version of the parser

Cargo Features

  • 32bit: use 32bit integer and float for lua numeric type
  • diag: enable to_diag() function for ParseError

how to run

$ cargo run <source_file.lua>

will print the pretty-formatted Debug output of the AST ( "{:#?}" )