Method Detail closure private static Lexicon. The syntax and semantics for EREs is formally specified by the ERE Grammar . Exception - if a syntax error occurs. Exception Grabs a terminal from a source character stream using this Lexicon . If no nonempty prefix matches an Expression , a Lexicon.
Exception is thrown.
If the longest matching prefix matches more than one Expression , the terminal associated with the Expression most recently constructed is returned. Puts a terminal and associated Expression into this Lexicon . The Expression supersedes any previously associated with the terminal. When grabbing, the language denoted by expression matches terminal . Returns null if state contains no NFA accept states.