8000 GitHub - n1klaus/monty: Interpreter for Monty ByteCode files · GitHub
[go: up one dir, main page]

Skip to content
n1klausPublic

About

Interpreter for Monty ByteCode files

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

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

0 stars

Watchers

1 watching

Forks

Contributors

Languages

0