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:
Jon Meow
2021-08-30 14:23:16 -07:00
committed by GitHub
parent 0ac220b30f
commit ed2d171703
14 changed files with 51 additions and 29 deletions
+1 -1
View File
@@ -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.