Bean(TM) Nuts Pinecone for C/CPP
Atom家族 (曾用名Cell)

摘要

Atom家族包括Atom、Dictron(基本数据类型字典)、Listron(基本数据类型List),为一组类似JSON容器的万能基本数据类型容器,支持integer、float、string等,支持运算符重载,支持类似JS、PHP、Python的动态运算,支持嵌套,支持引用类型,完美支持JSON5。
Atom is devised as fundamental element-unit Like int, bool, double, String etc; This element is different with aton, it ONLY supported fundamental element
!! Notice: Don’t abuse this function ! It will slow down your program’s running speed !
!! Notice: Don’t try to use Atom as a normal element, It’s just a tiny K-V database.
[Atom is just node of K-V database (Dictron), also it is JSON like node !]
For CPP , Aton and Atom realized weak type programming successfully. For Atom , it used dynamic type to realize this mechanism just like PHP,JS,etc.!!!

Atom被设计为基本元素单元,如int、bool、double、String等;这个元素与aton不同,它只支持基本元素
!!注意:请勿滥用此功能!它会降低程序的运行速度!
!!注意:不要试图将Atom用作普通元素,它只是一个很小的K-V数据库。
[Atom只是K-V数据库(Dictron)的节点,也是类似JSON的节点!]
对于CPP,Aton和Atom成功地实现了弱类型编程。对于Atom,它使用动态类型来实现这种机制,就像PHP、JS等一样。!!!

预览

类定义

各类运算符支持 (与JS类似)

使用

运算符使用

递归嵌套

JSON5支持

Author:undefined  Create time:2023-07-29 16:01
Last editor:undefined  Update time:2023-07-29 19:23