File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ assign return TOKEN_ASSIGN;
62
62
yylval.value = atoi (yytext);
63
63
return TOKEN_INTCONSTANT;
64
64
}
65
- \\ [^ ^ \t ^; ]+ {
65
+ \\ [^ ^ \t ^; ]+ {
66
66
yylval.string = (char *)malloc (yyleng);
67
67
strcpy (yylval.string , yytext+1 );
68
68
return TOKEN_ESCAPEDID;
@@ -73,7 +73,7 @@ assign return TOKEN_ASSIGN;
73
73
yylval.string [yyleng-2 ] = 0 ;
74
74
return TOKEN_STRING;
75
75
}
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 */
77
77
yylval.string = (char *)malloc (yyleng+1 );
78
78
strcpy (yylval.string , yytext);
79
79
return TOKEN_BITSTRING;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ header: TOKEN_MODULE TOKEN_REGULARID '(' IdentifierList ')' ';'
127
127
;
128
128
129
129
body : /* Empty */ {}
130
- | body declaration_statement {}
130
+ | body declaration_statement {} /* the body consists of a mix of declarations and statements */
131
131
;
132
132
133
133
You can’t perform that action at this time.
0 commit comments