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

[bug] Tokenizer line/char is not always accurate #10

Open
Vurv78 opened this issue Feb 5, 2022 · 0 comments
Open

[bug] Tokenizer line/char is not always accurate #10

Vurv78 opened this issue Feb 5, 2022 · 0 comments
Labels
A-Compiler Dealing with the compiler (analyzer, tokenizer, parser, transpiler) P-Low T-Bug Something isn't working

Comments

@Vurv78
Copy link
Owner

Vurv78 commented Feb 5, 2022

Describe the bug
Sometimes the line / char is inaccurate when parsing something with the tokenizer. This is very annoying with error traces.

Note this is a shortcoming from using lua patterns as the tokenizer, which gives less control as to what happens for more performance. There is probably an elegant solution to this that maintains the pattern matching tokenizer, but it is definitely a lot more complex than if it looped over all chars.

To Reproduce
Nothing right now

Expected behaviour
Get proper line/char of the token.

@Vurv78 Vurv78 added T-Bug Something isn't working A-Compiler Dealing with the compiler (analyzer, tokenizer, parser, transpiler) labels Feb 5, 2022
@Vurv78 Vurv78 added the P-Low label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Compiler Dealing with the compiler (analyzer, tokenizer, parser, transpiler) P-Low T-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant