Results 1 to 2 of 2
  1. #1
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default KFlex lexer generator

    In a nutshell: I've written an extension to JFlex called KFlex that I think might be of general interest, so far as anything to do with lexers is of general interest. I've described the benefits of KFlex in an announcement on the project forums.

    I created KFlex to assist in writing a lexer for TradeWars 2002, so the project might also be of interest to anyone who plays that game.
    Get in the habit of using standard Java naming conventions!

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: KFlex lexer generator

    Revision 7 allows rules to push, pop, and set the lexical state. This makes parsing things like nested comments extremely simple.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Write-driven lexer?
    By kjkrum in forum Advanced Java
    Replies: 6
    Last Post: 08-01-2011, 12:32 PM
  2. Class name generator
    By aianta in forum New To Java
    Replies: 3
    Last Post: 04-09-2011, 06:25 PM
  3. Random Generator
    By Learning Java in forum New To Java
    Replies: 9
    Last Post: 05-31-2010, 08:15 PM
  4. Random Generator
    By padutch2 in forum New To Java
    Replies: 1
    Last Post: 12-03-2007, 06:43 PM
  5. Dragon parser generator 1.2.9
    By Jamie in forum Java Software
    Replies: 0
    Last Post: 06-17-2007, 03:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •