Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Jul 18, 2022
1 parent 27b3845 commit e56bdfb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -26,6 +23,8 @@ The generated parser does not consume input.

## P.lf

## P.newline


# Parser APIs

Expand All @@ -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
Expand Down

0 comments on commit e56bdfb

Please sign in to comment.