MCPcopy Create free account
hub / github.com/ElementsProject/elements / Parse

Method Parse

src/core_read.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48 }
49 opcodetype Parse(const std::string& s) const
50 {
51 auto it = mapOpNames.find(s);
52 if (it == mapOpNames.end()) throw std::runtime_error("script parse error: unknown opcode");
53 return it->second;
54 }
55};
56
57opcodetype ParseOpCode(const std::string& s)

Callers 1

ParseOpCodeFunction · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected