Code comments and cleanup, correct datatypes for key, vector, rotation, (hopefully) reference to Axiom during compile, passing of BuiltIns during script load, BuiltIn interface added, etc etc

This commit is contained in:
Tedd Hansen
2007-08-12 17:37:37 +00:00
parent 7a5474ec28
commit fd63c0cd32
8 changed files with 101 additions and 121 deletions

View File

@@ -16,16 +16,21 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
{
string OutFile = Path.GetFileNameWithoutExtension(LSOFileName);
// Output assembly name
string OutFile = Path.GetFileNameWithoutExtension(LSOFileName) + ".dll";
// TODO: Add error handling
string CS_Code = LSL_Converter.Convert(File.ReadAllText(LSOFileName));
// Do actual compile
System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters();
parameters.GenerateExecutable = true;
parameters.IncludeDebugInformation = true;
parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment");
parameters.GenerateExecutable = false;
parameters.OutputAssembly = OutFile;
CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, CS_Code);
// Go through errors
// TODO: Return errors to user somehow
if (results.Errors.Count > 0)
{