dlang-community / Pegged

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

Semantic actions fails if lamba syntax is used #192

Closed Temtaime closed 8 years ago

Temtaime commented 8 years ago
mixin(grammar(`
Test:
    Rule1 < "foo"{a => a}
`));

Error: template instance hooked!(defined, "Rule1") cannot use local 'defined' as parameter to non-global template hooked(alias r, string name)(ParseTree p)

I'm using latest dmd.

Temtaime commented 8 years ago

My fault : declaring argument as ParseTree helps.