`Main.java`

    //  FILE. . . . . /home/hak/ilt/src/ilog/rif/Main.java
    //  EDIT BY . . . Hassan Ait-Kaci
    //  ON MACHINE. . Latitude407.Ilog.Biz
    //  STARTED ON. . Wed May  3 14:36:29 2006

    package ilog.rif;

This is a driver class implementing a java parser from the Jacc grammar specified in `RCL.grm`. It uses the tokenizer `Tokenizer.java`. To use it, see e.g.: `rif`.
Author: |  | Hassan Aït-Kaci
Copyright: |  | © 2006 ILOG, Inc.
Version: |  | Last modified on Mon Sep 18 18:13:38 2006 by hak

    import java.io.IOException;
    import ilog.language.util.Error;

    public class Main
    {
      static Parser parser;
      static boolean trace = false;

      static void setTrace (boolean flag)
        {
          trace = flag;
        }

      final public static void main (String args[])
        {
          try
            {
              parser = new Parser(new Tokenizer(args[0]));
            }
          catch (IOException e)
            {
              System.err.println("*** No such file: " + args[0]);
              System.exit(1);
            }

          try
            {
              if (trace) parser.toggleTrace();
              parser.setTreeType("XML");
              parser.setQuiet(false);
              parser.setStart();
              parser.parse();
            }
          catch (IOException e)
            {
              parser.errorManager().reportError(new Error().setLabel("IO Error: ")
                                                .setMsg(e.getMessage()+" - giving up!")
                                                .setSee("..."));
              parser.errorManager().tallyErrors();
            }
          catch (Throwable e)
            {
              parser.errorManager().tallyErrors();
              e.printStackTrace();
            }
        }
    }

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