the tkTree
S-expr String
export function tkTreeToSExp(t: tkTree): string{ var str = "";
if (Array.isArray(t)){ let strArray = t.map((x)=>tkTreeToSExp(x)); str = "(" + strArray.join("◎") + ")"; }else{ if (t=== undefined){ str = "%undefined" }else{ str = t; } }
return str; }
Generated using TypeDoc
convert a
tkTree
AST to S-expr string