changed equals to assign
This commit is contained in:
parent
87695ebb20
commit
6a66b63680
3 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ in { return yy::parser::token::TOK_KW_IF;}
|
|||
\( { return yy::parser::token::TOK_L_PAREN; }
|
||||
\) { return yy::parser::token::TOK_R_PAREN; }
|
||||
\: { return yy::parser::token::TOK_COLON; }
|
||||
\= { return yy::parser::token::TOK_EQUALS; }
|
||||
\= { return yy::parser::token::TOK_ASSIGN; }
|
||||
\+ { return yy::parser::token::TOK_PLUS; }
|
||||
\- { return yy::parser::token::TOK_MINUS; }
|
||||
\" { yymore(); BEGIN(STRING); }
|
||||
|
|
@ -26,6 +26,6 @@ in { return yy::parser::token::TOK_KW_IF;}
|
|||
. { /* the last rule, ignore anything else (there should be nothing) */}
|
||||
|
||||
<STRING>\"\" { yymore(); }
|
||||
<STRING>\" { BEGIN(INITIAL); yylval->as<std::string>() = yytext; return yy::parser::token::TOK_STRING; }
|
||||
<STRING>\" { BEGIN(INITIAL); yylval->as<std::string>() = yytext; return yy::parser::token::TOK_STRING; }
|
||||
<STRING>. { yymore(); }
|
||||
%%
|
||||
Loading…
Add table
Add a link
Reference in a new issue