MelakuDemeke / monty

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monty

banner

GitHub repo size GitHub issues GitHub Repo stars GitHub forks GitHub commit activity

Description

In this project, I created a simple interpreter for Monty ByteCodes. The interpreter reads a bytecode file and executes the bytecode commands.

Monty ByteCodes

Monty ByteCodes is a programming language inspired by Python and designed to be simple and easy to learn. It was created by Zed A. Shaw as a teaching tool for beginner programmers. Monty ByteCodes uses a minimalist syntax and provides a small set of powerful features, making it a great choice for learning the basics of programming. It is also used as an example language in Zed Shaw's book "Learn More Python the Hard Way."

Getting Started

Prerequisites

In order to build and run this project, you need to have the following software installed on your system:

  • Git
  • GCC

Installing

You can download the source code of this project by running the following command:

git clone https://github.com/MelakuDemeke/monty.git

Once you have downloaded the source code, you can build the executable by running the following command:

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

This will create an executable file named monty in the same directory.

  • Any output must be printed on stdout
  • Any error message must be printed on stderr

Usage

any execution of the code can be done using the byte codes

julien@ubuntu:~/monty$ cat -e bytecodes/000.m
push 0$
push 1$
push 2$
  push 3$
                   pall    $
push 4$
    push 5    $
      push    6        $
pall$
julien@ubuntu:~/monty$

contributors

About

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


Languages

Language:C 93.2%Language:Brainfuck 3.2%Language:M 2.0%Language:MATLAB 1.1%Language:Forth 0.6%