{"id":21666994,"url":"https://github.com/princexz/monty","last_synced_at":"2026-04-17T02:31:18.451Z","repository":{"id":148304765,"uuid":"616867784","full_name":"Princexz/monty","owner":"Princexz","description":"Monty 0.98 Interpreter Project","archived":false,"fork":false,"pushed_at":"2023-03-23T16:25:50.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T03:38:36.226Z","etag":null,"topics":["brainfuck","brainfuck-compiler","brainfuck-interpreter","c","m","matlab","scri"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Princexz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-21T08:49:29.000Z","updated_at":"2024-11-10T17:32:42.000Z","dependencies_parsed_at":"2023-05-19T17:45:23.341Z","dependency_job_id":null,"html_url":"https://github.com/Princexz/monty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Princexz/monty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princexz%2Fmonty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princexz%2Fmonty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princexz%2Fmonty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princexz%2Fmonty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Princexz","download_url":"https://codeload.github.com/Princexz/monty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princexz%2Fmonty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brainfuck","brainfuck-compiler","brainfuck-interpreter","c","m","matlab","scri"],"created_at":"2024-11-25T11:31:55.152Z","updated_at":"2026-04-17T02:31:18.406Z","avatar_url":"https://github.com/Princexz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MONTY\n![alt text](https://pbs.twimg.com/media/CFYYWy6UEAE9Ow-.png)\n\n## Description\n\nMonty 0.98 is a scripting language that is first compiled into Monty byte codes (Just like Python). It relies on a unique stack, with specific instructions to manipulate it. The goal of this project is to create an interpreter for Monty ByteCodes files.\n\n***\n\n## Installation\n\n1. Clone the repository:\n```console\nhttps://github.com/princexz/monty.git\n```\n\n## Usage\n1. Enter at directory\n```console\ncd monty\n```\n\n2. Compile:\n```console\ngcc -Wall -Werror -Wextra -pedantic -std=c89 *.c -o monty\n```\n\n3. Execute:\n```console\n./monty file.m\n//The file contains the bytcode instructions for example\ncat -e 000.m\npush 0$\npush 1$\npush 2$\n  push 3$\n                   pall    $\npush 4$\n    push 5    $\n      push    6        $\npall$\n```\n\n## Functions\n\nThe functions used are:\n\n|Name | Description | Return| File\n|:--: | :-- | :--| :--|\n|_f_add | adds the top two elements of the stack | No Return | add.c|\n| addnode | add node to the head stack | No Return | addnode.c|\n| f_div | divides the top two elements of the stack. | No Return | div.c|\n| execute | executes the opcode | No Return | execute.c|\n| free_stack | frees a doubly linked list | No Return | free_stack.c|\n| main | monty code interpreter | 0 on success | main.c| \n\n### Examples\n\n```console\n$princexz\u003e ls\nbasics.c    general.c  main.h  memory.c   shell.c\nbuilders.c  helper.c   hsh          README.md  test\n```\n\n## Authors :black_nib:\n\n[Prince Solomon](https://github.com/princexz) and [Thulile Makhubela](https://github.com/shadowp2066)\n\n## Acknowledgements :pray:\n\nAll work contained in this project was completed as part of the curriculum for ALX Africa SE. ALX Africa is an online full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit [this link](https://www.alxafrica.com//).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg\n   src=\"https://www.alxafrica.com/wp-content/uploads/2022/01/header-logo.png\"\n       alt=\"ALX Africa Logo\"\n  \u003e\n\u003c/p\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincexz%2Fmonty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincexz%2Fmonty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincexz%2Fmonty/lists"}