下载此文档

编译原理课件PPT 第2章.ppt


文档分类:IT计算机 | 页数:约43页 举报非法文档有奖
1/43
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/43 下载此文档
文档列表 文档介绍
编译原理课件PPT 第2章.ppt1、AlphabetNon-emptysetofsymbols,usuallyexpressedin、VorOtherUpper-caseGreeceLetter2、Symbol(Character)Elementsinalphabet,finestelementsinalanguage3、:Null-stringisstringwithoutanysymbol,writtenas。Chapter2Language&SyntaxDescription Section1Alphabet&StringChapter2Language&SyntaxDescription Section1Alphabet&String4、SentenceAsetofstringsbasedonsymbolsintheAlphabetincertainconstructionrules5、:Byconvention,asymbolisexpressedasa,b,c,…;astringisexpressedas,,,…;asetofstringsisexpressedinA,B,C,….Chapter2Language&SyntaxDescription Section1Alphabet&String6、Operationsonthesetsofstrings1)、Concatenate(Product)OperationLetthestringsetA={1,2,…},B={1,2,...},then(Cartesian)ProductABisdefinedasAB={|AandB}Notes:1)Stringsetproductonselfiscalledaspowerofthestringset2)A0={}3)npowersofAlphabetAisthesetofallstringswithnlengthChapter2Language&SyntaxDescription Section1Alphabet&String6、Operationsonthesetsofstrings2)、Closureandpositiveclosurea)ClosureA*=A0A1A2…ItismeantbythesetofallstringsonAlphabetA(Includingnull-string)b)PositiveclosureA+=A1A2…=A*-{}Notes:&SyntaxDescription Section2Grammar&Language 1、onceptsa、:1)Syntaxelementsincludesentencesandwordsinsentences,)Theformofaproductionruleisasfollowing:left-sideright-side(thatcanbereadas“left-sideisdefinedasright-side”,“left-sidederivesright-side”,or“left-sideproducesright-side”,itexpressestherelationbetweenthetwosides)b、Non-terminalsymbolAsymbolthatappearsintheleftofarule,isbracketedin<>-terminalsymbolsisexpressedinVNc、posed(includingstringsofsinglecharacters),:&SyntaxDescription Section2Grammar&Language 1、onceptsChapter2Language&SyntaxDescription Section2G

编译原理课件PPT 第2章 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数43
  • 收藏数0 收藏
  • 顶次数0
  • 上传人dyx110
  • 文件大小300 KB
  • 时间2020-09-23