Package org.intellij.grammar.parser
Class _BnfLexer
- java.lang.Object
-
- org.intellij.grammar.parser._BnfLexer
-
- All Implemented Interfaces:
com.intellij.lexer.FlexLexer
public class _BnfLexer extends java.lang.Object implements com.intellij.lexer.FlexLexerThis class is a scanner generated by JFlex 1.7.0-SNAPSHOT from the specification file _BnfLexer.flex
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.intellij.psi.tree.IElementTypeadvance()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.intgetTokenEnd()intgetTokenStart()voidreset(java.lang.CharSequence buffer, int start, int end, int initialState)voidyybegin(int newState)Enters a new lexical statecharyycharat(int pos)Returns the character at position pos from the matched text.intyylength()Returns the length of the matched text region.voidyypushback(int number)Pushes the specified amount of characters back into the input stream.intyystate()Returns the current lexical state.java.lang.CharSequenceyytext()Returns the text matched by the current regular expression.static intZZ_CMAP(int ch)Translates characters to character classes Chosen bits are [11, 6, 4] Total runtime size is 13760 bytes
-
-
-
Field Detail
-
YYEOF
public static final int YYEOF
This character denotes the end of file- See Also:
- Constant Field Values
-
YYINITIAL
public static final int YYINITIAL
lexical states- See Also:
- Constant Field Values
-
-
Method Detail
-
ZZ_CMAP
public static int ZZ_CMAP(int ch)
Translates characters to character classes Chosen bits are [11, 6, 4] Total runtime size is 13760 bytes
-
getTokenStart
public final int getTokenStart()
- Specified by:
getTokenStartin interfacecom.intellij.lexer.FlexLexer
-
getTokenEnd
public final int getTokenEnd()
- Specified by:
getTokenEndin interfacecom.intellij.lexer.FlexLexer
-
reset
public void reset(java.lang.CharSequence buffer, int start, int end, int initialState)- Specified by:
resetin interfacecom.intellij.lexer.FlexLexer
-
yystate
public final int yystate()
Returns the current lexical state.- Specified by:
yystatein interfacecom.intellij.lexer.FlexLexer
-
yybegin
public final void yybegin(int newState)
Enters a new lexical state- Specified by:
yybeginin interfacecom.intellij.lexer.FlexLexer- Parameters:
newState- the new lexical state
-
yytext
public final java.lang.CharSequence yytext()
Returns the text matched by the current regular expression.
-
yycharat
public final char yycharat(int pos)
Returns the character at position pos from the matched text. It is equivalent to yytext().charAt(pos), but faster- Parameters:
pos- the position of the character to fetch. A value from 0 to yylength()-1.- Returns:
- the character at position pos
-
yylength
public final int yylength()
Returns the length of the matched text region.
-
yypushback
public void yypushback(int number)
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method- Parameters:
number- the number of characters to be read again. This number must not be greater than yylength()!
-
advance
public com.intellij.psi.tree.IElementType advance() throws java.io.IOExceptionResumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.- Specified by:
advancein interfacecom.intellij.lexer.FlexLexer- Returns:
- the next token
- Throws:
java.io.IOException- if any I/O-Error occurs
-
-