Package gnu.jel

Class Parser

java.lang.Object
gnu.jel.Parser

public class Parser extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    int
    Column, where the current token started
    int
    Line, where the current token started
    int
    type of the current token
    value of the current token wrapped into a reflection object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parser(String in, Library lib)
    Initializes the parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    consume(int cc)
     
    void
    error(int code, Object param, int column)
     
    boolean
     
    void
     
    parse(Class<?> resultType)
    Parses expression.
    protected int
    Reads character from underlying Reader.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • c

      protected int c
    • 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 Object val
      value of the current token wrapped into a reflection object
    • type

      public int type
      type of the current token
  • Constructor Details

    • Parser

      public Parser(String in, Library lib)
      Initializes the parser.
      Parameters:
      in - expression to parse
      lib - library to resolve functions in
  • Method Details