About: In this project, we created a simple interpreter for Monty ByteCodes. The interpreter reads a bytecode file and executes the bytecode commands.
Monty 0.98 is a scripting language that is first compiled into Monty byte codes (Just like Python). It relies on a unique stack, with specific instructions to manipulate it.
Files containing Monty byte codes usually have the .m extension. Most of the industry uses this standard but it is not required by the specification of the language. There is not more than one instruction per line. There can be any number of spaces before or after the opcode and its argument: examples
- To know what LIFO and FIFO mean
- To know what a stack is, and when to use it
- To know what a queue is, and when to use it
- To know the common implementations of stacks and queues
- To know the most common use cases of stacks and queues
- To know the proper way to use global variables
- Allowed editors: vi, vim, emacs
- All files are compiled on Ubuntu 20.04 LTS using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89
- All files end with a new line
- There is a README.md file at the root of the alx-low_level_programming directory
- Maximum of one global variable is allowed
- No more than 5 functions per file
- The C standard library is allowed
- The prototypes of all the functions are included in the header file called monty.h
- All the header files are include guarded
- Use the following data structures for this project, and include them in the header file.