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

Scientific (exponential) notation #52

Open
j3ns opened this issue Jan 10, 2023 · 2 comments
Open

Scientific (exponential) notation #52

j3ns opened this issue Jan 10, 2023 · 2 comments

Comments

@j3ns
Copy link

j3ns commented Jan 10, 2023

Allow numbers to be written in queries in scientific (exponential) notation, e.g. 1e6 instead of 1000000.

@j3ns
Copy link
Author

j3ns commented Jan 24, 2023

Lexing numbers in this plugin seems to be too simplified at the moment compared to the Neo4j (v5.3) Cypher parser. Please implement a pragmatic solution which allows the scientific notation and hex numbers.

albertoventurini added a commit that referenced this issue Jan 28, 2023
…tation (#52) (#65)

* Allow numbers to be written in queries in scientific (exponential) notation (#52 
* Support hex and octal numbers
@albertoventurini
Copy link
Owner

Hi @j3ns, thank you for pointing me in the right direction with the link to Neo4j's javacc file. I ported the definition of decimal doubles to this plugin. I also added token definitions for hex and octal numbers.

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