Uses of Class
java_cup.runtime.Symbol
Packages that use Symbol
-
Uses of Symbol in java_cup
Modifier and TypeMethodDescriptionvoid
ErrorManager.emit_error
(String message, Symbol sym) void
ErrorManager.emit_fatal
(String message, Symbol sym) void
ErrorManager.emit_warning
(String message, Symbol sym) -
Uses of Symbol in java_cup.runtime
Subclasses of Symbol in java_cup.runtimeModifier and TypeClassDescriptionstatic class
ComplexSymbol with detailed Location Informations and a NameFields in java_cup.runtime declared as SymbolModifier and TypeFieldDescriptionprotected Symbol
lr_parser.cur_token
The current lookahead Symbol.protected Symbol[]
lr_parser.lookahead
Lookahead Symbols used for attempting error recovery "parse aheads".Methods in java_cup.runtime that return SymbolModifier and TypeMethodDescriptionprotected Symbol
lr_parser.cur_err_token()
Return the current lookahead in our error "parse ahead" buffer.lr_parser.debug_parse()
Perform a parse with debugging output.abstract Symbol
Perform a bit of user supplied action code (supplied by generated subclass).ComplexSymbolFactory.newSymbol
(String name, int id, ComplexSymbolFactory.Location left, ComplexSymbolFactory.Location right) newSymbol creates a complex symbol with Location objects for left and right boundaries; this is used for terminals without values!ComplexSymbolFactory.newSymbol
(String name, int id, ComplexSymbolFactory.Location left, ComplexSymbolFactory.Location right, Object value) newSymbol creates a complex symbol with Location objects for left and right boundaries; this is used for terminals with values!newSymbol creates a basic symbol; used frequently for terminal symbols, like keywordsnewSymbol creates a symbol, grouping other symbols with left/right locations; used frequently by the parser to implement non-terminal symbolsnewSymbol creates a symbol with a value, grouping other symbols with left/right locations; used frequently by the parser to implement non-terminal symbolsnewSymbol creates a symbol for an empty production, taking its location from the Symbol on the leftnewSymbol creates a basic symbol with an attached value; used frequently for terminal symbols like identifiersScanner.next_token()
Return the next token, ornull
on end-of-file.ScannerBuffer.next_token()
lr_parser.parse()
This method provides the main parsing routine.lr_parser.scan()
Get the next Symbol from the input (supplied by generated subclass).ComplexSymbolFactory.startSymbol
(String name, int id, int state) DefaultSymbolFactory.startSymbol
(String name, int id, int state) SymbolFactory.startSymbol
(String name, int id, int state) newSymbol creates the start symbolMethods in java_cup.runtime that return types with arguments of type SymbolModifier and TypeMethodDescriptionScannerBuffer.getBuffered()
Read-Only access to the buffered SymbolsMethods in java_cup.runtime with parameters of type SymbolModifier and TypeMethodDescriptionvoid
lr_parser.debug_shift
(Symbol shift_tkn) Do debug output for shift.newSymbol creates a symbol, grouping other symbols with left/right locations; used frequently by the parser to implement non-terminal symbolsnewSymbol creates a symbol with a value, grouping other symbols with left/right locations; used frequently by the parser to implement non-terminal symbolsnewSymbol creates a symbol for an empty production, taking its location from the Symbol on the leftvoid
lr_parser.syntax_error
(Symbol cur_token) This method is called when a syntax error has been detected and recovery is about to be invoked.void
lr_parser.unrecovered_syntax_error
(Symbol cur_token) This method is called if it is determined that syntax error recovery has been unsuccessful.Constructors in java_cup.runtime with parameters of type SymbolModifierConstructorDescriptionComplexSymbol
(String name, int id, Symbol left, Symbol right) ComplexSymbol
(String name, int id, Symbol left, Symbol right, Object value) ComplexSymbol
(String name, int id, Symbol left, Object value)