Getting started
Firefly comes with a compiler, a build system and a package manager.
Install Firefly:
npm install -g firefly-compiler
Save this code as Hello.ff
:
nodeMain(system: NodeSystem) {
system.writeLine("Hello, World!")
}
And run it:
firefly Hello.ff
You now know how to run Firefly code!
Editor support
Install the Firefly Language VSCode extension to get autocompletion, renaming, go to definition, highlighting, etc. You can find it under Extensions in VSCode.
The Firefly code highlighting on this site matches the Dark Modern theme in VSCode.
If you'd like to make an extension for a different editor, the language server is available, as well as the source code for the VSCode extension.