Warning
This repository is a pet project and is purely for academic interest. The scripting language being developed here (the so-called guest language) is not a real programming language. The goals of the project are to study the topic of source program recognition and its subsequent lexing, parsing and execution of an abstract syntax tree (AST).
- Open the Releases section and select the needed version of the
ipretutility. - Download the Linux platform archive using the
wgetcommand for the required architecture:
wget https://github.com/DenisKozarezov/interpreter/releases/download/<version>/ipret-linux-arm64.tar.gz- Unpack the archive and move the downloaded binary file to the current user's executable directory:
mkdir ipret-temp && tar -xvzf ipret-linux-amd64.tar.gz -C ipret-temp
sudo mv ipret-temp/ipret /usr/local/bin
sudo rm -rf ipret-temp- Test to ensure the version of
ipretis the same as downloaded:
ipret --version- Open the Releases section and select the needed version of the
ipretutility. - Download the zip archive for the Windows platform for the required architecture:
ipret-windows-amd64.zipipret-windows-386.zip
- Unzip the zip archive using any available archiver.
- Test to ensure the version of
ipretis the same as downloaded:
ipret.exe --versionThe --help (-h) command is used to display a prompt:
# Using --help in the root command
ipret --help
# Using --help in the interpreter run command
ipret run --help
# General form of the --help command
ipret <comand> <subcommand> --help# Evaluate a text file with short flag
ipret run -f ./someFile.txt
# Evaluate a text file with long flag and benchmark
ipret run --filename=someFile.irt --bench