bhai-lang icon indicating copy to clipboard operation
bhai-lang copied to clipboard

Feature Request: Show the line number of the incorrect statement along with the compiler error.

Open f1ypopper opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Right now the compiler/parser only shows the error and doesn't show the specific line number.This can make the parser errors much more verbose.

Describe the solution you'd like.

Add a line field to the token class which is tracked and incremented in the scanner. The line number can be shown be shown along with the parser error.

Describe alternatives you've considered

No response

Additional context.

No response

f1ypopper avatar Mar 23 '22 06:03 f1ypopper

I can work on this issue.

f1ypopper avatar Mar 23 '22 06:03 f1ypopper