183184185186187188189
protected void newSyntaxException(String message) { throw new SyntaxException(message); } protected void newInternalException(String message) { throw new InternalException(message); }
135136137138139140141142
case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
331332333334335336337338339340
return finish(); case OPCode.FAIL: opFail(); continue; default: throw new InternalException(ErrorMessages.ERR_UNDEFINED_BYTECODE); } // main switch } // main while }
14511452145314541455145614571458
case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
385386387388389390391392393394395
bp += OPSize.RELADDR; sb.append(":" + scn + ":(" + addr + ")"); break; default: throw new InternalException("undefined code: " + code[--bp]); } } sb.append("]");
419420421422423424425426
} } break; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } // switch }
254255256257258259260261262263264
if (e == null) throw new ValueException(ErrorMessages.ERR_UNDEFINED_NAME_REFERENCE, new String(name, nameP, nameEnd - nameP)); switch(e.backNum) { case 0: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); case 1: return e.backRef1; default: if (region != null) { for (int i = e.backNum - 1; i >= 0; i--) {
505152535455565758
} public void fix(Regex regex) { for (int i=0; i<num; i++) { EncloseNode en = (EncloseNode)targets[i]; if (!en.isAddrFixed()) new InternalException(ErrorMessages.ERR_PARSER_BUG); regex.code[offsets[i]] = en.callAddr; // is this safe ? } }
177178179180181182183
protected void newValueException(String message, int p, int end) { throw new ValueException(message, new String(bytes, p, end - p)); } protected void newInternalException(String message) { throw new InternalException(message); }
102103104105106107108109
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }