org.anarres.cpp
Class FileLexerSource
java.lang.Object
org.anarres.cpp.Source
org.anarres.cpp.LexerSource
org.anarres.cpp.FileLexerSource
- All Implemented Interfaces:
- Closeable, Iterable<Token>
public class FileLexerSource
- extends LexerSource
A Source
which lexes a file.
The input is buffered.
- See Also:
Source
FileLexerSource
public FileLexerSource(File file,
String path)
throws IOException
- Creates a new Source for lexing the given File.
Preprocessor directives are honoured within the file.
- Throws:
IOException
FileLexerSource
public FileLexerSource(File file)
throws IOException
- Throws:
IOException
FileLexerSource
public FileLexerSource(String path)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007 Shevek, Anarres. All Rights Reserved.