Fixes
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
%token <int> INT
|
||||
%token COMMA COLUMN LEFTPAR RIGHTPAR CMPLESS CMPGREATER PLUS MINUS TIMES
|
||||
%token DIVISION MODULO POWER ASSIGNMENT BAND BOR CMP CMPLESSEQ CMPGREATEREQ
|
||||
%token FIRST SECOND
|
||||
%token FIRST SECOND QUESTIONMARK
|
||||
%token EOF
|
||||
|
||||
%type <t_exp> prg
|
||||
@ -90,6 +90,7 @@ texp:
|
||||
typeexp:
|
||||
| TYPEINT {IntegerType}
|
||||
| TYPEBOOL {BooleanType}
|
||||
| QUESTIONMARK {UnknownType}
|
||||
| v = delimited(LEFTPAR, typeexp, RIGHTPAR)
|
||||
{v}
|
||||
| a = typeexp; COMMA; b = typeexp {TupleType (a, b)}
|
||||
|
||||
Reference in New Issue
Block a user