pascalabcnet/NETGenerator/CodeGenerator.cs

37 lines
1.2 KiB
C#
Raw Normal View History

2015-06-01 22:15:17 +03:00
// Copyright (c) Ivan Bondarev, Stanislav Mihalkovich (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
2015-05-14 22:35:07 +03:00
/***************************************************************************
*
* Интерфейс доступа к кодогенераторам для Compiler
* Зависит от SemanticTree
2015-05-14 22:35:07 +03:00
*
***************************************************************************/
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;
}
}
}