Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data PcbnewExpr
- parse :: String -> Either String PcbnewExpr
- parseWithFilename :: String -> String -> Either String PcbnewExpr
- fromSExpr :: SExpr -> Either String PcbnewExpr
- pretty :: PcbnewExpr -> Doc
- write :: PcbnewExpr -> String
Types
data PcbnewExpr Source #
Parse
parse :: String -> Either String PcbnewExpr Source #
Parse a Pcbnew expression from a string. Returns an String
with an error
- or a PcbnewExpr
.
parseWithFilename :: String -> String -> Either String PcbnewExpr Source #
Parse a Pcbnew expression from a string giving a filename argument to be used in error strings.
fromSExpr :: SExpr -> Either String PcbnewExpr Source #
Interpret a SExpr
as a PcbnewExpr
.
Write
pretty :: PcbnewExpr -> Doc Source #
Pretty-print a PcbnewExpr
as a readable s-expression Doc
.
write :: PcbnewExpr -> String Source #
Serialize a PcbnewExpr
as a compact s-expression String
.