Skip navigation links
A C D E F G I J L N P R S T U V X _ 

A

action_tab - Variable in class java_cup.runtime.lr_parser
Direct reference to the action table.
action_table() - Method in class java_cup.runtime.lr_parser
The action table (supplied by generated subclass).
advance_lookahead() - Method in class java_cup.runtime.lr_parser
Advance to next "parse ahead" input Symbol.

C

ComplexSymbol(String, int) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, Object) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, int) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, Symbol, Symbol) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, ComplexSymbolFactory.Location, ComplexSymbolFactory.Location) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, Symbol, Symbol, Object) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbol(String, int, ComplexSymbolFactory.Location, ComplexSymbolFactory.Location, Object) - Constructor for class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
ComplexSymbolFactory - Class in java_cup.runtime
Default Implementation for SymbolFactory, creates plain old Symbols
ComplexSymbolFactory() - Constructor for class java_cup.runtime.ComplexSymbolFactory
 
ComplexSymbolFactory.ComplexSymbol - Class in java_cup.runtime
ComplexSymbol with detailed Location Informations and a Name
ComplexSymbolFactory.Location - Class in java_cup.runtime
 
cur_err_token() - Method in class java_cup.runtime.lr_parser
Return the current lookahead in our error "parse ahead" buffer.
cur_token - Variable in class java_cup.runtime.lr_parser
The current lookahead Symbol.

D

debug_message(String) - Method in class java_cup.runtime.lr_parser
Write a debugging message to System.err for the debugging version of the parser.
debug_parse() - Method in class java_cup.runtime.lr_parser
Perform a parse with debugging output.
debug_reduce(int, int, int) - Method in class java_cup.runtime.lr_parser
Do debug output for a reduce.
debug_shift(Symbol) - Method in class java_cup.runtime.lr_parser
Do debug output for shift.
debug_stack() - Method in class java_cup.runtime.lr_parser
Do debug output for stack state.
DefaultSymbolFactory - Class in java_cup.runtime
Default Implementation for SymbolFactory, creates plain old Symbols
DefaultSymbolFactory() - Constructor for class java_cup.runtime.DefaultSymbolFactory
Deprecated.
as of CUP v11a replaced by the new java_cup.runtime.ComplexSymbolFactory
do_action(int, lr_parser, Stack<Symbol>, int) - Method in class java_cup.runtime.lr_parser
Perform a bit of user supplied action code (supplied by generated subclass).
done_parsing() - Method in class java_cup.runtime.lr_parser
This method is called to indicate that the parser should quit.
dump_stack() - Method in class java_cup.runtime.lr_parser
Dump the parse stack for debugging purposes.

E

empty() - Method in class java_cup.runtime.virtual_parse_stack
Indicate whether the stack is empty.
EOF_sym() - Method in class java_cup.runtime.lr_parser
The index of the end of file terminal Symbol (supplied by generated subclass).
error_recovery(boolean) - Method in class java_cup.runtime.lr_parser
Attempt to recover from a syntax error.
error_sym() - Method in class java_cup.runtime.lr_parser
The index of the special error Symbol (supplied by generated subclass).
error_sync_size() - Method in class java_cup.runtime.lr_parser
The number of Symbols after an error we much match to consider it recovered from.

F

find_recovery_config(boolean) - Method in class java_cup.runtime.lr_parser
Put the (real) parse stack into error recovery configuration by popping the stack down to a state that can shift on the special error Symbol, then doing the shift.

G

get_action(int, int) - Method in class java_cup.runtime.lr_parser
Fetch an action from the action table.
get_from_real() - Method in class java_cup.runtime.virtual_parse_stack
Transfer an element from the real to the virtual stack.
get_reduce(int, int) - Method in class java_cup.runtime.lr_parser
Fetch a state from the reduce-goto table.
getColumn() - Method in class java_cup.runtime.ComplexSymbolFactory.Location
 
getLeft() - Method in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
getLine() - Method in class java_cup.runtime.ComplexSymbolFactory.Location
 
getRight() - Method in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
getScanner() - Method in class java_cup.runtime.lr_parser
Simple accessor method to get the default scanner.
getSymbolFactory() - Method in class java_cup.runtime.lr_parser
Whenever creation of a new Symbol is necessary, one should use this factory.
getUnit() - Method in class java_cup.runtime.ComplexSymbolFactory.Location
 

