aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-lex.l
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-20 15:43:36 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit908bcf2065754411f3615b5f8eb505b6154e56fb (patch)
tree0d1c63782a6cb82a2a279b913ef02c099e632d6b /engines/director/lingo/lingo-lex.l
parentbdbb5582aa200e79b71780c50460ab23d5bd7852 (diff)
downloadscummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.tar.gz
scummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.tar.bz2
scummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.zip
DIRECTOR: Lingo: Initial code for 'if' statements
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r--engines/director/lingo/lingo-lex.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index 5823a36160..a6e644a5e5 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -48,6 +48,8 @@ whitespace [\t ]
^{whitespace}
[\t]+ { return ' '; }
+if { return tIF; }
+end { return tEND; }
frame { return tFRAME; }
go { return tGO; }
into { return tINTO; }
@@ -60,6 +62,7 @@ of { return tOF; }
previous { return tPREVIOUS; }
put { return tPUT; }
set { return tSET; }
+then { return tTHEN; }
to { return tTO; }
{variable} { yylval.s = new Common::String(yytext); return VAR; }