Merge pull request #14 from mlang/SCDocNode.storeLispOn

Allow serialisation of SCDocNode trees to Emacs Lisp
This commit is contained in:
Brian Heim 2019-12-15 10:04:26 -06:00 committed by GitHub
commit da28459931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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