java_cup.simple_calc
Class scanner

java.lang.Object
  extended byjava_cup.simple_calc.scanner
All Implemented Interfaces:
Scanner

public class scanner
extends java.lang.Object
implements Scanner


Field Summary
(package private)  java.io.InputStream instream
           
protected  int next_char
           
 
Constructor Summary
scanner()
           
scanner(java.io.InputStream is)
           
 
Method Summary
protected  void advance()
           
private  void init()
           
 Symbol next_token()
          Return the next token, or null on end-of-file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instream

final java.io.InputStream instream

next_char

protected int next_char
Constructor Detail

scanner

public scanner(java.io.InputStream is)
        throws java.io.IOException

scanner

public scanner()
        throws java.io.IOException
Method Detail

advance

protected void advance()
                throws java.io.IOException
Throws:
java.io.IOException

init

private void init()
           throws java.io.IOException
Throws:
java.io.IOException

next_token

public Symbol next_token()
                  throws java.io.IOException
Description copied from interface: Scanner
Return the next token, or null on end-of-file.

Specified by:
next_token in interface Scanner
Throws:
java.io.IOException