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)
JepComponent
init
in interface JepComponent
jep1
- 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 ParseException
s.parse
in interface Parser
stream
- input readerParseException
- on syntax/gramatical error in inputpublic void restart(java.io.Reader stream)
Parser
public Node continueParse() throws ParseException
continueParse
in interface Parser
ParseException
- on syntax/gramatical error in inputrestart(java.io.Reader)
public JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
Copyright © 2018 Singular Systems http://www.singularsys.com/jep