aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs60
1 files changed, 34 insertions, 26 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs
index 572583b..8a22388 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/YPCompiler.cs
@@ -202,6 +202,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
202 return YP.unify(Symbol, Atom.a(Base.ToString() + ++((CompilerState)State)._gensymCounter)); 202 return YP.unify(Symbol, Atom.a(Base.ToString() + ++((CompilerState)State)._gensymCounter));
203 } 203 }
204 204
205 // disable warning on l1, don't see how we can
206 // code this differently
207 #pragma warning disable 0168
205 public static bool isDetNoneOut(object State, object Term) 208 public static bool isDetNoneOut(object State, object Term)
206 { 209 {
207 State = YP.getValue(State); 210 State = YP.getValue(State);
@@ -239,6 +242,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
239 242
240 return false; 243 return false;
241 } 244 }
245 #pragma warning restore 0168
242 246
243 /// <summary> 247 /// <summary>
244 /// Return false if any of args is out, otherwise true. 248 /// Return false if any of args is out, otherwise true.
@@ -275,6 +279,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
275 } 279 }
276 } 280 }
277 281
282 // disable warning on l1, don't see how we can
283 // code this differently
284 #pragma warning disable 0168, 0219
285
278 /// <summary> 286 /// <summary>
279 /// Use makeFunctionPseudoCode, convertFunctionCSharp and compileAnonymousFunction 287 /// Use makeFunctionPseudoCode, convertFunctionCSharp and compileAnonymousFunction
280 /// to return an anonymous YP.IClause for the Head and Body of a rule clause. 288 /// to return an anonymous YP.IClause for the Head and Body of a rule clause.
@@ -395,7 +403,7 @@ namespace Temporary {
395 public static void repeatWrite(object arg1, object N) 403 public static void repeatWrite(object arg1, object N)
396 { 404 {
397 { 405 {
398 object _Value = arg1; 406 // object _Value = arg1;
399 if (YP.termEqual(N, 0)) 407 if (YP.termEqual(N, 0))
400 { 408 {
401 return; 409 return;
@@ -470,7 +478,7 @@ namespace Temporary {
470 public static void processCompilerDirectives(object arg1, object arg2) 478 public static void processCompilerDirectives(object arg1, object arg2)
471 { 479 {
472 { 480 {
473 object _State = arg2; 481 // object _State = arg2;
474 foreach (bool l2 in YP.unify(arg1, Atom.NIL)) 482 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
475 { 483 {
476 return; 484 return;
@@ -3939,12 +3947,12 @@ namespace Temporary {
3939 YP.nl(); 3947 YP.nl();
3940 convertStatementListCSharp(RestStatements, Level); 3948 convertStatementListCSharp(RestStatements, Level);
3941 return; 3949 return;
3942 goto cutIf1; 3950 // goto cutIf1;
3943 } 3951 }
3944 convertStatementListCSharp(RestStatements, Level); 3952 convertStatementListCSharp(RestStatements, Level);
3945 return; 3953 return;
3946 cutIf1: 3954 // cutIf1:
3947 { } 3955 // { }
3948 } 3956 }
3949 } 3957 }
3950 { 3958 {
@@ -4111,12 +4119,12 @@ namespace Temporary {
4111 YP.write(Atom.a(@", ")); 4119 YP.write(Atom.a(@", "));
4112 convertArgListCSharp(Tail); 4120 convertArgListCSharp(Tail);
4113 return; 4121 return;
4114 goto cutIf1; 4122 // goto cutIf1;
4115 } 4123 }
4116 convertArgListCSharp(Tail); 4124 convertArgListCSharp(Tail);
4117 return; 4125 return;
4118 cutIf1: 4126 // cutIf1:
4119 { } 4127 // { }
4120 } 4128 }
4121 } 4129 }
4122 } 4130 }
@@ -4266,13 +4274,13 @@ namespace Temporary {
4266 YP.put_code(Code); 4274 YP.put_code(Code);
4267 convertStringCodesCSharp(RestCodes); 4275 convertStringCodesCSharp(RestCodes);
4268 return; 4276 return;
4269 goto cutIf1; 4277 // goto cutIf1;
4270 } 4278 }
4271 YP.put_code(Code); 4279 YP.put_code(Code);
4272 convertStringCodesCSharp(RestCodes); 4280 convertStringCodesCSharp(RestCodes);
4273 return; 4281 return;
4274 cutIf1: 4282 // cutIf1:
4275 { } 4283 // { }
4276 } 4284 }
4277 } 4285 }
4278 } 4286 }
@@ -4623,12 +4631,12 @@ namespace Temporary {
4623 YP.write(Atom.a(@", ")); 4631 YP.write(Atom.a(@", "));
4624 convertArgListJavascript(Tail); 4632 convertArgListJavascript(Tail);
4625 return; 4633 return;
4626 goto cutIf1; 4634 // goto cutIf1;
4627 } 4635 }
4628 convertArgListJavascript(Tail); 4636 convertArgListJavascript(Tail);
4629 return; 4637 return;
4630 cutIf1: 4638 // cutIf1:
4631 { } 4639 // { }
4632 } 4640 }
4633 } 4641 }
4634 } 4642 }
@@ -4777,7 +4785,7 @@ namespace Temporary {
4777 YP.put_code(Code); 4785 YP.put_code(Code);
4778 convertStringCodesJavascript(RestCodes); 4786 convertStringCodesJavascript(RestCodes);
4779 return; 4787 return;
4780 goto cutIf1; 4788 // goto cutIf1;
4781 } 4789 }
4782 if (YP.termEqual(Code, 92)) 4790 if (YP.termEqual(Code, 92))
4783 { 4791 {
@@ -4785,13 +4793,13 @@ namespace Temporary {
4785 YP.put_code(Code); 4793 YP.put_code(Code);
4786 convertStringCodesJavascript(RestCodes); 4794 convertStringCodesJavascript(RestCodes);
4787 return; 4795 return;
4788 goto cutIf1; 4796 // goto cutIf1;
4789 } 4797 }
4790 YP.put_code(Code); 4798 YP.put_code(Code);
4791 convertStringCodesJavascript(RestCodes); 4799 convertStringCodesJavascript(RestCodes);
4792 return; 4800 return;
4793 cutIf1: 4801 // cutIf1:
4794 { } 4802 // { }
4795 } 4803 }
4796 } 4804 }
4797 } 4805 }
@@ -5420,12 +5428,12 @@ namespace Temporary {
5420 YP.write(Atom.a(@", ")); 5428 YP.write(Atom.a(@", "));
5421 convertArgListPython(Tail); 5429 convertArgListPython(Tail);
5422 return; 5430 return;
5423 goto cutIf1; 5431 // goto cutIf1;
5424 } 5432 }
5425 convertArgListPython(Tail); 5433 convertArgListPython(Tail);
5426 return; 5434 return;
5427 cutIf1: 5435 // cutIf1:
5428 { } 5436 // { }
5429 } 5437 }
5430 } 5438 }
5431 } 5439 }
@@ -5573,7 +5581,7 @@ namespace Temporary {
5573 YP.put_code(Code); 5581 YP.put_code(Code);
5574 convertStringCodesPython(RestCodes); 5582 convertStringCodesPython(RestCodes);
5575 return; 5583 return;
5576 goto cutIf1; 5584 // goto cutIf1;
5577 } 5585 }
5578 if (YP.termEqual(Code, 92)) 5586 if (YP.termEqual(Code, 92))
5579 { 5587 {
@@ -5581,13 +5589,13 @@ namespace Temporary {
5581 YP.put_code(Code); 5589 YP.put_code(Code);
5582 convertStringCodesPython(RestCodes); 5590 convertStringCodesPython(RestCodes);
5583 return; 5591 return;
5584 goto cutIf1; 5592 // goto cutIf1;
5585 } 5593 }
5586 YP.put_code(Code); 5594 YP.put_code(Code);
5587 convertStringCodesPython(RestCodes); 5595 convertStringCodesPython(RestCodes);
5588 return; 5596 return;
5589 cutIf1: 5597 // cutIf1:
5590 { } 5598 // { }
5591 } 5599 }
5592 } 5600 }
5593 } 5601 }
@@ -5646,6 +5654,6 @@ namespace Temporary {
5646 } 5654 }
5647 } 5655 }
5648 } 5656 }
5649 5657 #pragma warning restore 0168, 0219
5650 } 5658 }
5651} 5659}