Map Bool-shaped things to javascript bool, add if/then and tertiary to code gen

This commit is contained in:
2025-10-20 11:08:12 -07:00
parent e45d194d7f
commit 15b892510e
9 changed files with 68 additions and 15 deletions

View File

@@ -212,6 +212,7 @@ instance Show Raw where
instance Pretty Literal where
pretty (LString t) = text t
pretty (LBool b) = if b then text "true" else text "false"
pretty (LInt i) = text $ show i
pretty (LChar c) = text $ show c