org.jruby.parser
Interface DefaultRubyParser.yyInput

Enclosing class:
DefaultRubyParser

public static interface DefaultRubyParser.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
 boolean advance()
          move on to next token.
 int token()
          classifies current token.
 java.lang.Object value()
          associated with current token.
 

Method Detail

advance

boolean advance()
                throws java.io.IOException
move on to next token.

Returns:
false if positioned beyond tokens.
Throws:
java.io.IOException - on input error.

token

int token()
classifies current token. Should not be called if advance() returned false.

Returns:
current %token or single character.

value

java.lang.Object value()
associated with current token. Should not be called if advance() returned false.

Returns:
value for token().


Copyright © 2002-2007 JRuby Team. All Rights Reserved.