tree: 65e94690cd4fce5a9107828c66bf5a3464628992 [search]
  1. .gitignore
  2. README.md
  3. run_test.sh
  4. test.lean
  5. test.lean.out.expected
doc/examples/compiler/README.md

In this example, we use the Lean C code generator to construct a simple program.

1- Generate build/bin/test program using leanmake bin (assuming bin/ from e.g. the stage 0.5 build directory is in your PATH)

2- Execute test program

./build/bin/test hello world

It should produce Result: [hello, world]