pointlander / peg

Peg, Parsing Expression Grammar, is an implementation of a Packrat parser generator.
BSD 3-Clause "New" or "Revised" License
1.01k stars 120 forks source link

Control package name generation #52

Open wvxvw opened 8 years ago

wvxvw commented 8 years ago

It would be nice to be able to control the name given to the package of the parser.peg.go instead of modifying it after the code was generated.

Sorry, nevermind. Figured it depends on the name given in peg file.

pointlander commented 8 years ago

You can, just change the package name. Example: https://github.com/pointlander/peg/blob/master/peg.peg#L11

On Sat, Aug 20, 2016 at 12:18 PM, wvxvw notifications@github.com wrote:

It would be nice to be able to control the name given to the package of the parser.peg.go instead of modifying it after the code was generated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pointlander/peg/issues/52, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPZFAKW3iVq0wp46AgMK1EGf2NB9tXzks5qh0TigaJpZM4JpIbI .