Skip to content

Include a variable in the parser state #136

@alexflint

Description

@alexflint

Is there any way that I can pass a variable into each of the bits of Go code that handle parse results in my grammar file? I would like to pass an io.Writer and write to it from inside the handlers in my grammar file. I don't want it to be a global variable, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions