diff --git a/Cargo.toml b/Cargo.toml index 7756ac5..562f131 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.114" clap = { version = "4.5.3", features = ["derive"] } chrono = "0.4.34" +hex = "0.4.3" [dev-dependencies] tempfile = "3.10.1" @@ -21,4 +22,12 @@ predicates = "3.1.0" [[bin]] name = "tapc" -path = "src/main.rs" \ No newline at end of file +path = "src/main.rs" + +[[example]] +name = "compile_all" +path = "examples/compile_all.rs" + +[[example]] +name = "interpreter_demo" +path = "examples/interpreter_demo.rs" \ No newline at end of file diff --git a/docs/interpreter.cpp b/docs/interpreter.cpp new file mode 100644 index 0000000..81b7288 --- /dev/null +++ b/docs/interpreter.cpp @@ -0,0 +1,3502 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2021 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include