citron icon indicating copy to clipboard operation
citron copied to clipboard

More #sourceLocation

Open dabrahams opened this issue 3 years ago • 6 comments

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!

dabrahams avatar Apr 14 '21 18:04 dabrahams

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

roop avatar Apr 16 '21 11:04 roop

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?

roop avatar Apr 19 '21 07:04 roop

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

dabrahams avatar Apr 21 '21 00:04 dabrahams

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

dabrahams avatar Apr 21 '21 14:04 dabrahams

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

roop avatar Apr 22 '21 09:04 roop

Yes, that was the problem.

On Thu, Apr 22, 2021 at 2:53 AM Roopesh Chander @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/roop/citron/issues/9#issuecomment-824702831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKYILFLLCKBTFLCSET5A3TJ7WZTANCNFSM42565VZQ .

-- -Dave

dabrahams avatar Apr 22 '21 16:04 dabrahams