diff options
Diffstat (limited to 'src/parser.mly')
| -rw-r--r-- | src/parser.mly | 9 |
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 } - |
