A parser for SEXP data presented as a Tokenizer which calls the given visitor for each matched rule.

To construct a JSON model the visitor would be a Builder.

  • Parser
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Initializer
Parser(Tokenizer tokenizer, Visitor visitor)
Parameters:
  • tokenizer

    The data to be parsed.

  • visitor

    The visitor to called for each matched rule.

Attributes
visitorshared Visitor visitor

The visitor to called for each matched rule.

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
parseshared void parse()

Parses s-expressions.

Throws
  • ParseException

    encountering unexpected extra characters

parseValueshared void parseValue()

Parses s-expression values.

Throws
  • ParseException

    If the specified string cannot be parsed

Inherited Methods
Methods inherited from: Object
equals