2015-06-28 10:53:10 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
using PascalABCCompiler;
|
|
|
|
|
|
using PascalABCCompiler.SyntaxTree;
|
|
|
|
|
|
|
2015-08-17 21:15:22 +03:00
|
|
|
|
namespace SyntaxVisitors
|
2015-06-28 10:53:10 +03:00
|
|
|
|
{
|
2015-08-17 21:15:22 +03:00
|
|
|
|
public class BaseEnterExitVisitor : WalkingVisitorNew
|
2015-06-28 10:53:10 +03:00
|
|
|
|
{
|
|
|
|
|
|
public BaseEnterExitVisitor()
|
|
|
|
|
|
{
|
|
|
|
|
|
OnEnter = Enter;
|
|
|
|
|
|
OnLeave = Exit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual void Enter(syntax_tree_node st)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
public virtual void Exit(syntax_tree_node st)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|