lean4-htt/doc/examples/compiler
2020-05-14 14:47:54 +02:00
..
README.md doc: port test program instructions to leanmake 2020-05-14 14:47:54 +02:00
test.lean doc: port test program instructions to leanmake 2020-05-14 14:47:54 +02:00

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

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

leanmake bin PKG=test

2- Execute test program

./build/bin/test hello world

It should produce Result: [hello, world]