Package org.intellij.grammar.parser
Class _BnfLexer
java.lang.Object
org.intellij.grammar.parser._BnfLexer
- All Implemented Interfaces:
com.intellij.lexer.FlexLexer
This class is a scanner generated by
JFlex 1.7.0-SNAPSHOT
from the specification file _BnfLexer.flex
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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.final intfinal intvoidreset(CharSequence buffer, int start, int end, int initialState) final voidyybegin(int newState) Enters a new lexical statefinal charyycharat(int pos) Returns the character at position pos from the matched text.final intyylength()Returns the length of the matched text region.voidyypushback(int number) Pushes the specified amount of characters back into the input stream.final intyystate()Returns the current lexical state.final 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 Details
-
YYEOF
public static final int YYEOFThis character denotes the end of file- See Also:
-
YYINITIAL
public static final int YYINITIALlexical states- See Also:
-
-
Constructor Details
-
_BnfLexer
public _BnfLexer() -
_BnfLexer
Creates a new scanner- Parameters:
in- the java.io.Reader to read input from.
-
-
Method Details
-
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
- 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
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
Resumes 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:
IOException- if any I/O-Error occurs
-