Constructor is protected when the generated parser is abstract

This commit is contained in:
Sam Harwell 2013-02-27 20:56:22 -06:00
parent 9e341411ad
commit c64ad1924e
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ case <f.ruleIndex> : return <f.name>_sempred(<if(!recog.modes)>(<f.ctxType>)<end
>> >>
parser_ctor(parser) ::= << parser_ctor(parser) ::= <<
public <parser.name>(ITokenStream input) <if(parser.abstractRecognizer)>protected<else>public<endif> <parser.name>(ITokenStream input)
: base(input) : base(input)
{ {
_interp = new ParserATNSimulator(this,_ATN); _interp = new ParserATNSimulator(this,_ATN);
@ -842,7 +842,7 @@ public <if(lexer.abstractRecognizer)>abstract <endif>partial class <lexer.name>
<namedActions.members> <namedActions.members>
public <lexer.name>(ICharStream input) <if(lexer.abstractRecognizer)>protected<else>public<endif> <lexer.name>(ICharStream input)
: base(input) : base(input)
{ {
_interp = new LexerATNSimulator(this,_ATN); _interp = new LexerATNSimulator(this,_ATN);