Code Monkey home page Code Monkey logo

monty's Introduction

0x18. C - Stacks, Queues - LIFO, FIFO

This project explores the concepts of stacks (LIFO) and queues (FIFO) through the lens of a Monty 0.98 bytecode interpreter.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You should install the following to get this project up and running. This program has only been tested on Ubuntu 14.04 LTS using gcc 4.8.4 compiled with -Wall -Werror -Wextra and -pedantic flags.

$ gcc --versiong
  gcc version 4.8.4

Installing

Building and installing this Monty interpreter is simple.

Start by cloning the repo from github into your desired directory.

$ git clone https://github.com/Haroldov/monty.git

Next, build the files using gcc.

$ gcc -Wall -Werror -Wextra -pedantic *.c -o monty

After the program has been compiled, you can run it using a monty file as an argument.

$ cat -e a_monty_file.m
push 1$
push 2$
push 3$
pall$
$ ./monty a_monty_file.m
3
2
1

Authors

Haroldo Vélez - Haroldov

Ryan Hudson - ryanhudson

monty's People

Contributors

haroldov avatar ryanhudson avatar

Watchers

 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.