Bilbo is a domain-specific language for programming with graphs at a high level of abstraction.
Bilbo is completely cross-platform and runs on linux, macOS and windows.
To use Bilbo you'll need .NET Core.
First, download the release and unzip bilbo.zip
.
To start the REPL:
dotnet bilbo/Bilbo.dll
The REPL can accept multiple lines of input at a time and so requires a semicolon ;
to delimit the end of input. The three dots ...
are the REPL prompt.
For example:
... print "Hello, world!";
"Hello, world!"
To run the Bilbo interpreter use the --bilbofile
option to specify the input file:
dotnet bilbo/Bilbo.dll --bilbofile examples/shortest-path.bb
There are a number of example programs ready to run.
Finally, the option --debug
can be used to run, either the REPL or the normal interpreter, in debug mode.
To build or run from source, clone the repository and resolve Paket dependencies.
To build and run the REPL:
dotnet run --project src/Bilbo
The same options for running programs (--bilbofile
) and debug mode (--debug
) can be used.
To run the tests, first ensure you can build and run from source.
To run the evaluator tests:
dotnet run --project test/EvaluatorTests
The evaluator tests are one of three test suites. The others are test/GraphTests
and test/ParserTests
which can be run in the same way, by changing the --project
option.