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 · May be fixed by #270
Open

Infinity should be Literal value not Identifier #255

atiquefiroz opened this issue Sep 22, 2023 · 1 comment · May be fixed by #270

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

6utt3rfly added a commit that referenced this issue Oct 27, 2024
@6utt3rfly 6utt3rfly linked a pull request Oct 27, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants