diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-11 00:54:27 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-11 00:54:27 +1000 |
commit | f5b81e8e2eebd06e79159eaa3e721ac59ba3cc8c (patch) | |
tree | 69c6e0d90bfe431bc76adbaf6cdf5cc588f89990 | |
parent | c160e565ba86b79b0eafc2dd5fb70ca142ada6ef (diff) |
Fix godoc
-rw-r--r-- | parser.go | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -33,15 +33,11 @@ type VoidParser func(*State) // // This makes recursive grammars cleaner and allows string literals to be used directly in most contexts. // eg, matching balanced paren: -// ```go -// var group Parser -// group = Seq("(", Maybe(&group), ")") -// ``` +// var group Parser +// group = Seq("(", Maybe(&group), ")") // vs -// ```go -// var group ParserPtr{} -// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")")) -// ``` +// var group ParserPtr{} +// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")")) type Parserish interface{} // Parsify takes a Parserish and makes a Parser out of it. It should be called by |