Last active
August 29, 2015 14:22
-
-
Save akselqviller/e72c0d57c6f9f92422d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static LinkedTree<SExpNode> BuildTree(string literal, params LinkedTree<SExpNode>[] subNodes) | |
{ | |
var node = new LinkedTree<SExpNode>(new SExpNode() { Literal = literal }); | |
foreach (var subNode in subNodes) | |
{ | |
node.AddSubNodeLast(subNode); | |
} | |
return node; | |
} | |
private static LinkedTree<SExpNode> BuildTree(string literal, params string[] subLiterals) | |
{ | |
var node = new LinkedTree<SExpNode>(new SExpNode() { Literal = literal }); | |
foreach (var subLiteral in subLiterals) | |
{ | |
node.AddSubNodeLast(BuildTree(subLiteral)); | |
} | |
return node; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment