From 1e0d0202e614f398f491624c84ae9a8309fa2f96 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 18 Jan 2017 19:20:20 -0600 Subject: nqasm: allow "." to refer to current pc in immediate operand --- lexer.l | 1 + 1 file changed, 1 insertion(+) (limited to 'lexer.l') 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] addpc/{EOI} { BEGIN(args); return T_ADDPC; } nop/{EOI} { BEGIN(args); return T_NOP; } +\. { return T_DOT; } @ { return T_DEREF; } [-+]?{DEC}+ { return intlit(yytext, 10, &yylval.lval); } 0x{HEX}+ { return intlit(yytext+2, 16, &yylval.lval); } -- cgit v1.2.3