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:
gitbuild-essentialnodejs(Minimum version 4.5.0)npmesprimacmake(Minimum version 3.2.0)ninja
git clone --recursive https://github.com/b9org/b9.gitcd b9 \
&& npm install esprimamkdir build \
&& cd build \
&& cmake -GNinja -DCMAKE_BUILD_TYPE=Debug .. \
&& ninjaIn the build directory, run:
./b9run/b9run ./test/hello.b9modYou can run the full base9 test suite with:
ninja test