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

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

            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是一個(gè)為Lua所使用的新的模式匹配庫,基于解析表達(dá)式語法(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定義模式為第一類對象,也就是說.

            久久久久国产精品嫩草影院| 久久SE精品一区二区| 成人久久综合网| 久久国产三级无码一区二区| 亚洲精品高清一二区久久| 综合久久一区二区三区| 久久人人爽人人爽人人片AV不| 久久精品国产69国产精品亚洲| 久久免费香蕉视频| 久久亚洲日韩精品一区二区三区| AA级片免费看视频久久| 久久99精品久久久大学生| 免费精品99久久国产综合精品| 狠狠色丁香久久婷婷综合_中| 精品久久一区二区| 波多野结衣AV无码久久一区| 久久国产一区二区| 亚洲国产精品一区二区久久hs| 香蕉久久夜色精品国产小说| 久久AV高潮AV无码AV| 欧美亚洲日本久久精品| 久久精品亚洲欧美日韩久久| 久久人人爽人人爽人人片AV高清 | 无遮挡粉嫩小泬久久久久久久| 精品久久久久久久久中文字幕| 亚洲伊人久久成综合人影院 | 日本欧美久久久久免费播放网| 久久久精品波多野结衣| 久久国产精品-国产精品| 无遮挡粉嫩小泬久久久久久久| 久久久久久久免费视频| 人妻系列无码专区久久五月天| 国产91久久综合| 7国产欧美日韩综合天堂中文久久久久| 久久久免费精品re6| 中文字幕无码精品亚洲资源网久久| 精品久久人人做人人爽综合| 色综合色天天久久婷婷基地| 日本精品久久久久中文字幕| 久久久久久a亚洲欧洲aⅴ| 91精品国产乱码久久久久久|