Skip to content

Commit

Permalink
Merge pull request #193 from alicelogos/fix-tuple-pattern-syntax
Browse files Browse the repository at this point in the history
Fix tuple pattern syntax
  • Loading branch information
fizruk authored Nov 20, 2024
2 parents 03c8d8e + a7ec5b2 commit 94d2d07
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
4 changes: 3 additions & 1 deletion rzk/grammar/Syntax.cf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ SomeSectionName. SectionName ::= VarIdent ;
PatternUnit. Pattern ::= "unit" ;
PatternVar. Pattern ::= VarIdent ;
PatternPair. Pattern ::= "(" Pattern "," Pattern ")" ;
PatternTuple. Pattern ::= "(" Pattern "," Pattern "," [Pattern] ")" ;
PatternTuple. Pattern ::= "(" Pattern "," Pattern "," [Pattern1] ")" ;
separator nonempty Pattern "" ;
_. Pattern1 ::= Pattern ;
separator nonempty Pattern1 "," ;
-- Parameter introduction (for lambda abstractions)
ParamPattern. Param ::= Pattern ;
Expand Down
5 changes: 4 additions & 1 deletion rzk/src/Language/Rzk/Syntax/Doc.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion rzk/src/Language/Rzk/Syntax/Par.y

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion rzk/src/Language/Rzk/Syntax/Print.hs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94d2d07

Please sign in to comment.