man this sucks

This commit is contained in:
crumbtoo
2024-01-11 16:26:34 -07:00
parent aff1c6b4c6
commit 681a394312
2 changed files with 118 additions and 33 deletions

View File

@@ -4,6 +4,8 @@ module Rlp.Parse
)
where
import Rlp.Lex
import Rlp.Syntax
import Rlp.Parse.Types
}
%name rlp
@@ -13,12 +15,20 @@ import Rlp.Lex
%tokentype { Located RlpToken }
%token
t { Located _ _ }
varname { Located _ (TokenVarName $$) }
'=' { Located _ TokenEquals }
eof { Located _ TokenEOF }
%%
P :: { () }
P : { error "aa" }
Decl :: { PartialDecl' }
Decl : FunDecl { undefined }
FunDecl :: { PartialDecl' }
FunDecl : varname '=' Expr { undefined }
Expr :: { RlpExpr' }
Expr : { undefined }
{