Package gcodeCompiler
Class gcodeGrammarLexer
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.Lexer
gcodeCompiler.gcodeGrammarLexer
- All Implemented Interfaces:
org.antlr.runtime.TokenSource
public class gcodeGrammarLexer
extends org.antlr.runtime.Lexer
The Class gcodeGrammarLexer.
-
Field Summary
Fields Modifier and Type Field Description static int
CHANGE_TOOL
The Constant CHANGE_TOOL.static int
CIRCLE_ACW
The Constant CIRCLE_ACW.static int
CIRCLE_CW
The Constant CIRCLE_CW.static int
COMMENT
The Constant COMMENT.static int
COMP_DIS
The Constant COMP_DIS.static int
COMP_L
The Constant COMP_L.static int
COMP_R
The Constant COMP_R.static int
COORD_ABS
The Constant COORD_ABS.static int
COORD_REL
The Constant COORD_REL.static int
CORD_DIGIT
The Constant CORD_DIGIT.static int
DIGIT
The Constant DIGIT.static int
END_PROG
The Constant END_PROG.static int
EOF
The Constant EOF.static int
FREE_MOVE
The Constant FREE_MOVE.static int
FREE_MOVE_SPEED
The Constant FREE_MOVE_SPEED.static int
I_CORD
The Constant I_CORD.static int
J_CORD
The Constant J_CORD.static int
JOB_MOVE
The Constant JOB_MOVE.static int
JOB_MOVE_SPEED
The Constant JOB_MOVE_SPEED.static int
K_CORD
The Constant K_CORD.static int
LUBE_OFF
The Constant LUBE_OFF.static int
LUBE_ON
The Constant LUBE_ON.static int
N_BLOCK
The Constant N_BLOCK.static int
ROT_TOOL_ACW
The Constant ROT_TOOL_ACW.static int
ROT_TOOL_CW
The Constant ROT_TOOL_CW.static int
SCAN_ERROR
The Constant SCAN_ERROR.static int
STOP_TOOL
The Constant STOP_TOOL.static int
TOOL_CHANGE
The Constant TOOL_CHANGE.static int
WS
The Constant WS.static int
X_CORD
The Constant X_CORD.static int
Y_CORD
The Constant Y_CORD.static int
Z_CORD
The Constant Z_CORD. -
Constructor Summary
Constructors Constructor Description gcodeGrammarLexer()
Instantiates a new gcode grammar lexer.gcodeGrammarLexer(org.antlr.runtime.CharStream input)
Instantiates a new gcode grammar lexer.gcodeGrammarLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)
Instantiates a new gcode grammar lexer. -
Method Summary
Modifier and Type Method Description void
emitErrorMessage(java.lang.String msg)
Emit error message.org.antlr.runtime.Lexer[]
getDelegates()
Gets the delegates.java.lang.String
getGrammarFileName()
Gets the grammar file name.void
mCHANGE_TOOL()
M CHANG E TOOL.void
mCIRCLE_ACW()
M CIRCL E ACW.void
mCIRCLE_CW()
M CIRCL E CW.void
mCOMMENT()
M COMMENT.void
mCOMP_DIS()
M COM P DIS.void
mCOMP_L()
M COM P L.void
mCOMP_R()
M COM P R.void
mCOORD_ABS()
M COOR D ABS.void
mCOORD_REL()
M COOR D REL.void
mCORD_DIGIT()
M COR D DIGIT.void
mDIGIT()
M DIGIT.void
mEND_PROG()
M EN D PROG.void
mFREE_MOVE()
M FRE E MOVE.void
mFREE_MOVE_SPEED()
M FRE E MOV E SPEED.void
mI_CORD()
M I CORD.void
mJ_CORD()
M J CORD.void
mJOB_MOVE()
M JO B MOVE.void
mJOB_MOVE_SPEED()
M JO B MOV E SPEED.void
mK_CORD()
M K CORD.void
mLUBE_OFF()
M LUB E OFF.void
mLUBE_ON()
M LUB E ON.void
mN_BLOCK()
M N BLOCK.void
mROT_TOOL_ACW()
M RO T TOO L ACW.void
mROT_TOOL_CW()
M RO T TOO L CW.void
mSCAN_ERROR()
M SCA N ERROR.void
mSTOP_TOOL()
M STO P TOOL.void
mTokens()
M tokens.void
mTOOL_CHANGE()
M TOO L CHANGE.void
mWS()
M WS.void
mX_CORD()
M X CORD.void
mY_CORD()
M Y CORD.void
mZ_CORD()
M Z CORD.Methods inherited from class org.antlr.runtime.Lexer
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, nextToken, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getErrorHeader, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
-
Field Details
-
EOF
public static final int EOFThe Constant EOF.- See Also:
- Constant Field Values
-
CHANGE_TOOL
public static final int CHANGE_TOOLThe Constant CHANGE_TOOL.- See Also:
- Constant Field Values
-
CIRCLE_ACW
public static final int CIRCLE_ACWThe Constant CIRCLE_ACW.- See Also:
- Constant Field Values
-
CIRCLE_CW
public static final int CIRCLE_CWThe Constant CIRCLE_CW.- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENTThe Constant COMMENT.- See Also:
- Constant Field Values
-
COMP_DIS
public static final int COMP_DISThe Constant COMP_DIS.- See Also:
- Constant Field Values
-
COMP_L
public static final int COMP_LThe Constant COMP_L.- See Also:
- Constant Field Values
-
COMP_R
public static final int COMP_RThe Constant COMP_R.- See Also:
- Constant Field Values
-
COORD_ABS
public static final int COORD_ABSThe Constant COORD_ABS.- See Also:
- Constant Field Values
-
COORD_REL
public static final int COORD_RELThe Constant COORD_REL.- See Also:
- Constant Field Values
-
CORD_DIGIT
public static final int CORD_DIGITThe Constant CORD_DIGIT.- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGITThe Constant DIGIT.- See Also:
- Constant Field Values
-
END_PROG
public static final int END_PROGThe Constant END_PROG.- See Also:
- Constant Field Values
-
FREE_MOVE
public static final int FREE_MOVEThe Constant FREE_MOVE.- See Also:
- Constant Field Values
-
FREE_MOVE_SPEED
public static final int FREE_MOVE_SPEEDThe Constant FREE_MOVE_SPEED.- See Also:
- Constant Field Values
-
I_CORD
public static final int I_CORDThe Constant I_CORD.- See Also:
- Constant Field Values
-
JOB_MOVE
public static final int JOB_MOVEThe Constant JOB_MOVE.- See Also:
- Constant Field Values
-
JOB_MOVE_SPEED
public static final int JOB_MOVE_SPEEDThe Constant JOB_MOVE_SPEED.- See Also:
- Constant Field Values
-
J_CORD
public static final int J_CORDThe Constant J_CORD.- See Also:
- Constant Field Values
-
K_CORD
public static final int K_CORDThe Constant K_CORD.- See Also:
- Constant Field Values
-
LUBE_OFF
public static final int LUBE_OFFThe Constant LUBE_OFF.- See Also:
- Constant Field Values
-
LUBE_ON
public static final int LUBE_ONThe Constant LUBE_ON.- See Also:
- Constant Field Values
-
N_BLOCK
public static final int N_BLOCKThe Constant N_BLOCK.- See Also:
- Constant Field Values
-
ROT_TOOL_ACW
public static final int ROT_TOOL_ACWThe Constant ROT_TOOL_ACW.- See Also:
- Constant Field Values
-
ROT_TOOL_CW
public static final int ROT_TOOL_CWThe Constant ROT_TOOL_CW.- See Also:
- Constant Field Values
-
SCAN_ERROR
public static final int SCAN_ERRORThe Constant SCAN_ERROR.- See Also:
- Constant Field Values
-
STOP_TOOL
public static final int STOP_TOOLThe Constant STOP_TOOL.- See Also:
- Constant Field Values
-
TOOL_CHANGE
public static final int TOOL_CHANGEThe Constant TOOL_CHANGE.- See Also:
- Constant Field Values
-
WS
public static final int WSThe Constant WS.- See Also:
- Constant Field Values
-
X_CORD
public static final int X_CORDThe Constant X_CORD.- See Also:
- Constant Field Values
-
Y_CORD
public static final int Y_CORDThe Constant Y_CORD.- See Also:
- Constant Field Values
-
Z_CORD
public static final int Z_CORDThe Constant Z_CORD.- See Also:
- Constant Field Values
-
-
Constructor Details
-
gcodeGrammarLexer
public gcodeGrammarLexer()Instantiates a new gcode grammar lexer. -
gcodeGrammarLexer
public gcodeGrammarLexer(org.antlr.runtime.CharStream input)Instantiates a new gcode grammar lexer.- Parameters:
input
- the input
-
gcodeGrammarLexer
public gcodeGrammarLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)Instantiates a new gcode grammar lexer.- Parameters:
input
- the inputstate
- the state
-
-
Method Details
-
emitErrorMessage
public void emitErrorMessage(java.lang.String msg)Emit error message.- Overrides:
emitErrorMessage
in classorg.antlr.runtime.BaseRecognizer
- Parameters:
msg
- the msg
-
getDelegates
public org.antlr.runtime.Lexer[] getDelegates()Gets the delegates.- Returns:
- the delegates
-
getGrammarFileName
public java.lang.String getGrammarFileName()Gets the grammar file name.- Overrides:
getGrammarFileName
in classorg.antlr.runtime.BaseRecognizer
- Returns:
- the grammar file name
-
mDIGIT
public final void mDIGIT() throws org.antlr.runtime.RecognitionExceptionM DIGIT.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCORD_DIGIT
public final void mCORD_DIGIT() throws org.antlr.runtime.RecognitionExceptionM COR D DIGIT.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mX_CORD
public final void mX_CORD() throws org.antlr.runtime.RecognitionExceptionM X CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mY_CORD
public final void mY_CORD() throws org.antlr.runtime.RecognitionExceptionM Y CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mZ_CORD
public final void mZ_CORD() throws org.antlr.runtime.RecognitionExceptionM Z CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mI_CORD
public final void mI_CORD() throws org.antlr.runtime.RecognitionExceptionM I CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mJ_CORD
public final void mJ_CORD() throws org.antlr.runtime.RecognitionExceptionM J CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mK_CORD
public final void mK_CORD() throws org.antlr.runtime.RecognitionExceptionM K CORD.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mN_BLOCK
public final void mN_BLOCK() throws org.antlr.runtime.RecognitionExceptionM N BLOCK.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOORD_ABS
public final void mCOORD_ABS() throws org.antlr.runtime.RecognitionExceptionM COOR D ABS.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOORD_REL
public final void mCOORD_REL() throws org.antlr.runtime.RecognitionExceptionM COOR D REL.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mFREE_MOVE
public final void mFREE_MOVE() throws org.antlr.runtime.RecognitionExceptionM FRE E MOVE.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mJOB_MOVE
public final void mJOB_MOVE() throws org.antlr.runtime.RecognitionExceptionM JO B MOVE.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCIRCLE_CW
public final void mCIRCLE_CW() throws org.antlr.runtime.RecognitionExceptionM CIRCL E CW.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCIRCLE_ACW
public final void mCIRCLE_ACW() throws org.antlr.runtime.RecognitionExceptionM CIRCL E ACW.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOMP_DIS
public final void mCOMP_DIS() throws org.antlr.runtime.RecognitionExceptionM COM P DIS.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOMP_L
public final void mCOMP_L() throws org.antlr.runtime.RecognitionExceptionM COM P L.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOMP_R
public final void mCOMP_R() throws org.antlr.runtime.RecognitionExceptionM COM P R.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mFREE_MOVE_SPEED
public final void mFREE_MOVE_SPEED() throws org.antlr.runtime.RecognitionExceptionM FRE E MOV E SPEED.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mJOB_MOVE_SPEED
public final void mJOB_MOVE_SPEED() throws org.antlr.runtime.RecognitionExceptionM JO B MOV E SPEED.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mTOOL_CHANGE
public final void mTOOL_CHANGE() throws org.antlr.runtime.RecognitionExceptionM TOO L CHANGE.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mROT_TOOL_CW
public final void mROT_TOOL_CW() throws org.antlr.runtime.RecognitionExceptionM RO T TOO L CW.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mROT_TOOL_ACW
public final void mROT_TOOL_ACW() throws org.antlr.runtime.RecognitionExceptionM RO T TOO L ACW.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mSTOP_TOOL
public final void mSTOP_TOOL() throws org.antlr.runtime.RecognitionExceptionM STO P TOOL.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCHANGE_TOOL
public final void mCHANGE_TOOL() throws org.antlr.runtime.RecognitionExceptionM CHANG E TOOL.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mLUBE_ON
public final void mLUBE_ON() throws org.antlr.runtime.RecognitionExceptionM LUB E ON.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mLUBE_OFF
public final void mLUBE_OFF() throws org.antlr.runtime.RecognitionExceptionM LUB E OFF.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mEND_PROG
public final void mEND_PROG() throws org.antlr.runtime.RecognitionExceptionM EN D PROG.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mCOMMENT
public final void mCOMMENT() throws org.antlr.runtime.RecognitionExceptionM COMMENT.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mWS
public final void mWS() throws org.antlr.runtime.RecognitionExceptionM WS.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mSCAN_ERROR
public final void mSCAN_ERROR() throws org.antlr.runtime.RecognitionExceptionM SCA N ERROR.- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-
mTokens
public void mTokens() throws org.antlr.runtime.RecognitionExceptionM tokens.- Specified by:
mTokens
in classorg.antlr.runtime.Lexer
- Throws:
org.antlr.runtime.RecognitionException
- the recognition exception
-