sir.mts.parser
Class STImpLLexer
java.lang.Object
antlr.CharScanner
sir.mts.parser.STImpLLexer
- All Implemented Interfaces:
- antlr.TokenStream, STImpLParserTokenTypes
public class STImpLLexer
- extends antlr.CharScanner
- implements STImpLParserTokenTypes, antlr.TokenStream
| Fields inherited from class antlr.CharScanner |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth |
| Fields inherited from interface sir.mts.parser.STImpLParserTokenTypes |
ASSIGN_VAR, BAR, BEGIN, DATA, DATA_ESC, DATA_NO_ESC, END, EOF, EQ, ESC, FLAG, NEWLINE, NULL_TREE_LOOKAHEAD, SET_CLASSPATH, SUBST, WS |
|
Constructor Summary |
STImpLLexer(antlr.InputBuffer ib)
|
STImpLLexer(java.io.InputStream in)
|
STImpLLexer(java.io.InputStream in,
boolean disableEscapes)
Creates a new STImpL file lexer. |
STImpLLexer(antlr.LexerSharedInputState state)
|
STImpLLexer(java.io.Reader in)
|
STImpLLexer(java.io.Reader in,
boolean disableEscapes)
Creates a new STImpL file lexer. |
|
Method Summary |
void |
mASSIGN_VAR(boolean _createToken)
|
void |
mBAR(boolean _createToken)
|
void |
mBEGIN(boolean _createToken)
|
protected void |
mDATA_ESC(boolean _createToken)
|
protected void |
mDATA_NO_ESC(boolean _createToken)
|
void |
mDATA(boolean _createToken)
|
void |
mEND(boolean _createToken)
|
void |
mEQ(boolean _createToken)
|
protected void |
mESC(boolean _createToken)
|
void |
mFLAG(boolean _createToken)
|
void |
mNEWLINE(boolean _createToken)
|
void |
mSET_CLASSPATH(boolean _createToken)
|
protected void |
mSUBST(boolean _createToken)
|
void |
mWS(boolean _createToken)
|
antlr.Token |
nextToken()
|
void |
setEscapedQuote(java.lang.String escQuote)
Sets the escape sequence to generate a single quote character
("). |
void |
setTestNumber(int testNum)
Callback function that is used by the parser to inform the lexer
what the current test number is. |
| Methods inherited from class antlr.CharScanner |
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
STImpLLexer
public STImpLLexer(java.io.InputStream in,
boolean disableEscapes)
- Creates a new STImpL file lexer.
- Parameters:
in - Stream from which the STImpL file is to be read.disableEscapes - Flag indicating whether the lexer should
ignore slash-style escapes.
STImpLLexer
public STImpLLexer(java.io.Reader in,
boolean disableEscapes)
- Creates a new STImpL file lexer.
- Parameters:
in - Reader from which the STImpL file is to be read.disableEscapes - Flag indicating whether the lexer should
ignore slash-style escapes.
STImpLLexer
public STImpLLexer(java.io.InputStream in)
STImpLLexer
public STImpLLexer(java.io.Reader in)
STImpLLexer
public STImpLLexer(antlr.InputBuffer ib)
STImpLLexer
public STImpLLexer(antlr.LexerSharedInputState state)
setEscapedQuote
public void setEscapedQuote(java.lang.String escQuote)
- Sets the escape sequence to generate a single quote character
(").
- Parameters:
escQuote - The escape sequence required to safely produce a
quote character in the target script language.
setTestNumber
public void setTestNumber(int testNum)
- Callback function that is used by the parser to inform the lexer
what the current test number is.
The lexer does not have sufficient semantic context to track
the current test number without the assistance of the parser.
This function enables the lexer to perform inline token substitution
of the current test number when it encounters test number macros.
- Parameters:
testNum - Current test case number, as reported by the parser.
nextToken
public antlr.Token nextToken()
throws antlr.TokenStreamException
- Specified by:
nextToken in interface antlr.TokenStream
- Throws:
antlr.TokenStreamException
mWS
public final void mWS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mNEWLINE
public final void mNEWLINE(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mBEGIN
public final void mBEGIN(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mEND
public final void mEND(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mBAR
public final void mBAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mEQ
public final void mEQ(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mFLAG
public final void mFLAG(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mASSIGN_VAR
public final void mASSIGN_VAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mSET_CLASSPATH
public final void mSET_CLASSPATH(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mDATA
public final void mDATA(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mDATA_NO_ESC
protected final void mDATA_NO_ESC(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mDATA_ESC
protected final void mDATA_ESC(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mESC
protected final void mESC(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mSUBST
protected final void mSUBST(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException