Skip to content

Commit 452a0af

Browse files
committed
modify the yacc file so the names that start with \ (TOKEN_ESCAPEID) can
be used for declaration of vectors
1 parent ff3dd1b commit 452a0af

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

libs/libvqm/vqm_parser.y

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,16 @@ IdentifierList: Identifier
677677
}
678678
;
679679

680-
Identifier: TOKEN_ESCAPEDID
680+
Identifier: TOKEN_ESCAPEDID '[' TOKEN_INTCONSTANT ']'
681+
{
682+
if(parse_info->pass_type == COUNT_PASS) {
683+
//pass
684+
} else {
685+
/* Allocate space for an identifier. Specify index used */
686+
$$ = (uintptr_t) allocate_identifier($1, T_TRUE, $3);
687+
}
688+
}
689+
| TOKEN_ESCAPEDID
681690
{
682691
if(parse_info->pass_type == COUNT_PASS) {
683692
//pass

0 commit comments

Comments
 (0)