allow uppercase sc names in preperation for Rlp2Core

This commit is contained in:
crumbtoo
2024-01-22 12:45:42 -07:00
parent e3b18c8915
commit cefdf6ffae
3 changed files with 17 additions and 8 deletions

View File

@@ -98,6 +98,8 @@ ScDefs : ScDef ';' ScDefs { $1 : $3 }
ScDef :: { ScDef Name }
ScDef : Var ParList '=' Expr { ScDef $1 $2 $4 }
-- hack to allow constructors to be compiled into scs
| Con ParList '=' Expr { ScDef $1 $2 $4 }
Type :: { Type }
Type : Type1 { $1 }