org.anarres.cpp
Class LexerSource

java.lang.Object
  extended by org.anarres.cpp.Source
      extended by org.anarres.cpp.LexerSource
All Implemented Interfaces:
Iterable<Token>
Direct Known Subclasses:
FileLexerSource, StringLexerSource

public class LexerSource
extends Source

Does not handle digraphs.


Constructor Summary
LexerSource(Reader r, boolean ppvalid)
           
 
Method Summary
 int getColumn()
           
 int getLine()
           
 Token token()
          Returns the next Token parsed from this input stream.
 
Methods inherited from class org.anarres.cpp.Source
error, iterator, skipline, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexerSource

public LexerSource(Reader r,
                   boolean ppvalid)
Method Detail

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.