exp
Class Lexer
java.lang.Object
|
+--java.io.StreamTokenizer
|
+--exp.Lexer
- Direct Known Subclasses:
- LispLexer, PrologLexer
- public abstract class Lexer
- extends java.io.StreamTokenizer
Lexer
Analizzatore lessicale genreico
- Version:
- 8/12/1999
- Author:
- Marco Chiesi
| Fields inherited from class java.io.StreamTokenizer |
nval,
sval,
TT_EOF,
TT_EOL,
TT_NUMBER,
TT_WORD,
ttype |
|
Method Summary |
abstract Sexp |
next()
Restituzione del prossimo token |
void |
print(java.lang.String s)
Scrittura di un messaggio in output |
void |
println(java.lang.String s)
|
| 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 |
curToken
protected Sexp curToken
- Token corrente
msgOut
protected OutputDevice msgOut
- Dispositivo di output
Lexer
public Lexer(java.io.Reader r)
- Costruttori
Lexer
public Lexer(java.io.InputStream is)
throws java.lang.Exception
Lexer
public Lexer(java.lang.String s)
throws java.lang.Exception
Lexer
public Lexer(java.lang.String s,
OutputDevice msgOut)
throws java.lang.Exception
print
public void print(java.lang.String s)
- Scrittura di un messaggio in output
println
public void println(java.lang.String s)
next
public abstract Sexp next()
throws java.lang.Exception
- Restituzione del prossimo token