An open API service indexing awesome lists of open source software.

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.

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.