/loop-calc

Loop program evaluator for the lecture Grundlagen der theoretischen Informatik 2

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

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

$ pip install loop-calc

Usage

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

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

You can view all available options with

$ loop-calc --help

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

Author

Fin Christensen

:octocat: @fin-ger
🐘 @fin_ger@weirder.earth
🐦 @fin_ger_github

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 Fin Christensen.
This project is GPL-2.0 licensed.