diff options
author | Eugene Sandulenko | 2016-06-25 00:44:31 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 2451bed12822cd1996d616dc5c296cff5aecbcde (patch) | |
tree | 2172009a17be7743c0c61c83052bc52168de9786 /engines/director/lingo/lingo-lex.l | |
parent | 61e80e158b48d84234c16304f8c3aeb76fd6e7b7 (diff) | |
download | scummvm-rg350-2451bed12822cd1996d616dc5c296cff5aecbcde.tar.gz scummvm-rg350-2451bed12822cd1996d616dc5c296cff5aecbcde.tar.bz2 scummvm-rg350-2451bed12822cd1996d616dc5c296cff5aecbcde.zip |
DIRECTOR: Lingo: Renamed VAR->ID in the grammar for clarity
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index edabbf05b7..5f84fb9390 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -34,7 +34,7 @@ int yyparse(); %} -variable [_[:alpha:]][_[:alnum:]]* +identifier [_[:alpha:]][_[:alnum:]]* constfloat [[:digit:]]+\.[[:digit:]]* constinteger [[:digit:]]+ conststring \"[^\"\n]*\" @@ -76,7 +76,7 @@ while { return tWHILE; } [>][=] { return tGE; } [<][=] { return tLE; } -{variable} { yylval.s = new Common::String(yytext); return VAR; } +{identifier} { yylval.s = new Common::String(yytext); return ID; } {constfloat} { yylval.f = atof(yytext); return FLOAT; } {constinteger} { yylval.i = strtol(yytext, NULL, 10); return INT; } {operator} { return *yytext; } |