Merge pull request #14 from mlang/SCDocNode.storeLispOn
Allow serialisation of SCDocNode trees to Emacs Lisp
This commit is contained in:
commit
da28459931
1 changed files with 15 additions and 1 deletions
|
@ -116,4 +116,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
+ SCDocNode {
|
||||
storeLispOn { arg stream;
|
||||
stream.put($();
|
||||
id.storeLispOn(stream);
|
||||
stream.space;
|
||||
text.storeLispOn(stream);
|
||||
children.do {|child|
|
||||
stream.space;
|
||||
child.storeLispOn(stream);
|
||||
};
|
||||
stream.put($));
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
|
Loading…
Reference in a new issue