prolog.syntax
Class Scanner
java.lang.Object
|
+--prolog.syntax.Scanner
- Direct Known Subclasses:
- ModelScanner
- public class Scanner
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
source
protected java.io.Reader source
currentWord
protected java.lang.StringBuffer currentWord
currentChar
protected int currentChar
currentLine
protected int currentLine
currentSign
protected int currentSign
symbolTable
protected ISymbolTable symbolTable
Scanner
public Scanner(ISymbolTable table)
reset
public void reset()
openDocument
public void openDocument(java.io.File f)
throws java.io.FileNotFoundException
openDocument
public void openDocument(java.lang.String text)
openDocument
public void openDocument(java.io.Reader input)
close
public void close()
throws java.io.IOException
getCurrentChar
public int getCurrentChar()
getCurrentWord
public int getCurrentWord()
input
public int input()
getCurrentLine
public int getCurrentLine()
getCurrentSign
public int getCurrentSign()
skipWhiteSpace
public void skipWhiteSpace()
test
public boolean test(char c)
isCurrentChar
public boolean isCurrentChar()
isCurrentWhiteSpace
public boolean isCurrentWhiteSpace()
scanWord
public void scanWord()