-
Notifications
You must be signed in to change notification settings - Fork 1
encoding
decalek edited this page May 25, 2012
·
1 revision
xmlite uses very simple Pathfinder inspired hierarchy encoding, consisitng of sequential numbering of tree nodes along with the node depth level, like in the following sample:
0 1 2
----------------------
0| Module 1
1| Const 1.1
2| Function 1.2
3| Argument 1.2.1
4| Module 2
5| Function 2.1
Should be encoded into the node-type and node tables as follows:
Type, Name
---------------
1, Module
2, Function
3, Argument
4, Cosnt
Index, Level, Type
------------------
0, 0, 1
1, 1, 4
2, 1, 2
3, 2, 3
4, 0, 1
5, 1, 2