Package org.yecht

Interface DefaultYAMLParser.yyInput

All Known Implementing Classes:
BytecodeScanner, TokenScanner
Enclosing class:
DefaultYAMLParser

public static interface DefaultYAMLParser.yyInput
must be implemented by a scanner object to supply input to the parser. Nested for convenience, does not depend on parser class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    move on to next token.
    int
    classifies current token.
    associated with current token.
  • Method Details

    • advance

      boolean advance() throws IOException
      move on to next token.
      Returns:
      false if positioned beyond tokens.
      Throws:
      IOException - on input error.
      IOException
    • token

      int token()
      classifies current token. Should not be called if advance() returned false.
      Returns:
      current %token or single character.
    • value

      Object value()
      associated with current token. Should not be called if advance() returned false.
      Returns:
      value for token().