diff options
| author | Brian Campbell | 2017-08-23 11:11:08 +0100 |
|---|---|---|
| committer | Brian Campbell | 2017-08-23 11:11:08 +0100 |
| commit | 22c2e970e9e52ff60b8262d02b4f50ad12174fd8 (patch) | |
| tree | e05bc639514a511d4d39399b8a263e817897e4fe /src/parser.mly | |
| parent | 2a6f3b8e42a4cb4cececb79a9011346b5b25ce80 (diff) | |
| parent | c380d2d0b51be71871085ac7d085268f5baccb56 (diff) | |
Merge branch 'experiments' into mono-experiments
Diffstat (limited to 'src/parser.mly')
| -rw-r--r-- | src/parser.mly | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/parser.mly b/src/parser.mly index 10241137..5413ac0d 100644 --- a/src/parser.mly +++ b/src/parser.mly @@ -519,7 +519,7 @@ atomic_pat: { ploc (P_list([])) } | SquareBarBar pat BarBarSquare { ploc (P_list([$2])) } - | SquareBarBar comma_pats BarBarSquare + | SquareBarBar semi_pats BarBarSquare { ploc (P_list($2)) } | atomic_pat ColonColon pat { ploc (P_cons ($1, $3)) } @@ -552,6 +552,12 @@ comma_pats: | atomic_pat Comma comma_pats { $1::$3 } +semi_pats: + | atomic_pat Semi atomic_pat + { [$1;$3] } + | atomic_pat Semi semi_pats + { $1::$3 } + fpat: | id Eq pat { fploc (FP_Fpat($1,$3)) } |
