A project for Holberton School, this is an interpreter for Monty bytecodes files. Monty is a scripting language that is first compiled into Monty byte codes. It relies on a unique stack data structure with specific instructions to manipulate it. Monty byte codes usually have the .m extension.
What you should learn from this project:
- What do LIFO and FIFO mean
- What is a stack, and when to use it
- What is a queue, and when to use it
- What are the common implementations of stacks and queues
- What are the most common use cases of stacks and queues
- What is the proper way to use global variables
The files are to be compiled this way:
$ gcc -Wall -Werror -Wextra -pedantic *.c -o monty
- compile files
$ ./monty monty_byte_code_file_name.m
$ cat bytecodes/12.m
push 1
push 2
push 3
pall
add
pall
$ ./monty bytecodes/12.m
3
2
1
5
1
- Implement the push and pall opcodes.
- Implement the pint opcode.
- Implement the pop opcode.
- Implement the swap opcode.
- Angel Pedroza - AngelPedroza
- Cristian Hurtado - Cristian Hurtado