Finish Parser2 support and switch. (#2381)

Adds remaining expression support, and switches the default to Parser2.

Note, this doesn't delete the current Parser yet. I'll just do that in its own PR.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2022-11-11 08:36:17 -08:00
1 parent d3be5c2827
commit cd93ae6618
5 files changed
+1307 -259

No files matched your search

+1 -3
View File
@@ -28,9 +28,7 @@ auto ParseTree::Parse(TokenizedBuffer& tokens, DiagnosticConsumer& consumer)
TokenDiagnosticEmitter emitter(translator, consumer);
// Delegate to the parser.
// TODO: Edit this to swap between Parser and Parser2. This is manual in order
// to avoid test duplication.
return Parser::Parse(tokens, emitter);
return Parser2::Parse(tokens, emitter);
}
auto ParseTree::postorder() const -> llvm::iterator_range<PostorderIterator> {