public final class InstructionEmitterUnary
extends java.lang.Object
| Constructor and Description |
|---|
InstructionEmitterUnary(java.lang.String name,
java.util.function.Supplier<Instruction> constructor) |
| Modifier and Type | Method and Description |
|---|---|
Instruction |
compile(java.util.regex.Matcher matcher,
int lineNumber,
java.util.Map<java.lang.String,java.lang.String> defines,
java.util.List<Validator> validators)
Compile an instruction.
|
java.lang.String |
getInstructionName()
The name of the instruction as used in code, e.g.
|
public InstructionEmitterUnary(java.lang.String name,
java.util.function.Supplier<Instruction> constructor)
public java.lang.String getInstructionName()
InstructionEmitterpublic Instruction compile(java.util.regex.Matcher matcher, int lineNumber, java.util.Map<java.lang.String,java.lang.String> defines, java.util.List<Validator> validators) throws ParseException
InstructionEmittermatcher - the matcher used to parse the line.lineNumber - the line number the instruction is on (for exceptions).defines - the map of currently active defines.validators - list of validators instruction emitters may add to.ParseException - if there was a syntax error.