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 intCHANGE_TOOLThe Constant CHANGE_TOOL.static intCIRCLE_ACWThe Constant CIRCLE_ACW.static intCIRCLE_CWThe Constant CIRCLE_CW.static intCOMMENTThe Constant COMMENT.static intCOMP_DISThe Constant COMP_DIS.static intCOMP_LThe Constant COMP_L.static intCOMP_RThe Constant COMP_R.static intCOORD_ABSThe Constant COORD_ABS.static intCOORD_RELThe Constant COORD_REL.static intCORD_DIGITThe Constant CORD_DIGIT.static intDIGITThe Constant DIGIT.static intEND_PROGThe Constant END_PROG.static intEOFThe Constant EOF.static intFREE_MOVEThe Constant FREE_MOVE.static intFREE_MOVE_SPEEDThe Constant FREE_MOVE_SPEED.static intI_CORDThe Constant I_CORD.static intJ_CORDThe Constant J_CORD.static intJOB_MOVEThe Constant JOB_MOVE.static intJOB_MOVE_SPEEDThe Constant JOB_MOVE_SPEED.static intK_CORDThe Constant K_CORD.static intLUBE_OFFThe Constant LUBE_OFF.static intLUBE_ONThe Constant LUBE_ON.static intN_BLOCKThe Constant N_BLOCK.static intROT_TOOL_ACWThe Constant ROT_TOOL_ACW.static intROT_TOOL_CWThe Constant ROT_TOOL_CW.static intSCAN_ERRORThe Constant SCAN_ERROR.static intSTOP_TOOLThe Constant STOP_TOOL.static intTOOL_CHANGEThe Constant TOOL_CHANGE.static intWSThe Constant WS.static intX_CORDThe Constant X_CORD.static intY_CORDThe Constant Y_CORD.static intZ_CORDThe 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 voidemitErrorMessage(java.lang.String msg)Emit error message.org.antlr.runtime.Lexer[]getDelegates()Gets the delegates.java.lang.StringgetGrammarFileName()Gets the grammar file name.voidmCHANGE_TOOL()M CHANG E TOOL.voidmCIRCLE_ACW()M CIRCL E ACW.voidmCIRCLE_CW()M CIRCL E CW.voidmCOMMENT()M COMMENT.voidmCOMP_DIS()M COM P DIS.voidmCOMP_L()M COM P L.voidmCOMP_R()M COM P R.voidmCOORD_ABS()M COOR D ABS.voidmCOORD_REL()M COOR D REL.voidmCORD_DIGIT()M COR D DIGIT.voidmDIGIT()M DIGIT.voidmEND_PROG()M EN D PROG.voidmFREE_MOVE()M FRE E MOVE.voidmFREE_MOVE_SPEED()M FRE E MOV E SPEED.voidmI_CORD()M I CORD.voidmJ_CORD()M J CORD.voidmJOB_MOVE()M JO B MOVE.voidmJOB_MOVE_SPEED()M JO B MOV E SPEED.voidmK_CORD()M K CORD.voidmLUBE_OFF()M LUB E OFF.voidmLUBE_ON()M LUB E ON.voidmN_BLOCK()M N BLOCK.voidmROT_TOOL_ACW()M RO T TOO L ACW.voidmROT_TOOL_CW()M RO T TOO L CW.voidmSCAN_ERROR()M SCA N ERROR.voidmSTOP_TOOL()M STO P TOOL.voidmTokens()M tokens.voidmTOOL_CHANGE()M TOO L CHANGE.voidmWS()M WS.voidmX_CORD()M X CORD.voidmY_CORD()M Y CORD.voidmZ_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, traceOutMethods 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:
emitErrorMessagein 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:
getGrammarFileNamein 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:
mTokensin classorg.antlr.runtime.Lexer- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-