Results 1 to 1 of 1
- 05-08-2012, 05:16 AM #1
JPlex - lexical analyzer generator
JPlex is a generator of fast DFA-based lexical analyzers. It has a few unusual features:
- It generates push-driven lexers instead of the more common pull-based ones.
- It's an ideal front end for hand-written parsers. Instead of calling a single parser method that must switch on the token type, rules call methods on a listener interface. You just implement the interface (or extend the adapter) and add your implementation as a listener.
- It supports multiple rule sets ("states"). Rules can push, pop, or jump to other states. This makes it easy to recognize patterns like nested block comments.
- States can be "strict" (require matching of all input) or not, as desired.
- It pre-compiles and serializes its DFAs, so startup is fast even with a large, complex rule set.
I've used it to write a hybrid Telnet/VT-series/ANSI terminal emulation. It was quick and easy to write.
JPlex / Code / [r2] /trunkGet in the habit of using standard Java naming conventions!
- By Shweta_N in forum LuceneReplies: 1Last Post: 12-08-2011, 06:43 AM
- By ron2794 in forum JDBCReplies: 1Last Post: 12-16-2010, 12:27 PM
- By wildbeat in forum LuceneReplies: 0Last Post: 10-06-2010, 08:45 AM
- By javamula in forum AWT / SwingReplies: 4Last Post: 10-05-2009, 10:12 AM
- By zoe in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 06:14 AM