ModeShape/modeshape — pull request #1014 by okulikov (2013-12-16 14:44:06+00:00)
Title: MODE-2091: DDL syntax lexer (Early preview, NOT FOR MERGING)

This pull request introduces DDL syntax lexer based on finite automata. The purpose is to provide fine grained syntax error detection what assumes accurate analysis of the characters. in order to simplify management of all possible states of the lexer this solution offers a small generic lexer implementation. Lexer suppose that description of the automata resides outside of the java code in a separate xml file.

Subclasses of the generic lexer provides methods which called as reaction on different transitions. This pull request provides complete "generic" part of the lexer. The next phase is to accurate describe syntax states of the automata.

The lexer is injected as validator before existing parsing process and does not break existing parsing system and just performs detail syntax check only