From ac58dc8822b154a2ce51cc1b1317bc5e57ebf655 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 11 Dec 2011 23:00:45 -0700 Subject: I think I've narrowed down how commands will work It's kinda' cool for the most part, there will have to be some ways of referencing them later. Basically, there are global commands and situation commands. With any luck, it'll just work. --- src/parser.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/parser.l') diff --git a/src/parser.l b/src/parser.l index dff6507..59a0358 100644 --- a/src/parser.l +++ b/src/parser.l @@ -11,7 +11,7 @@ %x dqstr tdqstr tsqstr %% -[-{}<>=+/*,();] { return yytext[0]; } +[-{}<>=+/*,();:] { return yytext[0]; } game { return tokGame; } function { return tokFunction; } @@ -25,6 +25,7 @@ then { return tokThen; } else { return tokElse; } command { return tokCommand; } goto { return tokGoto; } +not { return tokNot; } true { yylval.bValue = true; return tokBool; } false { yylval.bValue = false; return tokBool; } -- cgit v1.2.3