_action_table
protected static final short[][] _action_table
parse action table
_production_table
protected static final short[][] _production_table
production table
_reduce_table
protected static final short[][] _reduce_table
reduce_goto table
action_obj
protected org.jacorb.idl.CUP$actions action_obj
instance of action encapsulation class
cldc10
protected static boolean cldc10
codeGeneratorClass
public static Class codeGeneratorClass
compiler_version
public static final String compiler_version
currentVersion
public static String currentVersion
done_parsing
public static boolean done_parsing
used for internal checking that name conversion
to mapped Java names is done only after parsing
finalString
protected static String finalString
forceOverwrite
protected static boolean forceOverwrite
generateIR
public static boolean generateIR
generateIncluded
protected static boolean generateIncluded
generate_ami_callback
public static boolean generate_ami_callback
generate_ami_polling
public static boolean generate_ami_polling
generate_skeletons
public static boolean generate_skeletons
generate_stubs
public static boolean generate_stubs
include_state
public static boolean include_state
compiler flags
inhibitionState
protected static boolean inhibitionState
localityContraint
protected static boolean localityContraint
pack_replace
public static Hashtable pack_replace
scopes
public static Stack scopes
sloppy
public static boolean sloppy
strict_attributes
public static boolean strict_attributes
strict_inheritance
public static boolean strict_inheritance
these two are to work around buggy IDL generated by Sun's rmic in JDK 1.4
strict_names
public static boolean strict_names
useUncheckedNarrow
protected static boolean useUncheckedNarrow
EOF_sym
public int EOF_sym()
EOF symbol index
- EOF_sym in interface lr_parser
action_table
public short[][] action_table()
access to parse action table
- action_table in interface lr_parser
activeParseThreads
public static int activeParseThreads()
closeScope
public static void closeScope(Scope symbol)
called from within the parser whenever parsing a scope
symbol is complete
compile
public static boolean compile(argv[] )
throws Exception
compile
public static boolean compile(argv[] ,
StringWriter logWriter)
throws Exception
compileAndHandle
public static boolean compileAndHandle(argv[] )
currentScopeData
public static ScopeData currentScopeData()
decActiveParseThreads
public static void decActiveParseThreads()
do_action
public symbol do_action(int act_num,
lr_parser parser,
java.util.Stack stack,
int top)
throws java.lang.Exception
invoke a user supplied parse action
error
public static void error(String message)
error
public static void error(String message,
str_token p_info)
error_sym
public int error_sym()
error symbol index
- error_sym in interface lr_parser
generateIncluded
public static boolean generateIncluded()
getFinalString
public static String getFinalString()
getInhibitionState
public static boolean getInhibitionState()
get_pending
public static Object get_pending(String name)
incActiveParseThreads
public static void incActiveParseThreads()
init
protected static void init()
allows reinitialization if compiler is not
run from a command-line
init_actions
protected void init_actions()
action encapsulation object initializer
- init_actions in interface lr_parser
main
public static void main(argv[] )
openScope
public static void openScope()
called from the lexer/scanner whenever a scope opening
symbol is encountered
pack_replace
public static String pack_replace(String old)
Package replacements as requested
by compiler options
production_table
public short[][] production_table()
access to production table
- production_table in interface lr_parser
reduce_table
public short[][] reduce_table()
access to reduce_goto table
- reduce_table in interface lr_parser
remove_pending
public static void remove_pending(String name)
report_error
public void report_error(String message,
Object info)
Report a non fatal error (or warning). This method takes a message
string and an additional object (to be used by specializations
implemented in subclasses). Here in the base class a very simple
implementation is provided which simply prints the message to
System.err.
- report_error in interface lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.
report_fatal_error
public void report_fatal_error(String message,
Object info)
throws ParseException
Report a fatal error. This method takes a message string and an
additional object (to be used by specializations implemented in
subclasses). Here in the base class a very simple implementation
is provided which reports the error then throws an exception.
- report_fatal_error in interface lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.
scan
public token scan()
throws java.lang.Exception
scan to get the next token
- scan in interface lr_parser
setFinalString
public static void setFinalString(String finalString)
setGenerateFinalCode
public static void setGenerateFinalCode(boolean isFinal)
setGenerator
public static void setGenerator(IDLTreeVisitor generatorObject)
setInhibitionState
public static void setInhibitionState(boolean flag)
set_included
public static void set_included(boolean i)
set_pending
public static void set_pending(String name)
start_production
public int start_production()
start production
- start_production in interface lr_parser
start_state
public int start_state()
start state
- start_state in interface lr_parser
usage
public static void usage(String[] argv,
String msg)
user_init
public void user_init()
throws java.lang.Exception
user initialization
- user_init in interface lr_parser