diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 18:55:22 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 18:55:22 -0600 |
commit | 619c5cc4ab4bd94f9b270a9868bb5f08ffd76acb (patch) | |
tree | 5d58bf4f4cc66621f5327edb30ba593c72b4c5da /lexer.l | |
parent | 17d11b2e0af9cbbe9e2c02c4d1a3d2cb4509701e (diff) |
nqasm: allow specifying labels for operands
Diffstat (limited to 'lexer.l')
-rw-r--r-- | lexer.l | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -79,6 +79,7 @@ HEX [0-9a-f] <args>[-+]?{DEC}+ { return intlit(yytext, 10, &yylval.lval); } <args>0x{HEX}+ { return intlit(yytext+2, 16, &yylval.lval); } <args>{SP}*,{SP}* { return T_COMMA; } +<args>{LABEL} { SETSTR(yytext); return T_LABEL; } {SP}*{COMMENT}?\n { BEGIN(INITIAL); return T_EOL; } {SP}*{COMMENT} { BEGIN(INITIAL); return T_EOL; } |