https://github.com/yll0rd/monty
A stack-based interpreter for the Monty programming language, written in C.
https://github.com/yll0rd/monty
Last synced: about 1 year ago
JSON representation
A stack-based interpreter for the Monty programming language, written in C.
- Host: GitHub
- URL: https://github.com/yll0rd/monty
- Owner: yll0rd
- Created: 2023-06-21T02:31:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T05:53:55.000Z (almost 3 years ago)
- Last Synced: 2024-04-08T23:20:45.976Z (about 2 years ago)
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monty Project (C Version)
The Monty project is a C implementation of a Monty language interpreter. Monty is a simple, stack-based programming language that supports basic arithmetic operations, conditional statements, and loops.
## Installation
To install the Monty project, clone the repository and run the following command:
make
This will compile the project and create the `monty` executable.
## Usage
To use the Monty interpreter, run the following command:
```./monty ```
Replace `` with the name of a Monty program file. The interpreter will execute the program and display the results.
## Features
The Monty interpreter supports the following features:
- Arithmetic operations: `add`, `sub`, `mul`, `div`, `mod`
- Conditional statements: `if`, `else`, `endif`
- Loops: `while`, `endwhile`
- Stack operations: `push`, `pop`, `swap`, `dup`
- Input/output: `pall`, `pint`, `pop`, `swap`, `add`, `nop`
## Contributions
We welcome contributions from other developers. If you find a bug or have a feature request, please submit an issue or pull request. To contribute, follow these steps:
1. Fork the repository
2. Create a new branch
3. Make changes and commit them
4. Push your changes to your fork
5. Submit a pull request
Please follow C99 standards and include tests for your changes.
## License
This project is released under the MIT License.
## Contact
If you have any questions or comments, please email us at leoyoumbi83@gmail.com or visit our GitHub repository at https://github.com/Leo-Youmbi.