1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00

Fix analyzer.php

This commit is contained in:
nikic 2011-08-09 13:26:04 +02:00
parent c013467b48
commit 7d43c02c06

View File

@ -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!');