Interface CeParser.Lexer
-
- Enclosing class:
- CeParser
public static interface CeParser.LexerCommunication interface between the scanner and the Bison-generated parser CeParser.
-
-
Field Summary
Fields Modifier and Type Field Description static intEOFToken returned by the scanner to signal the end of its input.static intSCAN_NUMBERCONSTToken number,to be returned by the scanner.static intSCAN_STRINGCONSTToken number,to be returned by the scanner.static intSCAN_WORDToken number,to be returned by the scanner.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetLVal()Method to retrieve the semantic value of the last scanned token.voidyyerror(String msg)Entry point for error reporting.intyylex()Entry point for the scanner.
-
-
-
Field Detail
-
EOF
static final int EOF
Token returned by the scanner to signal the end of its input.- See Also:
- Constant Field Values
-
SCAN_WORD
static final int SCAN_WORD
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_STRINGCONST
static final int SCAN_STRINGCONST
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_NUMBERCONST
static final int SCAN_NUMBERCONST
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLVal
Object getLVal()
Method to retrieve the semantic value of the last scanned token.- Returns:
- the semantic value of the last scanned token.
-
yylex
int yylex() throws opendap.dap.parsers.ParseException
Entry point for the scanner. Returns the token identifier corresponding to the next token and prepares to return the semantic value of the token.- Returns:
- the token identifier corresponding to the next token.
- Throws:
opendap.dap.parsers.ParseException
-
yyerror
void yyerror(String msg)
Entry point for error reporting. Emits an error in a user-defined way.- Parameters:
msg- The string for the error message.
-
-