kicad-data-0.5.0: Parser and writer for KiCad files.
Data.Kicad.SExpr
Contents
Synopsis
data SExpr Source #
Constructors
Instances
Methods
(==) :: SExpr -> SExpr -> Bool #
(/=) :: SExpr -> SExpr -> Bool #
showsPrec :: Int -> SExpr -> ShowS #
show :: SExpr -> String #
showList :: [SExpr] -> ShowS #
class SExpressable a where Source #
Minimal complete definition
toSExpr
toSExpr :: a -> SExpr Source #
toSExpr :: PcbnewAttribute -> SExpr Source #
toSExpr :: PcbnewItem -> SExpr Source #
toSExpr :: PcbnewModule -> SExpr Source #
toSExpr :: PcbnewExpr -> SExpr Source #
pretty :: SExpr -> Doc Source #
Pretty-print an s-expression as a readable "document".
write :: SExpr -> String Source #
Serialize an s-expression into a compact string.
parse :: String -> Either String SExpr Source #
Parse a String as a SExpr or return an error.
String
SExpr
parseWithFilename :: String -> String -> Either String SExpr Source #
Parse a String as a SExpr giving a filename to use in the source code location
getPos :: SExpr -> SourcePos Source #
Get s-expression source code position (filename, line-number and - column-number)