diff options
| author | Carol Nichols <carol.nichols@gmail.com> | 2015-05-16 14:31:52 -0400 |
|---|---|---|
| committer | Carol Nichols <carol.nichols@gmail.com> | 2015-05-17 10:48:42 -0400 |
| commit | e70c8584d562c86fdca9c98895fb981683d18859 (patch) | |
| tree | 8f23ccffb4185d4729f68b8c5e2c23c173d2cafb | |
| parent | 8b7c17db2235a2a3f2c71242b11fc429a8d05a90 (diff) | |
Revert "Panic if the grammar verifier sees a token it doesn't recognize"
This reverts commit 9c7d5ae57c27ebfc019c2c23283bb905d8c3b74f. 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 :-/
| -rw-r--r-- | src/grammar/verify.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grammar/verify.rs b/src/grammar/verify.rs index b9ff39547f3..0d8fb312d11 100644 --- a/src/grammar/verify.rs +++ b/src/grammar/verify.rs @@ -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); |
