Skip to content

Commit 1693be2

Browse files
committed
modify the flex file in order for the parser to accept bit strings in
hexadecimal format
1 parent 9d31a4a commit 1693be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libvqm/vqm_parser.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ assign return TOKEN_ASSIGN;
7272
yylval.string[yyleng-2] = 0;
7373
return TOKEN_STRING;
7474
}
75-
[1-9][0-9]*'b[0-9]+ {
75+
[1-9][0-9]*'[b|h][0-9|A-F]+ {
7676
yylval.string = (char *)malloc(yyleng+1);
7777
strcpy(yylval.string, yytext);
7878
return TOKEN_BITSTRING;

0 commit comments

Comments
 (0)