koopa 0.0.10

Library for generating/parsing/optimizing Koopa IR.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Examples

Some examples showing how to use the `koopa` crate.

## [`opt`]opt

A simple Koopa IR optimizer that uses `koopa::front::Driver` to parse Koopa IR, performs constant folding and dead code elimination, and then uses `koopa::back::KoopaGenerator` to generate the optimized Koopa IR.

## [`brainfuck`]brainfuck

A brainfuck to Koopa IR compiler.

## [`interpreter`]interpreter

A simple Koopa IR interpreter, based on `koopa::back::Generator` and `koopa::back::Visitor`.