48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
/***************************************************************************
|
|
* GodeGenerators.cs
|
|
* -------------------
|
|
* ñîçäàí : 26.04.2006
|
|
* copyright : (C) 2006 MiksCompilerTeam
|
|
* ðåäàêòîð : Èâàí
|
|
* email :
|
|
*
|
|
* âåðñèÿ : 1.0.0 26.04.2006 23:14:34
|
|
*
|
|
*
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
*
|
|
* Èíòåðôåéñ äîñòóïà ê êîäîãåíåðàòîðàì äëÿ Compiler
|
|
* Çàâèñèò îò SemanticTree
|
|
*
|
|
***************************************************************************/
|
|
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace PascalABCCompiler.CodeGenerators
|
|
{
|
|
/*public class CodeGeneratorOptions
|
|
{
|
|
public NETGenerator.TargetType TargetType;
|
|
}*/
|
|
|
|
public class Controller
|
|
{
|
|
private NETGenerator.ILConverter il_converter;//=new NETGenerator.ILConverter();
|
|
|
|
public void Compile(SemanticTree.IProgramNode ProgramTree,string TargetFileName,string SourceFileName ,
|
|
NETGenerator.CompilerOptions options, Hashtable StandartDirectories, string[] ResourceFiles)
|
|
{
|
|
il_converter = new NETGenerator.ILConverter(StandartDirectories);
|
|
il_converter.ConvertFromTree(ProgramTree,TargetFileName,SourceFileName,options,ResourceFiles);
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
il_converter = null;
|
|
}
|
|
}
|
|
}
|