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
9699a46d
Commit
9699a46d
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-06-03 20:43:37 by afrisch] Parsing bug with rec types
Original author: afrisch Date: 2004-06-03 20:43:37+00:00
parent
8a77e2ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser.ml
View file @
9699a46d
...
...
@@ -193,7 +193,7 @@ EXTEND
|
"transform"
|
"fun"
|
"in"
|
"let"
|
"type"
|
"debug"
|
"include"
|
"and"
|
"validate"
|
"schema"
|
"namespace"
|
"ref"
|
"alias"
|
"not"
|
"as"
|
"not"
|
"as"
|
"where"
]
->
a
]
...
...
@@ -497,7 +497,7 @@ EXTEND
];
pat
:
[
[
x
=
pat
;
IDENT
"where"
;
[
x
=
pat
;
"where"
;
b
=
LIST1
[
a
=
IDENT
;
"="
;
y
=
pat
->
(
ident
a
,
y
)
]
SEP
"and"
->
mk
loc
(
Recurs
(
x
,
b
))
]
|
RIGHTA
[
x
=
pat
;
"->"
;
y
=
pat
->
mk
loc
(
Arrow
(
x
,
y
))
]
...
...
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