The easiest way to build robust parsers in PHP.
<?php
$parser = between(char('{'), char('}'), atLeastOne(alphaChar()));
$result = $parser->try("{Hello}");
echo $result->output(); // Hello
Parsica - PHP Parser Combinators - The easiest way to build robust parsers.
The easiest way to build robust parsers in PHP.
<?php
$parser = between(char('{'), char('}'), atLeastOne(alphaChar()));
$result = $parser->try("{Hello}");
echo $result->output(); // Hello
Parsica - PHP Parser Combinators - The easiest way to build robust parsers.
MIT License