|
|
@ -180,6 +180,8 @@ if True:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<AFTER> {
|
|
|
|
<AFTER> {
|
|
|
|
|
|
|
|
|
|
|
|
/* Delimiters. */
|
|
|
|
/* Delimiters. */
|
|
|
@ -254,14 +256,18 @@ if True:
|
|
|
|
|
|
|
|
|
|
|
|
/*Identifiers*/
|
|
|
|
/*Identifiers*/
|
|
|
|
{Identifiers} { return symbol(ChocoPyTokens.ID, yytext()); }
|
|
|
|
{Identifiers} { return symbol(ChocoPyTokens.ID, yytext()); }
|
|
|
|
|
|
|
|
|
|
|
|
/* Whitespace. */
|
|
|
|
/* Whitespace. */
|
|
|
|
{WhiteSpace} { /* ignore */ }
|
|
|
|
{WhiteSpace} { /* ignore */ }
|
|
|
|
|
|
|
|
|
|
|
|
/* Comment. */
|
|
|
|
/* Comment. */
|
|
|
|
{Comments} { /* ignore */ }
|
|
|
|
{Comments} { /* ignore */ }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<STR>{
|
|
|
|
<STR>{
|
|
|
|
{StringLiteral} { currString += yytext(); }
|
|
|
|
{StringLiteral} { currString += yytext(); }
|
|
|
|
|
|
|
|
|
|
|
|
\\$ { /*'\' at the end of line, do nothing.*/ }
|
|
|
|
\\$ { /*'\' at the end of line, do nothing.*/ }
|
|
|
|
|
|
|
|
|
|
|
|
"\"" { yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING,
|
|
|
|
"\"" { yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING,
|
|
|
|
new ComplexSymbolFactory.Location(str_l, str_c),
|
|
|
|
new ComplexSymbolFactory.Location(str_l, str_c),
|
|
|
|
new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()),
|
|
|
|
new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()),
|
|
|
|