package goparsify import ( "fmt" ) func ExampleCuts() { // without a cut if the close tag is left out the parser will backtrack and ignore the rest of the string alpha := Chars("a-z") nocut := Many(Any(Seq("<", alpha, ">"), alpha)) _, err := Run(nocut, "asdf "), alpha)) _, err = Run(cut, "asdf }