Allow lambda expressions without explicit paren

This commit is contained in:
2025-01-26 08:52:28 -06:00
committed by James Eversole
parent 6713b05872
commit b0b0fb22b9
9 changed files with 63 additions and 87 deletions

View File

@ -40,7 +40,7 @@ toSource_ = y (\self arg :
arg) -- The term to be inspected
-- toSource takes a single TC term and returns a String
toSource = (\v : toSource_ v "")
toSource = \v : toSource_ v ""
exampleOne = toSource true -- OUT: "(t t)"
exampleTwo = toSource not? -- OUT: "(t (t (t t) (t t t)) (t t (t t t)))"