~boringcactus/crowbar-reference-compiler

the reference compiler for the Crowbar language
398443f1 — Melody Horn 3 years ago
properly parse parenthesized atomic expressions
8bab4426 — Melody Horn 3 years ago
implement '\n'
02f896ed — Melody Horn 3 years ago
implement while loops

clone

read-only
https://git.sr.ht/~boringcactus/crowbar-reference-compiler
read/write
git@git.sr.ht:~boringcactus/crowbar-reference-compiler

You can also use your local clone with git send-email.

the reference compiler for the Crowbar language.

requirements:

  • QBE installed somewhere on your PATH
  • gcc

usage (i probably will forget to update this so check directly):

usage: crowbarc-reference [-h] [-V] [-g] [--stop-at-parse-tree]
                          [--stop-at-qbe-ssa] [-S] [-c] [-D DEFINE_CONSTANT]
                          [-I INCLUDE_DIR] [-o OUT]
                          input

The reference compiler for the Crowbar programming language

positional arguments:
  input                 input file

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -g, --include-debug-info
  --stop-at-parse-tree
  --stop-at-qbe-ssa
  -S, --stop-at-assembly
  -c, --stop-at-object
  -D DEFINE_CONSTANT, --define-constant DEFINE_CONSTANT
                        define a constant with some literal value
  -I INCLUDE_DIR, --include-dir INCLUDE_DIR
                        folder to look for included headers within
  -o OUT, --out OUT     output file