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

show source context in parse/semant errors #100

Open
tdp2110 opened this issue Apr 19, 2021 · 0 comments
Open

show source context in parse/semant errors #100

tdp2110 opened this issue Apr 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@tdp2110
Copy link
Owner

tdp2110 commented Apr 19, 2021

Eg, instead of outputting

tigerc: Parse Error at token (Lexeme class=IN, posn=12:1, string="in")

or

semantic issue at line 11, col 24: "parameter 0 of func isOdd requires type INT but was passed a value of type STRING"

Show the source context

@tdp2110 tdp2110 added the enhancement New feature or request label Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant