Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
7ce6ecd8
Commit
7ce6ecd8
authored
Mar 31, 2021
by
Kim Nguyễn
Browse files
Relax patterns authorized on let bindings :
let x & t = is now allowed.
parent
4cd1b774
Changes
1
Hide whitespace changes
Inline
Side-by-side
lang/parser/parser.mly
View file @
7ce6ecd8
...
...
@@ -697,9 +697,15 @@ let_binding:
;
ident_or_let_pat
:
|
p1
=
ident_or_let_pat
"&"
p2
=
ident_or_let_pat_constr
{
mk
$
sloc
(
And
(
p1
,
p2
))
}
|
p
=
ident_or_let_pat_constr
{
p
}
;
ident_or_let_pat_constr
:
|
id
=
located_ident
{
mk
$
sloc
(
PatVar
[
(
snd
id
)
])
}
|
p
=
constr_pat
{
p
}
|
p1
=
ident_or_let_pat
"&"
p2
=
constr_pat
{
mk
$
sloc
(
And
(
p1
,
p2
))
}
;
branches_
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment