dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

Using custom action functions results in error with asModule #191

Closed Temtaime closed 8 years ago

Temtaime commented 8 years ago

Because there's currently no way to tell to generated module import some file with those functions.

veelo commented 8 years ago

How about

    asModule!()("myparser", "myparser", MyGrammar, "import myActions;\n");
Temtaime commented 8 years ago

I see :( So i think there's should be a reference from tutorial to this optional argument

veelo commented 8 years ago

You want to have a go? It's wiki :-)

Temtaime commented 8 years ago

Thanks, fixed !

veelo commented 8 years ago

Thank you.