• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開心的工作
            簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            LPeg

            Posted on 2014-11-03 22:08 S.l.e!ep.¢% 閱讀(754) 評論(0)  編輯 收藏 引用 所屬分類: Lua

            Introduction

            LPeg ?is a new pattern-matching library for Lua, based on?Parsing Expression Grammars?(PEGs). This text is a reference manual for the library. For a more formal treatment of LPeg, as well as some discussion about its implementation, see?A Text Pattern-Matching Tool based on Parsing Expression Grammars. (You may also be interested in my?talk about LPeg?given at the III Lua Workshop.)

            LPeg是一個為Lua所使用的新的模式匹配庫,基于解析表達(dá)式語法(PEGs).

            本文作為此庫的參考手冊.


            Following the Snobol tradition, LPeg defines patterns as first-class objects. That is, patterns are regular Lua values (represented by userdata). The library offers several functions to create and compose patterns. With the use of metamethods, several of these functions are provided as infix or prefix operators. On the one hand, the result is usually much more verbose than the typical encoding of patterns using the so called regular expressions (which typically are not regular expressions in the formal sense). On the other hand, first-class patterns allow much better documentation (as it is easy to comment the code, to break complex definitions in smaller parts, etc.) and are extensible, as we can define new functions to create and compose patterns.

            Snobol(百科全書) 傳統(tǒng), LPeg定義模式為第一類對象,也就是說.

            亚洲va国产va天堂va久久| 香蕉久久夜色精品升级完成| 久久综合综合久久狠狠狠97色88| 精品一区二区久久久久久久网站| 久久中文字幕视频、最近更新| 欧美精品乱码99久久蜜桃| 韩国免费A级毛片久久| 久久精品综合一区二区三区| 麻豆成人久久精品二区三区免费| 国产精品狼人久久久久影院| 一本一本久久aa综合精品| 99久久精品九九亚洲精品| 欧美黑人又粗又大久久久| 亚洲国产成人久久一区久久| 91超碰碰碰碰久久久久久综合 | 国内精品久久久久久久97牛牛| 国产免费福利体检区久久| 久久国产精品99国产精| 综合人妻久久一区二区精品| 久久99久久无码毛片一区二区| 99久久无色码中文字幕| 久久偷看各类wc女厕嘘嘘| 欧美一区二区久久精品| 热RE99久久精品国产66热| 国产精品99久久久久久宅男| 久久精品国产福利国产秒| 亚洲va国产va天堂va久久| 亚洲国产另类久久久精品小说| 亚洲欧美精品一区久久中文字幕 | 国产精品久久午夜夜伦鲁鲁| 亚洲级αV无码毛片久久精品| 久久青青草视频| 久久久久久国产精品无码下载| 国产成人综合久久精品红| 伊人伊成久久人综合网777| 亚洲va久久久久| 久久久久久久波多野结衣高潮| 亚洲中文字幕无码久久精品1| 亚洲AV无码一区东京热久久| 无码久久精品国产亚洲Av影片| 久久久久国产精品熟女影院|