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
Raphaël Cauderlier
Sigmaid
Commits
541bef8e
Commit
541bef8e
authored
Jun 27, 2014
by
Raphaël Cauderlier
Browse files
iterated lambdas
parent
f72df0c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser.mly
View file @
541bef8e
...
...
@@ -58,12 +58,12 @@ obj: ID { Var (Id ($1)) }
|
LBRACK
obj_elems
RBRACK
{
Obj
(
$
2
)
}
;
term
:
obj
{
$
1
}
/*
|
term
term
{
App
(
$
1
,
$
2
)
}
*/
|
LAMBDA
LPAR
ID
COLUMN
ty
RPAR
obj
{
Abst
(
Id
(
$
3
)
,
$
5
,
$
7
)}
|
obj
SELECT
{
Select
(
$
1
,
label
(
$
2
))
}
|
obj
UPDATE
meth
{
Update
(
$
1
,
label
(
$
2
)
,
$
3
)
}
|
obj
FUPD
term
{
Field_update
(
$
1
,
label
(
$
2
)
,
$
3
)
}
term
:
obj
{
$
1
}
/*
|
term
term
{
App
(
$
1
,
$
2
)
}
*/
|
LAMBDA
LPAR
ID
COLUMN
ty
RPAR
term
{
Abst
(
Id
(
$
3
)
,
$
5
,
$
7
)}
|
obj
SELECT
{
Select
(
$
1
,
label
(
$
2
))
}
|
obj
UPDATE
meth
{
Update
(
$
1
,
label
(
$
2
)
,
$
3
)
}
|
obj
FUPD
term
{
Field_update
(
$
1
,
label
(
$
2
)
,
$
3
)
}
;
meth
:
SIGMA
LPAR
ID
COLUMN
ty
RPAR
term
{
Method
(
Id
(
$
3
)
,
$
5
,
$
7
)
}
...
...
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