Skip to content

Commit

Permalink
Fix tuple pattern syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alicelogos committed Nov 19, 2024
1 parent 03c8d8e commit a7ec5b2
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 a7ec5b2

Please sign in to comment.