public class Interpreter extends java.lang.Object implements GCodeCompiler
Modifier and Type | Field and Description |
---|---|
static int |
AXIS_A |
static int |
AXIS_B |
static int |
AXIS_C |
static int |
AXIS_X |
static int |
AXIS_Y |
static int |
AXIS_Z |
static int |
NUMBER_OF_AXIS |
static int |
NUMBER_OF_PARTS |
static int |
NUMBER_OF_TOOLS |
Constructor and Description |
---|
Interpreter() |
Modifier and Type | Method and Description |
---|---|
void |
addMachCode(Callback callback) |
int |
expectInteger(double x) |
static java.lang.String |
getAxisLetter(int axis) |
boolean |
getBoolean(int i) |
MachCode |
getCCodes() |
double |
getDouble(int i) |
boolean |
getGCode(double code) |
int |
getInteger(int i) |
boolean |
getMCode(double code) |
java.lang.Double |
getWordValue(char chr) |
int |
indexFromAxis(char letter) |
void |
initInterpreter(Parser parser) |
void |
notSupported(java.lang.String message) |
java.lang.Double |
peekWordValue(char chr) |
void |
setExtensions(java.util.List<GCodeCompilerExtension> extension) |
void |
setParameter(int i,
java.lang.Boolean value) |
void |
setParameter(int i,
java.lang.Double value) |
void |
setParameter(int i,
java.lang.Integer value) |
void |
warning(java.lang.String warning) |
public static final int AXIS_X
public static final int AXIS_Y
public static final int AXIS_Z
public static final int AXIS_A
public static final int AXIS_B
public static final int AXIS_C
public static final int NUMBER_OF_TOOLS
public static final int NUMBER_OF_PARTS
public static final int NUMBER_OF_AXIS
public void setExtensions(java.util.List<GCodeCompilerExtension> extension)
public static java.lang.String getAxisLetter(int axis)
public void setParameter(int i, java.lang.Integer value)
setParameter
in interface GCodeCompiler
public void setParameter(int i, java.lang.Boolean value)
setParameter
in interface GCodeCompiler
public void setParameter(int i, java.lang.Double value)
setParameter
in interface GCodeCompiler
public double getDouble(int i)
getDouble
in interface GCodeCompiler
public boolean getBoolean(int i)
getBoolean
in interface GCodeCompiler
public int getInteger(int i)
getInteger
in interface GCodeCompiler
public int expectInteger(double x)
expectInteger
in interface GCodeCompiler
public java.lang.Double getWordValue(char chr)
getWordValue
in interface GCodeCompiler
public java.lang.Double peekWordValue(char chr)
peekWordValue
in interface GCodeCompiler
public boolean getGCode(double code)
getGCode
in interface GCodeCompiler
public boolean getMCode(double code)
getMCode
in interface GCodeCompiler
public int indexFromAxis(char letter)
public void warning(java.lang.String warning)
warning
in interface GCodeCompiler
public void notSupported(java.lang.String message)
notSupported
in interface GCodeCompiler
public void initInterpreter(Parser parser)
public MachCode getCCodes()
public void addMachCode(Callback callback)
addMachCode
in interface GCodeCompiler