Tag: yaml

在c-compile期间使用luarocks为lua安装yaml的问题

我有lua,我使用了luarocks。 编辑:在Windows系统上 我从v202-3这里下载了luasocket-2.0.2-3.win32-x86.rock文件,成功安装了luasocket。 它是一个旧版本,但它的工作原理。 但是现在我需要安装yaml所以我可以使用yaml文件。 现在我被迫使用* .src.rock文件或.rockspec文件进行安装。 我试过了: luarocks install yaml ,它给出: D:\user\workspace\_lua>luarocks install yaml Warning: Failed searching manifest: Failed fetching manifest for https://luarocks.org – Failed downloading https://luarocks.org/manifest – C:\Users\user\AppData\Local/LuaRocks/Cache/https___luarocks.org/manifest Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/ – Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest – C:\Users\user\AppData\Local/LuaRocks/Cache/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master_/manifest Warning: Failed searching manifest: Failed fetching manifest for http://luafr.org/moonrocks/ – […]

用于嵌入式系统的简约人类可读序列化格式解析器

“人类可读的序列化格式”是指YAML , JSON , INI等。 请注意, XML对于我的目的来说太冗长和太不方便了,所以让我们把它作为最后的手段。 格式应将数据存储为“命名键 – 值”对,并允许嵌套和数组。 但是,缺少数组并不重要。 此外,非常感谢类型感知(不仅将数据作为普通字符串返回的能力)。 我真正需要的是一个纯C库,它提供了一个用于解析数据的API(编码是可选的,不太重要)。 在为ARM7编译时,它必须适合大约16-20 KiB。 我已经用Google搜索并在周围徘徊,但找不到符合上述所有要求的工件。