This commit is contained in:
jackjohn7 2026-05-14 22:59:58 -05:00
commit 7008596f4c
58 changed files with 1197 additions and 0 deletions

10
test/ParserSpec.hs Normal file
View file

@ -0,0 +1,10 @@
module ParserSpec (spec) where
import Parser (Expr (Abstraction, Variable), parse)
import Test.Hspec
spec :: Spec
spec = do
describe "Parser" $ do
it "can parse basic expressions" $
(parse "λx.x") `shouldBe` Right (Abstraction ("x", Variable "x"))