Module parser

Source
Expand description

Functions to parse s-expressions and expression atoms.

This module contains the core parsing machinery.

  • If you’re interested in getting a parsed s-expression that you can use, then looking at parse and parse_one are your best bet.
  • If you want to write your own parsers that contain s-expressions, ParseResult and parse_expression will be the most useful to you.

Enums§

ParseError
Indicates how parsing failed.
ParseResult
Represents what to do next in partially completed parsing.

Functions§

parse
Parse a sequence of s-expressions.
parse_character
parse_expression
parse_list
parse_number
parse_one
Parses a single s-expression, ignoring any trailing text.
parse_string
parse_symbol