Base9 is an educational language runtime and programming language! We’re using it to show people how to use Eclipse OMR to build their own language runtime with a Just in Time (JIT) Compiler! The base9 front-end language is a simple subset of JavaScript. For more information, visit the base9 website.
If you'd like to build your own language runtime, visit our guide on Building a Language Runtime!
This page contains some basic instructions to get you started. For more detailed instructions, go to:
To get started with base9 using the Ninja build system, you'll need the following:
git
build-essential
nodejs
(Minimum version 4.5.0)npm
esprima
cmake
(Minimum version 3.2.0)ninja
git clone --recursive https://github.com/b9org/b9.git
cd b9 \
&& npm install esprima
mkdir build \
&& cd build \
&& cmake -GNinja -DCMAKE_BUILD_TYPE=Debug .. \
&& ninja
In the build
directory, run:
./b9run/b9run ./test/hello.b9mod
You can run the full base9 test suite with:
ninja test