• <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.¢% 閱讀(753) 評論(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定義模式為第一類對象,也就是說.

            久久精品无码专区免费青青 | 久久天天躁狠狠躁夜夜2020一 | 欧美伊人久久大香线蕉综合 | 精品久久久久久久| 99久久免费国产精品特黄| 久久影院久久香蕉国产线看观看| 99麻豆久久久国产精品免费 | 一级做a爱片久久毛片| 久久w5ww成w人免费| 久久精品无码午夜福利理论片 | 狠狠综合久久AV一区二区三区| 久久久噜噜噜久久| 久久久这里有精品中文字幕| 狠狠人妻久久久久久综合| 国产精品九九久久免费视频 | 久久久久人妻一区精品| 久久综合成人网| 久久久久人妻一区二区三区| 亚洲av日韩精品久久久久久a | 久久国产精品国语对白| 久久综合九色综合欧美就去吻| 久久九九久精品国产| 久久精品亚洲欧美日韩久久| 亚洲国产天堂久久久久久| 久久久国产视频| 99国产精品久久| 日韩精品无码久久一区二区三| 国产精品久久久久久五月尺| 人妻无码αv中文字幕久久琪琪布| 国产成年无码久久久久毛片| 99久久www免费人成精品| 亚洲精品美女久久久久99小说 | 精品国产青草久久久久福利| 久久精品国产亚洲77777| 国内精品久久久久久久涩爱| 亚洲第一永久AV网站久久精品男人的天堂AV | AV无码久久久久不卡网站下载| 国内精品久久久久久久亚洲| 中文精品久久久久人妻不卡| 国产高潮国产高潮久久久91 | 亚洲欧洲中文日韩久久AV乱码|