Package mondrian.olap
Class Scanner
java.lang.Object
mondrian.olap.Scanner
- Direct Known Subclasses:
StringScanner
Lexical analyzer for MDX.
- Author:
- jhyde, 20 January, 1999
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getChar()
Read a character from input, returning -1 if end of input.static String[][]
Returns the list of comment delimiters.static boolean
Returns the current nested comments state.void
init()
Initialize the scannerlookupReserved
(int i) return the name of the reserved word whose token code is "i"java_cup.runtime.Symbol
Recognizes and returns the next complete token.
-
Field Details
-
nextChar
protected int nextCharsingle lookahead character -
debug
protected boolean debug
-
-
Method Details
-
getNestedCommentsState
public static boolean getNestedCommentsState()Returns the current nested comments state. -
getCommentDelimiters
Returns the list of comment delimiters. -
getChar
Read a character from input, returning -1 if end of input.- Throws:
IOException
-
init
Initialize the scanner- Throws:
IOException
-
lookupReserved
return the name of the reserved word whose token code is "i" -
next_token
Recognizes and returns the next complete token.- Throws:
IOException
-