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) void
COMMENT()
(package private) void
consume()
(package private) String
ID()
NAME : LETTER+ ; // NAME is sequence of >=1 letter(package private) String
INT()
(package private) boolean
isDIGIT()
(package private) boolean
(package private) boolean
(package private) String
STRING()
-
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
-