Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

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

Description

@vurvdev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CompilerDealing with the compiler (analyzer, tokenizer, parser, transpiler)P-LowT-BugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions