aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lexer.flex13
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