summaryrefslogtreecommitdiff
path: root/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.l')
-rw-r--r--lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/lexer.l b/lexer.l
index 5c8ebfb..053ac4e 100644
--- a/lexer.l
+++ b/lexer.l
@@ -74,6 +74,7 @@ HEX [0-9a-f]
<inst>addpc/{EOI} { BEGIN(args); return T_ADDPC; }
<inst>nop/{EOI} { BEGIN(args); return T_NOP; }
+<args>\. { return T_DOT; }
<args>@ { return T_DEREF; }
<args>[-+]?{DEC}+ { return intlit(yytext, 10, &yylval.lval); }
<args>0x{HEX}+ { return intlit(yytext+2, 16, &yylval.lval); }