JavaCCParserConstants
LexGenCPP
public class LexGen extends CodeGenerator implements JavaCCParserConstants
Modifier and Type | Field | Description |
---|---|---|
static Action[] |
actions |
|
static boolean[] |
canLoop |
|
static int[] |
canMatchAnyChar |
|
static boolean[] |
canReachOnMore |
|
static int |
curKind |
|
static RegularExpression |
curRE |
|
static int |
defaultLexState |
|
static java.lang.String |
errorHandlingClass |
|
static boolean |
generateDataOnly |
|
static boolean |
hasEmptyMatch |
|
static boolean |
hasLoop |
|
static boolean[] |
hasNfa |
|
static boolean[] |
ignoreCase |
|
static NfaState |
initialState |
|
static int[] |
initMatch |
|
static java.util.Hashtable |
initStates |
|
static boolean |
keepLineCol |
|
static int |
lexStateIndex |
|
static java.lang.String[] |
lexStateName |
|
static int[] |
lexStates |
|
static java.lang.String |
lexStateSuffix |
|
static int |
maxLexStates |
|
static int[] |
maxLongsReqd |
|
static int |
maxOrdinal |
|
static boolean[] |
mixed |
|
static RegularExpression[] |
rexprs |
|
static boolean[] |
stateHasActions |
|
static int |
stateSetSize |
|
static java.lang.String |
staticString |
|
static TokenizerData |
tokenizerData |
|
static java.lang.String |
tokMgrClassName |
|
static long[] |
toMore |
|
static long[] |
toSkip |
|
static long[] |
toSpecial |
|
static int |
totalNumStates |
|
static long[] |
toToken |
ccol, cline, includeBuffer, mainBuffer, outputBuffer, staticsBuffer
_CPPCODE, _DCL_PARSER_BEGIN, _DCL_PARSER_END, _DEF_PARSER_BEGIN, _DEF_PARSER_END, _DEFAULT, _EOF, _IGNORE_CASE, _INC_PARSER_BEGIN, _INC_PARSER_END, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ACT_TOK, AFTER_EGEN, ANDASSIGN, ASSERT, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DECR, DEFAULT, DO, DOT, DOUBLE, DOUBLECOLON, ELSE, ENUM, EOF, EQ, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LANGLE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PART_LETTER, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RANGLE, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RUNSIGNEDSHIFT, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, TEMPLATE, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, TYPENAME, VOID, VOLATILE, WHILE, XOR, XORASSIGN
Constructor | Description |
---|---|
LexGen() |
Modifier and Type | Method | Description |
---|---|---|
static void |
AddCharToSkip(char c,
int kind) |
|
void |
DumpMoreActions() |
|
void |
DumpSkipActions() |
|
void |
DumpTokenActions() |
|
static void |
reInit() |
|
void |
start() |
|
protected void |
writeTemplate(java.lang.String name,
java.lang.Object... additionalOptions) |
genAnnotation, genClassStart, genCode, genCodeLine, generateMethodDefHeader, generateMethodDefHeader, genModifier, genStringLiteralArrayCPP, genStringLiteralInCPP, getCharStreamName, getClassQualifier, getGeneratedCode, getLeadingComments, getStringForTokenOnly, getStringToPrint, getTrailingComments, isJavaLanguage, printLeadingComments, printToken, printTokenList, printTokenOnly, printTokenSetup, printTrailingComments, saveOutput, saveOutput, switchToIncludeFile, switchToMainFile, switchToStaticsFile, writeTemplate
public static java.lang.String staticString
public static java.lang.String tokMgrClassName
public static int lexStateIndex
public static int maxOrdinal
public static java.lang.String lexStateSuffix
public static int[] lexStates
public static boolean[] ignoreCase
public static Action[] actions
public static java.util.Hashtable initStates
public static int stateSetSize
public static int totalNumStates
public static int maxLexStates
public static java.lang.String[] lexStateName
public static long[] toSkip
public static long[] toSpecial
public static long[] toMore
public static long[] toToken
public static int defaultLexState
public static RegularExpression[] rexprs
public static int[] maxLongsReqd
public static int[] initMatch
public static int[] canMatchAnyChar
public static boolean hasEmptyMatch
public static boolean[] canLoop
public static boolean[] stateHasActions
public static boolean hasLoop
public static boolean[] canReachOnMore
public static boolean[] hasNfa
public static boolean[] mixed
public static NfaState initialState
public static int curKind
public static RegularExpression curRE
public static boolean keepLineCol
public static java.lang.String errorHandlingClass
public static TokenizerData tokenizerData
public static boolean generateDataOnly
protected void writeTemplate(java.lang.String name, java.lang.Object... additionalOptions) throws java.io.IOException
java.io.IOException
public static void AddCharToSkip(char c, int kind)
public void start() throws java.io.IOException
java.io.IOException
public void DumpSkipActions()
public void DumpMoreActions()
public void DumpTokenActions()
public static void reInit()