Package org.antlr.tool
Class GrammarSpelunker.Scanner
java.lang.Object
org.antlr.tool.GrammarSpelunker.Scanner
- Enclosing class:
GrammarSpelunker
Strip comments and then return stream of words and
tokens {';', ':', '{', '}'}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidCOMMENT()(package private) voidconsume()(package private) StringID()NAME : LETTER+ ; // NAME is sequence of >=1 letter(package private) StringINT()(package private) booleanisDIGIT()(package private) boolean(package private) boolean(package private) StringSTRING()
-
Field Details
-
EOF
public static final int EOF- See Also:
-
input
Reader input -
c
int c
-
-
Constructor Details
-
Scanner
- Throws:
IOException
-
-
Method Details
-
isDIGIT
boolean isDIGIT() -
isID_START
boolean isID_START() -
isID_LETTER
boolean isID_LETTER() -
consume
- Throws:
IOException
-
nextToken
- Throws:
IOException
-
ID
NAME : LETTER+ ; // NAME is sequence of >=1 letter- Throws:
IOException
-
INT
- Throws:
IOException
-
STRING
- Throws:
IOException
-
COMMENT
- Throws:
IOException
-