app
Class Main

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--app.Main

public class Main
extends java.awt.Frame
implements java.awt.event.ActionListener, java.awt.event.ItemListener, SexpReader

Main Interprete JAVA-LISP-PROLOG

Version:
31/1/2000
Author:
Marco Chiesi
See Also:
Serialized Form

Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
Main()
          Costruttore
 
Method Summary
protected  void abort()
          Gestione del pulsante abort per il prolog
 void actionPerformed(java.awt.event.ActionEvent e)
          Implementazione dell'interfaccia ActionListener
protected  void chLang(int l)
          Cambio del linguaggio
protected  void clrArea()
          Azzeramento di tutte le aree di testo
protected  void clrInput()
          Azzeramento dell'area di testo di input
protected  void evalProlog(java.lang.String inputString)
          Valutazione per il prolog
protected  void evalSexp()
          Valutazione dell'espressione data in input
protected  boolean evalString(java.lang.String inputString)
          Valutazione di un'espressione contenuta in una stringa
protected  void execProg()
          Esecuzione di un programma
protected  void exitProg()
          Uscita dal programma
 void itemStateChanged(java.awt.event.ItemEvent e)
          Implementazione dell'interfaccia ItemListener
protected  void lastComm()
          Riscrittura dell'ultimo comando
protected  void lispSexp()
          Visualizzazione della rappresentazione esterna Lisp
protected  void loadProg()
          Caricamento di un programma
static void main(java.lang.String[] args)
          Main
protected  void more()
          Gestione del pulsante more per il prolog
protected  void newProg()
          Azzeramento dell'area di programma
protected  void polSexp(int n)
          Visualizzazione della rappresentazione polacca postfissa
protected  void rappSexp()
          Visualizzazione della rappresentazione esterna Lisp
 Sexp readSexp()
          Lettura di un'espressione da input per la primitiva read
 Sexp readSexp(Sexp e)
          Lettura di un'espressione da input per simboli non definiti
protected  Sexp readSexp(java.lang.String s)
          Lettura di un'espressione a partire da una stringa
protected  Sexp readSexp(java.lang.String title, java.lang.String desc)
          Lettura di un'espressione con una finestra di dialogo
protected  void resetEnv()
          Azzeramento dell'ambiente globale
protected  void saveProg()
          Salvataggio di un programma
protected  void setCommandPanel()
          Inizializzazione del pannello di comando
protected  void setDebugPanel()
          Inizializzazione del pannello di debug
protected  void setInputPanel()
          Inizializzazione del pannello di input
protected  void setMenu()
          Inizializzazione del menu
protected  void setOutputPanel()
          Inizializzazione del pannello di output
protected  void setProgramPanel()
          Inizializzazione del pannello di programma
protected  void setWorkPanel()
          Inizializzazione del pannello di lavoro
protected  void showEnv()
          Visualizzazione dell'ambiente globale
protected  void showSexp()
          Visualizzazione dell'albero
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Main

public Main()
Costruttore
Method Detail

setMenu

protected void setMenu()
Inizializzazione del menu

setCommandPanel

protected void setCommandPanel()
Inizializzazione del pannello di comando

setWorkPanel

protected void setWorkPanel()
Inizializzazione del pannello di lavoro

setInputPanel

protected void setInputPanel()
Inizializzazione del pannello di input

setOutputPanel

protected void setOutputPanel()
Inizializzazione del pannello di output

setProgramPanel

protected void setProgramPanel()
Inizializzazione del pannello di programma

setDebugPanel

protected void setDebugPanel()
Inizializzazione del pannello di debug

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Implementazione dell'interfaccia ActionListener
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Implementazione dell'interfaccia ItemListener
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

newProg

protected void newProg()
Azzeramento dell'area di programma

loadProg

protected void loadProg()
Caricamento di un programma

saveProg

protected void saveProg()
Salvataggio di un programma

execProg

protected void execProg()
Esecuzione di un programma

exitProg

protected void exitProg()
Uscita dal programma

lastComm

protected void lastComm()
Riscrittura dell'ultimo comando

showEnv

protected void showEnv()
Visualizzazione dell'ambiente globale

resetEnv

protected void resetEnv()
Azzeramento dell'ambiente globale

clrInput

protected void clrInput()
Azzeramento dell'area di testo di input

clrArea

protected void clrArea()
Azzeramento di tutte le aree di testo

evalSexp

protected void evalSexp()
Valutazione dell'espressione data in input

showSexp

protected void showSexp()
Visualizzazione dell'albero

rappSexp

protected void rappSexp()
Visualizzazione della rappresentazione esterna Lisp

lispSexp

protected void lispSexp()
Visualizzazione della rappresentazione esterna Lisp

polSexp

protected void polSexp(int n)
Visualizzazione della rappresentazione polacca postfissa

more

protected void more()
Gestione del pulsante more per il prolog

abort

protected void abort()
Gestione del pulsante abort per il prolog

chLang

protected void chLang(int l)
Cambio del linguaggio

evalString

protected boolean evalString(java.lang.String inputString)
Valutazione di un'espressione contenuta in una stringa

evalProlog

protected void evalProlog(java.lang.String inputString)
Valutazione per il prolog

readSexp

protected Sexp readSexp(java.lang.String s)
Lettura di un'espressione a partire da una stringa

readSexp

protected Sexp readSexp(java.lang.String title,
                        java.lang.String desc)
Lettura di un'espressione con una finestra di dialogo

readSexp

public Sexp readSexp()
Lettura di un'espressione da input per la primitiva read
Specified by:
readSexp in interface SexpReader

readSexp

public Sexp readSexp(Sexp e)
Lettura di un'espressione da input per simboli non definiti
Specified by:
readSexp in interface SexpReader

main

public static void main(java.lang.String[] args)
Main