You'll need a C compiler and a POSIX compatible operating system (Mac, Linux, BSD, etc.) to build Pyro from source. (If you're on Windows, you can use the WSL to try Pyro out.)
First, download the Pyro repository from Github:
$ git clone https://github.com/dmulholl/pyro
cd into the
pyro directory and run
$ cd pyro $ make
pyro binary will be created in a new
out/release directory as
cd into the
out/release directory and try running the binary with the
--help flag to view the command line help:
$ ./pyro --help Usage: pyro [file] The Pyro programming language. Arguments: [file] Script to run. Will open the REPL if omitted. Flags: -h, --help Print this help text and exit. -v, --version Print the version number and exit. Commands: test Run unit tests. time Run timing functions. Command Help: help <command> Print the command's help text.
Let's make a simple test script.
Create a file called
hello.pyro and add the following line to it:
echo "hello world";
Run the script by supplying its filename to the binary:
$ ./pyro hello.pyro hello world
That's it, you can officially add Pyro to the list of languages on your CV. Take the tour if you'd like to learn more about the language.
You can run
make install from the
pyro directory to install Pyro on your system:
$ sudo make install
This copies the Pyro binary to the
(You may need to use
sudo to give Make permission to access this folder.)
You can now run Pyro like any other installed binary:
Running Pyro without a script argument launches the REPL — an interactive environment where you can try running Pyro commands directly.
exit or hit
Ctrl-D to end the REPL session.