aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/build.l31
-rw-r--r--src/build.y0
-rw-r--r--src/lexer.flex13
3 files changed, 31 insertions, 13 deletions
diff --git a/src/build.l b/src/build.l
new file mode 100644
index 0000000..6daaa94
--- /dev/null
+++ b/src/build.l
@@ -0,0 +1,31 @@
1 int lineNum = 1;
2%%
3
4[,:=] return yytext[0];
5"+=" return TOK_ADDSET;
6
7"default" return TOK_DEFAULT;
8"action" return TOK_ACTION;
9"create" return TOK_CREATE;
10"file" return TOK_FILE;
11"from" return TOK_FROM;
12"files" return TOK_FILES;
13"in" return TOK_IN;
14"using" return TOK_USING;
15"rule" return TOK_RULE;
16"requires" return TOK_REQUIRES;
17"for" return TOK_FOR;
18"set" return TOK_SET;
19"matches" return TOK_MATCHES;
20"all" return TOK_ALL;
21"one" return TOK_ONE;
22"perform" return TOK_PERFORM;
23"produces" return TOK_PRODUCES;
24"command" return TOK_COMMAND;
25
26\n+ return TOX_EOL;
27[ \t\r]*
28
29\/\/.*
30"#".*
31
diff --git a/src/build.y b/src/build.y
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/build.y
diff --git a/src/lexer.flex b/src/lexer.flex
deleted file mode 100644
index 508a50c..0000000
--- a/src/lexer.flex
+++ /dev/null
@@ -1,13 +0,0 @@
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