Git Product home page Git Product logo

monty's Introduction

Monty

This repository contains the source code for a Monty interpreter, which is capable of interpreting Monty ByteCodes files.

Files

  • main.c: Main entry point of the Monty interpreter.
  • monty.h: Header file containing function prototypes and data structure definitions.
  • opr_add.c: Implementation of the add opcode.
  • opr_div.c: Implementation of the div opcode.
  • opr_free_stack.c: Function to free the stack.
  • opr_mul.c: Implementation of the mul opcode.
  • opr_pall.c: Implementation of the pall opcode.
  • opr_pint.c: Implementation of the pint opcode.
  • opr_pstr.c: Implementation of the pstr opcode.
  • opr_queue.c: Implementation of the queue opcode.
  • opr_rotr.c: Implementation of the rotr opcode.
  • opr_sub.c: Implementation of the sub opcode.
  • tests/: Directory containing test cases for the Monty interpreter.
  • bf/: Directory containing Brainf*ck scripts used for testing.

Usage

To run the Monty interpreter, use the following command:

./monty <file_name>

Replace <file_name> with the path to the Monty ByteCodes file you want to interpret.

Compilation

Compile the Monty interpreter using the following command:

gcc -Wall -Werror -Wextra -pedantic -std=c89 *.c -o monty

monty's People

Contributors

dagmawi-y 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.