/monty

Primary LanguageC

Monty Bytecode Interpreter

The Monty Bytecode Interpreter is a project that implements a simple interpreter for Monty Bytecode files. Monty 0.98 is a scripting language that relies on a unique stack with specific instructions to manipulate it. This interpreter reads Monty Bytecode files, executes the specified instructions, and provides output accordingly.

Project Overview

By: Abdullah Mosbah, Elsayed Hassan

This Monty interpreter project includes the following functionalities:

  • push: Pushes an element onto the stack.
  • pall: Prints all the values on the stack.
  • pint: Prints the value at the top of the stack.
  • pop: Removes the top element of the stack.
  • swap: Swaps the top two elements of the stack.
  • add: Adds the top two elements of the stack.
  • nop: Does nothing.