• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            LPeg

            Posted on 2014-11-03 22:08 S.l.e!ep.¢% 閱讀(747) 評論(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(百科全書) 傳統(tǒng), LPeg定義模式為第一類對象,也就是說.

            91精品国产高清久久久久久91| 无夜精品久久久久久| 99国产精品久久久久久久成人热| 亚洲精品美女久久777777| 国内精品伊人久久久久av一坑| 夜夜亚洲天天久久| 久久精品国产乱子伦| 久久国产精品一国产精品金尊| 国产成人精品久久| 久久亚洲精品成人AV| 久久久精品久久久久久 | 国产成人精品久久亚洲| 久久国产精品无码网站| 久久综合国产乱子伦精品免费| 国产成人精品久久综合| 欧美喷潮久久久XXXXx| 香蕉99久久国产综合精品宅男自 | 欧美亚洲国产精品久久| 欧美一区二区精品久久| 国内精品九九久久精品 | 国产成人香蕉久久久久| 一本色道久久88精品综合 | 青青青国产成人久久111网站| 久久午夜免费视频| 久久伊人色| 精品久久久无码中文字幕| 无遮挡粉嫩小泬久久久久久久| segui久久国产精品| 国产亚洲美女精品久久久久狼| 久久精品免费一区二区| 麻豆av久久av盛宴av| 亚洲伊人久久综合影院| 综合久久给合久久狠狠狠97色| 久久久久99精品成人片三人毛片| 丰满少妇人妻久久久久久4| 久久亚洲精品中文字幕三区| 国产午夜精品久久久久免费视 | 久久精品国产亚洲av日韩| 亚洲av伊人久久综合密臀性色| 精品久久久久久中文字幕大豆网| 久久久久亚洲av成人网人人软件|