public final class Compiler
extends java.lang.Object
Generates exceptions with line and column location if invalid code is encountered.
| Modifier and Type | Method and Description |
|---|---|
static void |
compile(java.lang.Iterable<java.lang.String> code,
MachineState state)
Parse the specified piece of assembly code into the specified machine state.
|
public static void compile(java.lang.Iterable<java.lang.String> code,
MachineState state)
throws ParseException
Note that the machine state will be hard reset.
code - the code to parse and compile.state - the machine state to store the instructions and debug info in.ParseException - if the specified code contains syntax errors.