Make pretty sizeof match parse
This commit is contained in:
@@ -163,7 +163,7 @@ instance Pretty Expr where
|
||||
pretty (Index arr idx) = parens (pretty arr) <> brackets (pretty idx)
|
||||
pretty (Member e m) = pretty e <> "." <> pretty m
|
||||
pretty (Cast t e) = parens (pretty t) <> parens (pretty e)
|
||||
pretty (Sizeof t) = "sizeof" <> parens (pretty t)
|
||||
pretty (Sizeof t) = "sizeof " <> pretty t
|
||||
pretty (StructInit s fields) = pretty s <+> lbrace <> line <> indent 4 (vsep (punctuate comma (map (\(n, e) -> pretty n <+> "=" <+> pretty e) fields))) <> line <> rbrace
|
||||
|
||||
instance Pretty Stmt where
|
||||
|
||||
Reference in New Issue
Block a user