Move Map and Run onto Parser, and document stuff
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ func ExampleToken() {
|
||||
)
|
||||
|
||||
tokenize := gigaparsec.Repeat(0, bytes.Token[string](bytes.WhitespaceASCII())(ptokens))
|
||||
tokens, _ := gigaparsec.Run(tokenize, strings.NewReader("(alpha + 42) -5 "))
|
||||
tokens, _ := tokenize.Run(strings.NewReader("(alpha + 42) -5 "))
|
||||
for _, token := range tokens {
|
||||
fmt.Println(token)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user