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

Add more valid suffixes for decimal single, double.. #73

Open
vllama opened this issue Sep 28, 2018 · 0 comments
Open

Add more valid suffixes for decimal single, double.. #73

vllama opened this issue Sep 28, 2018 · 0 comments

Comments

@vllama
Copy link

vllama commented Sep 28, 2018

Cant't locate the current c# literal documentation at the moment but looking at F# :
https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/literals
It seems like D, F and M should all be valid as suffixes for the following in your grammar.

DOUBLE	:	('-')? ('0'..'9')+ '.' ('0'..'9')+ 'd'?;
SINGLE	:	('-')? ('0'..'9')+ '.' ('0'..'9')+ 'f';
DECIMAL	:	('-')? ('0'..'9')+ '.' ('0'..'9')+ 'm';

I was running into this : System.InvalidCastException: Specified cast is not valid. doing some basic parsing of a filter on a generic List of Dictionary<string, object>>
"[pressure] eq 132323432.453454M" does not work but "[pressure] eq 132323432.453454m" works.

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

1 participant