Bsp. Operationale Semantik (I)

arithmetischer Ausdruck Programm für Kellermaschine

3*x + 1 push 3, push x, mal, push 1, plus

Der erzeugte Code ist synthetisiertes Attribut!

Beispiele: Java-Bytecode (javac, javap),
CIL (gmcs, monodis)

Bemerkung: soweit scheint alles trivial--interessant wird es bei Teilausdrücken mit Nebenwirkungen, Bsp. x++ - --x;



2015-01-26