ParserCode.grm

// FILE. . . . . /home/hak/ilt/src/ilog/rcl/ParserCode.grm
// EDIT BY . . . Hassan Ait-Kaci
// ON MACHINE. . 4j4zn71.Ilog.Biz
// STARTED ON. . Mon Sep 18 17:44:39 2006

//  Last modified on Tue Mar 13 17:28:31 2007 by hak

%import java.io.PrintStream;
%import ilog.language.tools.Misc;

%{
  long start;
  boolean quiet = false;
  PrintStream out = System.out;

  void setStart ()
    {
      start = System.currentTimeMillis();
    }

  void setQuiet (boolean flag)
    {
      quiet = flag;
    }

  void setOutputStream (PrintStream stream)
    {
      out = stream;
    }

  /*
   * A function to show what happened.
   */
  void showXml ()
    {
      out.println("*** Total parsing time = "
                 +(System.currentTimeMillis()-start)
                 +" ms");

      if (!quiet)
        {
          errorManager().tallyErrors();

	  boolean show_me = Misc.askYesNo("*** Do you want to see the XML serialization",true);
	  out.flush();
          if (show_me)
            {
              currentNode().xmlify();
//               currentNode().display();
              out.println();
            }
        }
    }
%}


This file was generated on Mon Mar 31 17:18:18 PDT 2008 from file ParserCode.grm
by the ilog.language.tools.Hilite Java tool written by Hassan Aït-Kaci