
public class Typecheck
{
	public static void main(String[] args)
	{
		//just getting started
		if(args.length > 0)
		{
			//args[0] is the file.. use parser to interact with it?

			//just checking if java compiles and stuff, basically at "hello world" stage right now.
			System.out.println(args[0]);
		}
		else
		{
			System.out.println("Error, no file to typecheck.");
		}
	}
}

@@ -1,9 +1,8 @@
-%0A
 public c
@@ -19,12 +19,15 @@
 heck
-%0A%7B%0A%09
+ %7B%0A    
 publ
@@ -64,318 +64,398 @@
 rgs)
-%0A%09%7B%0A%09%09//just getting started%0A%09%09if(args.length %3E 0)%0A%09%09
+ throws ParseException 
 %7B%0A%09%09
-%09
 //
-args%5B0%5D is the file.. use parser to interact with it?%0A%0A%09%09%09//just checking if java compiles and stuff, basically at %22hello world%22 stage right now.%0A%09%09%09System.out.println(args%5B0%5D);%0A%09%09%7D%0A%09%09else%0A%09%09%7B%0A%09%09%09System.out.println(%22Error, no file to typecheck.%22);%0A%09%09
+ According to the instruction: %22java Typecheck %3C P.java%22%0A        // We use %60System.in%60 as the input stream.%0A        try %7B%0A            new MiniJavaParser(System.in);%0A            MiniJavaParser.Goal();%0A%0A            System.out.println(%22Program type checked successfully%22);%0A        %7D catch (ParseException e) %7B%0A            System.out.println(%22Type error%22);%0A        
 %7D%0A%09%7D

make the parser runnable