Fix godoc
This commit is contained in:
parent
c160e565ba
commit
f5b81e8e2e
12
parser.go
12
parser.go
@ -33,15 +33,11 @@ type VoidParser func(*State)
|
|||||||
//
|
//
|
||||||
// This makes recursive grammars cleaner and allows string literals to be used directly in most contexts.
|
// This makes recursive grammars cleaner and allows string literals to be used directly in most contexts.
|
||||||
// eg, matching balanced paren:
|
// eg, matching balanced paren:
|
||||||
// ```go
|
// var group Parser
|
||||||
// var group Parser
|
// group = Seq("(", Maybe(&group), ")")
|
||||||
// group = Seq("(", Maybe(&group), ")")
|
|
||||||
// ```
|
|
||||||
// vs
|
// vs
|
||||||
// ```go
|
// var group ParserPtr{}
|
||||||
// var group ParserPtr{}
|
// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")"))
|
||||||
// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")"))
|
|
||||||
// ```
|
|
||||||
type Parserish interface{}
|
type Parserish interface{}
|
||||||
|
|
||||||
// Parsify takes a Parserish and makes a Parser out of it. It should be called by
|
// Parsify takes a Parserish and makes a Parser out of it. It should be called by
|
||||||
|
Loading…
Reference in New Issue
Block a user