• Home
  • Raw
  • Download

Lines Matching refs:itm

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