This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ===================================================================================== | |
| -- Filename: csv.lua | |
| -- Description: 工业级全功能 LPeg CSV 解析与面向对象操作库 (终极无懈可击版) | |
| -- Architecture: 基于 Parsing Expression Grammars (LPeg) 的纯 Lua 极速解析引擎 | |
| -- | |
| -- 核心工业级特性: | |
| -- 1. 极致性能优化:将常用全局函数全面局部变量化 (Localize Globals),消除虚拟机高频查找开销。 | |
| -- 2. 强力防静默截断:在 LPeg 主文法尾部引入严格的 EOF (* -1) 锚定,杜绝语法畸变时静默产出残缺数据。 | |
| -- 3. 幽灵空行斩断:采用负向前瞻断言 -(nl + -1) 与空行海绵 nl^1,从文法底层斩断 {""} 幽灵行。 | |
| -- 4. 防死循环编译保护:标准行强制绑定 nl^1,静态保证 ^0 循环至少消耗 1 字符,彻底杜绝 LPeg 编译报错。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ===================================================================================== | |
| -- Filename: ini.lua | |
| -- Description: 工业级全功能 LPeg INI 配置解析、修改与序列化引擎 (终极无懈可击版) | |
| -- Architecture: 基于 Parsing Expression Grammars (LPeg) 的纯 Lua 极速状态机 | |
| -- | |
| -- 核心工业级特性: | |
| -- 1. 极致性能优化:全局常用函数与标准库全部局部化 (Localize Globals),零虚拟机查找开销。 | |
| -- 2. 强力防静默截断:文法尾部强制绑定 EOF (* -1) 锚定,遇到语法畸变立刻报错,绝不输出半截脏数据。 | |
| -- 3. 双形态防碰撞:采用 _data 隔离与 __call 混合代理,杜绝 [write]、[get] 等配置节覆盖成员方法。 | |
| -- 4. 智能转义与行内注释:原生支持单/双引号脱壳 ("val" -> val),完美过滤行尾注释 (;/##) 且不误伤引号内字符。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| solution 'StormLib' | |
| location 'build' | |
| language 'C++' | |
| configurations { 'Debug', 'Release', } | |
| platforms { 'x32', 'x64' } | |
| targetdir 'bin' | |
| objdir 'bin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- FILE: extract_winrar.lua | |
| -- AUTHOR: LeeoNix | |
| -- DESCRIPTION: | |
| -- NOTES: --- | |
| -- | |
| --[[ | |
| TOTALCMD#BAR#DATA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, sys, getopt, string | |
| import uuid | |
| template4 = """ | |
| newoption { | |
| trigger = 'to', | |
| value = 'path', | |
| description = 'Set the output location for the generated files' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * ===================================================================================== | |
| * | |
| * Filename: array.c | |
| * Description: array structure | |
| * Created: 2011-10-14 9:52:47 | |
| * | |
| * ===================================================================================== | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <ctype.h> | |
| #include <fcntl.h> | |
| #include <stddef.h> | |
| #include <stdarg.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <malloc.h> | |
| #include <errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program three_num_add; | |
| {$APPTYPE CONSOLE} | |
| uses | |
| Classes, | |
| SysUtils; | |
| type | |
| PResult = ^TResult; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, string | |
| template = """ | |
| CC = gcc | |
| CXX = g++ | |
| AR = ar | |
| DEFINES += | |
| CFLAGS = $(DEFINES) -c -O2 -Wall | |
| INCLUDES += |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: gbk | |
| <%! | |
| from textwrap import wrap | |
| import re | |
| %><% | |
| def replacer(s): | |
| try: | |
| return '(event == %s)' % (machine.event(s.group()).name) | |
| except KeyError: | |
| return '%s(param)' % machine.input(s.group()).name |
NewerOlder