public class LexGen extends CodeGenerator implements JavaCCParserConstants
Modifier and Type | Field and Description |
---|---|
static Action[] |
actions |
static boolean[] |
canLoop |
static int[] |
canMatchAnyChar |
static boolean[] |
canReachOnMore |
static int |
curKind |
static RegularExpression |
curRE |
static int |
defaultLexState |
static String |
errorHandlingClass |
static boolean |
generateDataOnly |
static boolean |
hasEmptyMatch |
static boolean |
hasLoop |
static boolean[] |
hasNfa |
static boolean[] |
ignoreCase |
static NfaState |
initialState |
static int[] |
initMatch |
static Hashtable |
initStates |
static boolean |
keepLineCol |
static int |
lexStateIndex |
static String[] |
lexStateName |
static int[] |
lexStates |
static String |
lexStateSuffix |
static int |
maxLexStates |
static int[] |
maxLongsReqd |
static int |
maxOrdinal |
static boolean[] |
mixed |
static RegularExpression[] |
rexprs |
static boolean[] |
stateHasActions |
static int |
stateSetSize |
static String |
staticString |
static TokenizerData |
tokenizerData |
static String |
tokMgrClassName |
static long[] |
toMore |
static long[] |
toSkip |
static long[] |
toSpecial |
static int |
totalNumStates |
static long[] |
toToken |
ccol, cline, includeBuffer, mainBuffer, outputBuffer, staticsBuffer
_CPPCODE, _DEFAULT, _EOF, _IGNORE_CASE, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ACT_TOK, AFTER_EGEN, ANDASSIGN, ASSERT, ASSIGN, BANG, BINARY_LITERAL, 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 and Description |
---|
LexGen() |
Modifier and Type | Method and Description |
---|---|
static void |
AddCharToSkip(char c,
int kind) |
void |
DumpMoreActions() |
void |
DumpSkipActions() |
void |
DumpTokenActions() |
static void |
reInit() |
void |
start() |
protected void |
writeTemplate(String name,
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 String staticString
public static String tokMgrClassName
public static int lexStateIndex
public static int maxOrdinal
public static String lexStateSuffix
public static int[] lexStates
public static boolean[] ignoreCase
public static Action[] actions
public static Hashtable initStates
public static int stateSetSize
public static int totalNumStates
public static int maxLexStates
public static 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 String errorHandlingClass
public static TokenizerData tokenizerData
public static boolean generateDataOnly
protected void writeTemplate(String name, Object... additionalOptions) throws IOException
IOException
public static void AddCharToSkip(char c, int kind)
public void start() throws IOException
IOException
public void DumpSkipActions()
public void DumpMoreActions()
public void DumpTokenActions()
public static void reInit()
Copyright © 1996–2020 javacc.org. All rights reserved.