The command-line compiler
lfc can be installed in any directory, but it will be most convenient if add its directory to your
PATH environment variable.
To download the current development version of the command-line tools instead of the latest release, replace the following tar and zip files with those from the nightly build.
Download lfc 0.2.0 for Linux/Mac and run:
tar xvf lfc_0.2.0.tar.gz ./lfc_0.2.0/bin/lfc --help
Download lfc 0.2.0 for Windows and run:
unzip lfc_0.2.0.zip .\lfc_0.2.0\bin\lfc.ps1 --version
Clone the repository using one of
git clone firstname.lastname@example.org:lf-lang/lingua-franca.git
git clone https://github.com/lf-lang/lingua-franca.git
Then build using
Note: The gradle build also performs tests, which takes a long time.
The comnand-line tools will then be in a directory
Set up a Lingua Franca project by putting your program in a file with the
Example.lf and putting that file with a directory called
Then compile the program:
This will create two directories in parallel with the
bin. If your target language is a compiled one (like C and C++), then the
bin directory should contain an executable that you can run:
To see the options that can be given to
lfc, get help:
If you have installed the developer setup by cloning the GitHub repostory, then there are a number of other command-line tools available in the