public class Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
c |
int |
ct_column
Column, where the current token started
|
int |
ct_line
Line, where the current token started
|
int |
type
type of the current token
|
java.lang.Object |
val
value of the current
|
Constructor and Description |
---|
Parser(java.lang.String in,
Library lib)
Initializes the parser.
|
protected int c
public int ct_column
public int ct_line
public java.lang.Object val
public int type
public Parser(java.lang.String in, Library lib)
in
- expression to parselib
- library to resolve functions inprotected int read()
Additionally it counts line and column numbers. The read character is automatically set as a current char of this Tokenizer.
protected void consume(int cc) throws CompilationException
CompilationException
public void nextToken() throws CompilationException
CompilationException
public boolean isCast()
public OP parse(java.lang.Class<?> resultType) throws CompilationException
resultType
- the type to convert the result intoCompilationException
Copyright © 1998-2016 Konstantin L. Metlov All Rights Reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the JEL manual.