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:
Richard Smith authored and GitHub committed 2023-11-10 22:08:58 +00:00
1 parent b953fbf314
commit 0fb2924c99
5 files changed
+515 -202

No files matched your search

+1 -1
View File
@@ -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,