Skip to content

Commit

Permalink
battle notes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Aug 11, 2023
1 parent b6a988f commit 8df33c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parsley/shared/src/main/scala/parsley/character.scala
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ object character {
}

// TODO: document
// TODO: optimise, this can be _really_ tightly implemented with a substring on the input
def stringOfMany(pred: Char => Boolean): Parsley[String] = stringOfMany(satisfy(pred))

// TODO: document that it only handles 16-bit characters
Expand Down Expand Up @@ -436,6 +437,7 @@ object character {
}

// TODO: document
// TODO: optimise, this can be _really_ tightly implemented with a substring on the input
def stringOfSome(pred: Char => Boolean): Parsley[String] = stringOfSome(satisfy(pred))

/** This combinator tries to parse each of the strings `strs` (and `str0`), until one of them succeeds.
Expand Down

0 comments on commit 8df33c8

Please sign in to comment.