public class parser extends lr_parser
Modifier and Type | Field and Description |
---|---|
protected static short[][] |
_action_table
parse action table
|
protected static short[][] |
_production_table
production table
|
protected static short[][] |
_reduce_table
reduce_goto table
|
protected org.jacorb.idl.CUP$actions |
action_obj
instance of action encapsulation class
|
protected static boolean |
addbackend |
protected static boolean |
cldc10 |
static String |
compiler_version |
static String |
currentDate |
static String |
currentVersion |
static boolean |
done_parsing
used for internal checking that name conversion
to mapped Java names is done only after parsing
|
protected static String |
finalString |
protected static boolean |
forceOverwrite |
static boolean |
generate_ami_callback |
static boolean |
generate_ami_polling |
static boolean |
generate_skeletons |
static boolean |
generate_stubs |
protected static boolean |
generateDiiStubs |
protected static boolean |
generateIncluded |
static boolean |
generateIR |
static IDLTreeVisitor |
generator |
static int |
HELPER_DEPRECATED |
static int |
HELPER_JACORB |
static int |
HELPER_PORTABLE |
static boolean |
include_state
compiler flags
|
protected static boolean |
inhibitionState |
protected static boolean |
localityContraint |
static String |
out_dir |
static Hashtable |
pack_replace |
static Stack |
scopes |
static boolean |
sloppy |
static boolean |
strict_attributes |
static boolean |
strict_inheritance
these two are to work around buggy IDL generated by Sun's rmic in JDK 1.4
|
static boolean |
strict_names |
protected static boolean |
useUncheckedNarrow |
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, tos
Constructor and Description |
---|
parser()
constructor
|
Modifier and Type | Method and Description |
---|---|
short[][] |
action_table()
access to parse action table
|
static int |
activeParseThreads() |
static void |
closeScope(Scope symbol)
called from within the parser whenever parsing a scope
symbol is complete
|
static boolean |
compile(String[] argv) |
static boolean |
compile(String[] argv,
StringWriter logWriter) |
static boolean |
compileAndHandle(String[] argv) |
static ScopeData |
currentScopeData() |
static void |
decActiveParseThreads() |
symbol |
do_action(int act_num,
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
|
static void |
error(String message) |
static void |
error(String message,
str_token p_info) |
static void |
fatal_error(String message,
str_token p_info) |
static boolean |
generateIncluded() |
static Object |
get_pending(String name) |
static String |
getFinalString() |
static IDLTreeVisitor |
getGenerator() |
static boolean |
getInhibitionState() |
static org.apache.log.Logger |
getLogger()
convenience access to the preconfigured loger for the
IDL compiler
|
static void |
incActiveParseThreads() |
protected void |
init_actions()
action encapsulation object initializer
|
protected static void |
init()
allows reinitialization if compiler is not
run from a command-line
|
static void |
main(String[] argv) |
static void |
openScope()
called from the lexer/scanner whenever a scope opening
symbol is encountered
|
static String |
pack_replace(String old)
Package replacements as requested
by compiler options
|
static int |
parseGeneratedHelperPortability(String level) |
short[][] |
production_table()
access to production table
|
short[][] |
reduce_table()
access to reduce_goto table
|
static void |
remove_pending(String name) |
void |
report_error(String message,
Object info)
Report a non fatal error (or warning).
|
void |
report_fatal_error(String message,
Object info)
Report a fatal error.
|
token |
scan()
scan to get the next token
|
static void |
set_included(boolean i) |
static void |
set_pending(String name) |
static void |
setFinalString(String finalString) |
static void |
setGenerateFinalCode(boolean isFinal) |
static void |
setGenerator(IDLTreeVisitor generatorObject) |
static void |
setInhibitionState(boolean flag) |
int |
start_production()
start production
|
int |
start_state()
start state
|
static void |
usage(String[] argv,
String msg) |
void |
user_init()
user initialization
|
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, parse_lookahead, parse, read_lookahead, restart_lookahead, shift_under_error, syntax_error, try_parse_ahead, unrecovered_syntax_error
protected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
protected org.jacorb.idl.CUP$actions action_obj
public static Hashtable pack_replace
public static Stack scopes
public static final String currentVersion
public static final String compiler_version
public static IDLTreeVisitor generator
public static String out_dir
public static boolean done_parsing
public static boolean include_state
public static boolean strict_names
public static boolean strict_inheritance
public static boolean strict_attributes
public static boolean generateIR
public static boolean generate_skeletons
public static boolean generate_stubs
public static boolean generate_ami_callback
public static boolean generate_ami_polling
protected static boolean generateIncluded
protected static boolean inhibitionState
protected static boolean localityContraint
protected static boolean useUncheckedNarrow
protected static boolean cldc10
public static final int HELPER_DEPRECATED
public static final int HELPER_PORTABLE
public static final int HELPER_JACORB
protected static boolean forceOverwrite
protected static boolean addbackend
protected static boolean generateDiiStubs
protected static String finalString
public static boolean sloppy
public static String currentDate
public short[][] production_table()
production_table
in class lr_parser
public short[][] action_table()
action_table
in class lr_parser
lr_parser.get_action(int, int)
public short[][] reduce_table()
reduce_table
in class lr_parser
lr_parser.get_reduce(int, int)
protected void init_actions()
init_actions
in class lr_parser
public symbol do_action(int act_num, lr_parser parser, Stack stack, int top) throws Exception
public int start_state()
start_state
in class lr_parser
public int start_production()
start_production
in class lr_parser
public void user_init() throws Exception
protected static void init()
public static void main(String[] argv)
public static boolean compileAndHandle(String[] argv)
public static boolean compile(String[] argv, StringWriter logWriter) throws Exception
Exception
public static int parseGeneratedHelperPortability(String level)
public void report_fatal_error(String message, Object info) throws ParseException
lr_parser
report_fatal_error
in class lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.ParseException
public static void fatal_error(String message, str_token p_info) throws ParseException
ParseException
public void report_error(String message, Object info)
lr_parser
report_error
in class lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.public static void error(String message)
public static void openScope()
public static void closeScope(Scope symbol)
public static ScopeData currentScopeData()
public static void set_pending(String name)
public static void setGenerator(IDLTreeVisitor generatorObject)
public static IDLTreeVisitor getGenerator()
public static void remove_pending(String name)
public static void decActiveParseThreads()
public static void incActiveParseThreads()
public static int activeParseThreads()
public static boolean generateIncluded()
public static boolean getInhibitionState()
public static void setInhibitionState(boolean flag)
public static void set_included(boolean i)
public static String getFinalString()
public static void setFinalString(String finalString)
public static void setGenerateFinalCode(boolean isFinal)
public static String pack_replace(String old)
public static final org.apache.log.Logger getLogger()
Copyright © 2017 JacORB. All rights reserved.