summaryrefslogtreecommitdiff
path: root/as/as.l
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-09-08 11:11:06 -0400
committerJakob Kaivo <jkk@ung.org>2022-09-08 11:11:06 -0400
commitfd528d27b11f1d85dbf6afcd65b6bb4140e56070 (patch)
treeaa92db77886e45ab1cbd0616eeaefa1129d98556 /as/as.l
parent5a8d69ea869636e29807955d621fa45d8a21a8d8 (diff)
handle predefined and command line macro definitions
Diffstat (limited to 'as/as.l')
-rw-r--r--as/as.l25
1 files changed, 0 insertions, 25 deletions
diff --git a/as/as.l b/as/as.l
deleted file mode 100644
index 059b7c3..0000000
--- a/as/as.l
+++ /dev/null
@@ -1,25 +0,0 @@
-%{
-#include <inttypes.h>
-#include "as.tab.h"
-%}
-
-NONDIGIT [_a-zA-Z]
-DIGIT [0-9]
-IDENTIFIERS [_a-zA-Z0-9]
-
-%x COMMENT
-
-%%
-
-{DIGIT}+ { yylval.n = strtoumax(yytext, NULL, 10); return NUMBER; }
-
-{NONDIGIT}{IDENTIFIERS}* { yylval.s = yytext; return TOKEN; }
-
-:|,|\. { return yytext[0]; }
-\n { return NEWLINE; }
-
-; { BEGIN COMMENT; }
-<COMMENT>. ;
-<COMMENT>\n { BEGIN INITIAL; return NEWLINE; }
-
-. ;