Work in progress on SECS stuff. Have been holding it off until after 0.6 release. Still messy as hell and doesn't really work yet. Will undergo dramatic changes. AND MOST IMPORTANTLY: Will be conformed to work in coop with todays DNE and XEngine, hopefully one day providing a common interface for all components.

This commit is contained in:
Tedd Hansen
2008-11-08 17:35:48 +00:00
parent cf0a14bec9
commit 9511a8c763
53 changed files with 2997 additions and 573 deletions

View File

@@ -26,19 +26,32 @@
*/
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using OpenSim.ApplicationPlugins.ScriptEngine.Components;
using OpenSim.ScriptEngine.Components.DotNetEngine.Compilers.LSL;
using OpenSim.ScriptEngine.Shared;
namespace OpenSim.ScriptEngine.Components.DotNetEngine.Compilers
{
public class Compiler_LSL : CompilerBase
public class Compiler_LSL : IScriptCompiler
{
public override void Start()
private readonly Compiler_CS m_Compiler_CS = new Compiler_CS();
private readonly LSL2CS m_LSL2CS = new LSL2CS();
public string Compile(ScriptMetaData scriptMetaData, ref string script)
{
// Convert script to CS
string scriptCS = m_LSL2CS.Convert(ref script);
// Use CS compiler to compile it
return m_Compiler_CS.Compile(scriptMetaData, ref scriptCS);
}
public override void Close()
public string PreProcessScript(ref string script)
{
// This is handled by our converter
return script;
}
}
}