java_cup.interpreter
Class scanner
java_cup.interpreter.scanner
- public class scanner
Field Summary |
(package private) java.io.InputStream |
instream
the stream used to get the sequence of characters for parsing |
protected int |
next_char
single lookahead character |
Constructor Summary |
scanner()
|
scanner(java.io.InputStream is)
initialize the input stream |
Method Summary |
protected void |
advance()
advance input by one character |
java_cup.runtime.Symbol |
next_token()
recognize and return the next complete token |
instream
final java.io.InputStream instream
- the stream used to get the sequence of characters for parsing
next_char
protected int next_char
- single lookahead character
scanner
public scanner(java.io.InputStream is)
throws java.io.IOException
- initialize the input stream
scanner
public scanner()
throws java.io.IOException
advance
protected void advance()
throws java.io.IOException
- advance input by one character
next_token
public java_cup.runtime.Symbol next_token()
throws java.io.IOException
- recognize and return the next complete token