Move Map and Run onto Parser, and document stuff

This commit is contained in:
b
2026-08-20 23:14:00 -06:00
parent 6b201fbb69
commit 22a6eb7335
5 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -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)
}