lij.parser
Class Parser

java.lang.Object
  extended by lij.parser.Parser
All Implemented Interfaces:
ParserConstants

public class Parser
extends java.lang.Object
implements ParserConstants


Nested Class Summary
(package private) static class Parser.JJCalls
           
private static class Parser.LookaheadSuccess
           
 
Field Summary
private  Framework framework
           
private  Parser.JJCalls[] jj_2_rtns
           
private  int jj_endpos
           
private  java.util.List<int[]> jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gc
           
private  int jj_gen
           
(package private)  SimpleCharStream jj_input_stream
           
private  int jj_kind
           
private  int jj_la
           
private  int[] jj_la1
           
private static int[] jj_la1_0
           
private static int[] jj_la1_1
           
private  Token jj_lastpos
           
private  int[] jj_lasttokens
           
private  Parser.LookaheadSuccess jj_ls
           
 Token jj_nt
          Next token.
private  int jj_ntk
           
private  boolean jj_rescan
           
private  Token jj_scanpos
           
 Token token
          Current token.
 ParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface lij.parser.ParserConstants
AGENT, AND, ASSIGN, AUXILIARY, BYREF, CAPITAL, CDIGIT, CLAUSE, CLETTER, COMMA, CONSTANT, CONSTRAINT, CYCLIC, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DEFAULT, DIGIT, EOF, EQ, FLOATING_POINT_LITERAL, GT, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, IDIGIT, INITIAL, INTEGER, LETTER, LISTTAIL, LPAR, LSB, LT, MESSAGEIN, MESSAGEOUT, NECESSARY, NEQ, NOTCAPITAL, NULL, OPTIONAL, OR, PAR, QUOTE, ROLE, RPAR, RSB, SINGLEQUOTE, STRINGLITERAL, THEN, tokenImage, UNCOMMITTED, VARIABLE, WILDCARD
 
Constructor Summary
Parser(java.io.InputStream stream)
          Constructor with InputStream.
Parser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
Parser(ParserTokenManager tm)
          Constructor with generated Token Manager.
Parser(java.io.Reader stream)
          Constructor.
 
Method Summary
 DefAgent agent()
           
 Argument argument()
           
 ArgumentValue argumentValue()
           
 ArgumentVariable argumentVariable()
           
 void clause()
           
 void clauseBlock(TreeFactory treeFactory)
           
 void clauseItem(TreeFactory treeFactory)
           
 Constraint constraint()
           
 java.util.ArrayList<Constraint> constraints()
           
 Def def()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 Framework getFramework()
           
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 Argument id()
           
private  boolean jj_2_1(int xla)
           
private  boolean jj_3_1()
           
private  boolean jj_3R_10()
           
private  boolean jj_3R_11()
           
private  boolean jj_3R_12()
           
private  boolean jj_3R_13()
           
private  boolean jj_3R_14()
           
private  boolean jj_3R_15()
           
private  boolean jj_3R_16()
           
private  boolean jj_3R_7()
           
private  boolean jj_3R_8()
           
private  boolean jj_3R_9()
           
private  void jj_add_error_token(int kind, int pos)
           
private  Token jj_consume_token(int kind)
           
private static void jj_la1_init_0()
           
private static void jj_la1_init_1()
           
private  int jj_ntk()
           
private  void jj_rescan_token()
           
private  void jj_save(int index, int xla)
           
private  boolean jj_scan_token(int kind)
           
 DefMessage message()
           
 DefNullOp nullOp()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(ParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 void role()
           
 void start()
           
 Term term()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

framework

private Framework framework

token_source

public ParserTokenManager token_source
Generated Token Manager.


jj_input_stream

SimpleCharStream jj_input_stream

token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.


jj_ntk

private int jj_ntk

jj_scanpos

private Token jj_scanpos

jj_lastpos

private Token jj_lastpos

jj_la

private int jj_la

jj_gen

private int jj_gen

jj_la1

private final int[] jj_la1

jj_la1_0

private static int[] jj_la1_0

jj_la1_1

private static int[] jj_la1_1

jj_2_rtns

private final Parser.JJCalls[] jj_2_rtns

jj_rescan

private boolean jj_rescan

jj_gc

private int jj_gc

jj_ls

private final Parser.LookaheadSuccess jj_ls

jj_expentries

private java.util.List<int[]> jj_expentries

jj_expentry

private int[] jj_expentry

jj_kind

private int jj_kind

jj_lasttokens

private int[] jj_lasttokens

jj_endpos

private int jj_endpos
Constructor Detail

Parser

public Parser(java.io.InputStream stream)
Constructor with InputStream.


Parser

public Parser(java.io.InputStream stream,
              java.lang.String encoding)
Constructor with InputStream and supplied encoding


Parser

public Parser(java.io.Reader stream)
Constructor.


Parser

public Parser(ParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

getFramework

public Framework getFramework()

start

public final void start()
                 throws ParseException,
                        InterpreterException
Throws:
ParseException
InterpreterException

role

public final void role()
                throws ParseException,
                       InterpreterException
Throws:
ParseException
InterpreterException

clause

public final void clause()
                  throws ParseException,
                         InterpreterException
Throws:
ParseException
InterpreterException

clauseBlock

public final void clauseBlock(TreeFactory treeFactory)
                       throws ParseException
Throws:
ParseException

clauseItem

public final void clauseItem(TreeFactory treeFactory)
                      throws ParseException
Throws:
ParseException

def

public final Def def()
              throws ParseException
Throws:
ParseException

agent

public final DefAgent agent()
                     throws ParseException
Throws:
ParseException

message

public final DefMessage message()
                         throws ParseException
Throws:
ParseException

nullOp

public final DefNullOp nullOp()
                       throws ParseException
Throws:
ParseException

constraints

public final java.util.ArrayList<Constraint> constraints()
                                                  throws ParseException
Throws:
ParseException

constraint

public final Constraint constraint()
                            throws ParseException
Throws:
ParseException

term

public final Term term()
                throws ParseException
Throws:
ParseException

argument

public final Argument argument()
                        throws ParseException
Throws:
ParseException

argumentVariable

public final ArgumentVariable argumentVariable()
                                        throws ParseException
Throws:
ParseException

argumentValue

public final ArgumentValue argumentValue()
                                  throws ParseException
Throws:
ParseException

id

public final Argument id()
                  throws ParseException
Throws:
ParseException

jj_2_1

private boolean jj_2_1(int xla)

jj_3R_13

private boolean jj_3R_13()

jj_3R_10

private boolean jj_3R_10()

jj_3R_9

private boolean jj_3R_9()

jj_3R_15

private boolean jj_3R_15()

jj_3R_16

private boolean jj_3R_16()

jj_3R_11

private boolean jj_3R_11()

jj_3R_12

private boolean jj_3R_12()

jj_3R_8

private boolean jj_3R_8()

jj_3R_14

private boolean jj_3R_14()

jj_3_1

private boolean jj_3_1()

jj_3R_7

private boolean jj_3R_7()

jj_la1_init_0

private static void jj_la1_init_0()

jj_la1_init_1

private static void jj_la1_init_1()

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(ParserTokenManager tm)
Reinitialise.


jj_consume_token

private Token jj_consume_token(int kind)
                        throws ParseException
Throws:
ParseException

jj_scan_token

private boolean jj_scan_token(int kind)

getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


jj_ntk

private int jj_ntk()

jj_add_error_token

private void jj_add_error_token(int kind,
                                int pos)

generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.


jj_rescan_token

private void jj_rescan_token()

jj_save

private void jj_save(int index,
                     int xla)