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

            18禁黄久久久AAA片| 一级做a爰片久久毛片毛片| 久久一区二区三区免费| 99久久这里只有精品| 国产精品久久久久久久久软件 | 国产精品久久久久jk制服| 成人综合久久精品色婷婷| 久久精品免费全国观看国产| 青青草国产97免久久费观看| 久久久精品久久久久特色影视| 品成人欧美大片久久国产欧美...| 91精品国产综合久久久久久| 久久777国产线看观看精品| 国产精品久久成人影院| 久久成人国产精品二三区| 99久久成人18免费网站| 久久久久人妻一区精品| 久久久国产99久久国产一| 成人久久免费网站| 国内精品久久久久影院一蜜桃| av无码久久久久久不卡网站| 国产成人精品久久| 久久人人青草97香蕉| 色婷婷综合久久久中文字幕| 久久久久夜夜夜精品国产| 久久综合成人网| 人妻少妇久久中文字幕一区二区| 久久国产精品无码HDAV | 国产精品一区二区久久精品| 91精品国产综合久久四虎久久无码一级 | 久久国产亚洲高清观看| 精品久久人人妻人人做精品 | 国产精品岛国久久久久| 久久播电影网| 久久综合香蕉国产蜜臀AV| 国产99久久久国产精品~~牛| 欧美久久久久久午夜精品| 亚洲国产精品无码久久久不卡| 青青青青久久精品国产| 久久99热这里只有精品国产| 777久久精品一区二区三区无码|