Implement lex table construction

This commit is contained in:
Max Brunsfeld 2019-01-02 12:34:40 -08:00
parent a46b8fcb46
commit 9824ebbbc3
15 changed files with 581 additions and 227 deletions

View file

@ -42,7 +42,7 @@ fn main() -> error::Result<()> {
)
.get_matches();
if let Some(matches) = matches.subcommand_matches("generate") {
if let Some(_) = matches.subcommand_matches("generate") {
let mut grammar_path = env::current_dir().expect("Failed to read CWD");
grammar_path.push("grammar.js");
let grammar_json = load_js_grammar_file(grammar_path);