diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-08 10:21:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 10:15:23 -0800 |
commit | e564e0af5c2f7b9732e89707655068e507579a89 (patch) | |
tree | a9908e1340ce4cf3f1bfd73d85db844151966423 /data | |
parent | 6b8f1433347557076140afb35ef4d9f036a658f9 (diff) |
Use linked list instead of arrays for AST.
Use the same doubly linked node structure that cmark uses.
The primary advantages of this change are (a) simplified code,
especially in the renderers, and (b) elimination of the need for
recursion, so we can render deeply-nested structures without a
stack overflow.
A node walker has also been added, for easy AST traversal.
* Added js/lib/node.js for nodes. Includes a node walker.
* All modules updated to use node structures.
* Regularized position information into pos property.
* Performance is slightly worse than before, but only marginally,
and no doubt there are more optimizations that can be done.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions