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

🐞 Fractions without leading zero do not parse correctly #160

Merged

Conversation

Ph0enixKM
Copy link
Member

@Ph0enixKM Ph0enixKM commented Jun 7, 2024

Heraclitus method number parses either integer or float. Changed that to integer which parses a string of digits for where we want to parse the part before and after the dot. Since we tokenize separately symbols - and . we have to define our own strategy of parsing numbers. The dot symbol even if not used right now - it will be useful in the future for parsing dictionary accessors like dict.name.

@Ph0enixKM Ph0enixKM linked an issue Jun 7, 2024 that may be closed by this pull request
Copy link
Contributor

@arapower arapower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amber-lang amber-lang deleted a comment Jun 8, 2024
Copy link
Member

@b1ek b1ek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Ph0enixKM Ph0enixKM merged commit ec95070 into master Jun 8, 2024
1 check passed
@Mte90 Mte90 deleted the 159-fractions-without-leading-zero-do-not-parse-correctly branch July 4, 2024 14:50
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.

🐞 Fractions without leading zero do not parse correctly
3 participants