Skip to content

Commit fc53f08

Browse files
committed
add a few comments
1 parent dc95c1e commit fc53f08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/libvqm/vqm_parser.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ assign return TOKEN_ASSIGN;
6262
yylval.value = atoi(yytext);
6363
return TOKEN_INTCONSTANT;
6464
}
65-
\\[^ ^\t^;]+ {
65+
\\[^ ^\t^;]+ {
6666
yylval.string = (char *)malloc(yyleng);
6767
strcpy(yylval.string, yytext+1);
6868
return TOKEN_ESCAPEDID;
@@ -73,7 +73,7 @@ assign return TOKEN_ASSIGN;
7373
yylval.string[yyleng-2] = 0;
7474
return TOKEN_STRING;
7575
}
76-
[1-9][0-9]*'[b|h][0-9|A-F]+ {
76+
[1-9][0-9]*'[b|h][0-9|A-F]+ { /* bit strings can be in binary or hexadecimal format */
7777
yylval.string = (char *)malloc(yyleng+1);
7878
strcpy(yylval.string, yytext);
7979
return TOKEN_BITSTRING;

libs/libvqm/vqm_parser.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ header: TOKEN_MODULE TOKEN_REGULARID '(' IdentifierList ')' ';'
127127
;
128128

129129
body: /* Empty */ {}
130-
| body declaration_statement {}
130+
| body declaration_statement {} /* the body consists of a mix of declarations and statements */
131131
;
132132

133133

0 commit comments

Comments
 (0)