public class StandardParser extends java.lang.Object implements Parser
| Constructor and Description |
|---|
StandardParser() |
| Modifier and Type | Method and Description |
|---|---|
Node |
continueParse()
Parse the next expressions from existing stream.
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
void |
init(Jep jep1)
Initialize the component.
|
Node |
parse(java.io.Reader stream)
Parses the input from the reader
stream. |
void |
restart(java.io.Reader stream)
Restart the parser for reentrant parsing of multiple equations.
|
public void init(Jep jep1)
JepComponentinit in interface JepComponentjep1 - the current Jep instancepublic Node parse(java.io.Reader stream) throws ParseException
stream. The JavaCC parser
is employed to complete this task. Errors are listed in errorList or
trapped by catching ParseExceptions.parse in interface Parserstream - input readerParseException - on syntax/gramatical error in inputpublic void restart(java.io.Reader stream)
Parserpublic Node continueParse() throws ParseException
continueParse in interface ParserParseException - on syntax/gramatical error in inputrestart(java.io.Reader)public JepComponent getLightWeightInstance()
JepComponentgetLightWeightInstance in interface JepComponentCopyright © 2018 Singular Systems http://www.singularsys.com/jep