Logo Search packages:      
Sourcecode: jflex version File versions

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

Do debug output for stack state. [CSA]

Definition at line 677 of file lr_parser.java.

References debug_message(), java_cup::runtime::Symbol::parse_state, stack, and java_cup::runtime::Symbol::sym.

      StringBuffer sb=new StringBuffer("## STACK:");
      for (int i=0; i<stack.size(); i++) {
        Symbol s = (Symbol) stack.elementAt(i);
        sb.append(" <state "+s.parse_state+", sym "+s.sym+">");
        if ((i%3)==2 || (i==(stack.size()-1))) {
            sb = new StringBuffer("         ");

Generated by  Doxygen 1.6.0   Back to index