/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.0-alpha-2
src/ScriptEngine/ICompilerService.cs
34 строки
1 KB
EvilBeaver
Вынес компоненты старого компилятора в отдельную сборку. Вдруг пригодится.
30 янв 2021, 20:24
30 янв 2021, 20:24
cabb440
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using OneScript.Language.SyntaxAnalysis; using ScriptEngine.Compiler; using ScriptEngine.Environment; using ScriptEngine.Machine; namespace ScriptEngine { /// <summary> /// Сервис компиляции единичного модуля. /// </summary> public interface ICompilerService { CodeGenerationFlags ProduceExtraCode { get; set; } int DefineVariable(string name, string alias, SymbolType type); int DefineMethod(MethodInfo methodInfo); void DefinePreprocessorValue(string name); ModuleImage Compile(ICodeSource source); ModuleImage CompileExpression(ICodeSource source); ModuleImage CompileBatch(ICodeSource source); } }