commit | f77c52719df41f5f5cf34b7ba1ae9f591f0b0bf5 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Thu Mar 17 22:36:12 2022 -0600 |
committer | Tom Tromey <tom@tromey.com> | Mon Mar 28 15:02:52 2022 -0600 |
tree | 3c2036cd9465af995c16e0aa1c95b378743ebb73 | |
parent | 52a4a5885af15e7ef32d5f4e5b77f98349c32276 [diff] |
Add Rust parser check for end of expression I noticed that "print 5," passed in Rust -- the parser wasn't checking that the entire input was used. This patch fixes the problem. This in turn pointed out another bug in the parser, namely that it didn't lex the next token after handling a string token. This is also fixed here.