Interface Parser

    • Method Detail

      • parse

        Node parse​(java.io.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/gramatical error in input
      • restart

        void restart​(java.io.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/gramatical error in input