diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp new file mode 100644 index 000000000..1ce2590d0 --- /dev/null +++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp @@ -0,0 +1,11 @@ +#include <libserpent/funcs.h> +#include <libserpent/bignum.h> +#include <iostream> + +using namespace std; + +int main() { + cout << printAST(compileToLLL(get_file_contents("examples/namecoin.se"))) << "\n"; + cout << decimalSub("10234", "10234") << "\n"; + cout << decimalSub("10234", "10233") << "\n"; +} |