@FunctionalInterface
public interface Validator
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MachineState state)
Called from the
Compiler after all lines have been parsed and
all instructions have been generated to allow validation of the
generated machine state. |
void accept(MachineState state) throws ParseException
Compiler after all lines have been parsed and
all instructions have been generated to allow validation of the
generated machine state.state - the machine state to validate.ParseException - if the generated state is invalid in some way.