Added identifier lists
This commit is contained in:
parent
3c0a885186
commit
dd867db271
|
@ -67,7 +67,11 @@ expr: ValFloat
|
|||
|
||||
assign: Ident '=' expr { DEBUG("Assignment"); };
|
||||
|
||||
decl: type ':' Ident { DEBUG("Declaration"); };
|
||||
identlist: Ident ',' identlist
|
||||
| Ident
|
||||
| ;
|
||||
|
||||
decl: type ':' identlist { DEBUG("Declaration"); };
|
||||
|
||||
definition: decl '=' expr { DEBUG("Definition"); };
|
||||
|
||||
|
@ -81,10 +85,12 @@ scale: scale KeyShort
|
|||
| scale KeyDouble
|
||||
| ;
|
||||
|
||||
type: Ident
|
||||
type: sign scale Ident
|
||||
| sign scale KeyInt
|
||||
| sign scale KeyFloat;
|
||||
|
||||
|
||||
|
||||
%%
|
||||
|
||||
int yyerror(char *s) {
|
||||
|
|
Loading…
Reference in New Issue