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

https://github.com/fin-ger/loop-calc

Loop program evaluator for the lecture Grundlagen der theoretischen Informatik 2
https://github.com/fin-ger/loop-calc

Last synced: 3 months ago
JSON representation

Loop program evaluator for the lecture Grundlagen der theoretischen Informatik 2

Awesome Lists containing this project

README

          

Welcome to loop-calc 👋



PyPI
PyPI - Python Version
PyPI - Wheel

PyPI - License


Liberapay receiving


PRs Welcome







> This program evaluates loop programs as described in the lecture `Grundlagen der theoretischen Informatik 2`.

This software is written in python using pyparsing for language parsing.

## Install

```sh
$ pip install loop-calc
```

## Usage

To display all registers and steps of a loop program, run

```sh
$ loop-calc --debug ./path/to/program.loop var1 var2
```

You can view all available options with

```sh
$ loop-calc --help
```

Have a look at the `/examples` folder for a Fibonacci implementation in loop.

## Author

**Fin Christensen**

> [:octocat: `@fin-ger`](https://github.com/fin-ger)
> [:elephant: `@fin_ger@weirder.earth`](https://weirder.earth/@fin_ger)
> [:bird: `@fin_ger_github`](https://twitter.com/fin_ger_github)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/fin-ger/loop-calc/issues).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2019 [Fin Christensen](https://github.com/fin-ger).

This project is [GPL-2.0](https://github.com/fin-ger/loop-calc/blob/master/LICENSE) licensed.