int hidden_state_;
public:
vector<int> extra_token_types_;
- void *lexval;
- Input *lexloc;
+ void *lexval_;
+ Input *lexloc_;
bool is_main_input_;
Sources *sources_;
yylval.string = new string
#define yylval \
- (*(YYSTYPE*)lexval)
+ (*(YYSTYPE*)lexval_)
#define yylloc \
- (*(YYLTYPE*)lexloc)
+ (*(YYLTYPE*)lexloc_)
#define YY_USER_ACTION add_lexed_char (YYLeng ());
/* Use the trailing context feature. Otherwise, the BOM will not be
found if the file starts with an identifier definition. */
<INITIAL,chords,lyrics,figures,notes>{BOM_UTF8}/.* {
- if (this->lexloc->line_number () != 1 || this->lexloc->column_number () != 0)
+ if (this->lexloc_->line_number () != 1 || this->lexloc_->column_number () != 0)
{
LexerError (_ ("stray UTF-8 BOM encountered").c_str ());
exit (1);
else
{
error_level_ |= 1;
- Input spot (*lexloc);
+ Input spot (*lexloc_);
spot.error (s);
}
}
Input
Lily_lexer::here_input () const
{
- return Input (*lexloc);
+ return Input (*lexloc_);
}
void
Lily_lexer::add_lexed_char (int count)
{
char const *start = here_str0 ();
- lexloc->set (get_source_file (),
- start, start + count);
+ lexloc_->set (get_source_file (),
+ start, start + count);
char_count_stack_.back () += count;
}
Lily_parser *pars = (Lily_parser*) v;
Lily_lexer *lex = pars->lexer_;
- lex->lexval = (void*) s;
- lex->lexloc = loc;
+ lex->lexval_ = (void*) s;
+ lex->lexloc_ = loc;
lex->prepare_for_next_token ();
return lex->yylex ();
}