public final class UnaryInstructionEmitter
extends java.lang.Object
| Constructor and Description |
|---|
UnaryInstructionEmitter(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.
|
public UnaryInstructionEmitter(java.util.function.Supplier<Instruction> constructor)
public 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.