Project which is an interpreter of opcodes of the bytecode generated by the programming language Monty.
- Clone the repositorie
git clone https://github.com/Sergioarg/monty.git
- Run the file
./monty
Followed by a .m file with bytecode content
$./monty test.m
Output:
4
3
2
1
# | File | Description |
---|---|---|
D | README.md | Description. |
1 | extract_token_line.c | Extract data and opcode okf each file line. |
2 | general_methods.c | It contains general methods for the correct operation. |
3 | general_methods.h | It contains the general functions as macros. |
4 | get_opcode_handlen.c | We obtain the types of opcodes by means of a list. |
5 | main.c | We receive and obtain the opcodes of the file and the other functions. |
6 | maths_stack.c | Genales methods for mathematical opcodes. |
7 | methods_stack.c | It contains the general methods for the handling of the stack. |
8 | modifiers_handlers.c | It contains functions for general methods for the stack modification. |
9 | monty.h | Contains the necessary headers, macros and structures. |
10 | print_handlers.c | Contains the methods for the impression opcodes. |
11 | pstr_handlers.c | Contains the method for the impression of Strings Opcodes. |
11 | tools.c | Tools and basic functions. |