From 7b76c697bd9f733aa242e12a01df4dc3a065a9e0 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 25 Sep 2022 00:04:18 +0200 Subject: allow to run program from file, add ch5 example programs --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 95981d5..816e4b9 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,16 @@ going to use the llvm `C` API and build our own safe wrapper specialized for this tutorial. The wrapper offers a similar interface as the `C++` API and is implemented in [`src/llvm/`](src/llvm/) +## Demo + +```bash +# Run kaleidoscope program from file. +cargo run ks/ + +# Run REPL loop, parsing from stdin. +cargo run +``` + ## Documentation Rustdoc for this crate is available at -- cgit v1.2.3