public class parser
extends java_cup.runtime.lr_parser
Constructor and Description |
---|
parser()
Default constructor.
|
parser(java_cup.runtime.Scanner s)
Constructor which sets the default scanner.
|
Modifier and Type | Method and Description |
---|---|
short[][] |
action_table()
Access to parse-action table.
|
java_cup.runtime.Symbol |
do_action(int act_num,
java_cup.runtime.lr_parser parser,
Stack stack,
int top)
Invoke a user supplied parse action.
|
int |
EOF_sym()
EOF Symbol index. |
int |
error_sym()
error Symbol index. |
void |
parseFailed(String message,
java_cup.runtime.Symbol token) |
short[][] |
production_table()
Access to production table.
|
short[][] |
reduce_table()
Access to
reduce_goto table. |
void |
report_error(String message,
Object info) |
void |
report_fatal_error(String message,
Object info) |
int |
start_production()
Indicates start production.
|
int |
start_state()
Indicates start state.
|
void |
syntax_error(java_cup.runtime.Symbol cur_token) |
void |
unrecovered_syntax_error(java_cup.runtime.Symbol cur_token) |
public parser()
public parser(java_cup.runtime.Scanner s)
public short[][] production_table()
production_table
in class java_cup.runtime.lr_parser
public short[][] action_table()
action_table
in class java_cup.runtime.lr_parser
public short[][] reduce_table()
reduce_goto
table.reduce_table
in class java_cup.runtime.lr_parser
public java_cup.runtime.Symbol do_action(int act_num, java_cup.runtime.lr_parser parser, Stack stack, int top) throws Exception
do_action
in class java_cup.runtime.lr_parser
Exception
public int start_state()
start_state
in class java_cup.runtime.lr_parser
public int start_production()
start_production
in class java_cup.runtime.lr_parser
public int EOF_sym()
EOF
Symbol index.EOF_sym
in class java_cup.runtime.lr_parser
public int error_sym()
error
Symbol index.error_sym
in class java_cup.runtime.lr_parser
public void report_error(String message, Object info)
report_error
in class java_cup.runtime.lr_parser
public void report_fatal_error(String message, Object info) throws QueryParseException
report_fatal_error
in class java_cup.runtime.lr_parser
QueryParseException
public void syntax_error(java_cup.runtime.Symbol cur_token)
syntax_error
in class java_cup.runtime.lr_parser
public void unrecovered_syntax_error(java_cup.runtime.Symbol cur_token) throws QueryParseException
unrecovered_syntax_error
in class java_cup.runtime.lr_parser
QueryParseException
public void parseFailed(String message, java_cup.runtime.Symbol token) throws QueryParseException
QueryParseException
Copyright © 2011 Nuxeo SA. All Rights Reserved.