Skip to content

Commit

Permalink
go: Add label message to Error node
Browse files Browse the repository at this point in the history
This is a breaking change, as we're adding a new parameter to the
constructor `NewError`.  That is useful when generating incremental
parsers.  That way, if the generated parser contains the proper labels
with recovery expressions associated with them, the Error node will
now also contain the error message associated through the
`SetLabelMessages` method.

Also added helper functions `writel(s)` and `writeil(s)` that print
out "\n" after printing string `s` and cleaned up all the go generator
using these helpers.
  • Loading branch information
clarete committed Nov 3, 2024
1 parent 443d4d9 commit 90995e8
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 119 deletions.
Loading

0 comments on commit 90995e8

Please sign in to comment.