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

Infinity should be Literal value not Identifier #255

Open
atiquefiroz opened this issue Sep 22, 2023 · 1 comment
Open

Infinity should be Literal value not Identifier #255

atiquefiroz opened this issue Sep 22, 2023 · 1 comment

Comments

@atiquefiroz
Copy link

Hi Team,

Recently i had a use-case where in expression i was handling the division by 0 use case.
When i was parsing the expression the Infinity as a comparison literal was coming out to be Identifier.

Can we add this as well in Literal or non Identifier list?

Thanks
Atique Firoz

@6utt3rfly
Copy link
Collaborator

Hi @atiquefiroz ! I looked through some of the history and only found issue #101 ... I agree that it's strange that there are some predefined values but not others (like undefined, Infinity, NaN). For now, you can also use the addLiteral(), removeLiteral(), and removeAllLiterals to define your desired preset

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