dmajda/pegjs — pull request #178 by andreineculau (2013-06-02 19:14:29+00:00)
Title: allow access to result in code

When an expression has code, currently it only receives the named expressions.
This pull request adds a `$result` argument, so that one has access to each match.

No breaking changes.

E.g.

```
HTTP_version
= "HTTP" "/" DIGIT "." DIGIT
{ return {
major: $result[2],
minor: $result[4]
} }

DIGIT
= [0-9]

```

Thoughts?