20 lines
731 B
C#
20 lines
731 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using PascalABCCompiler.SyntaxTree;
|
|
|
|
namespace PascalABCCompiler.SyntaxTreeConverters
|
|
{
|
|
class StandardSyntaxTreeConverter: ISyntaxTreeConverter
|
|
{
|
|
public string Name { get; } = "Standard";
|
|
public syntax_tree_node Convert(syntax_tree_node root)
|
|
{
|
|
//FillParentNodeVisitor.New.ProcessNode(root); // прошивание ссылками на Parent nodes
|
|
// Пока нельзя вызывать - если это делать, то ObjectCopier.Clone провоцирует катастрофически долгое время работы!!!
|
|
return root;
|
|
}
|
|
}
|
|
}
|