From 3d8c367fb6160486b63b19b5d156adfeac621b34 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Jun 2006 07:50:49 +0000 Subject: Started design work...it's coming along --- src/lexer.flex | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/lexer.flex (limited to 'src') 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 @@ + int lineNum = 1; +%% + +"="|"("|")"|"{"|"}"|";"|"," return yytext[0]; +"==" return TOK_COMPARE; +"target" return TOK_TARGET; + +\n ++lineNum; +[ \t\r]* + +\/\/.* +"#".* + -- cgit v1.2.3