Package com.singularsys.jep

# Interface Parser

All Superinterfaces:
  `JepComponent`, `Serializable`

All Known Implementing Classes:
  `ConfigurableParser`, `ConfigurableParserWithRange`, `NullParser`, `ParallelConfigurableParser`, `StandardConfigurableParser`, `StandardParser`

public interface Parser extends JepComponent
Defines the methods a parser must implement.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Node`
  `continueParse()`
  Read the next equation from the stream.
  `Node`
  `parse(Reader stream)`
  Parse a single equation from a stream
  `void`
  `restart(Reader stream)`
  Restart the parser for reentrant parsing of multiple equations.

  ### Methods inherited from interface com.singularsys.jep.JepComponent

  `getLightWeightInstance, init`

- ## Method Details

  - ### parse

    Node parse(Reader stream) throws ParseException
    Parse a single equation from a stream
    Parameters:
      `stream` - input reader
    Returns:
      the root node of the expression tree
    Throws:
      `ParseException` - on syntax/grammatical error in input

  - ### restart

    void restart(Reader stream)
    Restart the parser for reentrant parsing of multiple equations.
    Parameters:
      `stream` - input stream

  - ### continueParse

    Node continueParse() throws ParseException
    Read the next equation from the stream. By default, empty expressions should be silently ignored.
    Returns:
      the root node of the expression tree
    Throws:
      `ParseException` - on syntax/grammatical error in input