mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
Fix analyzer.php
This commit is contained in:
parent
c013467b48
commit
7d43c02c06
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
const IN = './zend_language_parser.pre.phpy';
|
||||
const OUT = './zend_language_parser.phpy';
|
||||
const GRAMMAR_FILE = './zend_language_parser.phpy';
|
||||
|
||||
const LIB = '(?(DEFINE)
|
||||
(?<singleQuotedString>\'[^\\\\\']*+(?:\\\\.[^\\\\\']*+)*+\')
|
||||
@ -41,7 +40,7 @@ echo '<pre>';
|
||||
////////////////////
|
||||
////////////////////
|
||||
|
||||
list($defs, $ruleBlocks) = magicSplit('%%', file_get_contents(IN));
|
||||
list($defs, $ruleBlocks) = magicSplit('%%', file_get_contents(GRAMMAR_FILE));
|
||||
|
||||
if ('' !== trim(preg_replace(regex(RULE_BLOCK), '', $ruleBlocks))) {
|
||||
die('Not all rule blocks were properly recognized!');
|
||||
|
Loading…
Reference in New Issue
Block a user