用于嵌入式系统的简约人类可读序列化格式解析器 [英] A minimalistic human-readable serialisation format parser for an embedded system

查看:8
本文介绍了用于嵌入式系统的简约人类可读序列化格式解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人类可读的序列化格式"我的意思是 YAMLJSONINI 等.请注意,XML 对于我的目的来说太冗长而且太不方便了,所以让我们把它放在最后吧.

By "human-readable serialisation format" I mean YAML, JSON, INI or like. Please note, XML is too verbose and too inconvenient for my purposes, so let's leave it alone as the last resort.

该格式应将数据存储为命名键-值" 对,并允许嵌套和数组.不过,没有数组并不重要.此外,类型感知(不仅能够以纯字符串形式返回数据的能力)也受到高度赞赏.

The format should store the data as "named key -- value" pairs and allow for nesting and arrays. Absence of arrays is not critical, though. Also, type-awareness (ability to return data not only as plain strings) is highly appreciated.

我真正需要的是一个纯 C 库,它提供了一个用于解析数据的 API(编码是可选的并且不太重要).当为 ARM7 编译时,它必须适合大约 16-20 KiB.

What I need exactly is a pure C library, which provides an API for parsing data (encoding is optional and of lesser importance). It must fit into somewhat about 16-20 KiB, when compiled for ARM7.

我在 Google 和 wiki 上搜索过,但找不到满足上述所有要求的工件.

I've googled and wikied around, but couldn't find an artifact satisfying all the above requirements.

推荐答案

我找到了 Jansson回来,它可能符合您的要求.

I found Jansson a while back and it might fit your requirements.

这篇关于用于嵌入式系统的简约人类可读序列化格式解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