pull from master

This commit is contained in:
Terence Parr 2012-03-19 18:03:32 -07:00
commit 48d663667b
1 changed files with 27 additions and 23 deletions

View File

@ -123,7 +123,12 @@ public class LL1Analyzer {
new SingletonPredictionContext(ctx, s.stateNumber);
_LOOK(t.target, newContext, look, lookBusy, seeThruPreds);
}
else if ( t.isEpsilon() && seeThruPreds ) {
else if ( t instanceof PredicateTransition ) {
if ( seeThruPreds ) {
_LOOK(t.target, ctx, look, lookBusy, seeThruPreds);
}
}
else if ( t.isEpsilon() ) {
_LOOK(t.target, ctx, look, lookBusy, seeThruPreds);
}
else if ( t.getClass() == WildcardTransition.class ) {
@ -141,5 +146,4 @@ public class LL1Analyzer {
}
}
}
}