mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
Transfer added guards and Eq derivation.
This commit is contained in:
@@ -47,6 +47,9 @@ separator LetDef ";" ;
|
||||
|
||||
-- Case expressions.
|
||||
ECase. Exp ::= "case" Exp "of" "{" [Case] "}" ;
|
||||
Case. Case ::= Pattern "|" Exp "->" Exp ;
|
||||
separator Case ";" ;
|
||||
|
||||
|
||||
-- Lambda abstractions.
|
||||
EAbs. Exp2 ::= "\\" PatternVariable "->" Exp ;
|
||||
@@ -88,10 +91,6 @@ token TMeta ('?' digit+) ;
|
||||
coercions Exp 5 ;
|
||||
|
||||
|
||||
Case. Case ::= Pattern "->" Exp ;
|
||||
separator Case ";" ;
|
||||
|
||||
|
||||
-- Identifiers in core can start with underscore to allow
|
||||
-- generating unique identifiers easily.
|
||||
token CIdent ((letter | '_') (letter | digit | '_' | '\'')*) ;
|
||||
|
||||
Reference in New Issue
Block a user