lisp
Class LispLexer

java.lang.Object
  |
  +--java.io.StreamTokenizer
        |
        +--exp.Lexer
              |
              +--lisp.LispLexer

public class LispLexer
extends Lexer

LispLexer Analizzatore lessicale per il Lisp e Java

Version:
8/12/1999
Author:
Marco Chiesi

Fields inherited from class exp.Lexer
curToken, msgOut
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
LispLexer(java.io.InputStream is)
           
LispLexer(java.io.Reader r)
          Costruttori
LispLexer(java.lang.String s)
           
LispLexer(java.lang.String s, OutputDevice msgOut)
           
 
Method Summary
protected  Sexp getWord(boolean quoted)
          Restituzione del token corrente (in caso di WORD)
 Sexp next()
          Restituzione del prossimo token
 
Methods inherited from class exp.Lexer
print, println
 
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
 

Constructor Detail

LispLexer

public LispLexer(java.io.Reader r)
Costruttori

LispLexer

public LispLexer(java.io.InputStream is)
          throws java.lang.Exception

LispLexer

public LispLexer(java.lang.String s)
          throws java.lang.Exception

LispLexer

public LispLexer(java.lang.String s,
                 OutputDevice msgOut)
          throws java.lang.Exception
Method Detail

getWord

protected Sexp getWord(boolean quoted)
Restituzione del token corrente (in caso di WORD)

next

public Sexp next()
          throws java.lang.Exception
Restituzione del prossimo token
Overrides:
next in class Lexer