|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjava_cup.runtime.lr_parser
tgl.compiler.Parser
public class Parser
CUP v0.11a beta 20060608 generated parser.
| フィールドの概要 | |
|---|---|
protected static short[][] |
_action_table
Parse-action table. |
protected static short[][] |
_production_table
Production table. |
protected static short[][] |
_reduce_table
reduce_goto table. |
protected CUP$Parser$actions |
action_obj
Instance of action encapsulation class. |
| クラス java_cup.runtime.lr_parser から継承されたフィールド |
|---|
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, symbolFactory, tos |
| コンストラクタの概要 | |
|---|---|
Parser()
Default constructor. |
|
Parser(Lexer lexer,
CompileErrorHandler errorHandler)
|
|
Parser(java_cup.runtime.Scanner s)
Constructor which sets the default scanner. |
|
Parser(java_cup.runtime.Scanner s,
java_cup.runtime.SymbolFactory sf)
Constructor which sets the default scanner. |
|
| メソッドの概要 | |
|---|---|
short[][] |
action_table()
Access to parse-action table. |
java_cup.runtime.Symbol |
do_action(int act_num,
java_cup.runtime.lr_parser parser,
java.util.Stack stack,
int top)
Invoke a user supplied parse action. |
int |
EOF_sym()
EOF Symbol index. |
int |
error_sym()
error Symbol index. |
(package private) CompileErrorHandler |
getErrorHandler()
構文解析と意味解析のエラーを処理するエラーハンドラのインスタンスを返す。 |
(package private) SymbolTable |
getSymbolTable()
コンパイラが使う記号表のインスタンスオブジェクトを取り出す。 |
protected void |
init_actions()
Action encapsulation object initializer. |
short[][] |
production_table()
Access to production table. |
short[][] |
reduce_table()
Access to reduce_goto table. |
void |
report_fatal_error(java.lang.String message,
java.lang.Object info)
致命的なエラーを報告する。 |
int |
start_production()
Indicates start production. |
int |
start_state()
Indicates start state. |
void |
unrecovered_syntax_error(java_cup.runtime.Symbol cur_token)
構文解析器が復帰不可能な構文エラーを検出したときに呼び出される。 |
| クラス 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, getSymbolFactory, parse_lookahead, parse, read_lookahead, report_error, restart_lookahead, scan, setScanner, shift_under_error, syntax_error, try_parse_ahead, unpackFromStrings, user_init |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
reduce_goto table.
protected CUP$Parser$actions action_obj
| コンストラクタの詳細 |
|---|
public Parser()
public Parser(java_cup.runtime.Scanner s)
public Parser(java_cup.runtime.Scanner s,
java_cup.runtime.SymbolFactory sf)
public Parser(Lexer lexer,
CompileErrorHandler errorHandler)
throws java.lang.Exception
java.lang.Exception| メソッドの詳細 |
|---|
public short[][] production_table()
java_cup.runtime.lr_parser 内の production_tablepublic short[][] action_table()
java_cup.runtime.lr_parser 内の action_tablepublic short[][] reduce_table()
reduce_goto table.
java_cup.runtime.lr_parser 内の reduce_tableprotected void init_actions()
java_cup.runtime.lr_parser 内の init_actions
public java_cup.runtime.Symbol do_action(int act_num,
java_cup.runtime.lr_parser parser,
java.util.Stack stack,
int top)
throws java.lang.Exception
java_cup.runtime.lr_parser 内の do_actionjava.lang.Exceptionpublic int start_state()
java_cup.runtime.lr_parser 内の start_statepublic int start_production()
java_cup.runtime.lr_parser 内の start_productionpublic int EOF_sym()
EOF Symbol index.
java_cup.runtime.lr_parser 内の EOF_sympublic int error_sym()
error Symbol index.
java_cup.runtime.lr_parser 内の error_symCompileErrorHandler getErrorHandler()
SymbolTable getSymbolTable()
public void report_fatal_error(java.lang.String message,
java.lang.Object info)
throws java.lang.Exception
java_cup.runtime.lr_parser 内の report_fatal_errorjava.lang.Exception
public void unrecovered_syntax_error(java_cup.runtime.Symbol cur_token)
throws java.lang.Exception
java_cup.runtime.lr_parser 内の unrecovered_syntax_errorjava.lang.Exception
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||