added comment

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6835]
This commit is contained in:
parrt 2010-05-02 17:16:14 -08:00
parent 689687f0ed
commit 9c03c08ba0
1 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,7 @@ processOneChar:
case Bytecode.LABEL : case Bytecode.LABEL :
case Bytecode.SAVE : case Bytecode.SAVE :
case Bytecode.ACTION : case Bytecode.ACTION :
// see through them for closure ops
int labelIndex = getShort(code, ip); int labelIndex = getShort(code, ip);
ip += 2; ip += 2;
addToClosure(closure, ip, alt, context); // do closure past SAVE addToClosure(closure, ip, alt, context); // do closure past SAVE
@ -213,6 +214,10 @@ processOneChar:
if ( context != NFAStack.EMPTY ) { if ( context != NFAStack.EMPTY ) {
addToClosure(closure, context.returnAddr, alt, context.parent); addToClosure(closure, context.returnAddr, alt, context.parent);
} }
break;
case Bytecode.SEMPRED :
// TODO: add next instruction only if sempred succeeds
break;
} }
} }