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 final int
    Token returned by the scanner to signal the end of its input.
    static final int
    Token number,to be returned by the scanner.
    static final int
    Token number,to be returned by the scanner.
    static final int
    Token number,to be returned by the scanner.
  • Method Summary

    Modifier and Type
    Method
    Description
    Method to retrieve the semantic value of the last scanned token.
    void
    Entry point for error reporting.
    int
    Entry point for the scanner.
  • Field Details

    • EOF

      static final int EOF
      Token returned by the scanner to signal the end of its input.
      See Also:
    • SCAN_WORD

      static final int SCAN_WORD
      Token number,to be returned by the scanner.
      See Also:
    • SCAN_STRINGCONST

      static final int SCAN_STRINGCONST
      Token number,to be returned by the scanner.
      See Also:
    • SCAN_NUMBERCONST

      static final int SCAN_NUMBERCONST
      Token number,to be returned by the scanner.
      See Also:
  • Method Details

    • 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.