public static string Visit(Random random, ISyntax syntax) { SyntaxVisitor syntaxVisitor = new SyntaxVisitor(random); syntax.Accept(syntaxVisitor); return(syntaxVisitor.builder_.ToString()); }
public static string AsString(this ISyntax node) { var visitor = new SyntaxStringifyVisitor(); node.Accept(visitor); return(visitor.ToString()); }