This is simplified DFA lexer for all *QL dialects. It is not very accurate, so it can produce garbage in certain cases (albeit in predictable way ;) ), but for query normalization purposes it is sufficient. On the other hand it should be pretty fast as lexer does not perform backtracking.
@author Rafal Lewczuk
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.