mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Add ScriptVariable conditions from Ubertools into the script lexer
Those are Ubertools / F.A.K.K remnants that are valid in original mohaa script grammar
This commit is contained in:
parent
f2a6278daa
commit
816126b13a
1 changed files with 8 additions and 0 deletions
|
@ -260,6 +260,8 @@ varname [a-zA-Z0-9_\"$\\]+
|
||||||
";" { YYLEX( TOKEN_SEMICOLON ); }
|
";" { YYLEX( TOKEN_SEMICOLON ); }
|
||||||
|
|
||||||
"==" { YYLEX( TOKEN_EQUALITY ); }
|
"==" { YYLEX( TOKEN_EQUALITY ); }
|
||||||
|
"ifequal" { YYLEX( TOKEN_EQUALITY ); }
|
||||||
|
"ifstrequal" { YYLEX( TOKEN_EQUALITY ); }
|
||||||
"||" { YYLEX( TOKEN_LOGICAL_OR ); }
|
"||" { YYLEX( TOKEN_LOGICAL_OR ); }
|
||||||
"&&" { YYLEX( TOKEN_LOGICAL_AND ); }
|
"&&" { YYLEX( TOKEN_LOGICAL_AND ); }
|
||||||
|
|
||||||
|
@ -267,10 +269,16 @@ varname [a-zA-Z0-9_\"$\\]+
|
||||||
"^" { YYLEX( TOKEN_BITWISE_EXCL_OR ); }
|
"^" { YYLEX( TOKEN_BITWISE_EXCL_OR ); }
|
||||||
"&" { YYLEX( TOKEN_BITWISE_AND ); }
|
"&" { YYLEX( TOKEN_BITWISE_AND ); }
|
||||||
"!=" { YYLEX( TOKEN_INEQUALITY ); }
|
"!=" { YYLEX( TOKEN_INEQUALITY ); }
|
||||||
|
"ifnotequal" { YYLEX( TOKEN_INEQUALITY ); }
|
||||||
|
"ifstrnotequal" { YYLEX( TOKEN_INEQUALITY ); }
|
||||||
"<" { YYLEX( TOKEN_LESS_THAN ); }
|
"<" { YYLEX( TOKEN_LESS_THAN ); }
|
||||||
|
"ifless" { YYLEX( TOKEN_LESS_THAN ); }
|
||||||
">" { YYLEX( TOKEN_GREATER_THAN ); }
|
">" { YYLEX( TOKEN_GREATER_THAN ); }
|
||||||
|
"ifgreater" { YYLEX( TOKEN_GREATER_THAN ); }
|
||||||
"<=" { YYLEX( TOKEN_LESS_THAN_OR_EQUAL ); }
|
"<=" { YYLEX( TOKEN_LESS_THAN_OR_EQUAL ); }
|
||||||
|
"iflessequal" { YYLEX( TOKEN_LESS_THAN_OR_EQUAL ); }
|
||||||
">=" { YYLEX( TOKEN_GREATER_THAN_OR_EQUAL ); }
|
">=" { YYLEX( TOKEN_GREATER_THAN_OR_EQUAL ); }
|
||||||
|
"ifgreaterequal" { YYLEX( TOKEN_GREATER_THAN_OR_EQUAL ); }
|
||||||
[ \t]"-" { YYLEX( TOKEN_NEG ); }
|
[ \t]"-" { YYLEX( TOKEN_NEG ); }
|
||||||
|
|
||||||
"+" { YYLEX( TOKEN_PLUS ); }
|
"+" { YYLEX( TOKEN_PLUS ); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue