Interface Dap2Parser.Lexer

  • Enclosing class:
    Dap2Parser

    public static interface Dap2Parser.Lexer
    Communication interface between the scanner and the Bison-generated parser Dap2Parser.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int EOF
      Token returned by the scanner to signal the end of its input.
      static int SCAN_ALIAS
      Token number,to be returned by the scanner.
      static int SCAN_ARRAY
      Token number,to be returned by the scanner.
      static int SCAN_ATTR
      Token number,to be returned by the scanner.
      static int SCAN_BYTE
      Token number,to be returned by the scanner.
      static int SCAN_CODE
      Token number,to be returned by the scanner.
      static int SCAN_DATA
      Token number,to be returned by the scanner.
      static int SCAN_DATASET
      Token number,to be returned by the scanner.
      static int SCAN_ERROR
      Token number,to be returned by the scanner.
      static int SCAN_FLOAT32
      Token number,to be returned by the scanner.
      static int SCAN_FLOAT64
      Token number,to be returned by the scanner.
      static int SCAN_GRID
      Token number,to be returned by the scanner.
      static int SCAN_INT16
      Token number,to be returned by the scanner.
      static int SCAN_INT32
      Token number,to be returned by the scanner.
      static int SCAN_MAPS
      Token number,to be returned by the scanner.
      static int SCAN_MESSAGE
      Token number,to be returned by the scanner.
      static int SCAN_PROG
      Token number,to be returned by the scanner.
      static int SCAN_PTYPE
      Token number,to be returned by the scanner.
      static int SCAN_SEQUENCE
      Token number,to be returned by the scanner.
      static int SCAN_STRING
      Token number,to be returned by the scanner.
      static int SCAN_STRUCTURE
      Token number,to be returned by the scanner.
      static int SCAN_UINT16
      Token number,to be returned by the scanner.
      static int SCAN_UINT32
      Token number,to be returned by the scanner.
      static int SCAN_URL
      Token number,to be returned by the scanner.
      static int WORD_STRING
      Token number,to be returned by the scanner.
      static int WORD_WORD
      Token number,to be returned by 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.