GithubHelp home page GithubHelp logo

monty's Introduction

Monty Interpreter These is monty interpreter built on C language and complient with ISO90,ISO099. &ISO11.it reads monty bytcode files of any extension.However I prefer if you use .m extension.

monty can run as either a stack (LIFO) or queue(FIFO).Mode can be switched mid-script. the interpreter can handle a varity opcodes, including printing, mathmatical operations, and more all handled opcodes are listed below.

๐Ÿƒ Getting Started Ubuntu 14.04 LTS - operating system required GCC 4.8.4 - Compiler used โšก How to install clone these repository to your machine:

$ git clone https://github.com/Fraol123/monty.git compile with the following:

gcc -Wall -Werror -Wextra -pedantic *.c -o monty Run monty on file:

./monty file.m ๐Ÿ”ง Monty Opcodes push Usage:push pushes an element to the stack The parameter must be an integer pall prints value in stack/queus, starting fromm the top. pint prints the top value of the stack\queus. pop Removes the top element of the stack\queus. swap -swaps the top two element of stack\queue nop does nothing add Adds the top two elements of the stack\queue The result is stored in the second element from the top and the top element is poped sub subtracts the top two elements of the stack\queue the result is stored in the second element from the top and the top element is poped div divides the top two elements of stack\queue takes zero's error in considaration mul multiplies the top two elements of stack\queue mod modules of the top two elements of stack\queue ๐Ÿ“ฎ opcode preceded by # are treted as comment

๐Ÿ“˜ AUTHOR ๐Ÿ’ปBilly Adan

๐ŸŽบ Acknowldgement Holberton School- for giving these challenging project and providing guidlines ALX- sensei stack overflow - providing solution as needed

monty's People

Contributors

billyadan 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.