diff options
-rw-r--r-- | parser.go | 2 | ||||
-rw-r--r-- | result.go | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,7 @@ func Run(parser Parserish, input string, ws ...VoidParser) (result interface{}, ps.WS = ws[0] } - ret := Result{} + ret := Result{Input: input} p(ps, &ret) ps.WS(ps) @@ -15,6 +15,7 @@ type Result struct { Token string Child []Result Result interface{} + Input string Start int End int } |