{"id":418927,"date":"2021-03-19T23:41:26","date_gmt":"2021-03-19T15:41:26","guid":{"rendered":"http:\/\/4563.org\/?p=418927"},"modified":"2021-03-19T23:41:26","modified_gmt":"2021-03-19T15:41:26","slug":"python-%e5%a6%82%e4%bd%95%e8%a7%a3%e6%9e%90%e9%80%bb%e8%be%91%e8%a1%a8%e8%be%be%e5%bc%8f%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=418927","title":{"rendered":"Python \u5982\u4f55\u89e3\u6790\u903b\u8f91\u8868\u8fbe\u5f0f\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u5982\u4f55\u89e3\u6790\u903b\u8f91\u8868\u8fbe\u5f0f\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : al0ne <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u4f8b\u5982\u6211\u8f93\u5165\u4e00\u4e2a\u6761\u4ef6 status:200 &amp;&amp; port:333 \u8fd9\u79cd\u903b\u8f91\u8868\u8fbe\u5f0f\uff0c\u6709\u6ca1\u6709\u73b0\u6210\u7684\u5e93\u53ef\u4ee5\u8c03\u7528\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5587443\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhuang1988 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             antlr                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587444\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agagega <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4f60\u7684\u89c4\u5219\uff0c\u7b80\u5355\u7684\u8bdd\u5957\u51e0\u5c42 split \u5c31\u884c\uff0c\u4e5f\u5c31\u76f8\u5f53\u4e8e\u9012\u5f52\u4e0b\u964d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587445\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ch2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4f60\u60f3\u89e3\u6790\u4efb\u4f55\u903b\u8f91\u8868\u8fbe\u5f0f\uff0c\u63a8\u8350\u7528 yacc<br \/>\u903b\u8f91\u7b80\u5355\u4ee3\u7801\u5c31\u5c11\uff0c\u590d\u6742\u7684\u4e5f\u4e0d\u6015<br \/>\u552f\u4e00\u9ebb\u70e6\u7684\u662f\u4f60\u5f97\u5b66\u4e00\u4e0b yacc \u8bed\u4e49\u5b50\u7a0b\u5e8f\u600e\u4e48\u7f16\u5199                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587446\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ch2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd4\u5982\u4f60\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u7684\u5f62\u5f0f\uff0c\u53ef\u4ee5\u7528\u56db\u6761\u4ea7\u751f\u5f0f\u6765\u6982\u62ec:<br \/>\u952e-&gt;\u51e0\u4e2a\u5b57\u6bcd\u7ec4\u6210\u7684\u5355\u8bcd\uff0c\u5bf9\u5e94\u8bed\u4e49\u5b50\u7a0b\u5e8f\u662f\u628a\u8bcd\u6cd5\u5206\u6790\u6355\u83b7\u7684\u5355\u8bcd token \u5f52\u7ea6\u4e3a\u4e00\u4e2a\u53d8\u91cf<br \/>\u503c-&gt;\u51e0\u4e2a\u6570\u5b57\u7ec4\u6210\u7684\u6570\u503c\uff0c\u5bf9\u5e94\u8bed\u4e49\u5b50\u7a0b\u5e8f\u662f\u628a\u8bcd\u6cd5\u5206\u6790\u6355\u83b7\u7684\u6570\u5b57 token \u5f52\u7ea6\u4e3a\u4e00\u4e2a\u53d8\u91cf<br \/>\u952e\u503c\u5bf9-&gt;\u952e:\u503c\uff0c\u5bf9\u5e94\u8bed\u4e49\u5b50\u7a0b\u5e8f\u662f\u628a\u5f53\u524d\u6808\u7684\u4e24\u4e2a\u53d8\u91cf\u5408\u5e76\u4e3a\u4e00\u4e2a\u952e\u503c\u5bf9<br \/>\u8868\u8fbe\u5f0f-&gt;\u952e\u503c\u5bf9&amp;&amp;\u952e\u503c\u5bf9\uff0c\u5bf9\u5e94\u8bed\u4e49\u5b50\u7a0b\u5e8f\u662f\u628a\u5f53\u524d\u6808\u7684\u4e24\u4e2a\u952e\u503c\u5bf9\u5408\u5e76\u4e3a\u4e00\u4e2a\u5b57\u5178                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587447\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : matrix67 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             YACC\/Bison generate table driven parsers, which means the &#8220;processing logic&#8221; is contained in the parser program&#8217;s data, not so much in the parser&#8217;s code. The pay off is that even a parser for a very complex language has a relatively small code footprint. <\/p>\n<p>ANTLR generates recursive descent parsers, which means the &#8220;processing logic&#8221; is contained in the parser&#8217;s code, as each production rule of the grammar is represented by a function in the parser&#8217;s code. The pay off is that it is easier to understand what the parser is doing by reading its code. Also, recursive descent parsers are typically faster than table driven ones.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587448\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kkbblzq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4e0d\u6015\u5b89\u5168\u6027\u95ee\u9898\u53ef\u4ee5\u76f4\u63a5 eval                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5587449\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : al0ne <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhuangzhuang1988 <br \/>@agagega <br \/>@ch2 <br \/>@kkbblzq <br \/>@matrix67 <\/p>\n<p>\u8c22\u8c22\u51e0\u4f4d\u5927\u4f6c \u6211\u53bb\u8bd5\u8bd5\u4f60\u4eec\u8bf4\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u5982\u4f55\u89e3\u6790\u903b\u8f91\u8868\u8fbe\u5f0f\uff1f&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/418927"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=418927"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/418927\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=418927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=418927"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=418927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}