Package opendap.dap.parsers
Interface Dap2Parser.Lexer
-
- Enclosing class:
- Dap2Parser
public static interface Dap2Parser.LexerCommunication interface between the scanner and the Bison-generated parser Dap2Parser.
-
-
Field Summary
Fields Modifier and Type Field Description static intEOFToken returned by the scanner to signal the end of its input.static intSCAN_ALIASToken number,to be returned by the scanner.static intSCAN_ARRAYToken number,to be returned by the scanner.static intSCAN_ATTRToken number,to be returned by the scanner.static intSCAN_BYTEToken number,to be returned by the scanner.static intSCAN_CODEToken number,to be returned by the scanner.static intSCAN_DATAToken number,to be returned by the scanner.static intSCAN_DATASETToken number,to be returned by the scanner.static intSCAN_ERRORToken number,to be returned by the scanner.static intSCAN_FLOAT32Token number,to be returned by the scanner.static intSCAN_FLOAT64Token number,to be returned by the scanner.static intSCAN_GRIDToken number,to be returned by the scanner.static intSCAN_INT16Token number,to be returned by the scanner.static intSCAN_INT32Token number,to be returned by the scanner.static intSCAN_MAPSToken number,to be returned by the scanner.static intSCAN_MESSAGEToken number,to be returned by the scanner.static intSCAN_PROGToken number,to be returned by the scanner.static intSCAN_PTYPEToken number,to be returned by the scanner.static intSCAN_SEQUENCEToken number,to be returned by the scanner.static intSCAN_STRINGToken number,to be returned by the scanner.static intSCAN_STRUCTUREToken number,to be returned by the scanner.static intSCAN_UINT16Token number,to be returned by the scanner.static intSCAN_UINT32Token number,to be returned by the scanner.static intSCAN_URLToken number,to be returned by the scanner.static intWORD_STRINGToken number,to be returned by the scanner.static intWORD_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_ALIAS
static final int SCAN_ALIAS
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_ARRAY
static final int SCAN_ARRAY
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_ATTR
static final int SCAN_ATTR
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_BYTE
static final int SCAN_BYTE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_CODE
static final int SCAN_CODE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_DATASET
static final int SCAN_DATASET
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_DATA
static final int SCAN_DATA
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_ERROR
static final int SCAN_ERROR
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_FLOAT32
static final int SCAN_FLOAT32
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_FLOAT64
static final int SCAN_FLOAT64
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_GRID
static final int SCAN_GRID
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_INT16
static final int SCAN_INT16
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_INT32
static final int SCAN_INT32
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_MAPS
static final int SCAN_MAPS
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_MESSAGE
static final int SCAN_MESSAGE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_SEQUENCE
static final int SCAN_SEQUENCE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_STRING
static final int SCAN_STRING
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_STRUCTURE
static final int SCAN_STRUCTURE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_UINT16
static final int SCAN_UINT16
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_UINT32
static final int SCAN_UINT32
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_URL
static final int SCAN_URL
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_PTYPE
static final int SCAN_PTYPE
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
SCAN_PROG
static final int SCAN_PROG
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
WORD_WORD
static final int WORD_WORD
Token number,to be returned by the scanner.- See Also:
- Constant Field Values
-
WORD_STRING
static final int WORD_STRING
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 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:
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.
-
-