From 6657ac4b76b43812ee082b6f90a524b38350edd7 Mon Sep 17 00:00:00 2001 From: nikic Date: Fri, 2 Mar 2012 00:43:34 +0100 Subject: [PATCH] Clarify that parser is autogenerated --- grammar/kmyacc.php.parser | 11 ++++++++--- lib/PHPParser/Parser.php | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/grammar/kmyacc.php.parser b/grammar/kmyacc.php.parser index 2551dc5..1f42c75 100644 --- a/grammar/kmyacc.php.parser +++ b/grammar/kmyacc.php.parser @@ -6,9 +6,14 @@ $meta # #semval(%n,%t) $this->yyastk[$this->yysp-(%l-%n)] #include; -/* Prototype file of an object oriented PHP parser. - * Written by Moriyoshi Koizumi, based on the work by Masato Bito. - * This file is PUBLIC DOMAIN. +/* This is an automatically GENERATED file, which should not be manually edited. + * Instead edit one of the following: + * * the grammar file grammar/zend_language_parser.phpy + * * the parser sceleton grammar/kymacc.php.parser + * * the preprocessing script grammar/rebuildParser.php + * + * The sceleton for this parser was written by Moriyoshi Koizumi and is based on + * the work by Masato Bito and is in the PUBLIC DOMAIN. */ #if -t class #(-p)_Debug extends #(-p) diff --git a/lib/PHPParser/Parser.php b/lib/PHPParser/Parser.php index 79b6c0e..e83694c 100644 --- a/lib/PHPParser/Parser.php +++ b/lib/PHPParser/Parser.php @@ -1,8 +1,13 @@