1 / 11

lexer

Configurazione e controllo. inputDev. Rappresentazione esterna descritta dalla sintassi concreta. frase. Sexp. lexer. token. frase. AtomSexp. ConsSexp. parser. token. RapInterna frase. IdentSexp. Rappresentazione interna descritta dalla sintassi astratta. RapInterna frase.

raisie
Télécharger la présentation

lexer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Configurazione e controllo inputDev Rappresentazione esterna descritta dalla sintassi concreta frase Sexp lexer token frase AtomSexp ConsSexp parser token RapInternafrase IdentSexp Rappresentazione interna descritta dalla sintassi astratta RapInterna frase eval risultato eval

  2. Configurazione e controllo inputDev Rappresentazione esterna descritta dalla sintassi concreta frase Sexp lexer token frase AtomSexp ConsSexp parser token RapInternafrase IdentSexp Rappresentazione interna descritta dalla sintassi astratta RapInterna frase eval risultato eval

  3. inputDev 2+3*5.0-4 parser eval - minusSexp 4 + plusSexp IntSexp * 2 mulSexp 13.0 IntSexp DoubleSexp 5.0 3 DoubleSexp IntSexp

  4. . consSexp . - minusSexp . . nil 4 + . - plusSexp IntSexp minusSexp 2 . 4 + IntSexp plusSexp IntSexp nil . * 2 mulSexp IntSexp * . mulSexp 5.0 3 3 . DoubleSexp IntSexp IntSexp nil 5.0 DoubleSexp 2+3*5.0-4 (-(+ 2 (* 3 5.0)) 4)

  5. Sexp consSexp AtomSexp numSexp nilSexp identSexp IntSexp DoubleSexp opSexp plusSexp minusSexp mulSexp divSexp

  6. SexpVisitor parSexpVisitor treeSexpVisitor evalSexpVisitor Scrive una espressione simbolica in forma Lisp Visualizza l’espressione in forma grafica Calcola il valore dell’espressione Sexp consSexp AtomSexp numSexp nilSexp identSexp opSexp plusSexp minusSexp mulSexp divSexp

  7. . consSexp . - . minusSexp . nil 4 + . plusSexp IntSexp 2 . IntSexp nil . * . mulSexp 3 . IntSexp nil 5.0 DoubleSexp inputDev 2+3*5.0-4 parser eval - minusSexp 4 + plusSexp IntSexp * 2 13.0 mulSexp IntSexp DoubleSexp 5.0 3 DoubleSexp IntSexp

  8. Sexp consSexp AtomSexp nilSexp identSexp nonAtomicTerm argList atomicTerm clause Conj var Symbol structure const Int true

  9. Data E S Evaluator BI E(Data Variation Driven Machine) Source Computed Result Event Commit logic Coordination Commit action

  10. Vetoer, Constrainer BI E(Data Variation Driven Machine) Source Event Commit logic Coordination Computed Results Commit or constrain action

  11. BI1 E(Data Variation Driven Machine) Coordinator Source Evento Commit logic Commit action BI2 Computed Result

More Related