|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java_cup.runtime.lr_parser | +--org.objectweb.jac.core.parsers.acc.ToolParser | +--org.objectweb.jac.core.parsers.acc.ToolParserWrapper
Field Summary |
Fields inherited from class org.objectweb.jac.core.parsers.acc.ToolParser |
_action_table, _production_table, _reduce_table, action_obj |
Fields inherited from class java_cup.runtime.lr_parser |
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, tos |
Constructor Summary | |
ToolParserWrapper()
|
|
ToolParserWrapper(Set blockKeywords)
|
Method Summary | |
void |
addBlockKeywords(Collection keywords)
|
SyntaxElement |
getSyntaxElementAt(int position)
Gets the "deepest" element at a given position, or null |
SyntaxElement |
getSyntaxElementAt(int position,
String name)
Gets the "deepest" element at a given position with a given name, or null |
NonTerminal |
getSyntaxElements()
|
Terminal |
getTerminalAt(int position)
Returns the Terminal at a given position, or null |
NonTerminal |
parse(Reader input,
String streamName)
Parses some input from a reader. |
void |
report_error(String message,
Object info)
|
void |
setBlockKeywords(Set keywords)
|
Methods inherited from class org.objectweb.jac.core.parsers.acc.ToolParser |
action_table, do_action, EOF_sym, error_sym, init_actions, production_table, reduce_table, start_production, start_state |
Methods inherited from class java_cup.runtime.lr_parser |
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, getScanner, parse_lookahead, parse, read_lookahead, report_fatal_error, restart_lookahead, scan, setScanner, shift_under_error, syntax_error, try_parse_ahead, unpackFromStrings, unrecovered_syntax_error, user_init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ToolParserWrapper()
public ToolParserWrapper(Set blockKeywords)
Method Detail |
public void addBlockKeywords(Collection keywords)
public void setBlockKeywords(Set keywords)
public NonTerminal parse(Reader input, String streamName)
input
- reader to parse fromstreamName
- name of the stream to read from
public NonTerminal getSyntaxElements()
public void report_error(String message, Object info)
report_error
in class java_cup.runtime.lr_parser
public Terminal getTerminalAt(int position)
position
- the position of the requested Terminalpublic SyntaxElement getSyntaxElementAt(int position)
position
- the position of the requested SyntaxElementpublic SyntaxElement getSyntaxElementAt(int position, String name)
position
- the position of the requested SyntaxElementname
- searched name
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |