/Stack-Machine-Interpreter

Stack Machine Interpreter for COOL language. Assignment of the course Compilers - 1

Primary LanguageCool

Stack Machine Interpreter

The assignment is to implement the stack machine interpreter in COOL language.

Sample session

Sample compile and run of the solution :

%coolc stack.cl atoi.cl
%spim -file stack.s
SPIM Version 5.6 of January 18, 1995
Copyright 1990-1994 by James R. Larus (larus@cs.wisc.edu).
All Rights Reserved.
See the file README a full copyright notice.
Loaded: /usr/class/cs3020/cool/lib/trap.handler
>1
>+
>2
>s
>d
s
2
+
1
>e
>e
>d
3
>x
COOL program successfully executed