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.

    Fields inherited from class org.antlr.runtime.Lexer

    input

    Fields inherited from class org.antlr.runtime.BaseRecognizer

    DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 input
      state - the state
  • Method Details

    • emitErrorMessage

      public void emitErrorMessage​(java.lang.String msg)
      Emit error message.
      Overrides:
      emitErrorMessage in class org.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 class org.antlr.runtime.BaseRecognizer
      Returns:
      the grammar file name
    • mDIGIT

      public final void mDIGIT() throws org.antlr.runtime.RecognitionException
      M DIGIT.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCORD_DIGIT

      public final void mCORD_DIGIT() throws org.antlr.runtime.RecognitionException
      M COR D DIGIT.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mX_CORD

      public final void mX_CORD() throws org.antlr.runtime.RecognitionException
      M X CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mY_CORD

      public final void mY_CORD() throws org.antlr.runtime.RecognitionException
      M Y CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mZ_CORD

      public final void mZ_CORD() throws org.antlr.runtime.RecognitionException
      M Z CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mI_CORD

      public final void mI_CORD() throws org.antlr.runtime.RecognitionException
      M I CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mJ_CORD

      public final void mJ_CORD() throws org.antlr.runtime.RecognitionException
      M J CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mK_CORD

      public final void mK_CORD() throws org.antlr.runtime.RecognitionException
      M K CORD.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mN_BLOCK

      public final void mN_BLOCK() throws org.antlr.runtime.RecognitionException
      M N BLOCK.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOORD_ABS

      public final void mCOORD_ABS() throws org.antlr.runtime.RecognitionException
      M COOR D ABS.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOORD_REL

      public final void mCOORD_REL() throws org.antlr.runtime.RecognitionException
      M COOR D REL.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mFREE_MOVE

      public final void mFREE_MOVE() throws org.antlr.runtime.RecognitionException
      M FRE E MOVE.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mJOB_MOVE

      public final void mJOB_MOVE() throws org.antlr.runtime.RecognitionException
      M JO B MOVE.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCIRCLE_CW

      public final void mCIRCLE_CW() throws org.antlr.runtime.RecognitionException
      M CIRCL E CW.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCIRCLE_ACW

      public final void mCIRCLE_ACW() throws org.antlr.runtime.RecognitionException
      M CIRCL E ACW.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOMP_DIS

      public final void mCOMP_DIS() throws org.antlr.runtime.RecognitionException
      M COM P DIS.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOMP_L

      public final void mCOMP_L() throws org.antlr.runtime.RecognitionException
      M COM P L.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOMP_R

      public final void mCOMP_R() throws org.antlr.runtime.RecognitionException
      M COM P R.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mFREE_MOVE_SPEED

      public final void mFREE_MOVE_SPEED() throws org.antlr.runtime.RecognitionException
      M 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.RecognitionException
      M JO B MOV E SPEED.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mTOOL_CHANGE

      public final void mTOOL_CHANGE() throws org.antlr.runtime.RecognitionException
      M TOO L CHANGE.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mROT_TOOL_CW

      public final void mROT_TOOL_CW() throws org.antlr.runtime.RecognitionException
      M 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.RecognitionException
      M RO T TOO L ACW.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mSTOP_TOOL

      public final void mSTOP_TOOL() throws org.antlr.runtime.RecognitionException
      M STO P TOOL.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCHANGE_TOOL

      public final void mCHANGE_TOOL() throws org.antlr.runtime.RecognitionException
      M CHANG E TOOL.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mLUBE_ON

      public final void mLUBE_ON() throws org.antlr.runtime.RecognitionException
      M LUB E ON.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mLUBE_OFF

      public final void mLUBE_OFF() throws org.antlr.runtime.RecognitionException
      M LUB E OFF.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mEND_PROG

      public final void mEND_PROG() throws org.antlr.runtime.RecognitionException
      M EN D PROG.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mCOMMENT

      public final void mCOMMENT() throws org.antlr.runtime.RecognitionException
      M COMMENT.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mWS

      public final void mWS() throws org.antlr.runtime.RecognitionException
      M WS.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mSCAN_ERROR

      public final void mSCAN_ERROR() throws org.antlr.runtime.RecognitionException
      M SCA N ERROR.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • mTokens

      public void mTokens() throws org.antlr.runtime.RecognitionException
      M tokens.
      Specified by:
      mTokens in class org.antlr.runtime.Lexer
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception