tree(root, parser, RootNode.TREE_ROOT_END);
return root;
}
static void tree(Node node, TokenParser parser, String endName) {
Token token;
TagToken tag;
MacroToken macro;
while( parser.hasNext() ) {
token = parser.next();
switch(token.getType()) {
case TOKEN_FIXED :
TextNode tn = new TextNode((FixedToken)token);
node.add(tn);
break;
case TOKEN_NOTE :