Error when running on Postgres lex file
The fast lexer generator for Java
Brought to you by:
lsf37,
steve_rowe
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.
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