From e56bdfb428d43bdb708ad45649724ad2b871ad78 Mon Sep 17 00:00:00 2001 From: marihachi Date: Mon, 18 Jul 2022 12:12:26 +0900 Subject: [PATCH] docs --- docs/api.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api.md b/docs/api.md index 0d3b392..089e1e3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -10,9 +10,6 @@ Generates a new parser that consumes the input string using the specified regula ## P.alt(parsers: Parser[]): Parser -## P.option(parser: Parser): Parser -Generates a new parser that returns null even if the match fails. - ## P.notMatch(parser: Parser): Parser Generates a new parser to continue if the match fails. The generated parser does not consume input. @@ -26,6 +23,8 @@ The generated parser does not consume input. ## P.lf +## P.newline + # Parser APIs @@ -35,7 +34,10 @@ The generated parser does not consume input. ## parser.many(min: number): Parser -## parser.sep1(separator: Parser): Parser +## parser.sep(separator: Parser, min: number): Parser + +## parser.option(): Parser +Generates a new parser that returns null even if the match fails. # Other APIs