[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/ron-che-debugger/MiniJava-Compiler/main/test/src8 [Back]  [Original]

/* EXAMPLE 4: Two classes this time */
program x4;
class Point {
	     declarations
        		int x, y;
	     enddeclarations
}

class Test {
	declarations
            	Point p0;
	enddeclarations
        method void main()
	     declarations
                	Point p;
		        int xxx;
	     enddeclarations
	{
	        p.y := 1;
	        p.x := 1;
        }
}


Web Proxy Viewer  |  New URL  |  Original Page