lisp
Class LispParser

java.lang.Object
  |
  +--exp.Parser
        |
        +--lisp.LispParser

public class LispParser
extends Parser

LispParser Analizzatore sintattico che accetta la sintassi LISP

Version:
8/12/1999
Author:
Marco Chiesi

Fields inherited from class exp.Parser
curToken, lex, msgOut
 
Constructor Summary
LispParser(Lexer lex)
          Costruttore
LispParser(Lexer lex, OutputDevice msgOut)
          Costruttore
 
Method Summary
protected  Sexp atomSexp()
          Lettura di un'espressione atomica
protected  Sexp consSexp()
          Lettura del primo elemento di una coppia o una lista
protected  Sexp listSexp()
          Lettura dei restanti elementi di una lista
protected  Sexp pairSexp()
          Lettura del secondo elemento di una coppia
protected  Sexp readSexp()
          Lettura di un'espressione
protected  Sexp sexp()
          Lettura di un'espressione simbolica
 
Methods inherited from class exp.Parser
atEOF, nextToken, parse, print, println
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LispParser

public LispParser(Lexer lex,
                  OutputDevice msgOut)
           throws java.lang.Exception
Costruttore

LispParser

public LispParser(Lexer lex)
           throws java.lang.Exception
Costruttore
Method Detail

readSexp

protected Sexp readSexp()
                 throws java.lang.Exception
Lettura di un'espressione
Overrides:
readSexp in class Parser

sexp

protected Sexp sexp()
             throws java.lang.Exception
Lettura di un'espressione simbolica

atomSexp

protected Sexp atomSexp()
                 throws java.lang.Exception
Lettura di un'espressione atomica

consSexp

protected Sexp consSexp()
                 throws java.lang.Exception
Lettura del primo elemento di una coppia o una lista

listSexp

protected Sexp listSexp()
                 throws java.lang.Exception
Lettura dei restanti elementi di una lista

pairSexp

protected Sexp pairSexp()
                 throws java.lang.Exception
Lettura del secondo elemento di una coppia