%caseless does not work in jflex 1.6.0 ?
The fast lexer generator for Java
Brought to you by:
lsf37,
steve_rowe
It seems like %caseless is not working the way it should in jflex 1.6.0:
%class XxxTokenizer
%unicode
%function next
%type Object
%char
%caseless
...
/** the first rule: **/
c[+][+] { return getNext(); }
This rule matches c++ (keeps it as one token), but not C++ (it gets split into C + +). Until version 1.5.1, C++ was also matched.
Thanks for reporting!
I was able to reproduce the problem with current trunk (no significant differences from 1.6.0). The problem does not reproduce for me on 1.5.1.
I'll investigate.
Evgeny, I found a workaround (until this is fixed): enclose the 'c' in quotes:
"c" [+][+]
This successfully recognized "C++" for me in caseless mode.
I've committed a fix to trunk: http://sf.net/p/jflex/code/849
This fix will be included in JFlex 1.6.1.
Hi,
first of all, thank you very much for your great work about JFlex!
Sorry for asking, but do you have some scheduled date for JFlex 1.6.1 (that includes this fix)?
In my company, I'm only allowed to work with official releases :/
Thank you!
It looks like we'll be able to do the next release in about 1-2 weeks.
Now tracked on https://github.com/jflex-de/jflex/issues/130