[Assembler] Add print capability to matcher
Displays match tree.
MODIFY
src/assembler/matcher.h
src/assembler/matcher.h
@@ -43,6 +43,7 @@ class Matcher {
public:
Matcher(const std::vector<std::shared_ptr<Instruction<ISA>>>& instructions)
: m_matchRoot(buildMatchTree(instructions, 1)) {}
+ void print() const { m_matchRoot.print(); }
std::variant<Error, const Instruction<ISA>*> matchInstruction(uint32_t instruction) const {
auto match = matchInstructionRec(instruction, m_matchRoot, true);

[Assembler] Add print capability to matcher

Displays match tree.