mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 14:45:53 +01:00
Configure reentrant bison/flex (#789)
Make the parser reentrant, working towards #769 and the ability to load other packages cleanly.
This commit is contained in:
@@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
std::variant<Carbon::AST, Carbon::SyntaxErrorCode> ast_or_error =
|
||||
Carbon::parse(input_file_name);
|
||||
Carbon::Parse(input_file_name);
|
||||
|
||||
if (auto* error = std::get_if<Carbon::SyntaxErrorCode>(&ast_or_error)) {
|
||||
// Diagnostic already reported to std::cerr; this is just a return code.
|
||||
|
||||
Reference in New Issue
Block a user