I

init_actions() - Method in class java_cup.runtime.lr_parser
Initialize the action object.

J

java_cup.runtime - package java_cup.runtime
 

L

left - Variable in class java_cup.runtime.Symbol
The data passed to parser
Location(String, int, int) - Constructor for class java_cup.runtime.ComplexSymbolFactory.Location
 
Location(int, int) - Constructor for class java_cup.runtime.ComplexSymbolFactory.Location
 
lookahead - Variable in class java_cup.runtime.lr_parser
Lookahead Symbols used for attempting error recovery "parse aheads".
lookahead_pos - Variable in class java_cup.runtime.lr_parser
Position in lookahead input buffer used for "parse ahead".
lr_parser - Class in java_cup.runtime
This class implements a skeleton table driven LR parser.
lr_parser() - Constructor for class java_cup.runtime.lr_parser
Simple constructor.
lr_parser(Scanner) - Constructor for class java_cup.runtime.lr_parser
Constructor that sets the default scanner.
lr_parser(Scanner, SymbolFactory) - Constructor for class java_cup.runtime.lr_parser
Constructor that sets the default scanner and a SymbolFactory

N

name - Variable in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
newSymbol(String, int, ComplexSymbolFactory.Location, ComplexSymbolFactory.Location, Object) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int, ComplexSymbolFactory.Location, ComplexSymbolFactory.Location) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int, Symbol, Symbol, Object) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int, Symbol, Symbol) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int, Object) - Method in class java_cup.runtime.ComplexSymbolFactory
 
newSymbol(String, int, Symbol, Symbol, Object) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int, Symbol, Symbol) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int, int, int, Object) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int, int, int) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int, Object) - Method in class java_cup.runtime.DefaultSymbolFactory
 
newSymbol(String, int, Symbol, Symbol, Object) - Method in interface java_cup.runtime.SymbolFactory
Construction with left/right propagation switched on
newSymbol(String, int, Symbol, Symbol) - Method in interface java_cup.runtime.SymbolFactory
 
newSymbol(String, int, Object) - Method in interface java_cup.runtime.SymbolFactory
Construction with left/right propagation switched off
newSymbol(String, int) - Method in interface java_cup.runtime.SymbolFactory
 
next_token() - Method in interface java_cup.runtime.Scanner
Return the next token, or null on end-of-file.

P

parse() - Method in class java_cup.runtime.lr_parser
This method provides the main parsing routine.
parse_lookahead(boolean) - Method in class java_cup.runtime.lr_parser
Parse forward using stored lookahead Symbols.
parse_state - Variable in class java_cup.runtime.Symbol
The parse state to be recorded on the parse stack with this symbol.
pop() - Method in class java_cup.runtime.virtual_parse_stack
Pop the stack.
production_tab - Variable in class java_cup.runtime.lr_parser
Direct reference to the production table.
production_table() - Method in class java_cup.runtime.lr_parser
Table of production information (supplied by generated subclass).
push(int) - Method in class java_cup.runtime.virtual_parse_stack
Push a state number onto the stack.

R

read_lookahead() - Method in class java_cup.runtime.lr_parser
Read from input to establish our buffer of "parse ahead" lookahead Symbols.
real_next - Variable in class java_cup.runtime.virtual_parse_stack
Top of stack indicator for where we leave off in the real stack.
real_stack - Variable in class java_cup.runtime.virtual_parse_stack
The real stack that we shadow.
reduce_tab - Variable in class java_cup.runtime.lr_parser
Direct reference to the reduce-goto table.
reduce_table() - Method in class java_cup.runtime.lr_parser
The reduce-goto table (supplied by generated subclass).
report_error(String, Object) - Method in class java_cup.runtime.lr_parser
Report a non fatal error (or warning).
report_fatal_error(String, Object) - Method in class java_cup.runtime.lr_parser
Report a fatal error.
restart_lookahead() - Method in class java_cup.runtime.lr_parser
Reset the parse ahead input to one Symbol past where we started error recovery (this consumes one new Symbol from the real input).
right - Variable in class java_cup.runtime.Symbol
The data passed to parser

S

