Attribute grammars can be considered as an extension of context-free grammars, where the attributes are associated with grammar symbols, and the semantic rules deene the values of the attributes. This formalism is widely applied for the speciication and implementation of the compilation-oriented languages. The paper presents a method for learning semantic functions of attribute grammars which i...