public final class InstructionEmitterTargetOrImmediate
extends java.lang.Object
| Constructor and Description |
|---|
InstructionEmitterTargetOrImmediate(java.util.function.Function<Target,Instruction> target,
java.util.function.Function<java.lang.Short,Instruction> immediate) |
| 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 InstructionEmitterTargetOrImmediate(java.util.function.Function<Target,Instruction> target, java.util.function.Function<java.lang.Short,Instruction> immediate)
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.