Skip to content

n1klaus/monty

Repository files navigation

monty

Bytecode intepretor for Monty language bytecode

Version Opcode Description
v 0.0.1 push pushes an element to the stack
v 0.0.2 pall prints all the values on the stack, starting from the top of the stack
v 0.1 pint prints the value at the top of the stack, followed by a new line
v 0.2 pop removes the top element of the stack
v 0.3 swap swaps the top two elements of the stack
v 0.4 add adds the top two elements of the stack
v 0.5 nop does nothing

Compilation

gcc -Wall -Wextra -Werror -pedantic -std=gnu89 *.c -o monty

Usage

./monty 00.m

About

Interpreter for Monty ByteCode files

Topics

Resources

Stars

Watchers

Forks