public void getEOL ( ) throws IOException { Token next = get ( ) ; if ( next . type != EOL && next . type != EOF ) { throw exception ( "expected EOL or EOF" ) ; } }
Gets the next token from a tokenizer which must be an EOL or EOF .