Skip to content

parser: add line number and column to syntax errors#71

Merged
paulsmith merged 1 commit intomainfrom
68-parse-errors-line-numbers
Jan 6, 2023
Merged

parser: add line number and column to syntax errors#71
paulsmith merged 1 commit intomainfrom
68-parse-errors-line-numbers

Conversation

@paulsmith
Copy link
Contributor

This change adds the line number and column of the position of the syntax error of a parse.

Example, parsing:

^import-

Yields:

1:8: unexpected token type after ^import: -

Address #68

@paulsmith paulsmith requested a review from llimllib January 5, 2023 21:42
Copy link
Contributor

@llimllib llimllib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

@paulsmith paulsmith merged commit ca05e41 into main Jan 6, 2023
@paulsmith paulsmith deleted the 68-parse-errors-line-numbers branch January 6, 2023 01:44
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

Successfully merging this pull request may close these issues.

2 participants