summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
authorThomas Bauereiss2017-11-02 13:46:13 +0000
committerThomas Bauereiss2017-11-02 13:46:13 +0000
commitaa35f90fe4e7da4a6bbbe1396c23f9a5795b6909 (patch)
tree3c2253799750b91d66dd767e3c4303baf57e63f1 /src/parser.mly
parent9ea44b8b441eb394ffdd85d0b356167002ad7fdd (diff)
Fix a few AST and parsing-related bugs
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/parser.mly b/src/parser.mly
index df4a273d..8c055b33 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -1064,6 +1064,14 @@ val_spec:
{ vloc (VS_val_spec (mk_typschm $3 $4 3 4,$5, Some $7, false)) }
| Val Extern typ id Eq String
{ vloc (VS_val_spec (mk_typschm (mk_typqn ()) $3 3 3,$4, Some $6, false)) }
+ | Val Cast Extern typquant typ id
+ { vloc (VS_val_spec (mk_typschm $4 $5 4 5,$6, Some (string_of_id $6), true)) }
+ | Val Cast Extern typ id
+ { vloc (VS_val_spec (mk_typschm (mk_typqn ()) $4 4 4, $5, Some (string_of_id $5), true)) }
+ | Val Cast Extern typquant typ id Eq String
+ { vloc (VS_val_spec (mk_typschm $4 $5 4 5,$6, Some $8, true)) }
+ | Val Cast Extern typ id Eq String
+ { vloc (VS_val_spec (mk_typschm (mk_typqn ()) $4 4 4,$5, Some $7, true)) }
kinded_id:
| tyvar
@@ -1335,4 +1343,3 @@ file:
nonempty_exp_list:
| semi_exps_help Eof { $1 }
-