Skip to content

Commit e70c858

Browse files
committed
Revert "Panic if the grammar verifier sees a token it doesn't recognize"
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 :-/
1 parent 8b7c17d commit e70c858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grammar/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
111111
"LIT_BINARY_RAW" => token::Literal(token::BinaryRaw(Name(0), 0), None),
112112
"QUESTION" => token::Question,
113113
"SHEBANG" => token::Shebang(Name(0)),
114-
_ => panic!("Bad token str `{}`", val),
114+
_ => continue,
115115
};
116116

117117
res.insert(num.to_string(), tok);

0 commit comments

Comments
 (0)