Varphi is a completely open-source language. It is hosted on a public GitHub repository. You can get the source on your local machine by cloning the repository. You can do so by running the following command in a new terminal:
A new directory named varphi
should now be created with the source code under it. Change into this directory:
For the rest of this guide, it is assumed that your terminal is changed into the Varphi root directory.
Varphi uses Make for building the project. The easiest way to build everything in the Varphi project is by running
This will generate the lexer and parser, install the Varphi-to-Python Compiler as a package (called varphi
) in a Python virtual environment, and generate the Varphi Interpreter (vpi) binary for your operating system under bin/vpi
(or bin\vpi.exe
if you have a Windows machine).
You can also build individual components of the Varphi project, as shown below.