• <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定義模式為第一類對象,也就是說.

            久久精品9988| 久久精品午夜一区二区福利| 国产精品美女久久久久网| 国产成人久久精品一区二区三区 | 91精品国产9l久久久久| 国产精品久久久久久福利69堂| 老司机国内精品久久久久| 久久精品卫校国产小美女| 99久久综合狠狠综合久久| 成人久久免费网站| 亚洲国产成人精品91久久久| 成人综合伊人五月婷久久| 久久久久久久精品妇女99 | 久久精品国产只有精品66| 久久久久亚洲AV片无码下载蜜桃| 色综合色天天久久婷婷基地| 亚洲精品乱码久久久久66| 色婷婷久久综合中文久久一本| 久久天天躁狠狠躁夜夜躁2O2O | 精品久久人人爽天天玩人人妻| 7777精品久久久大香线蕉| 国产福利电影一区二区三区久久久久成人精品综合 | 99久久国产热无码精品免费久久久久 | 久久久久久久久久久精品尤物| 99热成人精品免费久久| 日产精品久久久久久久| 中文国产成人精品久久不卡| 一本色道久久88综合日韩精品 | 久久99国产精品久久久| 久久精品国产亚洲AV无码娇色| 久久无码中文字幕东京热| 人人狠狠综合久久亚洲| 一本大道加勒比久久综合| 久久青青草原综合伊人| 无码国产69精品久久久久网站| 久久精品国产亚洲AV忘忧草18| 色播久久人人爽人人爽人人片aV| 久久精品成人一区二区三区| 精品久久久久久久久久中文字幕 | 久久综合久久综合九色| 国产一区二区三区久久|