#include #include #include #include "funcs.h" #include "bignum.h" #include "util.h" #include "parser.h" #include "lllparser.h" #include "compiler.h" #include "rewriter.h" #include "tokenize.h" #include #include Node compileToLLL(std::string input) { return rewrite(parseSerpent(input)); } std::vector compile(std::string input) { return eth::compileLLL(printSimple(compileToLLL(input))); } std::vector prettyCompile(std::string input) { return deserialize(bytesToString( eth::compileLLL(printSimple(compileToLLL(input))))); } std::string bytesToString(std::vector input) { std::string o; for (unsigned i = 0; i < input.size(); i++) o += (char)input[i]; return o; } std::string bytesToHex(std::vector input) { return binToHex(bytesToString(input)); }