gnu.jel
Class Parser

java.lang.Object
  |
  +--gnu.jel.Parser

public class Parser
extends java.lang.Object


Field Summary
 int ct_column
          Column, where the current token started
 int ct_line
          Line, where the current token started
 int type
          type of the currect token
 java.lang.Object val
          value of the current token wrapped into a reflection object
 
Constructor Summary
Parser(java.lang.String in, Library lib)
          Initializes the parser.
 
Method Summary
 boolean isCast()
           
 void nextToken()
           
 OP parse(java.lang.Class resultType)
          Parses expression.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ct_column

public int ct_column
Column, where the current token started


ct_line

public int ct_line
Line, where the current token started


val

public java.lang.Object val
value of the current token wrapped into a reflection object


type

public int type
type of the currect token

Constructor Detail

Parser

public Parser(java.lang.String in,
              Library lib)
Initializes the parser.

Parameters:
lib - library to resolve functions in
Method Detail

nextToken

public void nextToken()
               throws CompilationException
CompilationException

isCast

public boolean isCast()

parse

public OP parse(java.lang.Class resultType)
         throws CompilationException
Parses expression.

Returns:
top of the parse tree
CompilationException