Package EDU.purdue.jtb.parser
Class JavaCCParserInternals
java.lang.Object
EDU.purdue.jtb.parser.JavaCCGlobals
EDU.purdue.jtb.parser.JavaCCParserInternals
- Direct Known Subclasses:
JTBParser
Utilities.
-
Field Summary
Fields inherited from class EDU.purdue.jtb.parser.JavaCCGlobals
bnfproductions, ccol, cline, cu_from_insertion_point_2, cu_name, cu_to_insertion_point_1, cu_to_insertion_point_2, fileName, jj2index, jjtreeGenerated, lexstate_I2S, lexstate_S2I, lookaheadNeeded, maskindex, maskVals, named_tokens_table, names_of_tokens, ordered_named_tokens, origFileName, production_table, rexprlist, rexps_of_tokens, simple_tokens_table, token_mgr_decls, tokenCount, toolName, toolNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static void
add_token_manager_decls
(Token t, List<Token> decls, boolean userTokenManager) protected static void
protected static void
protected static void
addregexpr
(TokenProduction p, boolean userTokenManager) protected static char
protected static char
character_descriptor_assign
(Token t, String s, String left) protected static void
Compares the second id with the first one and raises a parse error if not identical.protected static boolean
hexchar
(char ch) protected static int
hexval
(char ch) protected static void
Initializesprotected static void
protected static void
makeTryBlock
(Token tryLoc, Container result, Container nestedExp, List<List<Token>> types, List<Token> ids, List<List<Token>> catchblks, List<Token> finallyblk) protected static void
static void
reInit()
protected static String
remove_escapes_and_quotes
(Token t, String str) protected static void
protected static void
setinsertionpoint
(Token t, int no) Methods inherited from class EDU.purdue.jtb.parser.JavaCCGlobals
add_escapes, addUnicodeEscapes, bannerLine, createOutputDir, getIdString, getIdString, getToolNames, isGeneratedBy, printLeadingComments, printLeadingComments, printToken, printToken, printTokenList, printTokenOnly, printTokenOnly, printTokenSetup, printTrailingComments, printTrailingComments
-
Constructor Details
-
JavaCCParserInternals
public JavaCCParserInternals()
-
-
Method Details
-
initialize
protected static void initialize()Initializes -
addcuname
- Parameters:
id
- - the Compilation Unit name
-
compare
Compares the second id with the first one and raises a parse error if not identical.- Parameters:
t
- - the token to pass to the errorid1
- - the first id to compareid2
- - the second id to compare
-
setinsertionpoint
-
insertionpointerrors
-
set_initial_cu_token
-
addproduction
-
production_addexpansion
-
addregexpr
-
add_token_manager_decls
-
add_inline_regexpr
-
hexchar
protected static boolean hexchar(char ch) -
hexval
protected static int hexval(char ch) -
remove_escapes_and_quotes
-
character_descriptor_assign
-
character_descriptor_assign
-
makeTryBlock
-
reInit
public static void reInit()
-