void startNewBranch() throws PatternSyntaxException { Term tmp = in.next; Term b = new Branch(); in.next = b; b.next = tmp; b.in = null; b.out = null; b.out1 = null; b.branchOut = b; current = b; }
void startNewBranch() throws PatternSyntaxException { Term tmp = in.next; Term b = new Branch(); in.next = b; b.next = tmp; b.in = null; b.out = null; b.out1 = null; b.branchOut = b; current = b; }
private static Term makeLazyQMark(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.failNext = term.in; b.in = b; b.out = b; b.out1 = term.out; b.branchOut = null; return b; } case REG: default: { Term b = new Branch(); b.failNext = term; b.in = b; b.out = b; b.out1 = term; b.branchOut = null; return b; } } }
private static Term makeGreedyQMark(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.next = term.in; b.in = b; b.out = term.out; b.out1 = null; b.branchOut = b; return b; } case REG: default: { Term b = new Branch(); b.next = term; b.in = b; b.out = term; b.out1 = null; b.branchOut = b; return b; } } }
private static Term makeGreedyQMark(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.next = term.in; b.in = b; b.out = term.out; b.out1 = null; b.branchOut = b; return b; } case REG: default: { Term b = new Branch(); b.next = term; b.in = b; b.out = term; b.out1 = null; b.branchOut = b; return b; } } }
private static Term makeLazyStar(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.failNext = term.in; term.out.next = b; b.in = b; b.out = b; b.out1 = null; b.branchOut = null; return b; } default: { Term b = new Branch(); b.failNext = term; term.next = b; b.in = b; b.out = b; b.out1 = null; b.branchOut = null; return b; } } }
private static Term makeLazyPlus(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); term.out.next = b; b.failNext = term.in; b.in = term.in; b.out = b; b.out1 = null; b.branchOut = null; return b; } case REG: default: { Term b = new Branch(); term.next = b; b.failNext = term; b.in = term; b.out = b; b.out1 = null; b.branchOut = null; return b; } } }
private static Term makeLazyPlus(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); term.out.next = b; b.failNext = term.in; b.in = term.in; b.out = b; b.out1 = null; b.branchOut = null; return b; } case REG: default: { Term b = new Branch(); term.next = b; b.failNext = term; b.in = term; b.out = b; b.out1 = null; b.branchOut = null; return b; } } }
private static Term makeLazyQMark(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.failNext = term.in; b.in = b; b.out = b; b.out1 = term.out; b.branchOut = null; return b; } case REG: default: { Term b = new Branch(); b.failNext = term; b.in = b; b.out = b; b.out1 = term; b.branchOut = null; return b; } } }
private static Term makeLazyStar(int[] vars, Term term) { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.failNext = term.in; term.out.next = b; b.in = b; b.out = b; b.out1 = null; b.branchOut = null; return b; } default: { Term b = new Branch(); b.failNext = term; term.next = b; b.in = b; b.out = b; b.out1 = null; b.branchOut = null; return b; } } }
private static Term makeGreedyStar(int[] vars, Term term, ArrayList<TermIterator> iterators) throws PatternSyntaxException { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.next = term.in; term.out.next = b; b.in = b; b.out = null; b.out1 = null; b.branchOut = b; return b; } default: { return new TermIterator(term, 0, -1, iterators); } } }
private static Term makeGreedyStar(int[] vars, Term term, ArrayList<TermIterator> iterators) throws PatternSyntaxException { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.next = term.in; term.out.next = b; b.in = b; b.out = null; b.out1 = null; b.branchOut = b; return b; } default: { return new TermIterator(term, 0, -1, iterators); } } }
private static Term makeGreedyPlus(int[] vars, Term term, ArrayList<TermIterator> iterators) throws PatternSyntaxException { //vars[STACK_SIZE]++; switch (term.type) { case GROUP_IN: { Term b = new Branch(); b.next = term.in; term.out.next = b; b.in = term.in; b.out = null; b.out1 = null; b.branchOut = b; return b; } default: { return new TermIterator(term, 1, -1, iterators); } } }
private static Term makeGreedyPlus(int[] vars, Term term, ArrayList<TermIterator> iterators) throws PatternSyntaxException { //vars[STACK_SIZE]++; switch (term.type) { case INDEPENDENT_IN://? case GROUP_IN: { Term b = new Branch(); b.next = term.in; term.out.next = b; b.in = term.in; b.out = null; b.out1 = null; b.branchOut = b; return b; } default: { return new TermIterator(term, 1, -1, iterators); } } }
default: { Term reset = new Term(CNT_SET_0); Term b = new Branch(BRANCH_STORE_CNT); Term inc = new Term(CNT_INC);
default: { Term reset = new Term(CNT_SET_0); Term b = new Branch(BRANCH_STORE_CNT); Term inc = new Term(CNT_INC);