Reformat lexer/parser tokens. (#772)

Related to discussion on #738, but also trying to standardize handling of everything and make placement of token spellings (`AND "and"`) consistently in lexer.lpp.

I could have gone the other direction, removing the list of things in lexer.lpp, but this feels like it does more to use the compiler to detect skew between lexer.lpp and parser.ypp.
This commit is contained in:
Jon Meow authored and GitHub committed 2021-08-30 14:59:30 -07:00
1 parent 36ed79dc25
commit 00779b60a8
3 files changed
+268 -221

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
COMPILATION ERROR: executable_semantics/testdata/pattern_variable_fail.carbon:7: syntax error, unexpected :
COMPILATION ERROR: executable_semantics/testdata/pattern_variable_fail.carbon:7: syntax error, unexpected COLON
EXIT CODE: 255