lean4-htt/tests/compiler/foreign
Sebastian Ullrich c88784ef9d refactor: consistent io_result_mk* naming
/cc @leodemoura
2020-08-31 11:08:57 +02:00
..
main.lean
Makefile chore: fix test 2020-05-22 09:33:46 -07:00
myfuns.cpp refactor: consistent io_result_mk* naming 2020-08-31 11:08:57 +02:00
README.md

Small project implemented using Lean and C++. The C++ file myfuns.cpp wraps a C++ object using an lean_external_object. The file myfuns.cpp exposes pure and effectful primitives. The file main.lean contains a small Lean program that uses the exported primitives.

Build instructions

Assuming the Lean bin/ directory (e.g. from build/release/stage0.5) is in your PATH, executing leanmake will create the executable build/bin/test.

The executable build/bin/test should produce the output

30
hello
foobla
world