Logo Search packages:      
Sourcecode: jflex version File versions

void java_cup::runtime::lr_parser::dump_stack (  )  [inline]

Dump the parse stack for debugging purposes.

Definition at line 628 of file lr_parser.java.

References debug_message(), and stack.

    {
      if (stack == null)
      {
        debug_message("# Stack dump requested, but stack is null");
        return;
      }

      debug_message("============ Parse Stack Dump ============");

      /* dump the stack */
      for (int i=0; i<stack.size(); i++)
      {
        debug_message("Symbol: " + ((Symbol)stack.elementAt(i)).sym +
                  " State: " + ((Symbol)stack.elementAt(i)).parse_state);
      }
      debug_message("==========================================");
    }


Generated by  Doxygen 1.6.0   Back to index