Home | History | Annotate | Download | only in java_cup

Lines Matching defs:itm

162       lalr_item itm;
175 itm = (lalr_item)e.nextElement();
177 System.out.print(itm.the_production().lhs().the_symbol().name());
179 for (int i = 0; i<itm.the_production().rhs_length(); i++)
181 if (i == itm.dot_pos()) System.out.print("(*) ");
182 part = itm.the_production().rhs(i);
188 if (itm.dot_at_end()) System.out.print("(*) ");
282 lalr_item itm, new_itm, existing, fix_itm;
293 itm = new lalr_item(start_prod);
294 itm.lookahead().add(terminal.EOF);
295 start_items.add(itm);
320 itm = (lalr_item)i.nextElement();
323 sym = itm.symbol_after_dot();
340 itm = (lalr_item)i.nextElement();
343 sym2 = itm.symbol_after_dot();
347 new_items.add(itm.shift());
349 /* remember that itm has propagate link to it */
350 linked_items.add(itm);
422 for (Enumeration itm = items().all(); itm.hasMoreElements(); )
423 ((lalr_item)itm.nextElement()).propagate_lookaheads(null);
456 lalr_item itm;
468 itm = (lalr_item)i.nextElement();
471 if (itm.dot_at_end())
473 act = new reduce_action(itm.the_production());
479 if (!itm.lookahead().contains(t)) continue;
498 if (itm.the_production().index() <
552 lalr_item itm, compare;
560 itm = (lalr_item)itms.nextElement();
566 if (itm.dot_at_end())
568 /* not yet after itm */
577 if (itm == compare) after_itm = true;
580 if (itm != compare)
585 /* only look at reduces after itm */
588 if (compare.lookahead().intersects(itm.lookahead()))
590 report_reduce_reduce(itm, compare);
600 if (itm.lookahead().contains((terminal)shift_sym))
610 report_shift_reduce(itm,t);
665 lalr_item itm;
676 itm = (lalr_item)itms.nextElement();
679 if (itm != red_itm && !itm.dot_at_end())
682 shift_sym = itm.symbol_after_dot();
686 System.err.println(" and " + itm.to_simple_string());