Menu

#131 Error when running on Postgres lex file

jflex bug
closed-wont-fix
None
5
2014-08-15
2014-08-14
txntxn
No

Great project!

Let's say you run JFlex on the postgres lex file:

https://github.com/postgres/postgres/blob/master/src/backend/parser/scan.l

You get the following error:

Reading "/Users/txn/utils/i386-apple-darwin13.1.0/src/postgresql-9.3.5/src/backend/parser/scan.l"

Error in file "/Users/txn/utils/i386-apple-darwin13.1.0/src/postgresql-9.3.5/src/backend/parser/scan.l" (line 388):
Unexpected character

{whitespace} {
^
1 error, 0 warnings.

Generation aborted.

Discussion

  • Steve Rowe

    Steve Rowe - 2014-08-15
    • status: open --> closed-wont-fix
    • assigned_to: Steve Rowe
     
  • Steve Rowe

    Steve Rowe - 2014-08-15

    The lex file you pointed to is for lex/flex, not JFlex.

    See this section of the JFlex manual for information on porting lex/flex specifications to JFlex: http://jflex.de/manual.html#SECTION00092000000000000000