parsica-php / parsica

Parsica - PHP Parser Combinators - The easiest way to build robust parsers.
https://parsica-php.github.io/
MIT License
405 stars 18 forks source link

Streams #5

Closed mathiasverraes closed 4 years ago

mathiasverraes commented 4 years ago

Parser::try and Parser::run now require a Stream as input, eg StringStream.

Parser::tryString serves as a wrapper and has the API of the old Parser::try.