Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Parsimmon issue #255
node v10.24.1
version:
2.0.0
endpoint
share
tweet
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