parle
parle copied to clipboard
Parser and lexer for PHP
That way, it'd be easier to set `--enable-parle-utf32` when installing via pecl/pickle...
Hey, i`m working to implement some templating with php expression support. As for now i have to rewrite parts of zend_language_parser.y to php method calls. This can be match easer...
Currently i miss some information about: RLexer/RParser R stands for? How can I use the: insertMacro inside other regex? A small example to precedence? I don't know how it works...
currently in some sigils there are always the "skipped" data inside: ```php $lexer->push('\s+', Token::SKIP); $parser->sigil(0); // returns "( " ```
currenlty there is no way to get the name behind a sigil. It can be helpful to debug your parser. ```php $infos = $parser->getSigilInfos(0); // => SigilInfos $infos->getName(); $infos->isToken(); ```
current solution: ```php $i = 0; $gs = []; try { while(true) { array_push($gs, $this->parser->sigil($i++)); } } catch(ParserException) { } ``` it would be nicer if you knew beforehand how...
For now ```
`php` is version 7.3 (macports) @ macOS 10.13;`bash` command lines `php -c enabled Parle version => 0.8.1 Parle internal UTF-32 => no ``` Currently: ---------- `php -c /dev/null` yields: ```...
I tried and failed to compile .dll for 0.8.3 since it's missing on PECL. When trying to build with php from source, I'm running into linker issue, when trying phpize...
* `zend_ce_exception` available since 7.0 * `zend_exception_get_default` removed in 8.5