To get started with Virgil III you will require:
Set up is super easy! Just clone this repository. No build step needed!
Optionally:
$VIRGIL_PATH/bin
to your $PATH
to use v3c
and v3c-*
commands from anywhere$VIRGIL_PATH/bin/dev
to your $PATH
if you are working on the compiler/runtime itselfThe commands in the bin/
directory will automatically configure themselves when you first run them. You should find:
v3i
- to run and test programs in the interpreterv3c
- directly invoke the Virgil compilerv3c-host
- compile to the host target (i.e. this computer)Additional v3c
commands allow you to compile programs for each supported target platform.
Virgil includes a compiler that can produce binaries for various target platforms:
jar
- Java Virtual Machine 1.3 or laterx86-darwin
- Mac OS X 10.3 to 10.9 / 32-bit x86 processorx86-64-darwin
- Mac OS X 10.9 or later / 64-bit x86 processorx86-linux
- Linux 2.2 or later / 32-bit x86 processorx86-64-linux
- Linux 2.4 or later / 64-bit x86 processorwasm
- WebAssembly / 32-bitFor convenience, each platform has an associated v3c command that configures the compiler to generate a binary for that platform:
v3c-jar
- compile for the JVM platform and produce .jar file and an executable wrapper scriptv3c-x86-darwin
- compile for the x86-darwin platform and produce an executablev3c-x86-64-darwin
- compile for the x86-64-darwin platform and produce an executablev3c-x86-linux
- compile for the x86-linux platform and produce an executablev3c-x86-64-linux
- compile for the x86-64-linux platform and produce an executableSee BuildingAndRunningPrograms to see more about how to compile and run Virgil programs.
Learn more about the language through the tutorial, which describes the main features by way of many example programs.