Package icyllis.arc3d.compiler.lex

# Class LexerGenerator

java.lang.Object
icyllis.arc3d.compiler.lex.LexerGenerator

public class LexerGenerator extends Object
Generates the `Lexer` class.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `DATA_PER_BYTE`
  `static final int`
  `DATA_PER_BYTE_SHIFT`
  `static final String`
  `LEXICON`
  `static final int`
  `NUM_BITS`
  `static final int`
  `NUM_VALUES`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LexerGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `main(String[] args)`
  Generates the lexer source code.
  `static DFA`
  `process(PrintWriter pw)`
  `static void`
  `writeTransitionTable(PrintWriter pw, DFA dfa, int states)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LEXICON

    public static final String LEXICON
    See Also:
      - Constant Field Values

  - ### NUM_BITS

    public static final int NUM_BITS
    See Also:
      - Constant Field Values

  - ### NUM_VALUES

    public static final int NUM_VALUES
    See Also:
      - Constant Field Values

  - ### DATA_PER_BYTE

    public static final int DATA_PER_BYTE
    See Also:
      - Constant Field Values

  - ### DATA_PER_BYTE_SHIFT

    public static final int DATA_PER_BYTE_SHIFT

- ## Constructor Details

  - ### LexerGenerator

    public LexerGenerator()

- ## Method Details

  - ### process

    @Nonnull public static DFA process(PrintWriter pw)

  - ### writeTransitionTable

    public static void writeTransitionTable(PrintWriter pw, DFA dfa, int states)

  - ### main

    public static void main(String[] args)
    Generates the lexer source code.