From 619c5cc4ab4bd94f9b270a9868bb5f08ffd76acb Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 18 Jan 2017 18:55:22 -0600 Subject: nqasm: allow specifying labels for operands --- lexer.l | 1 + 1 file changed, 1 insertion(+) (limited to 'lexer.l') diff --git a/lexer.l b/lexer.l index 28aa7fe..7d44adf 100644 --- a/lexer.l +++ b/lexer.l @@ -79,6 +79,7 @@ HEX [0-9a-f] [-+]?{DEC}+ { return intlit(yytext, 10, &yylval.lval); } 0x{HEX}+ { return intlit(yytext+2, 16, &yylval.lval); } {SP}*,{SP}* { return T_COMMA; } +{LABEL} { SETSTR(yytext); return T_LABEL; } {SP}*{COMMENT}?\n { BEGIN(INITIAL); return T_EOL; } {SP}*{COMMENT} { BEGIN(INITIAL); return T_EOL; } -- cgit v1.2.3