kitten i'll be honest mommy's about to kill herself

This commit is contained in:
crumbtoo
2024-01-14 18:19:37 -07:00
parent e597ecbfc6
commit 17ddf3530c
4 changed files with 390 additions and 148 deletions

View File

@@ -5,6 +5,8 @@
{-# LANGUAGE OverloadedStrings, PatternSynonyms #-}
module Rlp.Syntax
( RlpModule(..)
, RlpProgram(..)
, RlpProgram'
, rlpmodName
, rlpmodProgram
, RlpExpr(..)
@@ -54,6 +56,8 @@ data RlpModule b = RlpModule
newtype RlpProgram b = RlpProgram [Decl RlpExpr b]
type RlpProgram' = RlpProgram Name
-- | The @e@ parameter is used for partial results. When parsing an input, we
-- first parse all top-level declarations in order to extract infix[lr]
-- declarations. This process yields a @[Decl (Const Text) Name]@, where @Const