Parsimmon issue #255

node v10.24.1
version: 2.0.0
endpointsharetweet
const P = require("parsimmon"); const ab = P.alt(P.seq(P.string("a").sepBy1(P.string("+"))), P.all); const input = "a+a-a";
Normal parser usage
ab.parse(input)
This calls the private parser implementation directly in order to bypass the EOF logic
ab._(input, 0)
This roughly emulates the behavior of `.parse`
ab.skip(P.eof)._(input, 0)
Loading…

no comments

    sign in to comment