Use %token_class to define intconst

This commit is contained in:
Randy Heit 2016-03-20 15:17:44 -05:00
parent 260cf6848f
commit c0dd39ffd4

View file

@ -537,6 +537,7 @@ type_name(X) ::= DOT dottable_id(A).
* (Well, actually, I'm not sure if 4D ones are going to happen
* straight away.)
*/
%token_class intconst INTCONST|UINTCONST.
vector_size(X) ::= . { X.Int = ZCC_Vector3; X.SourceLoc = stat->sc.GetMessageLine(); }
vector_size(X) ::= LT intconst(A) GT.
{
@ -551,8 +552,6 @@ vector_size(X) ::= LT intconst(A) GT.
}
X.SourceLoc = A.SourceLoc;
}
intconst(X) ::= INTCONST(X).
intconst(X) ::= UINTCONST(X).
/* Type names can also be used as identifiers in contexts where type names
* are not normally allowed. */