Class LexGen

All Implemented Interfaces:
JavaCCParserConstants
Direct Known Subclasses:
LexGenCPP

public class LexGen extends CodeGenerator implements JavaCCParserConstants
Generate lexer.
  • Field Details

    • staticString

      public static String staticString
    • tokMgrClassName

      public static String tokMgrClassName
    • lexStateIndex

      public static int lexStateIndex
    • maxOrdinal

      public static int maxOrdinal
    • lexStateSuffix

      public static String lexStateSuffix
    • lexStates

      public static int[] lexStates
    • ignoreCase

      public static boolean[] ignoreCase
    • actions

      public static Action[] actions
    • initStates

      public static Hashtable initStates
    • stateSetSize

      public static int stateSetSize
    • totalNumStates

      public static int totalNumStates
    • maxLexStates

      public static int maxLexStates
    • lexStateName

      public static String[] lexStateName
    • toSkip

      public static long[] toSkip
    • toSpecial

      public static long[] toSpecial
    • toMore

      public static long[] toMore
    • toToken

      public static long[] toToken
    • defaultLexState

      public static int defaultLexState
    • rexprs

      public static RegularExpression[] rexprs
    • maxLongsReqd

      public static int[] maxLongsReqd
    • initMatch

      public static int[] initMatch
    • canMatchAnyChar

      public static int[] canMatchAnyChar
    • hasEmptyMatch

      public static boolean hasEmptyMatch
    • canLoop

      public static boolean[] canLoop
    • stateHasActions

      public static boolean[] stateHasActions
    • hasLoop

      public static boolean hasLoop
    • canReachOnMore

      public static boolean[] canReachOnMore
    • hasNfa

      public static boolean[] hasNfa
    • mixed

      public static boolean[] mixed
    • initialState

      public static NfaState initialState
    • curKind

      public static int curKind
    • curRE

      public static RegularExpression curRE
    • keepLineCol

      public static boolean keepLineCol
    • errorHandlingClass

      public static String errorHandlingClass
    • tokenizerData

      public static TokenizerData tokenizerData
    • generateDataOnly

      public static boolean generateDataOnly
  • Constructor Details

    • LexGen

      public LexGen()
  • Method Details

    • writeTemplate

      protected void writeTemplate(String name, Object... additionalOptions) throws IOException
      Throws:
      IOException
    • AddCharToSkip

      public static void AddCharToSkip(char c, int kind)
    • start

      public void start() throws IOException
      Throws:
      IOException
    • DumpSkipActions

      public void DumpSkipActions()
    • DumpMoreActions

      public void DumpMoreActions()
    • DumpTokenActions

      public void DumpTokenActions()
    • reInit

      public static void reInit()