Giter Club home page Giter Club logo

monty's Introduction

Monty

What is Monty ?

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.

About this project

The goal of this project is to create an interpreter for Monty ByteCodes files.

Learning objectives

  • 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

Requirements

  • All files are designed to be compiled on Ubuntu 20.04 LTS
  • Compiled with gcc using the options -Wall -Werror -Wextra -pedantic -std=c89
  • Code should use the Betty style
  • No more than 5 functions per file

Installation

  1. Clone this repository: git clone https://github.com/saad-out/monty.git
  2. Change your directory to this repository: cd monty
  3. Compile the program with gcc: gcc -Wall -Werror -Wextra -pedantic -std=c89 *.c -o monty

Usage

run the interpreter: ./monty file_name

example:

julien@ubuntu:~/monty$ cat bytecodes.m 
push 1
pint
push 2
pint
push 3
pint
julien@ubuntu:~/monty$ ./monty bytecodes.m 
1
2
3
julien@ubuntu:~/monty$

Project done by:

Saad Out and Uwimana Lowami

License

This is an open source project ๐Ÿ’ฏ , so feel free to download it and use it without any permission ๐Ÿ‘พ

monty's People

Contributors

saad-out avatar sonlowami avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.