diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/PHP/PHP.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/PHP/PHP.stg index 38a3cc105..447e12657 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/PHP/PHP.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/PHP/PHP.stg @@ -149,12 +149,12 @@ VisitorFile(file, header, namedActions) ::= << namespace ; +
use Antlr\\Antlr4\\Runtime\\Tree\\ParseTreeVisitor; /** - * This interface defines a complete generic visitor for a parse tree produced - by {@see }. + * This interface defines a complete generic visitor for a parse tree produced by {@see }. */ interface Visitor extends ParseTreeVisitor { @@ -166,7 +166,8 @@ interface Visitor extends ParseTreeVisitor * Visit a parse tree produced by {@see ::()\}. - * @param Context $context The parse tree. + * + * @param Context\\Context $context The parse tree. * * @return mixed The visitor result. */ @@ -206,7 +207,10 @@ public function visit(Context\\Context fileHeader(grammarFileName, ANTLRVersion) ::= << \ by ANTLR +/* + * Generated from by ANTLR + */ + >> Parser(parser, funcs, atn, sempredFuncs, superClass) ::= << @@ -214,7 +218,7 @@ Parser(parser, funcs, atn, sempredFuncs, superClass) ::= << Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= << namespace { - + use Antlr\\Antlr4\\Runtime\\Atn\\ATN; use Antlr\\Antlr4\\Runtime\\Atn\\ATNDeserializer; use Antlr\\Antlr4\\Runtime\\Atn\\ParserATNSimulator; @@ -230,7 +234,7 @@ namespace { use Antlr\\Antlr4\\Runtime\\VocabularyImpl; use Antlr\\Antlr4\\Runtime\\RuntimeMetaData; use Antlr\\Antlr4\\Runtime\\Parser; - + final class extends { @@ -1061,7 +1065,7 @@ LexerFile(lexerFile, lexer, namedActions) ::= << Lexer(lexer, atn, actionFuncs, sempredFuncs, superClass) ::= << namespace { - + use Antlr\\Antlr4\\Runtime\\Atn\\ATNDeserializer; use Antlr\\Antlr4\\Runtime\\Atn\\LexerATNSimulator; use Antlr\\Antlr4\\Runtime\\Lexer; @@ -1073,7 +1077,7 @@ namespace { use Antlr\\Antlr4\\Runtime\\Vocabulary; use Antlr\\Antlr4\\Runtime\\RuntimeMetaData; use Antlr\\Antlr4\\Runtime\\VocabularyImpl; - + final class extends {