public interface InstructionEmitter
| Modifier and Type | Method and Description |
|---|---|
Instruction |
compile(java.util.regex.Matcher matcher,
int lineNumber,
java.util.List<Validator> validators)
Compile an instruction.
|
java.lang.String |
getInstructionName()
The name of the instruction as used in code, e.g.
|
java.lang.String getInstructionName()
Instruction compile(java.util.regex.Matcher matcher, int lineNumber, java.util.List<Validator> validators) throws ParseException
matcher - the matcher used to parse the line.lineNumber - the line number the instruction is on (for exceptions).validators - list of validators instruction emitters may add to.ParseException - if there was a syntax error.