// Path: src/nl/uu/cs/ssm/Config.java
// public class Config
// {
// 	public static final int[] keysLoad					= { KeyEvent.VK_O } ;
// 	
// 	public static final int[] keysReload				= { KeyEvent.VK_R } ;
// 	
// 	public static final int[] keysPause					= { KeyEvent.VK_SPACE } ;
// 	
// 	public static final int[] keysFullForward			= { KeyEvent.VK_DOWN } ;
// 	
// 	public static final int[] keysFullBackward			= { KeyEvent.VK_UP } ;
// 	
// 	public static final int[] keysStep1Forward			= { KeyEvent.VK_RIGHT, KeyEvent.VK_SPACE } ;
// 	
// 	public static final int[] keysStep1Backward			= { KeyEvent.VK_LEFT, KeyEvent.VK_BACK_SPACE } ;
// 	
// 	public static final String extensionSSM				= "ssm" ;
// 	
//     public static final int allowedAutomaticMemoryIncrease
//     													= 100 ;
//     
//     public static final String version()                { return "2.2.0" ; }
//     
//     public static final String versionDate()            { return "June 16, 2015" ; }
//     
//     public static final String author()                 { return "Atze Dijkstra, Utrecht University" ; }
//     
//     public static final String authorEmail()            { return "atze@uu.nl" ; }
//     
// }


import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.swing.UIManager;
import nl.uu.cs.ssm.Config;
    
	public Runner(int delay)
	{
		this.delay = delay;
		try {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} 
			catch (Exception e) { 
			}
		    ssmRunner = new SSMRunner( this );
			ssmRunner.initComponents();
			ssmRunner.setVisible(true);
			ssmRunner.requestFocus() ;
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}
	
   public void loadFile(File initialFile) {
		ssmRunner.loadFile( initialFile ) ;
   }

   public void loadReader(Reader reader) {
		ssmRunner.load( reader ) ;
   }

   public static void usage() {
	   System.out.println("Simple Stack Machine Interpreter");
// Path: src/nl/uu/cs/ssm/Config.java
// public class Config
// {
// 	public static final int[] keysLoad					= { KeyEvent.VK_O } ;
// 	
// 	public static final int[] keysReload				= { KeyEvent.VK_R } ;
// 	
// 	public static final int[] keysPause					= { KeyEvent.VK_SPACE } ;
// 	
// 	public static final int[] keysFullForward			= { KeyEvent.VK_DOWN } ;
// 	
// 	public static final int[] keysFullBackward			= { KeyEvent.VK_UP } ;
// 	
// 	public static final int[] keysStep1Forward			= { KeyEvent.VK_RIGHT, KeyEvent.VK_SPACE } ;
// 	
// 	public static final int[] keysStep1Backward			= { KeyEvent.VK_LEFT, KeyEvent.VK_BACK_SPACE } ;
// 	
// 	public static final String extensionSSM				= "ssm" ;
// 	
//     public static final int allowedAutomaticMemoryIncrease
//     													= 100 ;
//     
//     public static final String version()                { return "2.2.0" ; }
//     
//     public static final String versionDate()            { return "June 16, 2015" ; }
//     
//     public static final String author()                 { return "Atze Dijkstra, Utrecht University" ; }
//     
//     public static final String authorEmail()            { return "atze@uu.nl" ; }
//     
// }


// Path: src/nl/uu/cs/ssmui/Runner.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.swing.UIManager;
import nl.uu.cs.ssm.Config;

    
	public Runner(int delay)
	{
		this.delay = delay;
		try {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} 
			catch (Exception e) { 
			}
		    ssmRunner = new SSMRunner( this );
			ssmRunner.initComponents();
			ssmRunner.setVisible(true);
			ssmRunner.requestFocus() ;
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}
	
   public void loadFile(File initialFile) {
		ssmRunner.loadFile( initialFile ) ;
   }

   public void loadReader(Reader reader) {
		ssmRunner.load( reader ) ;
   }

   public static void usage() {
	   System.out.println("Simple Stack Machine Interpreter");
	   System.out.println("Version " + Config.version() + ", " + Config.versionDate());