summaryrefslogtreecommitdiff
path: root/src/parser.l
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-11 23:00:45 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-11 23:00:45 -0700
commitac58dc8822b154a2ce51cc1b1317bc5e57ebf655 (patch)
treed9f7c95785720d1c1a3fce92c080e3021328c3ef /src/parser.l
parent7c90fe68b557d32b65955ffd18e2e79585a7282b (diff)
downloadstage-ac58dc8822b154a2ce51cc1b1317bc5e57ebf655.tar.gz
stage-ac58dc8822b154a2ce51cc1b1317bc5e57ebf655.tar.bz2
stage-ac58dc8822b154a2ce51cc1b1317bc5e57ebf655.tar.xz
stage-ac58dc8822b154a2ce51cc1b1317bc5e57ebf655.zip
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.
Diffstat (limited to 'src/parser.l')
-rw-r--r--src/parser.l3
1 files changed, 2 insertions, 1 deletions
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 @@
11%x dqstr tdqstr tsqstr 11%x dqstr tdqstr tsqstr
12%% 12%%
13 13
14[-{}<>=+/*,();] { return yytext[0]; } 14[-{}<>=+/*,();:] { return yytext[0]; }
15 15
16game { return tokGame; } 16game { return tokGame; }
17function { return tokFunction; } 17function { return tokFunction; }
@@ -25,6 +25,7 @@ then { return tokThen; }
25else { return tokElse; } 25else { return tokElse; }
26command { return tokCommand; } 26command { return tokCommand; }
27goto { return tokGoto; } 27goto { return tokGoto; }
28not { return tokNot; }
28 29
29true { yylval.bValue = true; return tokBool; } 30true { yylval.bValue = true; return tokBool; }
30false { yylval.bValue = false; return tokBool; } 31false { yylval.bValue = false; return tokBool; }