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. The goal of this project is to create an interpreter for Monty ByteCodes files.
This project was built by Hugo Bayona and Alejo López
👤 Kafui Kumah
- Twitter: @alejolo311
- Github: @alejolo311
The following opcodes are suported.
- (push) Push an integer to the stack.
- (pall) Prints the entire stack.
- (pint) Print the first element of the stack.
- (pop) Removes the top element of the stack.
- (swap) Swaps the top two elements of the stack.
- (add, sub, mul, div, mod) Aritmetic op +, -, *, /, %.
- (nop)
- (pchar) Prints the char at the top of the stack, followed by a new line.
- (pstr) Prints the string starting at the top of the stack, followed by a new line.
- (rotl) Rotates the stack to the top.
- (rotr) Rotates the stack to the bottom.
- (stack) Sets the format of the data to a stack (LIFO). DEFAULT.
- (queue) Sets the format of the data to a queue (FIFO).
$ gcc -Wall -Werror -Wextra -pedantic *.c -o monty
- compile on Ubuntu 14.04 LTS
- compile with gcc 4.8.4
$ cat -e bytecodes/00.m
push 1$
push 2$
push 3$
pall$
$ ./monty bytecodes/00.m
3
2
1
$
Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and is notable for its extreme minimalism.
This repository includes 4 files with Brainfuck implementations.
- A Brainf*ck script that prints School, followed by a new line.
- Add two digits given by the user.
- Multiply two digits given by the user.
- Multiply two digits given by the user + print a new line at the end.
$ bf ./1001-add.bf
- compile on Ubuntu 14.04 LTS
- compile with bf
$ apt-get install bf