org.anarres.cpp
Class InputLexerSource

java.lang.Object
  extended by org.anarres.cpp.Source
      extended by org.anarres.cpp.LexerSource
          extended by org.anarres.cpp.InputLexerSource
All Implemented Interfaces:
Closeable, Iterable<Token>

public class InputLexerSource
extends LexerSource

A Source which lexes a file. The input is buffered.

See Also:
Source

Constructor Summary
InputLexerSource(InputStream input)
          Creates a new Source for lexing the given Reader.
 
Method Summary
 String toString()
           
 
Methods inherited from class org.anarres.cpp.LexerSource
close, getColumn, getLine, token
 
Methods inherited from class org.anarres.cpp.Source
error, iterator, setListener, skipline, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputLexerSource

public InputLexerSource(InputStream input)
                 throws IOException
Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.

Throws:
IOException
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007 Shevek, Anarres. All Rights Reserved.