Rename ::yy::parser to ::Carbon::Parser. (#697)

Not only is this more consistent with our style rules, it lets us omit a lot of noisy qualifiers in parser.ypp
This commit is contained in:
Geoff Romer
2021-08-03 12:09:42 -07:00
committed by GitHub
parent 38eb2c0d2f
commit de91afcf25
4 changed files with 193 additions and 189 deletions
@@ -25,7 +25,7 @@ class ParseAndLexContext {
auto PrintDiagnostic(const std::string& message, int line_number) -> void;
// The source range of the token being (or just) lex'd.
yy::location current_token_position;
location current_token_position;
private:
// A path to the file processed, relative to the current working directory
@@ -37,7 +37,7 @@ class ParseAndLexContext {
// Gives flex the yylex prototype we want.
#define YY_DECL \
yy::parser::symbol_type yylex(Carbon::ParseAndLexContext& context)
Carbon::Parser::symbol_type yylex(Carbon::ParseAndLexContext& context)
// Declares yylex for the parser's sake.
YY_DECL;