Class LexerContext

java.lang.Object
org.javacc.parser.LexerContext

class LexerContext extends Object
The lexer context provides all variables for a LexGen instance.
  • Field Details

    • context

      final Context context
    • lexStateIndex

      int lexStateIndex
    • curKind

      int curKind
    • curRE

    • lexStates

      int[] lexStates
    • canMatchAnyChar

      int[] canMatchAnyChar
    • ignoreCase

      boolean[] ignoreCase
    • mixed

      boolean[] mixed
    • unicodeWarningGiven

      boolean unicodeWarningGiven
    • generatedStates

      int generatedStates
    • idCnt

      int idCnt
    • dummyStateIndex

      int dummyStateIndex
    • done

      boolean done
    • mark

      boolean[] mark
    • allStates

      List<NfaState> allStates
    • indexedAllStates

      List<NfaState> indexedAllStates
    • equivStatesTable

      Hashtable<String,NfaState> equivStatesTable
    • allNextStates

      Hashtable<String,int[]> allNextStates
    • stateNameForComposite

      Hashtable<String,Integer> stateNameForComposite
    • compositeStateTable

      Hashtable<String,int[]> compositeStateTable
    • stateBlockTable

      Hashtable<String,String> stateBlockTable
    • stateSetsToFix

      private Hashtable<String,int[]> stateSetsToFix
    • initialStates

      final Map<Integer,NfaState> initialStates
    • statesForLexicalState

      final Map<Integer, List<NfaState>> statesForLexicalState
    • nfaStateOffset

      final Map<Integer,Integer> nfaStateOffset
    • matchAnyChar

      final Map<Integer,Integer> matchAnyChar
    • maxStrKind

      int maxStrKind
    • maxLen

      int maxLen
    • maxLenForActive

      int[] maxLenForActive
    • intermediateKinds

      int[][] intermediateKinds
    • intermediateMatchedPos

      int[][] intermediateMatchedPos
    • subString

      boolean[] subString
    • subStringAtPos

      boolean[] subStringAtPos
    • statesForPos

      Hashtable<String,long[]>[] statesForPos
    • allImages

      String[] allImages
    • literalsByLength

      final Map<Integer, List<String>> literalsByLength
    • literalKinds

      final Map<Integer, List<Integer>> literalKinds
    • kindToLexicalState

      final Map<Integer,Integer> kindToLexicalState
    • kindToIgnoreCase

      final Set<Integer> kindToIgnoreCase
    • nfaStateMap

      final Map<Integer,NfaState> nfaStateMap
  • Constructor Details

    • LexerContext

      LexerContext(Context context)
  • Method Details

    • clear

      protected final void clear()
      Initialize all the variables, so that there is no interference between the various states of the lexer. Need to call this method after generating code for each lexical state.