词法分析实验.zip

  • Lucas_ftc
    了解作者
  • C/C++
    开发工具
  • 361KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-05-25 11:08
    上传日期
通过flex对pl0语言进行词法分析,打印每一个词的词性和位置
词法分析实验.zip
  • token.lex
    3.5KB
  • token
    27.9KB
  • 词法分析实验报告.pdf
    377.3KB
  • test.out
    722B
  • test.pl0
    195B
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625d9db8be9ad24cfa85d8e3/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625d9db8be9ad24cfa85d8e3/bg1.jpg"><div class="c x1 y1 w2 h2"><div class="t m0 x2 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#23454;&#39564;&#25253;&#21578;<span class="_ _0"> </span><span class="ff2 fc1"> </span></div><div class="t m0 x2 h4 y3 ff1 fs1 fc0 sc0 ls0 ws0">&#23454;&#39564;&#30446;&#26631;<span class="_ _1"> </span><span class="ff2 fc1"> </span></div><div class="t m0 x2 h5 y4 ff3 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;<span class="ff4">LEX</span>&#20316;&#20026;&#24037;&#20855;&#29983;&#25104;<span class="ff4">PL0</span>&#35821;&#35328;&#30340;&#35789;&#27861;&#20998;&#26512;&#22120;&#65292;&#20351;&#29992;<span class="ff4">LEX</span>&#35821;&#35328;&#24037;&#20855;&#32534;&#20889;&#31526;&#21512;&#20854;&#35821;&#27861;&#35268;&#21017;&#30340;&#35789;&#27861;&#35299;&#26512;<span class="ff4">.lex</span>&#25991;</div><div class="t m0 x2 h5 y5 ff3 fs2 fc0 sc0 ls0 ws0">&#20214;&#65292;&#28982;&#21518;&#36890;&#36807;<span class="ff4">FLEX</span>&#32534;&#35793;&#25104;&#20026;<span class="ff4">lex.yy<span class="_ _2"></span>.c<span class="ff3">&#26684;&#24335;&#25991;&#20214;&#65292;&#36890;&#36807;</span>gcc<span class="ff3">&#36827;&#34892;&#32534;&#35793;&#20043;&#21518;&#25104;&#20026;&#21487;&#25191;&#34892;&#25991;&#20214;</span>ex<span class="_ _2"></span>e<span class="ff3">&#65292;&#25509;&#21463;&#36755;&#20837;&#28304;</span></span></div><div class="t m0 x2 h5 y6 ff3 fs2 fc0 sc0 ls0 ws0">&#31243;&#24207;&#30340;&#21517;&#23383;&#65292;&#20316;&#20026;&#21807;&#19968;&#30340;&#21442;&#25968;&#12290;&#23558;&#27599;&#19968;&#20010;&#35789;&#30340;&#35789;&#24615;&#21644;&#20301;&#32622;&#36890;&#36807;&#26631;&#20934;&#21270;&#36755;&#20986;&#25171;&#21360;&#20986;&#26469;&#12290;</div><div class="t m0 x2 h4 y7 ff1 fs1 fc0 sc0 ls0 ws0">&#35774;&#35745;&#24605;&#36335;<span class="_ _1"> </span><span class="ff2 fc1"> </span></div><div class="t m0 x3 h5 y8 ff3 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;<span class="ff4">[" " ]</span>&#26469;&#34920;&#31034;&#25152;&#26377;&#30340;&#31354;&#30333;&#23383;&#31526;&#65292;&#23545;&#20110;&#31354;&#30333;&#23383;&#31526;&#20840;&#37096;&#36339;&#36807;</div><div class="t m0 x3 h5 y9 ff3 fs2 fc0 sc0 ls0 ws0">&#20026;&#20102;&#20934;&#30830;&#30340;&#34920;&#36798;&#27599;&#19968;&#20010;&#35789;&#20986;&#29616;&#30340;&#20301;&#32622;&#65292;&#20351;&#29992;&#20102;&#20004;&#20010;&#20840;&#23616;&#21464;&#37327;&#65292;&#20998;&#21035;&#26159;<span class="ff4">line_no </span>&#21644;<span class="ff4">char_no</span>&#65292;&#29992;&#20197;&#35760;</div><div class="t m0 x3 h5 ya ff3 fs2 fc0 sc0 ls0 ws0">&#24405;&#24403;&#21069;&#30340;&#34892;&#21495;&#21644;&#24403;&#21069;&#34892;&#24050;&#32463;&#22788;&#29702;&#36807;&#30340;&#38750;&#31354;&#30333;&#31526;&#30340;&#25968;&#37327;&#12290;&#25152;&#20197;&#65292;&#22312;&#36755;&#20986;&#20013;&#32473;&#20986;&#30340;&#20301;&#32622;&#65292;&#26159;&#19981;&#25226;&#31354;&#30333;&#31526;</div><div class="t m0 x3 h5 yb ff3 fs2 fc0 sc0 ls0 ws0">&#21495;&#35745;&#31639;&#22312;&#20869;&#30340;&#12290;</div><div class="t m0 x3 h5 yc ff3 fs2 fc0 sc0 ls0 ws0">&#27599;&#27425;&#36935;&#21040;<span class="ff4"> </span>&#25442;&#34892;&#31526;&#65292;&#37117;&#35201;&#25226;<span class="ff4">char_no</span>&#37325;&#26032;&#35774;&#32622;&#20026;<span class="ff4">1</span>&#65292;&#20197;&#20415;&#20110;&#35760;&#24405;&#24403;&#21069;&#34892;&#30340;&#23383;&#31526;&#37327;</div><div class="t m0 x3 h5 yd ff3 fs2 fc0 sc0 ls0 ws0">&#23558;&#22823;&#22810;&#25968;&#24120;&#35265;&#30340;&#24773;&#20917;&#21644;&#20998;&#31867;&#20808;&#20351;&#29992;&#36741;&#21161;&#23450;&#20041;&#65292;&#20197;&#20813;&#19979;&#38754;&#30340;&#35782;&#21035;&#35268;&#21017;&#35201;&#37325;&#22797;&#30340;&#20070;&#20889;&#22909;&#22810;&#30340;&#27491;&#21017;&#34920;&#36798;</div><div class="t m0 x3 h5 ye ff3 fs2 fc0 sc0 ls0 ws0">&#24335;&#12290;&#33021;&#20351;&#29992;&#36741;&#21161;&#23450;&#20041;&#30340;&#23601;&#19968;&#23450;&#35201;&#20351;&#29992;&#36741;&#21161;&#23450;&#20041;&#12290;</div><div class="t m0 x3 h5 yf ff3 fs2 fc0 sc0 ls0 ws0">&#36890;&#36807;&#23558;&#25968;&#23383;&#20998;&#25286;&#20026;&#25972;&#25968;&#37096;&#20998;&#65292;&#23567;&#25968;&#28857;&#20043;&#21518;&#30340;&#37096;&#20998;&#21644;&#31185;&#23398;&#35745;&#25968;&#27861;&#37096;&#20998;&#65292;&#21487;&#20197;&#23454;&#29616;&#35821;&#27861;&#30340;&#25299;&#23637;&#65292;&#34920;&#31034;&#25972;</div><div class="t m0 x3 h5 y10 ff3 fs2 fc0 sc0 ls0 ws0">&#25968;&#65292;&#23567;&#25968;&#20197;&#21450;&#31185;&#23398;&#35745;&#25968;&#27861;</div><div class="t m0 x3 h5 y11 ff3 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;&#21516;&#19968;&#20010;&#27491;&#21017;&#34920;&#36798;&#24335;<span class="ff4">name</span>&#26469;&#24402;&#32422;&#25152;&#26377;&#30340;&#26631;&#35782;&#31526;&#21644;&#20851;&#38190;&#23383;&#65292;&#21516;&#26102;&#20351;&#29992;&#19968;&#20010;<span class="ff4">reserve </span>&#30340;<span class="ff4">char</span>&#25968;&#32452;&#25226;</div><div class="t m0 x3 h5 y12 ff3 fs2 fc0 sc0 ls0 ws0">&#25152;&#26377;&#30340;&#20851;&#38190;&#23383;&#25918;&#20837;&#21040;&#19968;&#20010;&#25968;&#32452;&#20043;&#20013;&#65292;&#20351;&#29992;<span class="ff4">name</span>&#35268;&#32422;&#20986;&#26469;&#20043;&#21518;&#65292;&#39318;&#20808;&#21033;&#29992;<span class="ff4">yyleng</span>&#26469;&#26816;&#26597;&#38271;&#24230;&#65292;&#22914;&#26524;</div><div class="t m0 x3 h5 y13 ff3 fs2 fc0 sc0 ls0 ws0">&#38271;&#24230;&#36229;&#36807;<span class="ff4">10</span>&#65292;&#23601;&#30452;&#25509;&#36827;&#34892;&#25253;&#38169;&#65307;&#22914;&#26524;&#27809;&#26377;&#36229;&#36807;&#38271;&#24230;&#38480;&#21046;&#65292;&#20808;&#26816;&#26597;&#26159;&#21542;&#22312;&#20851;&#38190;&#23383;&#38598;&#21512;&#20043;&#20013;&#65292;&#22914;&#26524;&#19981;</div><div class="t m0 x3 h5 y14 ff3 fs2 fc0 sc0 ls0 ws0">&#22312;&#65292;&#23601;&#20998;&#31867;&#25104;&#20026;&#26631;&#35782;&#31526;&#12290;</div><div class="t m0 x3 h5 y15 ff3 fs2 fc0 sc0 ls0 ws0">&#29992;&#25143;&#23376;&#31243;&#24207;&#30452;&#25509;&#37319;&#29992;<span class="ff4">PPT</span>&#19978;&#30340;&#27169;&#26495;&#65292;&#20801;&#35768;&#19968;&#20010;&#36755;&#20837;&#21442;&#25968;&#65292;&#20316;&#20026;&#36755;&#20837;&#28304;&#31243;&#24207;&#30340;&#22320;&#22336;&#12290;&#22914;&#26524;&#27809;&#26377;&#36755;&#20837;&#21442;</div><div class="t m0 x3 h5 y16 ff3 fs2 fc0 sc0 ls0 ws0">&#25968;&#65292;&#25110;&#32773;&#26159;&#36755;&#20837;&#30340;&#25991;&#20214;&#21517;&#23383;&#26080;&#27861;&#25171;&#24320;&#65292;&#23601;&#37319;&#29992;&#40664;&#35748;&#30340;&#27979;&#35797;&#31243;&#24207;&#20316;&#20026;&#36755;&#20837;<span class="ff4">,</span>&#23545;&#20110;&#27599;&#20010;&#36755;&#20837;&#30340;<span class="ff4">pl0</span>&#25991;&#20214;</div><div class="t m0 x3 h5 y17 ff3 fs2 fc0 sc0 ls0 ws0">&#65288;&#35201;&#27714;&#21518;&#32512;&#24517;&#39035;&#26159;<span class="ff4">.pl0</span>&#30340;&#24418;&#24335;&#65289;&#65292;&#37117;&#20250;&#26032;&#24314;&#31435;&#19968;&#20010;&#21518;&#32512;&#20026;<span class="ff4">.out</span>&#65292;&#20294;&#26159;&#25991;&#20214;&#21517;&#19981;&#21464;&#30340;&#25991;&#20214;&#65292;&#24182;&#23558;&#35789;&#27861;</div><div class="t m0 x3 h5 y18 ff3 fs2 fc0 sc0 ls0 ws0">&#20998;&#26512;&#22120;&#36816;&#34892;&#32467;&#26524;&#30340;&#36755;&#20986;&#22312;&#35813;&#25991;&#20214;&#20043;&#20013;&#12290;</div><div class="t m0 x3 h5 y19 ff3 fs2 fc0 sc0 ls0 ws0">&#21033;&#29992;<span class="ff4">&#64258;ex</span>&#30340;&#21305;&#37197;&#29305;&#28857;&#65292;<span class="ff4">&#64258;e<span class="_ _2"></span>x<span class="ff3">&#20248;&#20808;&#20351;&#29992;&#21069;&#38754;&#30340;&#21305;&#37197;&#35268;&#21017;&#65292;&#25152;&#20197;&#23545;&#20110;&#38750;&#27861;&#23383;&#31526;&#30340;&#22788;&#29702;&#65292;&#21487;&#20197;&#30452;&#25509;&#22312;&#26368;&#21518;</span></span></div><div class="t m0 x3 h5 y1a ff3 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;&#36890;&#29992;&#21305;&#37197;&#31526;&#21495;<span class="ff4">. </span>&#26469;&#21305;&#37197;&#25152;&#26377;&#30340;&#38750;&#27861;&#23383;&#31526;&#21644;&#38750;&#27861;&#24207;&#21015;&#12290;</div><div class="t m0 x2 h6 y1b ff2 fs1 fc0 sc0 ls0 ws0">EBNF<span class="_ _3"> </span><span class="fc1"> </span></div><div class="t m0 x2 h5 y1c ff4 fs2 fc0 sc0 ls0 ws0">&lt;<span class="ff3">&#31243;&#24207;</span>&gt; ::= &lt;<span class="ff3">&#20998;&#31243;&#24207;</span>&gt;.</div><div class="t m0 x2 h5 y1d ff4 fs2 fc0 sc0 ls0 ws0">&lt;<span class="ff3">&#20998;&#31243;&#24207;</span>&gt; ::= [&lt;<span class="ff3">&#24120;&#37327;&#35828;&#26126;&#37096;&#20998;</span>&gt;][&lt;<span class="ff3">&#21464;&#37327;&#35828;&#26126;&#37096;&#20998;</span>&gt;][&lt;<span class="ff3">&#36807;&#31243;&#35828;&#26126;&#37096;&#20998;</span>&gt;]&lt;<span class="ff3">&#35821;&#21477;</span>&gt;</div><div class="t m0 x2 h5 y1e ff4 fs2 fc0 sc0 ls0 ws0">&lt;<span class="ff3">&#24120;&#37327;&#35828;&#26126;&#37096;&#20998;</span>&gt; ::= CONST&lt;<span class="ff3">&#24120;&#37327;&#23450;&#20041;</span>&gt;{,&lt;<span class="ff3">&#24120;&#37327;&#23450;&#20041;</span>&gt;};</div><div class="t m0 x2 h5 y1f ff4 fs2 fc0 sc0 ls0 ws0">&lt;<span class="ff3">&#24120;&#37327;&#23450;&#20041;</span>&gt; ::= &lt;<span class="ff3">&#26631;&#35782;&#31526;</span>&gt;=&lt;<span class="ff3">&#26080;&#31526;&#21495;&#25972;&#25968;</span>&gt;</div><div class="t m0 x2 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y20 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#24120;</span></div><div class="t m0 x5 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x6 h8 y20 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23450;</span></div><div class="t m0 x7 h8 y20 ff8 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#20041;</span></div><div class="t m0 x8 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;::=int &lt;</div><div class="t m0 x9 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 xa h8 y20 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 xb h8 y20 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 xc h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;=&lt;</div><div class="t m0 xd h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 xe h8 y20 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 xf h8 y20 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x10 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x11 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|real&lt;</div><div class="t m0 x12 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 x13 h8 y20 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 x14 h8 y20 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x15 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;=&lt;</div><div class="t m0 x16 h8 y20 ffc fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#28014;&#28857;</span></div><div class="t m0 x17 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x18 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|string &lt;</div><div class="t m0 x19 h8 y20 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 x1a h8 y20 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 x1b h8 y20 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x1c h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;=&lt;</div><div class="t m0 x1d h8 y20 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 x1e h8 y20 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x1f h8 y20 ff8 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#20018;</span></div><div class="t m0 x20 h7 y20 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div><div class="t m0 x2 h5 y21 ff4 fs2 fc0 sc0 ls0 ws0">&lt;<span class="ff3">&#26080;&#31526;&#21495;&#25972;&#25968;</span>&gt; ::= &lt;<span class="ff3">&#25968;&#23383;</span>&gt;{&lt;<span class="ff3">&#25968;&#23383;</span>&gt;}</div><div class="t m0 x2 h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y22 ffc fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#28014;&#28857;</span></div><div class="t m0 x6 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x7 h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt;=&lt;</div><div class="t m0 x21 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x22 h8 y22 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x23 h8 y22 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x24 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x25 h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt;.&lt;</div><div class="t m0 x26 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x27 h8 y22 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x28 h8 y22 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x29 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x2a h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt; | &lt;</div><div class="t m0 x2b h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x2c h8 y22 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x2d h8 y22 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x2e h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x2f h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt;.&lt;</div><div class="t m0 x30 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x31 h8 y22 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x32 h8 y22 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x33 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x34 h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt;E+|-&lt;</div><div class="t m0 x35 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x36 h8 y22 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x37 h8 y22 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x38 h8 y22 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x1d h7 y22 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div><div class="t m0 x2 h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y23 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 x5 h8 y23 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x6 h8 y23 ff8 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#20018;</span></div><div class="t m0 x7 h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&gt;='&lt;</div><div class="t m0 x39 h8 y23 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 x3a h8 y23 ffc fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#27597;</span></div><div class="t m0 x3b h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|&lt;</div><div class="t m0 xa h8 y23 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 xb h8 y23 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 xc h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&gt;{&lt;</div><div class="t m0 x27 h8 y23 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 x28 h8 y23 ffc fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#27597;</span></div><div class="t m0 x29 h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|&lt;</div><div class="t m0 x3c h8 y23 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x3d h8 y23 ff6 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#23383;</span></div><div class="t m0 x3e h7 y23 ff5 fs2 fc0 sc0 ls0 ws0">&gt;}'</div><div class="t m0 x2 h5 y24 ff4 fs2 fc0 sc0 ls0 ws0">&#8226;&lt;<span class="ff3">&#21464;&#37327;&#35828;&#26126;&#37096;&#20998;</span>&gt; ::= V<span class="_ _2"></span>AR&lt;<span class="ff3">&#26631;&#35782;&#31526;</span>&gt;{,&lt;<span class="ff3">&#26631;&#35782;&#31526;</span>&gt;};</div><div class="t m0 x2 h7 y25 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y25 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21464;</span></div><div class="t m0 x5 h8 y25 ffd fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#37327;</span></div><div class="t m0 x6 h8 y25 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35828;</span></div><div class="t m0 x7 h8 y25 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26126;</span></div><div class="t m0 x8 h8 y25 ffd fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#37096;</span></div><div class="t m0 x3f h8 y25 ff8 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#20998;</span></div><div class="t m0 x40 h7 y25 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div><div class="t m0 x41 h8 y25 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65306;&#65306;</span></div><div class="t m0 xa h7 y25 ff5 fs2 fc0 sc0 ls0 ws0">=var &lt;</div><div class="t m0 x42 h8 y25 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#22768;</span></div><div class="t m0 x43 h8 y25 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26126;</span></div><div class="t m0 x44 h8 y25 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21477;</span></div><div class="t m0 x45 h7 y25 ff5 fs2 fc0 sc0 ls0 ws0">&gt;{&lt;;</div><div class="t m0 x2a h8 y25 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#22768;</span></div><div class="t m0 x46 h8 y25 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26126;</span></div><div class="t m0 x47 h8 y25 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21477;</span></div><div class="t m0 x48 h7 y25 ff5 fs2 fc0 sc0 ls0 ws0">&gt;}</div><div class="t m0 x49 h8 y25 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65307;</span></div><div class="t m0 x2 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y26 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#22768;</span></div><div class="t m0 x5 h8 y26 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26126;</span></div><div class="t m0 x6 h8 y26 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21477;</span></div><div class="t m0 x7 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div><div class="t m0 x4a h8 y26 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65306;&#65306;</span></div><div class="t m0 x4b h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">=&lt;</div><div class="t m0 x23 h8 y26 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 x24 h8 y26 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 x4c h8 y26 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x25 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|&lt;</div><div class="t m0 x42 h8 y26 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x43 h8 y26 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#32452;</span></div><div class="t m0 x44 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&gt;{</div><div class="t m0 xf h8 y26 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65292;</span></div><div class="t m0 x10 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4d h8 y26 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 x4e h8 y26 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 x4f h8 y26 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x50 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&gt;|&lt;</div><div class="t m0 x51 h8 y26 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x52 h8 y26 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#32452;</span></div><div class="t m0 x53 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">&gt;}</div><div class="t m0 x54 h8 y26 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65306;</span></div><div class="t m0 x55 h7 y26 ff5 fs2 fc0 sc0 ls0 ws0">int|real|string </div><div class="t m0 x56 h8 y26 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65307;</span></div><div class="t m0 x2 h7 y27 ff5 fs2 fc0 sc0 ls0 ws0">&lt;</div><div class="t m0 x4 h8 y27 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25968;</span></div><div class="t m0 x5 h8 y27 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#32452;</span></div><div class="t m0 x6 h7 y27 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div><div class="t m0 x57 h8 y27 ffe fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#65306;&#65306;</span></div><div class="t m0 x58 h7 y27 ff5 fs2 fc0 sc0 ls0 ws0">=&lt;</div><div class="t m0 x22 h8 y27 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26631;</span></div><div class="t m0 x23 h8 y27 ff9 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#35782;</span></div><div class="t m0 x24 h8 y27 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x4c h7 y27 ff5 fs2 fc0 sc0 ls0 ws0">&gt;&lt;</div><div class="t m0 x59 h8 y27 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#26080;</span></div><div class="t m0 x5a h8 y27 ffa fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#31526;</span></div><div class="t m0 x5b h8 y27 ffb fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#21495;</span></div><div class="t m0 x5c h8 y27 ff7 fs2 fc0 sc0 ls0 ws0"><span class="fc2 sc0">&#25972;&#25968;</span></div><div class="t m0 x5d h7 y27 ff5 fs2 fc0 sc0 ls0 ws0">&gt;</div></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611792,0.000000,0.000000,1.611792,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 词法分析器.zip
      使用工具实现C/C++语言词法分析器: 输入:C/C++源代码文件,即后缀为c/cpp的文件。 输出:后缀为tok的文本性文件。 实现功能:使用词法分析的自动生成工具Flex生成C/C++语言的词法分析
    • lexer:模仿flex的优雅的盔甲式JavaScript词法分析器。 易于扩展以适应您的完美需求
      模仿flex的优雅的盔甲式JavaScript词法分析器。 易于扩展,以适应您的完美需求。 安装 可以使用命令npm install lex通过将Lexer安装在上。 您也可以使用命令ringo-admin install aaditmshah/lexer将其安装在。 您...
    • 词法分析器jflex-1.6.0版本
      jflex是用java语音写的词法分析器,其相比flex而言更加简单,能有助于理解编译原理中的词法分析部分
    • 利用LEX自动生成词法分析程序
      实验二 词法分析器 一、实验目的 掌握词法分析器的构造原理,掌握手工编程或LEX编程方法之一。 二、实验内容 编写一个LEX源程序,使之生成一个词法分析器,能够输入的源程序转换为单词序列输出。 三、实验环境 ...
    • flex 词法分析器,中英文手册
      flex Windows 安装包 2.25.4 中文手册 英文手册
    • C--编译器 flex 词法分析
      Linux下的flex词法分析器实验要求: 熟练掌握词法分析,设计编译程序能够查出 C--源代码中可能包含的下 述几类错误: 1. 词法错误(错误类型 A):出现 C—词法中未定义的字符以及任何不符合 C—词法单元定义的字符; 2. ...
    • language-processing:词法分析器和解析器(FLex&Yacc)
      语言处理项目 TP1-使用正则表达式(FLex)构建文本处理器 TP2-TOML2JSON转换程序(FLex&Yacc) 成员/维护者 名称 数字 A85227 A83719 A85729 Minho大学,软件工程(第3年) 。
    • 词法分析器课程设计 使用工具实现C/C++语言词法分析
      编译原理词法分析器 使用工具实现C/C++语言词法分析器 内涵源代码 实验过程 内容 体会等等 而且有两份题目相同内容完全不同的两人份 下了完全不会失望的 相信我!
    • CF.zip
      根据PL/0语言的文法规范,编写PL/0语言的词法分析...或者调研词法分析程序的自动生成工具LEX或FLEX,设计并实现一个能够输出单词序列的词法分析器。已给PL/0语言文法,输出单词符号(关键字、专用符号以及其它标记)
    • fayeboy1984.rar
      此设计要求能够实现将医学图像进行识别的过程,包括了图像预处理、图像特征提取及分类判决三大模块。在预处理这一步中主要实现的是将彩色图像转换为灰度图像,灰度图像的二值化,直方图修正,去除干扰、噪声以及差异,边缘增强等;第二模块是图像的特征提取。由于对象的物理与几何特性差异,在影像中表现为局部区域的灰度产生明显变化,形成影像特征,而图像特征提取就是对其进行加工、整理、分析、归纳以便提取构成目标影像的特征,得到能反映图像内容区别于其他事物的本质特征;分类判决作为第三模块,则是要在第二步的基础上采用某种分类判别函数与判别规则,通过对目标特征的分析和匹配来识别目标。