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

            99精品伊人久久久大香线蕉| 色天使久久综合网天天| 久久久久亚洲精品无码蜜桃| 国产精品成人99久久久久 | 久久免费国产精品一区二区| 久久久久人妻一区精品| 久久久久九国产精品| 久久婷婷午色综合夜啪| 国产精品免费福利久久| 久久久久久精品久久久久| 日本久久久久久中文字幕| 亚洲AV无码久久精品色欲| 97精品伊人久久久大香线蕉| 久久久久久九九99精品| 热99re久久国超精品首页| 国产精品国色综合久久| 久久狠狠爱亚洲综合影院 | 日本精品久久久中文字幕| 久久久久久久人妻无码中文字幕爆| 国产69精品久久久久9999APGF| 久久精品国产一区二区三区 | 久久综合综合久久97色| 亚洲人成无码网站久久99热国产| 亚洲欧洲精品成人久久曰影片| 色欲av伊人久久大香线蕉影院| 性欧美大战久久久久久久久| 久久精品国产福利国产秒| 狠狠狠色丁香婷婷综合久久俺| 亚洲国产成人久久综合一 | 一级a性色生活片久久无少妇一级婬片免费放 | 久久精品国产亚洲AV不卡| 狠狠色丁香久久婷婷综合五月| 久久乐国产精品亚洲综合| 男女久久久国产一区二区三区| 亚洲欧美日韩中文久久| 日本加勒比久久精品| 久久人人爽人人爽人人片AV不| 久久一区二区三区99| 久久99精品国产自在现线小黄鸭| 99久久超碰中文字幕伊人| 亚洲AV无码成人网站久久精品大|