Merge branch 'master_upstream'

This commit is contained in:
Mike Lischke 2016-12-13 17:46:18 +01:00
commit 7362152b7c
10 changed files with 18 additions and 4 deletions

View File

@ -41,6 +41,7 @@
<version>1.0</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>dot</goal>
</goals>

View File

@ -73,6 +73,7 @@
</configuration>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>javadoc</goal>
</goals>

View File

@ -720,6 +720,7 @@ if ( <if(invert)><m.varName> \<= 0 || <else>!<endif>(<expr>) ) {
<if(m.labels)><m.labels:{l | <labelref(l)> = }><endif>ErrorHandler.RecoverInline(this);
}
else {
ErrorHandler.ReportMatch(this);
Consume();
}
>>

View File

@ -816,7 +816,9 @@ setState(<m.stateNumber>);
<capture>
if (<if (invert)><m.varName> == 0 || <m.varName> == Token::EOF || <else>!<endif>(<expr>)) {
<if (m.labels)><m.labels: {l | <labelref(l)> = }><endif>_errHandler->recoverInline(this);
} else {
}
else {
_errHandler->reportMatch(this);
consume();
}
>>

View File

@ -405,7 +405,7 @@ func (p *<parser.name>) <currentRule.name; format="cap">(<currentRule.args:{a |
<endif>
}
}()
<if(currentRule.hasLookaheadBlock)>
var _alt int
<endif>
@ -808,6 +808,7 @@ var _lt = p.GetTokenStream().LT(1)<! TODO: Should LT be called always like Invok
p.GetErrorHandler().RecoverInline(p)
<endif>
} else {
p.GetErrorHandler().ReportMatch(p)
p.Consume()
}
>>

View File

@ -643,7 +643,10 @@ setState(<m.stateNumber>);
<capture>
if ( <if(invert)><m.varName> \<= 0 || <else>!<endif>(<expr>) ) {
<if(m.labels)><m.labels:{l | <labelref(l)> = (Token)}><endif>_errHandler.recoverInline(this);
} else {
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
>>

View File

@ -523,6 +523,7 @@ this.state = <m.stateNumber>;
<if(m.labels)><m.labels:{l | <labelref(l)> = }><endif>this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
>>

View File

@ -493,6 +493,7 @@ self.state = <m.stateNumber>
<if(invert)>if <m.varName> \<= 0 or <expr><else>if not(<expr>)<endif>:
<if(m.labels)><m.labels:{l | <labelref(l)> = }><else> <endif>self._errHandler.recoverInline(self)
else:
self._errHandler.reportMatch(self)
self.consume()
>>

View File

@ -501,6 +501,7 @@ self.state = <m.stateNumber>
<if(invert)>if <m.varName> \<= 0 or <expr><else>if not(<expr>)<endif>:
<if(m.labels)><m.labels:{l | <labelref(l)> = }><else> <endif>self._errHandler.recoverInline(self)
else:
self._errHandler.reportMatch(self)
self.consume()
>>

View File

@ -696,7 +696,9 @@ setState(<m.stateNumber>)
<capture>
if (<if(invert)><m.varName> \<= 0 || <else>!<endif>(<expr>)) {
<if(m.labels)><m.labels:{l | <labelref(l)> = }><endif>try _errHandler.recoverInline(self)<if(m.labels)> as Token<endif>
} else {
}
else {
_errHandler.reportMatch(self)
try consume()
}
>>