mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 21:21:10 +00: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:
1 parent
0ac220b30f
commit
ed2d171703
14 files changed
+51
-29
No files matched your search
@@ -40,8 +40,9 @@ class ParseAndLexContext {
|
||||
} // namespace Carbon
|
||||
|
||||
// Gives flex the yylex prototype we want.
|
||||
#define YY_DECL \
|
||||
Carbon::Parser::symbol_type yylex(Carbon::ParseAndLexContext& context)
|
||||
#define YY_DECL \
|
||||
Carbon::Parser::symbol_type yylex(yyscan_t yyscanner, \
|
||||
Carbon::ParseAndLexContext& context)
|
||||
|
||||
// Declares yylex for the parser's sake.
|
||||
YY_DECL;
|
||||
|
||||
Reference in new issue
Block a user