mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 19:50:29 +00:00
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:
1 parent
d3be5c2827
commit
cd93ae6618
5 files changed
+1307
-259
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user