Syntax - Directed translation : Syntax - directed translation schemes to describe the output to generate for each input construct. A syntax - directed translation is merely a CFG in which a program fragment called an output action ( or sometimes a semantic action or semantic rule) is associated with each production for example, suppose output action is, associated with production A tensto XYZ. The action is executed whenever the syntax analyzer recognizing in its input a sub - string w which has a derivation of the form A or XYZ or w.
The syntax is :
Input string tensto parse tree tensto dependency graph tensto evaluation order for semantic rules.
0 comments:
Post a Comment