finally made the attribute grammar parse successfully