4 ms·
I would recommend storing your data using Tree Notation in a Tree Language. That way your data is as simple as possible. You could then compile it to whatever f
by breck 7y ago
I would recommend storing your data using Tree Notation in a Tree Language. That way your data is as simple as possible. You could then compile it to whatever format is needed by your downstream tools. Here's a quick start:
http://treenotation.org/sandbox/build/#grammar%0A%20nodeType%20graph%0A%20%20root%0A%20%20description%20A%20new%20language%20for%20graphs%20in%20response%20to%20an%20HN%20comment.%0A%20%20catchAllNodeType%20catchAllError%0A%20%20inScope%20node%0A%20cellType%20keyword%0A%20%20highlightScope%20keyword%0A%20cellType%20intCell%0A%20%20highlightScope%20constant.numeric.integer%0A%20cellType%20deviceTypeCell%0A%20%20enum%20Router%20RaspberryPi%0A%20cellType%20nodeIdCell%0A%20%20highlightScope%20meta.annotation.identifier%0A%20nodeType%20node%0A%20%20cells%20nodeIdCell%0A%20%20firstCellType%20keyword%0A%20%20inScope%20deviceTypeNode%20floor%20connectsTo%0A%20nodeType%20floor%0A%20%20cells%20intCell%0A%20%20firstCellType%20keyword%0A%20nodeType%20connectsTo%0A%20%20cells%20nodeIdCell%0A%20%20firstCellType%20keyword%0A%20nodeType%20deviceTypeNode%0A%20%20match%20type%0A%20%20cells%20deviceTypeCell%0A%20%20firstCellType%20keyword%0A%20nodeType%20catchAllError%0A%20%20baseNodeType%20errorNode%0Asample%0A%20node%20thermometer%0A%20%20floor%201%0A%20%20type%20RaspberryPi%0A%20%20connectsTo%20router1%0A%20node%20router1%0A%20%20type%20Router%0A%20%20floor%201 http://treenotation.org/sandbox/build/#grammar%0A%20nodeType...