• <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.¢%

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

            LPeg

            Posted on 2014-11-03 22:08 S.l.e!ep.¢% 閱讀(752) 評論(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所使用的新的模式匹配庫,基于解析表達式語法(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(百科全書) 傳統, LPeg定義模式為第一類對象,也就是說.

            久久996热精品xxxx| 欧美伊人久久大香线蕉综合69 | 久久高潮一级毛片免费| 久久99热国产这有精品| 国产精品99久久久久久猫咪| 久久精品亚洲欧美日韩久久| 久久夜色撩人精品国产小说| 性做久久久久久久| 久久噜噜电影你懂的| 精品国产日韩久久亚洲| 97热久久免费频精品99| 无码国内精品久久人妻麻豆按摩| 乱亲女H秽乱长久久久| 久久无码一区二区三区少妇 | 无码AV波多野结衣久久| 久久er国产精品免费观看2| 久久精品国产只有精品66| 精品久久亚洲中文无码| 99久久精品国产综合一区| 久久精品国产亚洲AV香蕉| 欧美精品福利视频一区二区三区久久久精品 | 日本道色综合久久影院| 精品久久久无码人妻中文字幕| 久久99精品国产99久久6男男| 中文精品久久久久人妻不卡| 国产精品久久久久久久午夜片 | 内射无码专区久久亚洲| 久久精品国产只有精品2020| 亚洲色婷婷综合久久| 日韩中文久久| 人妻无码久久精品| 精品久久国产一区二区三区香蕉 | 99久久免费国产精品| 精品久久8x国产免费观看| 久久中文骚妇内射| 亚洲国产欧洲综合997久久| 久久婷婷人人澡人人| 久久国产V一级毛多内射| segui久久国产精品| 国产农村妇女毛片精品久久| 国产成人综合久久综合|