diff options
Diffstat (limited to 'src/build.l')
-rw-r--r-- | src/build.l | 31 |
1 files changed, 31 insertions, 0 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 | |||