Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Compiler API

Angus Thomsen edited this page Jan 7, 2017 · 1 revision

Right now the compiler barely even generates anything, it just reads the source, but you can inspect what it's doing by reading the debug output.

$ jo build MAIN_FILES

# debugging the output for the various compilation passes, passes include
#
#   - text:lexer
#   - text:block
#   - text:parse
#
$ jo build -d COMPILER_PASS MAIN_FILES

# pretty printed compiler output for the various compilation passes
$ jo build -d COMPILER_PASS --pretty MAIN_FILES

The thought process behind this is to have the subcommands like build, repl, debug, run, etc, what ever makes sense. The debug output should be also usable by tooling like an IDE or linter or whatever.

Clone this wiki locally