com.jeffpalm.cop5555.parse
Class Scanner
java.lang.Object
com.jeffpalm.cop5555.parse.Scanner
public class Scanner
- extends java.lang.Object
Constructor Summary |
Scanner(java.io.Reader reader)
|
Scanner(java.lang.String file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Scanner
public Scanner(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
Scanner
public Scanner(java.lang.String file)
throws java.io.IOException
- Throws:
java.io.IOException
next_token
public Token next_token()
throws java.io.IOException
- Throws:
java.io.IOException
eof
public boolean eof()
error
public void error()
dump
public void dump()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
getLine
public int getLine()
getCol
public int getCol()
getPos
public Pos getPos()
getCurrentLine
public java.lang.String getCurrentLine()
getLine
public java.lang.String getLine(int i)
getFile
public java.lang.String getFile()
getText
public java.util.Vector getText()