Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing restricted to only upper case characters #4

Closed
abhipanda opened this issue Dec 13, 2014 · 3 comments
Closed

Parsing restricted to only upper case characters #4

abhipanda opened this issue Dec 13, 2014 · 3 comments

Comments

@abhipanda
Copy link

Hi Ben,

I found an issue during parsing an expression with lower case characters.

ExprParser.parse("a & b")

I am getting the following error:

line 1:0 no viable alternative at character 'a'
line 1:2 no viable alternative at input '&'
line 1:6 no viable alternative at character 'b'

Is this a limitation?

Thanks for a very useful library.

Abhi

@bpodgursky
Copy link
Owner

so, it doesn't recognize lower case letters because of the potential of conflicting with the "true" and "false" primitives. I wasn't sure of a way around that. if there's a less ambiguous grammar I'm happy to look into using it instead.

@abhipanda
Copy link
Author

Thanks Ben,

I actually I see the present grammer has the NAME attribute containing the valid values NAME : ('A'..'Z' | 'a'..'z' | '_' | '0'..'9')+; and after building the project in local it seems to be working.

The latest maven jar ( 1.5 doesn't seem to work)

Thanks,
Abhi

@bpodgursky
Copy link
Owner

ok, my memory is pretty bad. apparently I changed that back in april (867b6f4) but forgot to perform a release. I just released version 1.6, it should be in central later today. let me know if that doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants