Closed kfsone closed 3 years ago
This looks really great.
I don't know if the Severity and EOFRepresentation variables are necessary. The global nature of it irks me and it seems like we could choose sensible defaults, such that it is not necessary to edit.
I am close to accepting and merging this diff if any other maintainers what to take a look
@kfsone please resolve conflicts in this diff. I am ready to merge :)
@awalterschulze rebased, resolved & squashed. I also removed the "part 1 just the changes" from the description.
Thanks again, this is a really great upgrade. Great job.
Note: Because this changes errors.go, a lot of the generated files changed, so I split this into two commits -- one with just my changes and a second with the generated outputs.
This change turns the generated Error.Error() function to produce more human-friendly outputs, designed to be prefixed with the traditional "FLC" (file.go:line:col:) that makes parsers interact well with IDEs and editors.
If the user prefixes this with the name of the file being parsed:
See https://github.com/goccmack/gocc/issues/109