FileDocCategorySizeDatePackage
parser.javaAPI DocJava SE 5 API100725Fri Aug 26 14:54:54 BST 2005com.sun.java_cup.internal

parser

public class parser extends lr_parser
CUP v0.10j generated parser.
version
Sat Jul 24 08:05:57 EDT 1999

Fields Summary
protected static final short[]
_production_table
Production table.
protected static final short[]
_action_table
Parse-action table.
protected static final short[]
_reduce_table
reduce_goto table.
protected CUP$parser$actions
action_obj
Instance of action encapsulation class.
Constructors Summary
public parser()
Default constructor.

super();
public parser(Scanner s)
Constructor which sets the default scanner.

super(s);
Methods Summary
public intEOF_sym()
EOF Symbol index.

return 0;
public short[][]action_table()
Access to parse-action table.


       
     return _action_table;
public com.sun.java_cup.internal.runtime.Symboldo_action(int act_num, com.sun.java_cup.internal.runtime.lr_parser parser, java.util.Stack stack, int top)
Invoke a user supplied parse action.

    /* call code in generated class */
    return action_obj.CUP$parser$do_action(act_num, parser, stack, top);
  
public interror_sym()
error Symbol index.

return 1;
protected voidinit_actions()
Action encapsulation object initializer.

      action_obj = new CUP$parser$actions(this);
    
public short[][]production_table()
Access to production table.


       
     return _production_table;
public short[][]reduce_table()
Access to reduce_goto table.


       
     return _reduce_table;
public voidreport_error(java.lang.String message, java.lang.Object info)

      lexer.emit_error(message);
    
public voidreport_fatal_error(java.lang.String message, java.lang.Object info)

      done_parsing();
      lexer.emit_error(message);
      System.err.println("Can't recover from previous error(s), giving up.");
      System.exit(1);
    
public com.sun.java_cup.internal.runtime.Symbolscan()
Scan to get the next Symbol.

 return lexer.next_token(); 
    
public intstart_production()
Indicates start production.

return 0;
public intstart_state()
Indicates start state.

return 0;
public voiduser_init()
User initialization code.

 lexer.init();