Get to know the language and tinker with some example Lingua Franca programs!
Spin up a fully configured dev environment in the cloud. Any dependencies required for building or running any of the examples are preinstalled. A web-based VS Code editor, preloaded with the Lingua Franca extension, is accessible through either GitHub Codespaces or GitPod. Simply click on either of the links below to get started.
Note: To launch your GitHub Codespaces environment in seconds instead of minutes, create a fork of this repo and create a Prebuild configuration in Settings > Codespaces.
Once in Codespaces or GitPod, navigate to ./examples and click on any of the .lf
files to open them in the editor. To build and run, use Ctrl + Shift + P and select Lingua Franca: Build and Run.
The default Codespaces configuration installs the nightly-built version of the Lingua Franca toolchain and checks out our examples repository. Links to alternate configurations are available below.
- Clone this repo (
git clone git@github.com:lf-lang/playground-lingua-franca.git
) - Open with VS Code (
code playground-lingua-franca
) - Install the Lingua Franca extension (Ctrl+P and enter ext install lf-lang.vscode-lingua-franca).
Once in VSCode, navigate to ./examples and click on any of the .lf
files to open them into your editor. To build and run, use Ctrl+Shift+P and select Lingua Franca: Build and Run. Note: You might need not install additional dependencies in order to successfully build some of the code you find in this repository. For more information, see the setup-env.bash script that we use to configure our Docker-based environments.