diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-06-08 07:50:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-06-08 07:50:49 +0000 |
commit | 3d8c367fb6160486b63b19b5d156adfeac621b34 (patch) | |
tree | cb6b4fd5851571be9a9a4f94410a69aaee6310dc /src/lexer.flex | |
parent | 21d9613ac47b322316570b4b96b1906d479d49a2 (diff) | |
download | build-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.gz build-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.bz2 build-3d8c367fb6160486b63b19b5d156adfeac621b34.tar.xz build-3d8c367fb6160486b63b19b5d156adfeac621b34.zip |
Started design work...it's coming along
Diffstat (limited to 'src/lexer.flex')
-rw-r--r-- | src/lexer.flex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lexer.flex b/src/lexer.flex new file mode 100644 index 0000000..508a50c --- /dev/null +++ b/src/lexer.flex | |||
@@ -0,0 +1,13 @@ | |||
1 | int lineNum = 1; | ||
2 | %% | ||
3 | |||
4 | "="|"("|")"|"{"|"}"|";"|"," return yytext[0]; | ||
5 | "==" return TOK_COMPARE; | ||
6 | "target" return TOK_TARGET; | ||
7 | |||
8 | \n ++lineNum; | ||
9 | [ \t\r]* | ||
10 | |||
11 | \/\/.* | ||
12 | "#".* | ||
13 | |||