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

No support for double/float numeric values? #8

Open
AviiNL opened this issue Jul 19, 2022 · 0 comments
Open

No support for double/float numeric values? #8

AviiNL opened this issue Jul 19, 2022 · 0 comments

Comments

@AviiNL
Copy link

AviiNL commented Jul 19, 2022

In Lua, all numbers are assumed to be doubles, not integers.

Using double numeric values causes the parser to crash.

local PI = 3.14

panics on let parsed = parser::parse_block(&mut parser::TokenIterator(lexer)).unwrap(); while

local meaning_of_life=42

works perfectly fine.

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

1 participant