StandardSyntaxConverter - поменял имя
This commit is contained in:
parent
ce9188f0ca
commit
342a914d39
23
StandardSyntaxTreeConverter/StandardSyntaxConverter.cs
Normal file
23
StandardSyntaxTreeConverter/StandardSyntaxConverter.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using PascalABCCompiler.SyntaxTree;
|
||||
|
||||
namespace PascalABCCompiler.SyntaxTreeConverters
|
||||
{
|
||||
public class StandardSyntaxTreeConverter: ISyntaxTreeConverter
|
||||
{
|
||||
public string Name { get; } = "Standard";
|
||||
public syntax_tree_node Convert(syntax_tree_node root)
|
||||
{
|
||||
// Прошивание ссылками на Parent nodes. Должно идти первым
|
||||
FillParentNodeVisitor.New.ProcessNode(root);
|
||||
|
||||
// Выносим выражения с лямбдами из заголовка foreach
|
||||
StandOutExprWithLambdaInForeachSequenceVisitor.New.ProcessNode(root);
|
||||
|
||||
return root;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue