Adding attribute grammars