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

More #sourceLocation #9

Open
dabrahams opened this issue Apr 14, 2021 · 6 comments
Open

More #sourceLocation #9

dabrahams opened this issue Apr 14, 2021 · 6 comments

Comments

@dabrahams
Copy link
Contributor

I got an error today that pointed into the definition of CitronSymbol in the generated parser code. It would be nice if that could point back into the source file. Thanks!

@roop
Copy link
Owner

roop commented Apr 16, 2021

Trying to understand this better: Was it a problem with the type specified in a %nonterminal_type directive?

@roop
Copy link
Owner

roop commented Apr 19, 2021

To clarify: A bad type specified in a %nonterminal_type directive can cause an error to be shown in the definition of CitronSymbol (which is an enum whose values can have these nonterminal types as associated values). Is this the problem you're seeing, or is it something else?

@dabrahams
Copy link
Contributor Author

Sorry, I don't remember the details. I was deep into it.

@dabrahams
Copy link
Contributor Author

Having seen it again, yes, it's in the definition of CitronSymbol.

@roop
Copy link
Owner

roop commented Apr 22, 2021

Was the problem a bad type definition in a %nonterminal_type directive? Or was it something else?

@dabrahams
Copy link
Contributor Author

dabrahams commented Apr 22, 2021 via email

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

2 participants