From cfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 18 Dec 2011 00:45:12 -0700 Subject: The basic structure is complete. --- src/parser.l | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/parser.l') diff --git a/src/parser.l b/src/parser.l index cbf359c..841c5e6 100644 --- a/src/parser.l +++ b/src/parser.l @@ -18,7 +18,15 @@ %x dqstr tdqstr tsqstr %% -[-{}<>=+/*,();:.] { return yytext[0]; } +"<=" { return tokLtEq; } +">=" { return tokGtEq; } +"==" { return tokCmp; } +"+=" { return tokPlusAssign; } +"-=" { return tokMinusAssign; } +"*=" { return tokTimesAssign; } +"/=" { return tokDivideAssign; } + +[-{}<>=+/*,();:.[\]] { return yytext[0]; } game { return tokGame; } function { return tokFunction; } @@ -34,6 +42,8 @@ else { return tokElse; } command { return tokCommand; } goto { return tokGoto; } not { return tokNot; } +setup { return tokSetup; } +enter { return tokEnter; } true { yylval->bValue = true; return tokBool; } false { yylval->bValue = false; return tokBool; } -- cgit v1.2.3