mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 19:12:47 +00:00
Extend description of parser states to show which tokens they consume. (#3378)
Also some minor improvements and typo fixes to the parser code for issues found while writing these descriptions.
This commit is contained in:
1 parent
b953fbf314
commit
0fb2924c99
5 files changed
+515
-202
No files matched your search
@@ -53,7 +53,7 @@ auto HandleExpr(Context& context) -> void {
|
||||
*operator_precedence);
|
||||
}
|
||||
|
||||
++context.position();
|
||||
context.ConsumeAndDiscard();
|
||||
context.PushStateForExpr(*operator_precedence);
|
||||
} else {
|
||||
context.PushStateForExprLoop(State::ExprLoop, state.ambient_precedence,
|
||||
|
||||
Reference in new issue
Block a user