• 2021-04-14
    考虑下面的属性文法G(S):产 生 式语 义 规 则S ® ABC print A.num, B.num, C.num A ® http://img2.ph.126.net/mwU_yZTj1MfxE1RqnNsI7A==/6608555265120376937.png aA.num = http://img2.ph.126.net/mwU_yZTj1MfxE1RqnNsI7A==/6608555265120376937.png.num + 1A ® εA.num = 0B ® http://img2.ph.126.net/7BsnFVEhNPQ29IMS0nrM1g==/6608926900050365519.png bB.num = http://img2.ph.126.net/7BsnFVEhNPQ29IMS0nrM1g==/6608926900050365519.png.num + 1B ® εB.num = 0C ® http://img0.ph.126.net/wLsxxOa5kEtJg4TcvKgDfA==/1615666366419475461.png cC.num = http://img0.ph.126.net/wLsxxOa5kEtJg4TcvKgDfA==/1615666366419475461.png.num + 1C ® εC.num = 0对于输入字符串aabbbc进行语法分析和属性计算,输出结果是
  • 举一反三