aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorJohan Berntsson2008-07-10 05:40:45 +0000
committerJohan Berntsson2008-07-10 05:40:45 +0000
commitd41c1f40a8abfb466741d2ccec55e21f11e6b63f (patch)
tree77cdcb06001ce5f4106b1f09a1a8ba2fb73a60c4 /OpenSim/Region/ScriptEngine/Shared
parentMantis#1707. Thank you, Melanie for a patch that: (diff)
downloadopensim-SC_OLD-d41c1f40a8abfb466741d2ccec55e21f11e6b63f.zip
opensim-SC_OLD-d41c1f40a8abfb466741d2ccec55e21f11e6b63f.tar.gz
opensim-SC_OLD-d41c1f40a8abfb466741d2ccec55e21f11e6b63f.tar.bz2
opensim-SC_OLD-d41c1f40a8abfb466741d2ccec55e21f11e6b63f.tar.xz
Patch from Mike: errors from the LSL/C# compilers are now reported to the user in-world
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs2
1 files changed, 1 insertions, 1 deletions
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
43 /// <param name="script">String containing LSL source.</param> 43 /// <param name="script">String containing LSL source.</param>
44 public CSCodeGenerator(string script) 44 public CSCodeGenerator(string script)
45 { 45 {
46 Parser p = new LSLSyntax(); 46 Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true));
47 // Obviously this needs to be in a try/except block. 47 // Obviously this needs to be in a try/except block.
48 LSL2CSCodeTransformer codeTransformer = new LSL2CSCodeTransformer(p.Parse(script)); 48 LSL2CSCodeTransformer codeTransformer = new LSL2CSCodeTransformer(p.Parse(script));
49 m_astRoot = codeTransformer.Transform(); 49 m_astRoot = codeTransformer.Transform();