더 간단한 신택스 annotations
build / build (push) Successful in 1m36s

This commit is contained in:
msyds committed 2026-09-25 14:54:50 -06:00
1 parent 38b4047f5d
commit 7bc5f25984
31 files changed
+229 -324

No files matched your search

+6 -6
View File
@@ -24,19 +24,19 @@ thinWide name x = testGroup name
, tcaseW 4 (name <> "-thin") x
]
datumBegin xs = S.indentWith (S.NSpecial 0) . S.List $
(S.adorn S.SynBuiltin . S.Symbol $ "begin") : xs
datumBegin xs = S.styleWith (S.StyleSyntax 0) . S.List $
S.Symbol "begin" : xs
datumLambda formals body =
S.indentWith (S.NSpecial 1) . S.List $
(S.adorn S.SynBuiltin . S.Symbol $ "lambda") : formals : body
S.styleWith (S.StyleSyntax 1) . S.List $
S.Symbol "lambda" : formals : body
test_print = testGroup "sexp pretty printer" $
test_print = testGroup "sexp pretty printer"
[ tcase "null" $ S.List []
, thinWide "simple-list" $
S.List [ S.Symbol s | s <- ["가","나","다","라"] ]
, thinWide "begin-nonempty" $
S.indentWith (S.NSpecial 0) $
S.styleWith (S.StyleSyntax 0) $
datumBegin [ S.Symbol "책을"
, S.Symbol "더"
, S.Symbol "먹으세요~!"