Giter VIP home page Giter VIP logo

monty's Introduction

Monty

A version of interpreter for Monty ByteCodes files named monty created by Wendy Segura and Joann Vuong .

monty 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 of monty function:

  • push 1

  • push 2

  • push 3

  • pall

  • Output: prints to stdout:

  • 3

  • 2

  • 1

Project Notes

Style

All files are in the Betty style. Notes on this style can be found at https://github.com/holbertonschool/Betty/wiki

Compilation

All files will be compiled with the following: $ gcc -Wall -Werror -Wextra -pedantic *.c -o monty

Functions

The following functions are handled with monty:

  • pint: prints the value at the top of the stack, followed by a new line.
  • pall: pall prints all the values on the stack, starting from the top of the stack.
  • push: push pushes an element to the stack
  • nop: implement the nop opcode.
  • pop: pop removes the top element of the stack.

Files

  • README.md : Current file, contains information about this project
  • monty.h : Header file, contains all prototypes for funcitons used, as well as libriaries and macros
  • monty.c : Contains the code for monty
  • pushpallpintpop.c: File for functions push, pall, pint, and pop
  • swapnop.c: File containing function for nop
  • stack_struct.h: stack related strutcts
  • match_specifier.c: function pointer
  • free.c: File that free malloc and other

monty's People

Contributors

jvpupcat avatar

Watchers

James Cloos avatar  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.