Giter Site home page Giter Site logo

monty's Introduction

Monty

Description

A basic Monty interpreter

Compilation & Output

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

Directory Contents

File/Folder Decription
README.md read me file.
main.c body of Monty interpreter
str_tokenize.c tokenizes a string
get_opcode.c get the correct operation code
input_get.c gets input for Monty interpretation
intcheck.c checks string if it is an int
error_exit.c error handling and error exiting for monty interpreter
free_monty.c frees monty list
push.c pushes value onto head of list
pall.c prints the elements
pint.c prints the value at the top of the stack
pop.c removes the top element of the stack
swap.c swaps the first two elements of the stack
add.c adds the top two elements of the stack
nop.c does nothing
sub.c subtracts the top two elements of the stack
div.c divides the top two elements of the stack
mul.c multiplies the top two elements of the stack
mod.c modulo the top two elements of the stack
pchar.c prints the char at the top of the stack
pstr.c prints the string starting at the top of the stack
rotl.c rotate the stack to the top
rotr.c rotate the stack to the bottom

Authors

Dennis Pham - Github || Twitter

Cameron Eng - Github || Twitter

monty's People

Contributors

dspham avatar c-eng avatar

Watchers

James Cloos avatar  avatar

Forkers

dspham

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.