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 authored and GitHub committed 2021-08-30 14:23:16 -07:00
1 parent 0ac220b30f
commit ed2d171703
14 files changed
+51 -29

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ using SyntaxErrorCode = int;
// Returns the AST representing the contents of the named file, or an error code
// if parsing fails.
auto parse(const std::string& input_file_name)
auto Parse(const std::string& input_file_name)
-> std::variant<Carbon::AST, SyntaxErrorCode>;
} // namespace Carbon