bburdette / schelme / Schelme.SExpression

Parse S-Expressions, yielding STerms and SLists


type Sxp
    = STerm String
    | SList (List Sxp)

S expression - either a string or a list of s expressions.

showSxp : Sxp -> String

print an s-expression for debug

sTerm : Parser Sxp

parse an individual s-expression term (not a list).

sList : Parser Sxp

a list is a series of space separated terms surrounded by parens.

sSxp : Parser Sxp

parse an s-expression - either a term or a list.

sSxps : Parser (List Sxp)

parse a series of whitespace separated terms.