arr-ai / wbnf

ωBNF implementation
Apache License 2.0
7 stars 4 forks source link

codegen: Add go:generate to command line in output #50

Closed camscale closed 4 years ago

camscale commented 4 years ago

The generated output for Go source contains the command line used to generate it, as a comment. Turn that comment into a //go:generate comment so the file can be regenerated by running go generate.

Also add a blank line before the package clause so that godoc will not treat the boilerplate as documentation.