Interpreter for the NORMAL programming language.
Code your program by selecting a number, for example 836, then run the resulting code with an argument like so
python3 Interpreter.py 836 3
This example computes the square of your argument, so the result is 9.
See http://normal-lang.kölzer.eu/ for specs and documentation.
The NORMAL interpreter makes use of Python 3, which is pre-installed on a lot of machines. Check Python 3, if the following fails.
- Install MpMath (≥ 1.4). You may want to use
apt install python3-mpmathorpip install mpmath. MpMath is BSD licensed, see https://mpmath.org/. - Download NORMAL. You can download the zip file or clone the repository:
git clone https://github.com/JanKoelzer/normal-lang.git. - Start coding with NORMAL:
python3 Interpreter.py 26030 6
If your code uses large numbers (for example > 5), then NORMAL computes digits of of Pi on-demand. This can become slow. You can use pre-calculated digits like the ones you can find on https://pilookup.com/de/download.html. Download any of the files and copy it to the NORMAL directory. Name it to N.txt, where N is the number of digits ("3." not counted). NORMAL will detect the file and use those digits. (See 5.txt for format and naming convention.)