diff options
Diffstat (limited to 'engines/director/lingo/lingo-gr.y')
-rw-r--r-- | engines/director/lingo/lingo-gr.y | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y index 4b2af27fa1..a148a9c6a7 100644 --- a/engines/director/lingo/lingo-gr.y +++ b/engines/director/lingo/lingo-gr.y @@ -87,7 +87,7 @@ void yyerror(const char *s) { %token tMOVIE tNEXT tOF tPREVIOUS tPUT tREPEAT tSET tTHEN tTO tWHEN %token tWITH tWHILE tNLELSE tFACTORY tMETHOD tOPEN tPLAY tDONE tPLAYACCEL tINSTANCE %token tGE tLE tGT tLT tEQ tNEQ tAND tOR tNOT tMOD -%token tAFTER tBEFORE tCONCAT tCONTAINS tSTARTS tCHAR +%token tAFTER tBEFORE tCONCAT tCONTAINS tSTARTS tCHAR tITEM tLINE tWORD %token tSPRITE tINTERSECTS tWITHIN %token tON tSOUND @@ -414,6 +414,12 @@ expr: INT { $$ = g_lingo->codeConst($1); } | tSPRITE expr tWITHIN expr { g_lingo->code1(g_lingo->c_within); } | tCHAR expr tOF expr { g_lingo->code1(g_lingo->c_charOf); } | tCHAR expr tTO expr tOF expr { g_lingo->code1(g_lingo->c_charToOf); } + | tITEM expr tOF expr { g_lingo->code1(g_lingo->c_itemOf); } + | tITEM expr tTO expr tOF expr { g_lingo->code1(g_lingo->c_itemToOf); } + | tLINE expr tOF expr { g_lingo->code1(g_lingo->c_lineOf); } + | tLINE expr tTO expr tOF expr { g_lingo->code1(g_lingo->c_lineToOf); } + | tWORD expr tOF expr { g_lingo->code1(g_lingo->c_wordOf); } + | tWORD expr tTO expr tOF expr { g_lingo->code1(g_lingo->c_wordToOf); } ; func: tPUT expr { g_lingo->code1(g_lingo->c_printtop); } |