Package shaperCompiler
Class shaperGrammarLexer
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.Lexer
shaperCompiler.shaperGrammarLexer
- All Implemented Interfaces:
org.antlr.runtime.TokenSource
public class shaperGrammarLexer
extends org.antlr.runtime.Lexer
The Class shaperGrammarLexer.
-
Field Summary
Fields Modifier and Type Field Description static intCBThe Constant CB.static intCIRCLEThe Constant CIRCLE.static intCIRCLE_CThe Constant CIRCLE_C.static intCIRCLE_RThe Constant CIRCLE_R.static intCOMMENTThe Constant COMMENT.static intCONFIGThe Constant CONFIG.static intDIGITThe Constant DIGIT.static intEOFThe Constant EOF.static intJOB_SPEEDThe Constant JOB_SPEED.static intLUBE_SETThe Constant LUBE_SET.static intMOVE_SPEEDThe Constant MOVE_SPEED.static intOBThe Constant OB.static intON_OFFThe Constant ON_OFF.static intP1The Constant P1.static intP2The Constant P2.static intP3The Constant P3.static intRECTANGLEThe Constant RECTANGLE.static intRECTANGLE_BThe Constant RECTANGLE_B.static intRECTANGLE_HThe Constant RECTANGLE_H.static intRECTANGLE_PThe Constant RECTANGLE_P.static intSCAN_ERRORThe Constant SCAN_ERROR.static intSQUAREThe Constant SQUARE.static intSQUARE_CONFIGThe Constant SQUARE_CONFIG.static intSQUARE_LThe Constant SQUARE_L.static intTRIANGLEThe Constant TRIANGLE.static intWSThe Constant WS.static intX_CORDThe Constant X_CORD.static intY_CORDThe Constant Y_CORD. -
Constructor Summary
Constructors Constructor Description shaperGrammarLexer()Instantiates a new shaper grammar lexer.shaperGrammarLexer(org.antlr.runtime.CharStream input)Instantiates a new shaper grammar lexer.shaperGrammarLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)Instantiates a new shaper grammar lexer. -
Method Summary
Modifier and Type Method Description org.antlr.runtime.Lexer[]getDelegates()Gets the delegates.java.lang.StringgetGrammarFileName()Gets the grammar file name.voidmCB()M CB.voidmCIRCLE()M CIRCLE.voidmCIRCLE_C()M CIRCL E C.voidmCIRCLE_R()M CIRCL E R.voidmCOMMENT()M COMMENT.voidmCONFIG()M CONFIG.voidmDIGIT()M DIGIT.voidmJOB_SPEED()M JO B SPEED.voidmLUBE_SET()M LUB E SET.voidmMOVE_SPEED()M MOV E SPEED.voidmOB()M OB.voidmON_OFF()M O N OFF.voidmP1()M P 1.voidmP2()M P 2.voidmP3()M P 3.voidmRECTANGLE()M RECTANGLE.voidmRECTANGLE_B()M RECTANGL E B.voidmRECTANGLE_H()M RECTANGL E H.voidmRECTANGLE_P()M RECTANGL E P.voidmSCAN_ERROR()M SCA N ERROR.voidmSQUARE()M SQUARE.voidmSQUARE_CONFIG()M SQUAR E CONFIG.voidmSQUARE_L()M SQUAR E L.voidmTokens()M tokens.voidmTRIANGLE()M TRIANGLE.voidmWS()M WS.voidmX_CORD()M X CORD.voidmY_CORD()M Y 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, emitErrorMessage, 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
-
CB
public static final int CBThe Constant CB.- See Also:
- Constant Field Values
-
CIRCLE
public static final int CIRCLEThe Constant CIRCLE.- See Also:
- Constant Field Values
-
CIRCLE_C
public static final int CIRCLE_CThe Constant CIRCLE_C.- See Also:
- Constant Field Values
-
CIRCLE_R
public static final int CIRCLE_RThe Constant CIRCLE_R.- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENTThe Constant COMMENT.- See Also:
- Constant Field Values
-
CONFIG
public static final int CONFIGThe Constant CONFIG.- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGITThe Constant DIGIT.- See Also:
- Constant Field Values
-
JOB_SPEED
public static final int JOB_SPEEDThe Constant JOB_SPEED.- See Also:
- Constant Field Values
-
LUBE_SET
public static final int LUBE_SETThe Constant LUBE_SET.- See Also:
- Constant Field Values
-
MOVE_SPEED
public static final int MOVE_SPEEDThe Constant MOVE_SPEED.- See Also:
- Constant Field Values
-
OB
public static final int OBThe Constant OB.- See Also:
- Constant Field Values
-
ON_OFF
public static final int ON_OFFThe Constant ON_OFF.- See Also:
- Constant Field Values
-
P1
public static final int P1The Constant P1.- See Also:
- Constant Field Values
-
P2
public static final int P2The Constant P2.- See Also:
- Constant Field Values
-
P3
public static final int P3The Constant P3.- See Also:
- Constant Field Values
-
RECTANGLE
public static final int RECTANGLEThe Constant RECTANGLE.- See Also:
- Constant Field Values
-
RECTANGLE_B
public static final int RECTANGLE_BThe Constant RECTANGLE_B.- See Also:
- Constant Field Values
-
RECTANGLE_H
public static final int RECTANGLE_HThe Constant RECTANGLE_H.- See Also:
- Constant Field Values
-
RECTANGLE_P
public static final int RECTANGLE_PThe Constant RECTANGLE_P.- See Also:
- Constant Field Values
-
SCAN_ERROR
public static final int SCAN_ERRORThe Constant SCAN_ERROR.- See Also:
- Constant Field Values
-
SQUARE
public static final int SQUAREThe Constant SQUARE.- See Also:
- Constant Field Values
-
SQUARE_CONFIG
public static final int SQUARE_CONFIGThe Constant SQUARE_CONFIG.- See Also:
- Constant Field Values
-
SQUARE_L
public static final int SQUARE_LThe Constant SQUARE_L.- See Also:
- Constant Field Values
-
TRIANGLE
public static final int TRIANGLEThe Constant TRIANGLE.- 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
-
-
Constructor Details
-
shaperGrammarLexer
public shaperGrammarLexer()Instantiates a new shaper grammar lexer. -
shaperGrammarLexer
public shaperGrammarLexer(org.antlr.runtime.CharStream input)Instantiates a new shaper grammar lexer.- Parameters:
input- the input
-
shaperGrammarLexer
public shaperGrammarLexer(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)Instantiates a new shaper grammar lexer.- Parameters:
input- the inputstate- the state
-
-
Method Details
-
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
-
mCIRCLE
public final void mCIRCLE() throws org.antlr.runtime.RecognitionExceptionM CIRCLE.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mSQUARE
public final void mSQUARE() throws org.antlr.runtime.RecognitionExceptionM SQUARE.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mRECTANGLE
public final void mRECTANGLE() throws org.antlr.runtime.RecognitionExceptionM RECTANGLE.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mTRIANGLE
public final void mTRIANGLE() throws org.antlr.runtime.RecognitionExceptionM TRIANGLE.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mCIRCLE_C
public final void mCIRCLE_C() throws org.antlr.runtime.RecognitionExceptionM CIRCL E C.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mCIRCLE_R
public final void mCIRCLE_R() throws org.antlr.runtime.RecognitionExceptionM CIRCL E R.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mSQUARE_L
public final void mSQUARE_L() throws org.antlr.runtime.RecognitionExceptionM SQUAR E L.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mRECTANGLE_P
public final void mRECTANGLE_P() throws org.antlr.runtime.RecognitionExceptionM RECTANGL E P.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mRECTANGLE_B
public final void mRECTANGLE_B() throws org.antlr.runtime.RecognitionExceptionM RECTANGL E B.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mRECTANGLE_H
public final void mRECTANGLE_H() throws org.antlr.runtime.RecognitionExceptionM RECTANGL E H.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mP1
public final void mP1() throws org.antlr.runtime.RecognitionExceptionM P 1.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mP2
public final void mP2() throws org.antlr.runtime.RecognitionExceptionM P 2.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mP3
public final void mP3() throws org.antlr.runtime.RecognitionExceptionM P 3.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mSQUARE_CONFIG
public final void mSQUARE_CONFIG() throws org.antlr.runtime.RecognitionExceptionM SQUAR E CONFIG.- 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
-
mCONFIG
public final void mCONFIG() throws org.antlr.runtime.RecognitionExceptionM CONFIG.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mMOVE_SPEED
public final void mMOVE_SPEED() throws org.antlr.runtime.RecognitionExceptionM MOV E SPEED.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mJOB_SPEED
public final void mJOB_SPEED() throws org.antlr.runtime.RecognitionExceptionM JO B SPEED.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mLUBE_SET
public final void mLUBE_SET() throws org.antlr.runtime.RecognitionExceptionM LUB E SET.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mON_OFF
public final void mON_OFF() throws org.antlr.runtime.RecognitionExceptionM O N OFF.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mOB
public final void mOB() throws org.antlr.runtime.RecognitionExceptionM OB.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mCB
public final void mCB() throws org.antlr.runtime.RecognitionExceptionM CB.- Throws:
org.antlr.runtime.RecognitionException- the recognition exception
-
mDIGIT
public final void mDIGIT() throws org.antlr.runtime.RecognitionExceptionM DIGIT.- 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
-