Package gnu.jel
Class Parser
java.lang.Object
gnu.jel.Parser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
c
protected int c -
ct_column
public int ct_columnColumn, where the current token started -
ct_line
public int ct_lineLine, where the current token started -
val
value of the currenttoken wrapped into a reflection object -
type
public int typetype of the current token
-
-
Constructor Details
-
Parser
Initializes the parser.- Parameters:
in
- expression to parselib
- library to resolve functions in
-
-
Method Details
-
read
protected int read()Reads character from underlying Reader.Additionally it counts line and column numbers. The read character is automatically set as a current char of this Tokenizer.
- Returns:
- next character from the selected input.
-
error
- Throws:
CompilationException
-
consume
- Throws:
CompilationException
-
nextToken
- Throws:
CompilationException
-
isCast
public boolean isCast() -
parse
Parses expression.- Parameters:
resultType
- the type to convert the result into- Returns:
- top of the parse tree
- Throws:
CompilationException
-