pegjs plugin helper: Run a function once for each node in a grammar AST.