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 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 voidprotected static voidadd_token_manager_decls(Token t, List<Token> decls, boolean userTokenManager) protected static voidprotected static voidprotected static voidaddregexpr(TokenProduction p, boolean userTokenManager) protected static charprotected static charcharacter_descriptor_assign(Token t, String s, String left) protected static voidCompares the second id with the first one and raises a parse error if not identical.protected static booleanhexchar(char ch) protected static inthexval(char ch) protected static voidInitializesprotected static voidprotected static voidmakeTryBlock(Token tryLoc, Container result, Container nestedExp, List<List<Token>> types, List<Token> ids, List<List<Token>> catchblks, List<Token> finallyblk) protected static voidstatic voidreInit()protected static Stringremove_escapes_and_quotes(Token t, String str) protected static voidprotected static voidsetinsertionpoint(Token t, int no) Methods inherited from class 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
-
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()
-