Skip to content
/ monty Public

This repository is a Monty Bytecode Interpreter. This interpreter was built in the C language and reads Monty bytecode files of any extension. This interpreter can be run as either a stack (LIFO) or queue (FIFO).

Notifications You must be signed in to change notification settings

mfcrespo/monty

Repository files navigation

The Monty language

Project details

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.

Example

Example Code #include "holberton.h"

      int main (void)

       {

            int age = 43;

char *name = maria;

       _printf("She is %s and has %d years old", name, age);

                    return (0);

                    }

Output

Example1

Compilation

Files are compiled this way: *$ gcc -Wall -Werror -Wextra -pedantic .c -o monty

Authors

Maria Crespo

About

This repository is a Monty Bytecode Interpreter. This interpreter was built in the C language and reads Monty bytecode files of any extension. This interpreter can be run as either a stack (LIFO) or queue (FIFO).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages