mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Use %token_class to define intconst
This commit is contained in:
parent
260cf6848f
commit
c0dd39ffd4
1 changed files with 1 additions and 2 deletions
|
@ -537,6 +537,7 @@ type_name(X) ::= DOT dottable_id(A).
|
||||||
* (Well, actually, I'm not sure if 4D ones are going to happen
|
* (Well, actually, I'm not sure if 4D ones are going to happen
|
||||||
* straight away.)
|
* straight away.)
|
||||||
*/
|
*/
|
||||||
|
%token_class intconst INTCONST|UINTCONST.
|
||||||
vector_size(X) ::= . { X.Int = ZCC_Vector3; X.SourceLoc = stat->sc.GetMessageLine(); }
|
vector_size(X) ::= . { X.Int = ZCC_Vector3; X.SourceLoc = stat->sc.GetMessageLine(); }
|
||||||
vector_size(X) ::= LT intconst(A) GT.
|
vector_size(X) ::= LT intconst(A) GT.
|
||||||
{
|
{
|
||||||
|
@ -551,8 +552,6 @@ vector_size(X) ::= LT intconst(A) GT.
|
||||||
}
|
}
|
||||||
X.SourceLoc = A.SourceLoc;
|
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
|
/* Type names can also be used as identifiers in contexts where type names
|
||||||
* are not normally allowed. */
|
* are not normally allowed. */
|
||||||
|
|
Loading…
Reference in a new issue