Skip to content

Commit

Permalink
#86 - add rules for calls and lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopedraza committed Feb 11, 2025
1 parent 238300f commit 9776e85
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions report/report.typ
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,8 @@ Esta gramática no incluye información sobre precedencias de operadores, pero e
Or[\<Tuple\>][]
Or[\<Set\>][]
Or[\<Dict\>][]
Or[\<Call\>][]
Or[\<Lambda\>][]
Or[\<Prefix\>][]
Or[\<Infix\>][]
Or[\<Declaration\>][]
Expand Down Expand Up @@ -1789,6 +1791,36 @@ Esta gramática no incluye información sobre precedencias de operadores, pero e
Or[\<Expression\> "=>" \<Expression\> "," \<DictSequence\>][]
},
),
Prod(
[\<Call\>],
{
Or[\<Expression\> \<Tuple\>][]
}
),
Prod(
[\<Lambda\>],
{
Or[\<Tuple\> "->" \<Block\>][]
Or[\<Ident\> "->" \<Block\>][]
},
),
Prod(
[\<Block\>],
{
Or[\<Expression\>][]
Or[\<Indent\> \<BlockSequence\> \<Dedent\>][]
},
),
Prod(
[\<BlockSequence\>],
{
Or[\<Block\>][]
Or[\<Block\> \<BlockSequence\>][]
Or[\<Expression\>][]
Or[\<Expression\> \<Newline\>][]
Or[\<Expression\> \<Newline\> \<BlockSequence\>][]
}
),
Prod(
[\<Prefix\>],
{
Expand Down Expand Up @@ -1845,23 +1877,6 @@ Esta gramática no incluye información sobre precedencias de operadores, pero e
Or["var" \<Pattern\> ":= \<Block\>"][]
},
),
Prod(
[\<Block\>],
{
Or[\<Expression\>][]
Or[\<Indent\> \<BlockSequence\> \<Dedent\>][]
},
),
Prod(
[\<BlockSequence\>],
{
Or[\<Block\>][]
Or[\<Block\> \<BlockSequence\>][]
Or[\<Expression\>][]
Or[\<Expression\> \<Newline\>][]
Or[\<Expression\> \<Newline\> \<BlockSequence\>][]
}
),
Prod(
[\<Import\>],
{
Expand Down

0 comments on commit 9776e85

Please sign in to comment.