ParserCode.grm

// FILE. . . . . /cygdrive/c/cygwin/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 Mon Sep 18 17:44:41 2006 by hak

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

%{
  long start;
  boolean quiet = true;
  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();
          if (Misc.askYesNo("*** Do you want to see the XML serialization"))
            {
              out.println();
              currentNode().xmlify();
//               currentNode().display();
              out.println();
            }
        }
    }
%}


This file was generated on Thu Sep 21 08:10:12 PDT 2006 from file ParserCode.grm
by the ilog.language.tools.Hilite Java tool written by Hassan Aït-Kaci