Skip to content

Commit

Permalink
Revert "Panic if the grammar verifier sees a token it doesn't recognize"
Browse files Browse the repository at this point in the history
This reverts commit 9c7d5ae.

This was wrong... the `continue` was to ignore the latter half of the
tokens file. Another mechanism will have to be used to keep the model
grammar's tokens in sync with the actual grammar's tokens :-/
  • Loading branch information
carols10cents committed May 17, 2015
1 parent 8b7c17d commit e70c858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grammar/verify.rs
Expand Up @@ -111,7 +111,7 @@ fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
"LIT_BINARY_RAW" => token::Literal(token::BinaryRaw(Name(0), 0), None),
"QUESTION" => token::Question,
"SHEBANG" => token::Shebang(Name(0)),
_ => panic!("Bad token str `{}`", val),
_ => continue,
};

res.insert(num.to_string(), tok);
Expand Down

0 comments on commit e70c858

Please sign in to comment.