JFlex Home

  Home  

  Features  

  Download  

  Documentation  

  Mailing List  

  Bugs  

  Contact  

 


SourceForge Logo
project summary
 
JFlex - The Fast Scanner Generator for Java

 

Current stable version is JFlex 1.4.2 released at May 27, 2008
 

News

[2008-05-27]     JFlex 1.4.2 released. See below for release notes.

[2007-10-29]     There now exists a Maven JFlex plugin, contributed by Régis Décamps. It integrates JFlex into the Maven software project management tool.

What is it?

JFlex is a lexical analyzer generator (also known as scanner generator) for Java(tm), written in Java(tm). It is also a rewrite of the very useful tool JLex which was developed by Elliot Berk at Princeton University. As Vern Paxson states for his C/C++ tool flex: They do not share any code though.

JFlex is designed to work together with the LALR parser generator CUP by Scott Hudson, and the Java modification of Berkeley Yacc BYacc/J by Bob Jamison. It can also be used together with other parser generators like ANTLR or as a standalone tool.

Why should I use JFlex and not JLex? Well, you might want to take a look at the features of JFlex.
 
 

Is it free?

Yes. It is released under the GPL and available for free download. See also Copyright, License & Warranty. Code you generate with JFlex is not covered by the GPL, it is yours.
 
 

What's new in version 1.4.2?

Version 1.4.2 is a maintenance release fixing all known bugs of version 1.4.1, including the long-standing look-ahead expression problems. The JFlex 1.4 series will be the last major release that supports Java 1.1. JFlex 1.5 will require and support Java 5 genericity and performance features. More detailed changes in version 1.4.2 are:

  • Implemented feature request #1212181: Now supports generics syntax for %type, %extends, etc.
  • Implemented feature request #1762500: Provided %ctorarg option to add arguments to constructor.
  • Fixed bug #1464525 (Reader.read might return 0).
  • Fixed bug #1968897 (Ambiguous error message in macro expansion).
  • Fixed bug #1832973 (Syntax error in input may cause NullPointerException).
  • Fixed bug #1629920 (Need to defend against path blanks in jflex bash script).
  • Fixed bug #1540228 (EOF actions may be ignored for same lex state).
  • Fixed bug #1498726 (syntax error in generated ZZ_CMAP).
  • Fixed bug #1282840 (lookahead and "|" actions).
  • Fixed bug #1164852 (yytext() longer than expected with lookahead).
  • Fixed bug #1065521 (OS/2 Java 1.1.8 Issues).
  • Fixed bug #421495 (dangerous lookahead check may fail).
Special thanks to Régis Décamps and Steven Rowe for their contributions.

See also the change log file for the complete list of changes.

 

What's new on these pages?

There is a list of files on this website ordered by modification date.
 
 

What platforms does JFlex support?

JFlex should run on any platform that supports a JRE/JDK 1.1 or above.

Java is a trademark of Sun Microsystems. JFlex is not sponsored by or affiliated with Sun Microsystems

most recently modified at 2008-05-27 11:34 UTC by Gerwin Klein