Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sablecc.sablecc.parser
Class Parser  view Parser download Parser.java

java.lang.Object
  extended byorg.sablecc.sablecc.parser.Parser

public final class Parser
extends java.lang.Object


Field Summary
private static int ACCEPT
           
private static int[][][] actionTable
           
private  TokenIndex converter
           
private static int ERROR
           
private static java.lang.String[] errors
           
private  boolean get_last_coordinates
           
private static int[][] gotoTable
           
private  int last_line
           
private  int last_pos
           
private  int last_shift
           
private  org.sablecc.sablecc.lexer.Lexer lexer
           
private static int REDUCE
           
private static int SHIFT
           
private  java.util.Stack stack
           
 
Constructor Summary
Parser(org.sablecc.sablecc.lexer.Lexer lexer)
           
 
Method Summary
private  int index(org.sablecc.sablecc.Switchable token)
           
 org.sablecc.sablecc.node.Start parse()
           
private  java.lang.Object pop()
           
private  void push(int state, java.lang.Object node)
           
private  int state()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lexer

private final org.sablecc.sablecc.lexer.Lexer lexer

stack

private final java.util.Stack stack

converter

private final TokenIndex converter

last_shift

private int last_shift

last_pos

private int last_pos

last_line

private int last_line

get_last_coordinates

private boolean get_last_coordinates

SHIFT

private static final int SHIFT
See Also:
Constant Field Values

REDUCE

private static final int REDUCE
See Also:
Constant Field Values

ACCEPT

private static final int ACCEPT
See Also:
Constant Field Values

ERROR

private static final int ERROR
See Also:
Constant Field Values

actionTable

private static int[][][] actionTable

gotoTable

private static int[][] gotoTable

errors

private static java.lang.String[] errors
Constructor Detail

Parser

public Parser(org.sablecc.sablecc.lexer.Lexer lexer)
Method Detail

push

private void push(int state,
                  java.lang.Object node)

state

private int state()

pop

private java.lang.Object pop()

index

private int index(org.sablecc.sablecc.Switchable token)

parse

public org.sablecc.sablecc.node.Start parse()
                                     throws ParserException,
                                            org.sablecc.sablecc.lexer.LexerException,
                                            java.io.IOException