Interface CeParser.Lexer

  • Enclosing class:
    CeParser

    public static interface CeParser.Lexer
    Communication interface between the scanner and the Bison-generated parser CeParser.
    • 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_NUMBERCONST
      Token number,to be returned by the scanner.
      static int SCAN_STRINGCONST
      Token number,to be returned by the scanner.
      static int SCAN_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_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.