brili is the reference interpreter for Bril.
It is written in TypeScript.
You can find
brili in the
bril-ts directory in the Bril repository.
$ yarn $ yarn build $ yarn link
The last thing will install symlinks to the two utility programs, but they may not be in a standard location.
To find where these tools were installed, run
yarn global bin.
You probably want to add this to your
brili program takes a Bril program as a JSON file on standard input:
$ brili < my_program.json
It emits any
$ brili 37 5 < add.json 42
The interpreter has a rudimentary profiling mode.
-p flag to print out a total number of dynamic instructions executed to stderr:
$ brili -p 37 5 < add.json 42 total_dyn_inst: 9