prolog
Class PrologLexer
java.lang.Object
|
+--java.io.StreamTokenizer
|
+--exp.Lexer
|
+--prolog.PrologLexer
- public class PrologLexer
- extends Lexer
PrologLexer
Analizzatore lessicale per il Lisp e Java
- Version:
- 01/02/2000
- Author:
- Marco Chiesi
|
Field Summary |
static java.lang.String |
anonymous
|
| Fields inherited from class java.io.StreamTokenizer |
nval,
sval,
TT_EOF,
TT_EOL,
TT_NUMBER,
TT_WORD,
ttype |
|
Method Summary |
protected Sexp |
createVar(java.lang.String s)
Creazione di una variabile (Questo metodo serve per garantire che variabili
uguali all'interno della stessa clausola siano rappresentata dalla
stessa istanza della classe Var). |
protected Sexp |
getWord()
Restituzione di un identificatore |
Sexp |
next()
Lettura del prossimo token |
| Methods inherited from class java.io.StreamTokenizer |
commentChar,
eolIsSignificant,
lineno,
lowerCaseMode,
nextToken,
ordinaryChar,
ordinaryChars,
parseNumbers,
pushBack,
quoteChar,
resetSyntax,
slashSlashComments,
slashStarComments,
toString,
whitespaceChars,
wordChars |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
anonymous
public static java.lang.String anonymous
PrologLexer
public PrologLexer(java.io.Reader r)
- Costruttori
PrologLexer
public PrologLexer(java.io.InputStream is)
throws java.lang.Exception
PrologLexer
public PrologLexer(java.lang.String s)
throws java.lang.Exception
PrologLexer
public PrologLexer(java.lang.String s,
OutputDevice msgOut)
throws java.lang.Exception
createVar
protected Sexp createVar(java.lang.String s)
- Creazione di una variabile (Questo metodo serve per garantire che variabili
uguali all'interno della stessa clausola siano rappresentata dalla
stessa istanza della classe Var).
getWord
protected Sexp getWord()
throws java.lang.Exception
- Restituzione di un identificatore
next
public Sexp next()
throws java.lang.Exception
- Lettura del prossimo token
- Overrides:
- next in class Lexer