scan() - Method in class java_cup.runtime.lr_parser
Get the next Symbol from the input (supplied by generated subclass).
Scanner - Interface in java_cup.runtime
Defines the Scanner interface, which CUP uses in the default implementation of lr_parser.scan().
setScanner(Scanner) - Method in class java_cup.runtime.lr_parser
Simple accessor method to set the default scanner.
shift_under_error() - Method in class java_cup.runtime.lr_parser
Determine if we can shift under the special error Symbol out of the state currently on the top of the (real) parse stack.
stack - Variable in class java_cup.runtime.lr_parser
The parse stack itself.
start_production() - Method in class java_cup.runtime.lr_parser
The index of the start production (supplied by generated subclass).
start_state() - Method in class java_cup.runtime.lr_parser
The index of the start state (supplied by generated subclass).
startSymbol(String, int, int) - Method in class java_cup.runtime.ComplexSymbolFactory
 
startSymbol(String, int, int) - Method in class java_cup.runtime.DefaultSymbolFactory
 
startSymbol(String, int, int) - Method in interface java_cup.runtime.SymbolFactory
Construction of start symbol
sym - Variable in class java_cup.runtime.Symbol
The symbol number of the terminal or non terminal being represented
Symbol - Class in java_cup.runtime
Defines the Symbol class, which is used to represent all terminals and nonterminals while parsing.
Symbol(int, Symbol, Symbol, Object) - Constructor for class java_cup.runtime.Symbol
 
Symbol(int, Symbol, Symbol) - Constructor for class java_cup.runtime.Symbol
 
Symbol(int, int, int, Object) - Constructor for class java_cup.runtime.Symbol
Constructor for l,r values
Symbol(int, Object) - Constructor for class java_cup.runtime.Symbol
Constructor for no l,r values
Symbol(int, int, int) - Constructor for class java_cup.runtime.Symbol
Constructor for no value
Symbol(int) - Constructor for class java_cup.runtime.Symbol
Constructor for no value or l,r
symbolFactory - Variable in class java_cup.runtime.lr_parser
 
SymbolFactory - Interface in java_cup.runtime
Creates the Symbols interface, which CUP uses as default
syntax_error(Symbol) - Method in class java_cup.runtime.lr_parser
This method is called when a syntax error has been detected and recovery is about to be invoked.

T

top() - Method in class java_cup.runtime.virtual_parse_stack
Return value on the top of the stack (without popping it).
tos - Variable in class java_cup.runtime.lr_parser
Indication of the index for top of stack (for use by actions).
toString() - Method in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
toString() - Method in class java_cup.runtime.ComplexSymbolFactory.Location
 
toString() - Method in class java_cup.runtime.Symbol
Printing this token out.
try_parse_ahead(boolean) - Method in class java_cup.runtime.lr_parser
Do a simulated parse forward (a "parse ahead") from the current stack configuration using stored lookahead input and a virtual parse stack.

U

unpackFromStrings(String[]) - Static method in class java_cup.runtime.lr_parser
Utility function: unpacks parse tables from strings
unrecovered_syntax_error(Symbol) - Method in class java_cup.runtime.lr_parser
This method is called if it is determined that syntax error recovery has been unsuccessful.
user_init() - Method in class java_cup.runtime.lr_parser
User code for initialization inside the parser.

V

value - Variable in class java_cup.runtime.Symbol
 
virtual_parse_stack - Class in java_cup.runtime
This class implements a temporary or "virtual" parse stack that replaces the top portion of the actual parse stack (the part that has been changed by some set of operations) while maintaining its original contents.
virtual_parse_stack(Stack<Symbol>) - Constructor for class java_cup.runtime.virtual_parse_stack
Constructor to build a virtual stack out of a real stack.
vstack - Variable in class java_cup.runtime.virtual_parse_stack
The virtual top portion of the stack.

X

xleft - Variable in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 
xright - Variable in class java_cup.runtime.ComplexSymbolFactory.ComplexSymbol
 

_

_done_parsing - Variable in class java_cup.runtime.lr_parser
Internal flag to indicate when parser should quit.
_error_sync_size - Static variable in class java_cup.runtime.lr_parser
The default number of Symbols after an error we much match to consider it recovered from.
A C D E F G I J L N P R S T U V X _ 
Skip navigation links

Copyright © 2003–2016 Community Z Tools Project. All rights reserved.