Package net.emustudio.edigen.passes
Class DetectUnreachableFormatsVisitor
- java.lang.Object
-
- net.emustudio.edigen.Visitor
-
- net.emustudio.edigen.passes.DetectUnreachableFormatsVisitor
-
public class DetectUnreachableFormatsVisitor extends Visitor
Detects unreachable disassembler formats.root instruction; instruction = "nop": 00000000 | other ;
other = "hey": 10000000 | "arg %d": 10000001 arg ;
arg = arg: arg(8);
%%
"%s" = instruction arg; // unreachable
-
-
Constructor Summary
Constructors Constructor Description DetectUnreachableFormatsVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Set<java.lang.String>>getReachable()voidvisit(Decoder decoder)voidvisit(Disassembler disassembler)voidvisit(Format format)voidvisit(Value value)
-
-
-
Method Detail
-
getReachable
public java.util.Set<java.util.Set<java.lang.String>> getReachable()
-
visit
public void visit(Decoder decoder) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
visit
public void visit(Disassembler disassembler) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
visit
public void visit(Format format) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
visit
public void visit(Value value) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
-