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

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

问题描述

通过的人类可读的序列化格式的我的意思是 YAML JSON INI 或喜欢。请注意, 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.

应该存储数据的格式命名的键 - 值的对,并允许嵌套和数组。阵列的缺席不是关键的,虽然。此外,类型意识(能够返回,不仅为纯字符串数据)是高度AP preciated。

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昆明植物研究所。

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和周围wikied,但找不到满足上述所有要求的工件。

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

推荐答案

我发现杨松的一段时间回来了,它可能适合你的需求。

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

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

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