org.anarres.cpp
Class LexerSource
java.lang.Object
org.anarres.cpp.Source
org.anarres.cpp.LexerSource
- All Implemented Interfaces:
- Iterable<Token>
- Direct Known Subclasses:
- FileLexerSource, StringLexerSource
public class LexerSource
- extends Source
Does not handle digraphs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexerSource
public LexerSource(Reader r,
boolean ppvalid)
setFeatures
public void setFeatures(Set<Feature> features)
- Overrides:
setFeatures
in class Source
getLine
public int getLine()
- Overrides:
getLine
in class Source
getColumn
public int getColumn()
token
public Token token()
throws IOException,
LexerException
- Description copied from class:
Source
- Returns the next Token parsed from this input stream.
- Specified by:
token
in class Source
- Throws:
IOException
LexerException
- See Also:
Token
Copyright © 2007 Shevek, Anarres. All Rights Reserved.