]> git.lizzy.rs Git - rust.git/commit
Panic if the grammar verifier sees a token it doesn't recognize
authorCarol Nichols <carol.nichols@gmail.com>
Tue, 5 May 2015 23:32:26 +0000 (19:32 -0400)
committerCarol Nichols <carol.nichols@gmail.com>
Tue, 5 May 2015 23:47:50 +0000 (19:47 -0400)
commit9c7d5ae57c27ebfc019c2c23283bb905d8c3b74f
tree354f43ea6e7d1e51616487670153f7d043816cf3
parent1ca9ed61d62b529aa403229b0a23dac69a091fe3
Panic if the grammar verifier sees a token it doesn't recognize

To prevent the reference grammar from getting out of sync with the real
grammar, panic if RustLexer.tokens contains an unknown token in a
similar way that verify.rs panics if it encounters an unknown binary
operation token.
src/grammar/verify.rs