diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-09 21:41:57 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-09 21:43:09 +1000 |
commit | dc3c5a8325eb2f425906b6419806862de84416ef (patch) | |
tree | 7fcb0d60419a731ce8c1d38772d3284b33f322aa /combinator.go | |
parent | d4b58316bc8d7afa51f1ac66600ca84e4c0dc115 (diff) |
Add a regex parser
Diffstat (limited to 'combinator.go')
-rw-r--r-- | combinator.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/combinator.go b/combinator.go index 9cb661f..f55977c 100644 --- a/combinator.go +++ b/combinator.go @@ -4,7 +4,7 @@ import ( "bytes" ) -// Seq matches all of the given parsers in order and returns their nodes as .Child[n] +// Seq matches all of the given parsers in order and returns their result as .Child[n] func Seq(parsers ...Parserish) Parser { parserfied := ParsifyAll(parsers...) @@ -35,7 +35,7 @@ func NoAutoWS(parser Parserish) Parser { } } -// Any matches the first successful parser and returns its node +// Any matches the first successful parser and returns its result func Any(parsers ...Parserish) Parser { parserfied := ParsifyAll(parsers...) |