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

Follow rules in Lexer.number parser #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simerplaha
Copy link
Member

@simerplaha simerplaha requested a review from tdroxler January 14, 2025 22:28
@tdroxler
Copy link
Member

What number does it actually gives in the end?

are the _ just ignored in ralphc?

@simerplaha
Copy link
Member Author

simerplaha commented Jan 15, 2025

Yes, the underscores seems to be ignored and returned as 1: BigInteger for all the above cases.

Same for let num = ___1

And if 0 here let num2 = 1_.____0 is replaced with 1, it responds with "invalid number".

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 this pull request may close these issues.

2 participants