From d41c1f40a8abfb466741d2ccec55e21f11e6b63f Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Thu, 10 Jul 2008 05:40:45 +0000 Subject: Patch from Mike: errors from the LSL/C# compilers are now reported to the user in-world --- OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index 78c636e..82c7eda 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs @@ -43,7 +43,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools /// String containing LSL source. public CSCodeGenerator(string script) { - Parser p = new LSLSyntax(); + Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true)); // Obviously this needs to be in a try/except block. LSL2CSCodeTransformer codeTransformer = new LSL2CSCodeTransformer(p.Parse(script)); m_astRoot = codeTransformer.Transform(); -- cgit v1.1