[][src]Module sexpy::parsers

Functions

comment

Parses an s-expression comment; something that starts with ; and ends with \n

head

Parses a head pattern. Takes a string head_tag and a parser, inner and creates a parser for [head tag inner]

ignore

The inner parser that ignores the result and returns unit instead

surround

Create a parser that surrounds whatever inner parses with brackets or parentheses

word

Takes in a word and returns () if the first word matches, otherwise returns an Error

wordbreak0

Matches a zero or more whitespace characters or comments

wordbreak1

Matches a one or more whitespace characters or comments