bburdette/schelme/1.1.0

NOTE: this package is not compatible with Elm 0.19.1

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 space separated terms.

spaces : Parser ()

whitespace