Parses the pattern at the start of input and reports how much it consumed (whitespace after the pattern included), for languages that embed patterns.
input
Optional
If no pattern starts the input
If input is not a string
If maxDepth is not a positive integer
maxDepth
Parses the pattern at the start of
inputand reports how much it consumed (whitespace after the pattern included), for languages that embed patterns.