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

Add more information in TokType #9

Open
onehr opened this issue Apr 8, 2019 · 0 comments
Open

Add more information in TokType #9

onehr opened this issue Apr 8, 2019 · 0 comments

Comments

@onehr
Copy link
Owner

onehr commented Apr 8, 2019

Should add more information in lexer::TokType, it's useful to track the token position in file when the compiler fails to compile the source code, I think file name, line number, character position should be enough. And should print them in a more elegent way in parser error message.

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

No branches or pull requests

1 participant