-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Exponents with sign should be recognized as decimal numbers. #213
Comments
This is not really an error in code but an extension of the partial implementation of exponentiation that is already supported in pocketpy. Hence, I didn't open it up as a bug. |
@blueloveTH i dont know if i should make a pull request as i dont know if this behaviour is intended or not but i modified lexer::eat_number if it passes by a -ve or a +ve character it skips it and parses the rest
it passes all tests but as i said im reluctant to make a pr for this. |
I know about this. But I am reluctant to fix it. |
Could this be noted in https://pocketpy.dev/features/differences/, as this kind of literals are quite common? |
As mentioned in the documentation pocketpy is a project also being heavily used for scientific computing. In that context it is crucial to have special numbers/constants like ( |
Maybe a C++ runtime math parser like https://beltoforion.de/en/muparserx/ could be useful as an addition? |
Python 3.9 -
Pocketpy -
The text was updated successfully, but these errors were encountered: