Package beaver.comp.util

Examples of beaver.comp.util.Log$Record$List


    {
      Options opts = parseOptions(args);
      File src_file = getSrcFile(args[args.length - 1]);
      SrcReader src_reader = new SrcReader(src_file);
     
      Log log = new Log();
      compile(src_reader, opts, log);
      boolean logHasErrors = log.hasErrors();
     
      log.report(src_file.getName(), src_reader);
      System.exit(logHasErrors ? 1 : 0);
    }
    catch (IllegalArgumentException e)
    {
      System.err.println(e.getMessage());
View Full Code Here


    catch (Exception e)
    {
      // Error(s) in source. Try to build anyway and compiler will print erorr reports.
    }
    src.reset();
    Log log = new Log();
    compile(src, options, log);
    log.report(grammar_file.getName(), src);
  }
View Full Code Here

    public void generate() throws IOException, Parser.Exception, Grammar.Exception {
        for (final File file : source.getFiles()) {
            final SrcReader srcReader = new SrcReader(file);
            final Options options = new Options();
            options.dest_dir = getOutputDirectory();
            ParserGenerator.compile(srcReader, options, new Log());
        }
    }
View Full Code Here

public class ListTest
{
   public static void main( String args[] )
   {
      List list = new List(); // create the List container

      // insert integers in list
      list.insertAtFront( -1 );
      list.print();
      list.insertAtFront( 0 );
      list.print();
      list.insertAtBack( 1 );
      list.print();
      list.insertAtBack( 5 );
      list.print();

      // remove objects from list; print after each removal
      try
      {
         Object removedObject = list.removeFromFront();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromFront();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromBack();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromBack();
         System.out.printf( "%s removed\n", removedObject );
         list.print();
      } // end try
      catch ( EmptyListException emptyListException )
      {
         emptyListException.printStackTrace();
      } // end catch
View Full Code Here

TOP

Related Classes of beaver.comp.util.Log$Record$List

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.