LobsterLang-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

SExpr

Synopsis

Documentation

data SExpr Source #

S-Expression

Constructors

Value Int 
Symbol String 
List [SExpr] 

Instances

Instances details
Show SExpr Source # 
Instance details

Defined in SExpr

Methods

showsPrec :: Int -> SExpr -> ShowS #

show :: SExpr -> String #

showList :: [SExpr] -> ShowS #

Eq SExpr Source # 
Instance details

Defined in SExpr

Methods

(==) :: SExpr -> SExpr -> Bool #

(/=) :: SExpr -> SExpr -> Bool #

getSymbol :: SExpr -> Maybe String Source #

Get the Symbol contained in this expression

getInteger :: SExpr -> Maybe Int Source #

Get the Integer contained in this expression

getList :: SExpr -> Maybe [SExpr] Source #

Get the List contained in this expression

printTree :: SExpr -> Maybe String Source #

Return a string representation of the S-Expression