aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-03 21:44:39 +1000
committerDavid Walter Seikel2016-11-03 21:44:39 +1000
commit134f86e8d5c414409631b25b8c6f0ee45fbd8631 (patch)
tree216b89d3fb89acfb81be1e440c25c41ab09fa96d /OpenSim/Region/ScriptEngine/Shared
parentMore changing to production grid. Double oops. (diff)
downloadopensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.zip
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.gz
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.bz2
opensim-SC_OLD-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.xz
Initial update to OpenSim 0.8.2.1 source code.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs329
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs5807
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs431
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs79
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs488
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs18
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Properties/AssemblyInfo.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs9
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs26
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs75
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs39
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs60
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Properties/AssemblyInfo.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Atom.cs218
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/BagofAnswers.cs239
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/FindallAnswers.cs108
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor.cs196
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor1.cs124
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor2.cs163
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor3.cs141
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/IndexedAnswers.cs385
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/ListPair.cs166
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs4575
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/PrologException.cs159
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Properties/AssemblyInfo.cs33
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/UndefinedPredicateException.cs62
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Variable.cs222
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs2701
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs6382
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs151
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs314
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs10
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Properties/AssemblyInfo.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CompilerTest.cs124
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs359
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs117
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs3433
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.parser.cs18414
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Helpers.cs18
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/Properties/AssemblyInfo.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs806
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs513
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs274
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Properties/AssemblyInfo.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.cs158
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiHttpTests.cs248
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs126
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs50
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiListTests.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiNotecardTests.cs269
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiObjectTests.cs398
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs240
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiUserTests.cs157
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAppearanceTest.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAttachmentTests.cs17
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs7
58 files changed, 21796 insertions, 27669 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index 47a9cdc..036cb5d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -28,7 +28,9 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Reflection;
31using System.Threading; 32using System.Threading;
33using log4net;
32using OpenMetaverse; 34using OpenMetaverse;
33using OpenSim.Framework; 35using OpenSim.Framework;
34using OpenSim.Framework.Monitoring; 36using OpenSim.Framework.Monitoring;
@@ -45,15 +47,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
45 /// </summary> 47 /// </summary>
46 public class AsyncCommandManager 48 public class AsyncCommandManager
47 { 49 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51
48 private static Thread cmdHandlerThread; 52 private static Thread cmdHandlerThread;
49 private static int cmdHandlerThreadCycleSleepms; 53 private static int cmdHandlerThreadCycleSleepms;
50 54
51 private static List<IScene> m_Scenes = new List<IScene>(); 55 /// <summary>
56 /// Lock for reading/writing static components of AsyncCommandManager.
57 /// </summary>
58 /// <remarks>
59 /// This lock exists so that multiple threads from different engines and/or different copies of the same engine
60 /// are prevented from running non-thread safe code (e.g. read/write of lists) concurrently.
61 /// </remarks>
62 private static object staticLock = new object();
63
52 private static List<IScriptEngine> m_ScriptEngines = 64 private static List<IScriptEngine> m_ScriptEngines =
53 new List<IScriptEngine>(); 65 new List<IScriptEngine>();
54 66
55 public IScriptEngine m_ScriptEngine; 67 public IScriptEngine m_ScriptEngine;
56 private IScene m_Scene;
57 68
58 private static Dictionary<IScriptEngine, Dataserver> m_Dataserver = 69 private static Dictionary<IScriptEngine, Dataserver> m_Dataserver =
59 new Dictionary<IScriptEngine, Dataserver>(); 70 new Dictionary<IScriptEngine, Dataserver>();
@@ -70,67 +81,99 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
70 81
71 public Dataserver DataserverPlugin 82 public Dataserver DataserverPlugin
72 { 83 {
73 get { return m_Dataserver[m_ScriptEngine]; } 84 get
85 {
86 lock (staticLock)
87 return m_Dataserver[m_ScriptEngine];
88 }
74 } 89 }
75 90
76 public Timer TimerPlugin 91 public Timer TimerPlugin
77 { 92 {
78 get { return m_Timer[m_ScriptEngine]; } 93 get
94 {
95 lock (staticLock)
96 return m_Timer[m_ScriptEngine];
97 }
79 } 98 }
80 99
81 public HttpRequest HttpRequestPlugin 100 public HttpRequest HttpRequestPlugin
82 { 101 {
83 get { return m_HttpRequest[m_ScriptEngine]; } 102 get
103 {
104 lock (staticLock)
105 return m_HttpRequest[m_ScriptEngine];
106 }
84 } 107 }
85 108
86 public Listener ListenerPlugin 109 public Listener ListenerPlugin
87 { 110 {
88 get { return m_Listener[m_ScriptEngine]; } 111 get
112 {
113 lock (staticLock)
114 return m_Listener[m_ScriptEngine];
115 }
89 } 116 }
90 117
91 public SensorRepeat SensorRepeatPlugin 118 public SensorRepeat SensorRepeatPlugin
92 { 119 {
93 get { return m_SensorRepeat[m_ScriptEngine]; } 120 get
121 {
122 lock (staticLock)
123 return m_SensorRepeat[m_ScriptEngine];
124 }
94 } 125 }
95 126
96 public XmlRequest XmlRequestPlugin 127 public XmlRequest XmlRequestPlugin
97 { 128 {
98 get { return m_XmlRequest[m_ScriptEngine]; } 129 get
130 {
131 lock (staticLock)
132 return m_XmlRequest[m_ScriptEngine];
133 }
99 } 134 }
100 135
101 public IScriptEngine[] ScriptEngines 136 public IScriptEngine[] ScriptEngines
102 { 137 {
103 get { return m_ScriptEngines.ToArray(); } 138 get
139 {
140 lock (staticLock)
141 return m_ScriptEngines.ToArray();
142 }
104 } 143 }
105 144
106 public AsyncCommandManager(IScriptEngine _ScriptEngine) 145 public AsyncCommandManager(IScriptEngine _ScriptEngine)
107 { 146 {
108 m_ScriptEngine = _ScriptEngine; 147 m_ScriptEngine = _ScriptEngine;
109 m_Scene = m_ScriptEngine.World; 148
110 149 // If there is more than one scene in the simulator or multiple script engines are used on the same region
111 if (m_Scenes.Count == 0) 150 // then more than one thread could arrive at this block of code simultaneously. However, it cannot be
112 ReadConfig(); 151 // executed concurrently both because concurrent list operations are not thread-safe and because of other
113 152 // race conditions such as the later check of cmdHandlerThread == null.
114 if (!m_Scenes.Contains(m_Scene)) 153 lock (staticLock)
115 m_Scenes.Add(m_Scene); 154 {
116 if (!m_ScriptEngines.Contains(m_ScriptEngine)) 155 if (m_ScriptEngines.Count == 0)
117 m_ScriptEngines.Add(m_ScriptEngine); 156 ReadConfig();
118 157
119 // Create instances of all plugins 158 if (!m_ScriptEngines.Contains(m_ScriptEngine))
120 if (!m_Dataserver.ContainsKey(m_ScriptEngine)) 159 m_ScriptEngines.Add(m_ScriptEngine);
121 m_Dataserver[m_ScriptEngine] = new Dataserver(this); 160
122 if (!m_Timer.ContainsKey(m_ScriptEngine)) 161 // Create instances of all plugins
123 m_Timer[m_ScriptEngine] = new Timer(this); 162 if (!m_Dataserver.ContainsKey(m_ScriptEngine))
124 if (!m_HttpRequest.ContainsKey(m_ScriptEngine)) 163 m_Dataserver[m_ScriptEngine] = new Dataserver(this);
125 m_HttpRequest[m_ScriptEngine] = new HttpRequest(this); 164 if (!m_Timer.ContainsKey(m_ScriptEngine))
126 if (!m_Listener.ContainsKey(m_ScriptEngine)) 165 m_Timer[m_ScriptEngine] = new Timer(this);
127 m_Listener[m_ScriptEngine] = new Listener(this); 166 if (!m_HttpRequest.ContainsKey(m_ScriptEngine))
128 if (!m_SensorRepeat.ContainsKey(m_ScriptEngine)) 167 m_HttpRequest[m_ScriptEngine] = new HttpRequest(this);
129 m_SensorRepeat[m_ScriptEngine] = new SensorRepeat(this); 168 if (!m_Listener.ContainsKey(m_ScriptEngine))
130 if (!m_XmlRequest.ContainsKey(m_ScriptEngine)) 169 m_Listener[m_ScriptEngine] = new Listener(this);
131 m_XmlRequest[m_ScriptEngine] = new XmlRequest(this); 170 if (!m_SensorRepeat.ContainsKey(m_ScriptEngine))
132 171 m_SensorRepeat[m_ScriptEngine] = new SensorRepeat(this);
133 StartThread(); 172 if (!m_XmlRequest.ContainsKey(m_ScriptEngine))
173 m_XmlRequest[m_ScriptEngine] = new XmlRequest(this);
174
175 StartThread();
176 }
134 } 177 }
135 178
136 private static void StartThread() 179 private static void StartThread()
@@ -139,7 +182,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
139 { 182 {
140 // Start the thread that will be doing the work 183 // Start the thread that will be doing the work
141 cmdHandlerThread 184 cmdHandlerThread
142 = Watchdog.StartThread( 185 = WorkManager.StartThread(
143 CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true); 186 CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true);
144 } 187 }
145 } 188 }
@@ -179,42 +222,43 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
179 { 222 {
180 try 223 try
181 { 224 {
182 while (true) 225 Thread.Sleep(cmdHandlerThreadCycleSleepms);
183 {
184 Thread.Sleep(cmdHandlerThreadCycleSleepms);
185 226
186 DoOneCmdHandlerPass(); 227 DoOneCmdHandlerPass();
187 228
188 Watchdog.UpdateThread(); 229 Watchdog.UpdateThread();
189 }
190 } 230 }
191 catch 231 catch (Exception e)
192 { 232 {
233 m_log.Error("[ASYNC COMMAND MANAGER]: Exception in command handler pass: ", e);
193 } 234 }
194 } 235 }
195 } 236 }
196 237
197 private static void DoOneCmdHandlerPass() 238 private static void DoOneCmdHandlerPass()
198 { 239 {
199 // Check HttpRequests 240 lock (staticLock)
200 m_HttpRequest[m_ScriptEngines[0]].CheckHttpRequests(); 241 {
242 // Check HttpRequests
243 m_HttpRequest[m_ScriptEngines[0]].CheckHttpRequests();
201 244
202 // Check XMLRPCRequests 245 // Check XMLRPCRequests
203 m_XmlRequest[m_ScriptEngines[0]].CheckXMLRPCRequests(); 246 m_XmlRequest[m_ScriptEngines[0]].CheckXMLRPCRequests();
204 247
205 foreach (IScriptEngine s in m_ScriptEngines) 248 foreach (IScriptEngine s in m_ScriptEngines)
206 { 249 {
207 // Check Listeners 250 // Check Listeners
208 m_Listener[s].CheckListeners(); 251 m_Listener[s].CheckListeners();
209 252
210 // Check timers 253 // Check timers
211 m_Timer[s].CheckTimerEvents(); 254 m_Timer[s].CheckTimerEvents();
212 255
213 // Check Sensors 256 // Check Sensors
214 m_SensorRepeat[s].CheckSenseRepeaterEvents(); 257 m_SensorRepeat[s].CheckSenseRepeaterEvents();
215 258
216 // Check dataserver 259 // Check dataserver
217 m_Dataserver[s].ExpireRequests(); 260 m_Dataserver[s].ExpireRequests();
261 }
218 } 262 }
219 } 263 }
220 264
@@ -225,19 +269,44 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
225 /// <param name="itemID"></param> 269 /// <param name="itemID"></param>
226 public static void RemoveScript(IScriptEngine engine, uint localID, UUID itemID) 270 public static void RemoveScript(IScriptEngine engine, uint localID, UUID itemID)
227 { 271 {
272// m_log.DebugFormat("[ASYNC COMMAND MANAGER]: Removing facilities for script {0}", itemID);
273
274 lock (staticLock)
275 {
276 // Remove dataserver events
277 m_Dataserver[engine].RemoveEvents(localID, itemID);
278
279 // Remove from: Timers
280 m_Timer[engine].UnSetTimerEvents(localID, itemID);
281
282 // Remove from: HttpRequest
283 IHttpRequestModule iHttpReq = engine.World.RequestModuleInterface<IHttpRequestModule>();
284 if (iHttpReq != null)
285 iHttpReq.StopHttpRequestsForScript(itemID);
286
287 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>();
288 if (comms != null)
289 comms.DeleteListener(itemID);
290
291 IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>();
292 if (xmlrpc != null)
293 {
294 xmlrpc.DeleteChannels(itemID);
295 xmlrpc.CancelSRDRequests(itemID);
296 }
297
298 // Remove Sensors
299 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
300 }
301 }
302
303 public static void StateChange(IScriptEngine engine, uint localID, UUID itemID)
304 {
228 // Remove a specific script 305 // Remove a specific script
229 306
230 // Remove dataserver events 307 // Remove dataserver events
231 m_Dataserver[engine].RemoveEvents(localID, itemID); 308 m_Dataserver[engine].RemoveEvents(localID, itemID);
232 309
233 // Remove from: Timers
234 m_Timer[engine].UnSetTimerEvents(localID, itemID);
235
236 // Remove from: HttpRequest
237 IHttpRequestModule iHttpReq = engine.World.RequestModuleInterface<IHttpRequestModule>();
238 if (iHttpReq != null)
239 iHttpReq.StopHttpRequest(localID, itemID);
240
241 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>(); 310 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>();
242 if (comms != null) 311 if (comms != null)
243 comms.DeleteListener(itemID); 312 comms.DeleteListener(itemID);
@@ -248,9 +317,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
248 xmlrpc.DeleteChannels(itemID); 317 xmlrpc.DeleteChannels(itemID);
249 xmlrpc.CancelSRDRequests(itemID); 318 xmlrpc.CancelSRDRequests(itemID);
250 } 319 }
251
252 // Remove Sensors 320 // Remove Sensors
253 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID); 321 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
322
254 } 323 }
255 324
256 /// <summary> 325 /// <summary>
@@ -260,10 +329,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
260 /// <returns></returns> 329 /// <returns></returns>
261 public static SensorRepeat GetSensorRepeatPlugin(IScriptEngine engine) 330 public static SensorRepeat GetSensorRepeatPlugin(IScriptEngine engine)
262 { 331 {
263 if (m_SensorRepeat.ContainsKey(engine)) 332 lock (staticLock)
264 return m_SensorRepeat[engine]; 333 {
265 else 334 if (m_SensorRepeat.ContainsKey(engine))
266 return null; 335 return m_SensorRepeat[engine];
336 else
337 return null;
338 }
267 } 339 }
268 340
269 /// <summary> 341 /// <summary>
@@ -273,10 +345,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
273 /// <returns></returns> 345 /// <returns></returns>
274 public static Dataserver GetDataserverPlugin(IScriptEngine engine) 346 public static Dataserver GetDataserverPlugin(IScriptEngine engine)
275 { 347 {
276 if (m_Dataserver.ContainsKey(engine)) 348 lock (staticLock)
277 return m_Dataserver[engine]; 349 {
278 else 350 if (m_Dataserver.ContainsKey(engine))
279 return null; 351 return m_Dataserver[engine];
352 else
353 return null;
354 }
280 } 355 }
281 356
282 /// <summary> 357 /// <summary>
@@ -286,10 +361,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
286 /// <returns></returns> 361 /// <returns></returns>
287 public static Timer GetTimerPlugin(IScriptEngine engine) 362 public static Timer GetTimerPlugin(IScriptEngine engine)
288 { 363 {
289 if (m_Timer.ContainsKey(engine)) 364 lock (staticLock)
290 return m_Timer[engine]; 365 {
291 else 366 if (m_Timer.ContainsKey(engine))
292 return null; 367 return m_Timer[engine];
368 else
369 return null;
370 }
293 } 371 }
294 372
295 /// <summary> 373 /// <summary>
@@ -299,38 +377,44 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
299 /// <returns></returns> 377 /// <returns></returns>
300 public static Listener GetListenerPlugin(IScriptEngine engine) 378 public static Listener GetListenerPlugin(IScriptEngine engine)
301 { 379 {
302 if (m_Listener.ContainsKey(engine)) 380 lock (staticLock)
303 return m_Listener[engine]; 381 {
304 else 382 if (m_Listener.ContainsKey(engine))
305 return null; 383 return m_Listener[engine];
384 else
385 return null;
386 }
306 } 387 }
307 388
308 public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID) 389 public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID)
309 { 390 {
310 List<Object> data = new List<Object>(); 391 List<Object> data = new List<Object>();
311 392
312 Object[] listeners = m_Listener[engine].GetSerializationData(itemID); 393 lock (staticLock)
313 if (listeners.Length > 0)
314 { 394 {
315 data.Add("listener"); 395 Object[] listeners = m_Listener[engine].GetSerializationData(itemID);
316 data.Add(listeners.Length); 396 if (listeners.Length > 0)
317 data.AddRange(listeners); 397 {
318 } 398 data.Add("listener");
399 data.Add(listeners.Length);
400 data.AddRange(listeners);
401 }
319 402
320 Object[] timers=m_Timer[engine].GetSerializationData(itemID); 403 Object[] timers=m_Timer[engine].GetSerializationData(itemID);
321 if (timers.Length > 0) 404 if (timers.Length > 0)
322 { 405 {
323 data.Add("timer"); 406 data.Add("timer");
324 data.Add(timers.Length); 407 data.Add(timers.Length);
325 data.AddRange(timers); 408 data.AddRange(timers);
326 } 409 }
327 410
328 Object[] sensors = m_SensorRepeat[engine].GetSerializationData(itemID); 411 Object[] sensors = m_SensorRepeat[engine].GetSerializationData(itemID);
329 if (sensors.Length > 0) 412 if (sensors.Length > 0)
330 { 413 {
331 data.Add("sensor"); 414 data.Add("sensor");
332 data.Add(sensors.Length); 415 data.Add(sensors.Length);
333 data.AddRange(sensors); 416 data.AddRange(sensors);
417 }
334 } 418 }
335 419
336 return data.ToArray(); 420 return data.ToArray();
@@ -355,41 +439,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
355 439
356 idx+=len; 440 idx+=len;
357 441
442 lock (staticLock)
443 {
358 switch (type) 444 switch (type)
359 { 445 {
360 case "listener": 446 case "listener":
361 m_Listener[engine].CreateFromData(localID, itemID, 447 m_Listener[engine].CreateFromData(localID, itemID,
362 hostID, item); 448 hostID, item);
363 break; 449 break;
364 case "timer": 450 case "timer":
365 m_Timer[engine].CreateFromData(localID, itemID, 451 m_Timer[engine].CreateFromData(localID, itemID,
366 hostID, item); 452 hostID, item);
367 break; 453 break;
368 case "sensor": 454 case "sensor":
369 m_SensorRepeat[engine].CreateFromData(localID, 455 m_SensorRepeat[engine].CreateFromData(localID,
370 itemID, hostID, item); 456 itemID, hostID, item);
371 break; 457 break;
458 }
372 } 459 }
373 } 460 }
374 } 461 }
375 } 462 }
376
377 #region Check llRemoteData channels
378
379 #endregion
380
381 #region Check llListeners
382
383 #endregion
384
385 /// <summary>
386 /// If set to true then threads and stuff should try to make a graceful exit
387 /// </summary>
388 public bool PleaseShutdown
389 {
390 get { return _PleaseShutdown; }
391 set { _PleaseShutdown = value; }
392 }
393 private bool _PleaseShutdown = false;
394 } 463 }
395} 464}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1ab107a..4eda443 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -28,6 +28,9 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Diagnostics;
32using System.Drawing;
33using System.Drawing.Imaging;
31using System.Runtime.Remoting.Lifetime; 34using System.Runtime.Remoting.Lifetime;
32using System.Text; 35using System.Text;
33using System.Threading; 36using System.Threading;
@@ -35,7 +38,9 @@ using System.Text.RegularExpressions;
35using Nini.Config; 38using Nini.Config;
36using log4net; 39using log4net;
37using OpenMetaverse; 40using OpenMetaverse;
41using OpenMetaverse.Assets;
38using OpenMetaverse.Packets; 42using OpenMetaverse.Packets;
43using OpenMetaverse.Rendering;
39using OpenSim; 44using OpenSim;
40using OpenSim.Framework; 45using OpenSim.Framework;
41 46
@@ -45,7 +50,8 @@ using OpenSim.Region.CoreModules.World.Terrain;
45using OpenSim.Region.Framework.Interfaces; 50using OpenSim.Region.Framework.Interfaces;
46using OpenSim.Region.Framework.Scenes; 51using OpenSim.Region.Framework.Scenes;
47using OpenSim.Region.Framework.Scenes.Animation; 52using OpenSim.Region.Framework.Scenes.Animation;
48using OpenSim.Region.Physics.Manager; 53using OpenSim.Region.Framework.Scenes.Scripting;
54using OpenSim.Region.PhysicsModules.SharedBase;
49using OpenSim.Region.ScriptEngine.Shared; 55using OpenSim.Region.ScriptEngine.Shared;
50using OpenSim.Region.ScriptEngine.Shared.Api.Plugins; 56using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
51using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 57using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
@@ -66,6 +72,8 @@ using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
66using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 72using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
67using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; 73using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
68using System.Reflection; 74using System.Reflection;
75using System.Linq;
76using PermissionMask = OpenSim.Framework.PermissionMask;
69 77
70namespace OpenSim.Region.ScriptEngine.Shared.Api 78namespace OpenSim.Region.ScriptEngine.Shared.Api
71{ 79{
@@ -83,15 +91,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
83 public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi 91 public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi
84 { 92 {
85 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 93 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
94
95 public int LlRequestAgentDataCacheTimeoutMs { get; set; }
96
86 protected IScriptEngine m_ScriptEngine; 97 protected IScriptEngine m_ScriptEngine;
87 protected SceneObjectPart m_host; 98 protected SceneObjectPart m_host;
88 99
89 /// <summary> 100 /// <summary>
101 /// Used for script sleeps when we are using co-operative script termination.
102 /// </summary>
103 /// <remarks>null if co-operative script termination is not active</remarks>
104 /// <summary>
90 /// The item that hosts this script 105 /// The item that hosts this script
91 /// </summary> 106 /// </summary>
92 protected TaskInventoryItem m_item; 107 protected TaskInventoryItem m_item;
93 108
94 protected bool throwErrorOnNotImplemented = true; 109 protected bool throwErrorOnNotImplemented = false;
95 protected AsyncCommandManager AsyncCommands = null; 110 protected AsyncCommandManager AsyncCommands = null;
96 protected float m_ScriptDelayFactor = 1.0f; 111 protected float m_ScriptDelayFactor = 1.0f;
97 protected float m_ScriptDistanceFactor = 1.0f; 112 protected float m_ScriptDistanceFactor = 1.0f;
@@ -108,49 +123,260 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
108 protected IUrlModule m_UrlModule = null; 123 protected IUrlModule m_UrlModule = null;
109 protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache = new Dictionary<UUID, UserInfoCacheEntry>(); 124 protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache = new Dictionary<UUID, UserInfoCacheEntry>();
110 protected int EMAIL_PAUSE_TIME = 20; // documented delay value for smtp. 125 protected int EMAIL_PAUSE_TIME = 20; // documented delay value for smtp.
126 protected int m_sleepMsOnSetTexture = 200;
127 protected int m_sleepMsOnSetLinkTexture = 200;
128 protected int m_sleepMsOnScaleTexture = 200;
129 protected int m_sleepMsOnOffsetTexture = 200;
130 protected int m_sleepMsOnRotateTexture = 200;
131 protected int m_sleepMsOnSetPos = 200;
132 protected int m_sleepMsOnSetRot = 200;
133 protected int m_sleepMsOnSetLocalRot = 200;
134 protected int m_sleepMsOnPreloadSound = 1000;
135 protected int m_sleepMsOnMakeExplosion = 100;
136 protected int m_sleepMsOnMakeFountain = 100;
137 protected int m_sleepMsOnMakeSmoke = 100;
138 protected int m_sleepMsOnMakeFire = 100;
139 protected int m_sleepMsOnRezAtRoot = 100;
140 protected int m_sleepMsOnInstantMessage = 2000;
141 protected int m_sleepMsOnEmail = 20000;
142 protected int m_sleepMsOnCreateLink = 1000;
143 protected int m_sleepMsOnGiveInventory = 3000;
144 protected int m_sleepMsOnRequestAgentData = 100;
145 protected int m_sleepMsOnRequestInventoryData = 1000;
146 protected int m_sleepMsOnSetDamage = 5000;
147 protected int m_sleepMsOnTextBox = 1000;
148 protected int m_sleepMsOnAdjustSoundVolume = 100;
149 protected int m_sleepMsOnEjectFromLand = 5000;
150 protected int m_sleepMsOnAddToLandPassList = 100;
151 protected int m_sleepMsOnDialog = 1000;
152 protected int m_sleepMsOnRemoteLoadScript = 3000;
153 protected int m_sleepMsOnRemoteLoadScriptPin = 3000;
154 protected int m_sleepMsOnOpenRemoteDataChannel = 1000;
155 protected int m_sleepMsOnSendRemoteData = 3000;
156 protected int m_sleepMsOnRemoteDataReply = 3000;
157 protected int m_sleepMsOnCloseRemoteDataChannel = 1000;
158 protected int m_sleepMsOnSetPrimitiveParams = 200;
159 protected int m_sleepMsOnSetLinkPrimitiveParams = 200;
160 protected int m_sleepMsOnXorBase64Strings = 300;
161 protected int m_sleepMsOnSetParcelMusicURL = 2000;
162 protected int m_sleepMsOnGetPrimMediaParams = 1000;
163 protected int m_sleepMsOnGetLinkMedia = 1000;
164 protected int m_sleepMsOnSetPrimMediaParams = 1000;
165 protected int m_sleepMsOnSetLinkMedia = 1000;
166 protected int m_sleepMsOnClearPrimMedia = 1000;
167 protected int m_sleepMsOnClearLinkMedia = 1000;
168 protected int m_sleepMsOnRequestSimulatorData = 1000;
169 protected int m_sleepMsOnLoadURL = 10000;
170 protected int m_sleepMsOnParcelMediaCommandList = 2000;
171 protected int m_sleepMsOnParcelMediaQuery = 2000;
172 protected int m_sleepMsOnModPow = 1000;
173 protected int m_sleepMsOnSetPrimURL = 2000;
174 protected int m_sleepMsOnRefreshPrimURL = 20000;
175 protected int m_sleepMsOnMapDestination = 1000;
176 protected int m_sleepMsOnAddToLandBanList = 100;
177 protected int m_sleepMsOnRemoveFromLandPassList = 100;
178 protected int m_sleepMsOnRemoveFromLandBanList = 100;
179 protected int m_sleepMsOnResetLandBanList = 100;
180 protected int m_sleepMsOnResetLandPassList = 100;
181 protected int m_sleepMsOnGetParcelPrimOwners = 2000;
182 protected int m_sleepMsOnGetNumberOfNotecardLines = 100;
183 protected int m_sleepMsOnGetNotecardLine = 100;
184 protected string m_internalObjectHost = "lsl.opensim.local";
185 protected bool m_restrictEmail = false;
111 protected ISoundModule m_SoundModule = null; 186 protected ISoundModule m_SoundModule = null;
112 187
113 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 188 protected float m_avatarHeightCorrection = 0.2f;
189 protected bool m_useSimpleBoxesInGetBoundingBox = false;
190 protected bool m_addStatsInGetBoundingBox = false;
191
192 //LSL Avatar Bounding Box (lABB), lower (1) and upper (2),
193 //standing (Std), Groundsitting (Grs), Sitting (Sit),
194 //along X, Y and Z axes, constants (0) and coefficients (1)
195 protected float m_lABB1StdX0 = -0.275f;
196 protected float m_lABB2StdX0 = 0.275f;
197 protected float m_lABB1StdY0 = -0.35f;
198 protected float m_lABB2StdY0 = 0.35f;
199 protected float m_lABB1StdZ0 = -0.1f;
200 protected float m_lABB1StdZ1 = -0.5f;
201 protected float m_lABB2StdZ0 = 0.1f;
202 protected float m_lABB2StdZ1 = 0.5f;
203 protected float m_lABB1GrsX0 = -0.3875f;
204 protected float m_lABB2GrsX0 = 0.3875f;
205 protected float m_lABB1GrsY0 = -0.5f;
206 protected float m_lABB2GrsY0 = 0.5f;
207 protected float m_lABB1GrsZ0 = -0.05f;
208 protected float m_lABB1GrsZ1 = -0.375f;
209 protected float m_lABB2GrsZ0 = 0.5f;
210 protected float m_lABB2GrsZ1 = 0.0f;
211 protected float m_lABB1SitX0 = -0.5875f;
212 protected float m_lABB2SitX0 = 0.1875f;
213 protected float m_lABB1SitY0 = -0.35f;
214 protected float m_lABB2SitY0 = 0.35f;
215 protected float m_lABB1SitZ0 = -0.35f;
216 protected float m_lABB1SitZ1 = -0.375f;
217 protected float m_lABB2SitZ0 = -0.25f;
218 protected float m_lABB2SitZ1 = 0.25f;
219
220 protected float m_primSafetyCoeffX = 2.414214f;
221 protected float m_primSafetyCoeffY = 2.414214f;
222 protected float m_primSafetyCoeffZ = 1.618034f;
223 protected bool m_useCastRayV3 = false;
224 protected float m_floatToleranceInCastRay = 0.00001f;
225 protected float m_floatTolerance2InCastRay = 0.001f;
226 protected DetailLevel m_primLodInCastRay = DetailLevel.Medium;
227 protected DetailLevel m_sculptLodInCastRay = DetailLevel.Medium;
228 protected DetailLevel m_meshLodInCastRay = DetailLevel.Highest;
229 protected DetailLevel m_avatarLodInCastRay = DetailLevel.Medium;
230 protected int m_maxHitsInCastRay = 16;
231 protected int m_maxHitsPerPrimInCastRay = 16;
232 protected int m_maxHitsPerObjectInCastRay = 16;
233 protected bool m_detectExitsInCastRay = false;
234 protected bool m_filterPartsInCastRay = false;
235 protected bool m_doAttachmentsInCastRay = false;
236 protected int m_msThrottleInCastRay = 200;
237 protected int m_msPerRegionInCastRay = 40;
238 protected int m_msPerAvatarInCastRay = 10;
239 protected int m_msMinInCastRay = 2;
240 protected int m_msMaxInCastRay = 40;
241 protected static List<CastRayCall> m_castRayCalls = new List<CastRayCall>();
242 protected bool m_useMeshCacheInCastRay = true;
243 protected static Dictionary<ulong, FacetedMesh> m_cachedMeshes = new Dictionary<ulong, FacetedMesh>();
244
245 //An array of HTTP/1.1 headers that are not allowed to be used
246 //as custom headers by llHTTPRequest.
247 private string[] HttpStandardHeaders =
248 {
249 "Accept", "Accept-Charset", "Accept-Encoding", "Accept-Language",
250 "Accept-Ranges", "Age", "Allow", "Authorization", "Cache-Control",
251 "Connection", "Content-Encoding", "Content-Language",
252 "Content-Length", "Content-Location", "Content-MD5",
253 "Content-Range", "Content-Type", "Date", "ETag", "Expect",
254 "Expires", "From", "Host", "If-Match", "If-Modified-Since",
255 "If-None-Match", "If-Range", "If-Unmodified-Since", "Last-Modified",
256 "Location", "Max-Forwards", "Pragma", "Proxy-Authenticate",
257 "Proxy-Authorization", "Range", "Referer", "Retry-After", "Server",
258 "TE", "Trailer", "Transfer-Encoding", "Upgrade", "User-Agent",
259 "Vary", "Via", "Warning", "WWW-Authenticate"
260 };
261
262 public void Initialize(
263 IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item)
114 { 264 {
115 m_ScriptEngine = ScriptEngine; 265 m_ScriptEngine = scriptEngine;
116 m_host = host; 266 m_host = host;
117 m_item = item; 267 m_item = item;
118 268
119 LoadLimits(); // read script limits from config. 269 LoadConfig();
120 270
121 m_TransferModule = 271 m_TransferModule =
122 m_ScriptEngine.World.RequestModuleInterface<IMessageTransferModule>(); 272 m_ScriptEngine.World.RequestModuleInterface<IMessageTransferModule>();
123 m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>(); 273 m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>();
124 m_SoundModule = m_ScriptEngine.World.RequestModuleInterface<ISoundModule>(); 274 m_SoundModule = m_ScriptEngine.World.RequestModuleInterface<ISoundModule>();
125 275
126 AsyncCommands = new AsyncCommandManager(ScriptEngine); 276 AsyncCommands = new AsyncCommandManager(m_ScriptEngine);
127 } 277 }
128 278
129 /* load configuration items that affect script, object and run-time behavior. */ 279 /// <summary>
130 private void LoadLimits() 280 /// Load configuration items that affect script, object and run-time behavior. */
281 /// </summary>
282 private void LoadConfig()
131 { 283 {
132 m_ScriptDelayFactor = 284 LlRequestAgentDataCacheTimeoutMs = 20000;
133 m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f); 285
134 m_ScriptDistanceFactor = 286 IConfig seConfig = m_ScriptEngine.Config;
135 m_ScriptEngine.Config.GetFloat("ScriptDistanceLimitFactor", 1.0f); 287
136 m_MinTimerInterval = 288 if (seConfig != null)
137 m_ScriptEngine.Config.GetFloat("MinTimerInterval", 0.5f); 289 {
138 m_automaticLinkPermission = 290 m_ScriptDelayFactor =
139 m_ScriptEngine.Config.GetBoolean("AutomaticLinkPermission", false); 291 seConfig.GetFloat("ScriptDelayFactor", m_ScriptDelayFactor);
140 m_notecardLineReadCharsMax = 292 m_ScriptDistanceFactor =
141 m_ScriptEngine.Config.GetInt("NotecardLineReadCharsMax", 255); 293 seConfig.GetFloat("ScriptDistanceLimitFactor", m_ScriptDistanceFactor);
294 m_MinTimerInterval =
295 seConfig.GetFloat("MinTimerInterval", m_MinTimerInterval);
296 m_automaticLinkPermission =
297 seConfig.GetBoolean("AutomaticLinkPermission", m_automaticLinkPermission);
298 m_notecardLineReadCharsMax =
299 seConfig.GetInt("NotecardLineReadCharsMax", m_notecardLineReadCharsMax);
300
301 // Rezzing an object with a velocity can create recoil. This feature seems to have been
302 // removed from recent versions of SL. The code computes recoil (vel*mass) and scales
303 // it by this factor. May be zero to turn off recoil all together.
304 m_recoilScaleFactor = m_ScriptEngine.Config.GetFloat("RecoilScaleFactor", m_recoilScaleFactor);
305 }
306
142 if (m_notecardLineReadCharsMax > 65535) 307 if (m_notecardLineReadCharsMax > 65535)
143 m_notecardLineReadCharsMax = 65535; 308 m_notecardLineReadCharsMax = 65535;
309
144 // load limits for particular subsystems. 310 // load limits for particular subsystems.
145 IConfig SMTPConfig; 311 IConfigSource seConfigSource = m_ScriptEngine.ConfigSource;
146 if ((SMTPConfig = m_ScriptEngine.ConfigSource.Configs["SMTP"]) != null) { 312
147 // there's an smtp config, so load in the snooze time. 313 if (seConfigSource != null)
148 EMAIL_PAUSE_TIME = SMTPConfig.GetInt("email_pause_time", EMAIL_PAUSE_TIME); 314 {
149 } 315 IConfig lslConfig = seConfigSource.Configs["LL-Functions"];
150 // Rezzing an object with a velocity can create recoil. This feature seems to have been 316 if (lslConfig != null)
151 // removed from recent versions of SL. The code computes recoil (vel*mass) and scales 317 {
152 // it by this factor. May be zero to turn off recoil all together. 318 m_restrictEmail = lslConfig.GetBoolean("RestrictEmail", m_restrictEmail);
153 m_recoilScaleFactor = m_ScriptEngine.Config.GetFloat("RecoilScaleFactor", m_recoilScaleFactor); 319 m_avatarHeightCorrection = lslConfig.GetFloat("AvatarHeightCorrection", m_avatarHeightCorrection);
320 m_useSimpleBoxesInGetBoundingBox = lslConfig.GetBoolean("UseSimpleBoxesInGetBoundingBox", m_useSimpleBoxesInGetBoundingBox);
321 m_addStatsInGetBoundingBox = lslConfig.GetBoolean("AddStatsInGetBoundingBox", m_addStatsInGetBoundingBox);
322 m_lABB1StdX0 = lslConfig.GetFloat("LowerAvatarBoundingBoxStandingXconst", m_lABB1StdX0);
323 m_lABB2StdX0 = lslConfig.GetFloat("UpperAvatarBoundingBoxStandingXconst", m_lABB2StdX0);
324 m_lABB1StdY0 = lslConfig.GetFloat("LowerAvatarBoundingBoxStandingYconst", m_lABB1StdY0);
325 m_lABB2StdY0 = lslConfig.GetFloat("UpperAvatarBoundingBoxStandingYconst", m_lABB2StdY0);
326 m_lABB1StdZ0 = lslConfig.GetFloat("LowerAvatarBoundingBoxStandingZconst", m_lABB1StdZ0);
327 m_lABB1StdZ1 = lslConfig.GetFloat("LowerAvatarBoundingBoxStandingZcoeff", m_lABB1StdZ1);
328 m_lABB2StdZ0 = lslConfig.GetFloat("UpperAvatarBoundingBoxStandingZconst", m_lABB2StdZ0);
329 m_lABB2StdZ1 = lslConfig.GetFloat("UpperAvatarBoundingBoxStandingZcoeff", m_lABB2StdZ1);
330 m_lABB1GrsX0 = lslConfig.GetFloat("LowerAvatarBoundingBoxGroundsittingXconst", m_lABB1GrsX0);
331 m_lABB2GrsX0 = lslConfig.GetFloat("UpperAvatarBoundingBoxGroundsittingXconst", m_lABB2GrsX0);
332 m_lABB1GrsY0 = lslConfig.GetFloat("LowerAvatarBoundingBoxGroundsittingYconst", m_lABB1GrsY0);
333 m_lABB2GrsY0 = lslConfig.GetFloat("UpperAvatarBoundingBoxGroundsittingYconst", m_lABB2GrsY0);
334 m_lABB1GrsZ0 = lslConfig.GetFloat("LowerAvatarBoundingBoxGroundsittingZconst", m_lABB1GrsZ0);
335 m_lABB1GrsZ1 = lslConfig.GetFloat("LowerAvatarBoundingBoxGroundsittingZcoeff", m_lABB1GrsZ1);
336 m_lABB2GrsZ0 = lslConfig.GetFloat("UpperAvatarBoundingBoxGroundsittingZconst", m_lABB2GrsZ0);
337 m_lABB2GrsZ1 = lslConfig.GetFloat("UpperAvatarBoundingBoxGroundsittingZcoeff", m_lABB2GrsZ1);
338 m_lABB1SitX0 = lslConfig.GetFloat("LowerAvatarBoundingBoxSittingXconst", m_lABB1SitX0);
339 m_lABB2SitX0 = lslConfig.GetFloat("UpperAvatarBoundingBoxSittingXconst", m_lABB2SitX0);
340 m_lABB1SitY0 = lslConfig.GetFloat("LowerAvatarBoundingBoxSittingYconst", m_lABB1SitY0);
341 m_lABB2SitY0 = lslConfig.GetFloat("UpperAvatarBoundingBoxSittingYconst", m_lABB2SitY0);
342 m_lABB1SitZ0 = lslConfig.GetFloat("LowerAvatarBoundingBoxSittingZconst", m_lABB1SitZ0);
343 m_lABB1SitZ1 = lslConfig.GetFloat("LowerAvatarBoundingBoxSittingZcoeff", m_lABB1SitZ1);
344 m_lABB2SitZ0 = lslConfig.GetFloat("UpperAvatarBoundingBoxSittingZconst", m_lABB2SitZ0);
345 m_lABB2SitZ1 = lslConfig.GetFloat("UpperAvatarBoundingBoxSittingZcoeff", m_lABB2SitZ1);
346 m_primSafetyCoeffX = lslConfig.GetFloat("PrimBoundingBoxSafetyCoefficientX", m_primSafetyCoeffX);
347 m_primSafetyCoeffY = lslConfig.GetFloat("PrimBoundingBoxSafetyCoefficientY", m_primSafetyCoeffY);
348 m_primSafetyCoeffZ = lslConfig.GetFloat("PrimBoundingBoxSafetyCoefficientZ", m_primSafetyCoeffZ);
349 m_useCastRayV3 = lslConfig.GetBoolean("UseLlCastRayV3", m_useCastRayV3);
350 m_floatToleranceInCastRay = lslConfig.GetFloat("FloatToleranceInLlCastRay", m_floatToleranceInCastRay);
351 m_floatTolerance2InCastRay = lslConfig.GetFloat("FloatTolerance2InLlCastRay", m_floatTolerance2InCastRay);
352 m_primLodInCastRay = (DetailLevel)lslConfig.GetInt("PrimDetailLevelInLlCastRay", (int)m_primLodInCastRay);
353 m_sculptLodInCastRay = (DetailLevel)lslConfig.GetInt("SculptDetailLevelInLlCastRay", (int)m_sculptLodInCastRay);
354 m_meshLodInCastRay = (DetailLevel)lslConfig.GetInt("MeshDetailLevelInLlCastRay", (int)m_meshLodInCastRay);
355 m_avatarLodInCastRay = (DetailLevel)lslConfig.GetInt("AvatarDetailLevelInLlCastRay", (int)m_avatarLodInCastRay);
356 m_maxHitsInCastRay = lslConfig.GetInt("MaxHitsInLlCastRay", m_maxHitsInCastRay);
357 m_maxHitsPerPrimInCastRay = lslConfig.GetInt("MaxHitsPerPrimInLlCastRay", m_maxHitsPerPrimInCastRay);
358 m_maxHitsPerObjectInCastRay = lslConfig.GetInt("MaxHitsPerObjectInLlCastRay", m_maxHitsPerObjectInCastRay);
359 m_detectExitsInCastRay = lslConfig.GetBoolean("DetectExitHitsInLlCastRay", m_detectExitsInCastRay);
360 m_filterPartsInCastRay = lslConfig.GetBoolean("FilterPartsInLlCastRay", m_filterPartsInCastRay);
361 m_doAttachmentsInCastRay = lslConfig.GetBoolean("DoAttachmentsInLlCastRay", m_doAttachmentsInCastRay);
362 m_msThrottleInCastRay = lslConfig.GetInt("ThrottleTimeInMsInLlCastRay", m_msThrottleInCastRay);
363 m_msPerRegionInCastRay = lslConfig.GetInt("AvailableTimeInMsPerRegionInLlCastRay", m_msPerRegionInCastRay);
364 m_msPerAvatarInCastRay = lslConfig.GetInt("AvailableTimeInMsPerAvatarInLlCastRay", m_msPerAvatarInCastRay);
365 m_msMinInCastRay = lslConfig.GetInt("RequiredAvailableTimeInMsInLlCastRay", m_msMinInCastRay);
366 m_msMaxInCastRay = lslConfig.GetInt("MaximumAvailableTimeInMsInLlCastRay", m_msMaxInCastRay);
367 m_useMeshCacheInCastRay = lslConfig.GetBoolean("UseMeshCacheInLlCastRay", m_useMeshCacheInCastRay);
368 }
369
370 IConfig smtpConfig = seConfigSource.Configs["SMTP"];
371 if (smtpConfig != null)
372 {
373 // there's an smtp config, so load in the snooze time.
374 EMAIL_PAUSE_TIME = smtpConfig.GetInt("email_pause_time", EMAIL_PAUSE_TIME);
375
376 m_internalObjectHost = smtpConfig.GetString("internal_object_host", m_internalObjectHost);
377 }
378 }
379 m_sleepMsOnEmail = EMAIL_PAUSE_TIME * 1000;
154 } 380 }
155 381
156 public override Object InitializeLifetimeService() 382 public override Object InitializeLifetimeService()
@@ -171,9 +397,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
171 delay = (int)((float)delay * m_ScriptDelayFactor); 397 delay = (int)((float)delay * m_ScriptDelayFactor);
172 if (delay == 0) 398 if (delay == 0)
173 return; 399 return;
174 System.Threading.Thread.Sleep(delay); 400
401 Sleep(delay);
175 } 402 }
176 403
404 protected virtual void Sleep(int delay)
405 {
406 if (m_item == null) // Some unit tests don't set this
407 {
408 Thread.Sleep(delay);
409 return;
410 }
411
412 m_ScriptEngine.SleepScript(m_item.ItemID, delay);
413 }
414
415 /// <summary>
416 /// Check for co-operative termination.
417 /// </summary>
418 /// <param name='delay'>If called with 0, then just the check is performed with no wait.</param>
419
177 public Scene World 420 public Scene World
178 { 421 {
179 get { return m_ScriptEngine.World; } 422 get { return m_ScriptEngine.World; }
@@ -209,7 +452,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
209 if ((item = GetScriptByName(name)) != UUID.Zero) 452 if ((item = GetScriptByName(name)) != UUID.Zero)
210 m_ScriptEngine.ResetScript(item); 453 m_ScriptEngine.ResetScript(item);
211 else 454 else
212 ShoutError("llResetOtherScript: script "+name+" not found"); 455 Error("llResetOtherScript", "Can't find script '" + name + "'");
213 } 456 }
214 457
215 public LSL_Integer llGetScriptState(string name) 458 public LSL_Integer llGetScriptState(string name)
@@ -223,7 +466,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
223 return m_ScriptEngine.GetScriptState(item) ?1:0; 466 return m_ScriptEngine.GetScriptState(item) ?1:0;
224 } 467 }
225 468
226 ShoutError("llGetScriptState: script "+name+" not found"); 469 Error("llGetScriptState", "Can't find script '" + name + "'");
227 470
228 // If we didn't find it, then it's safe to 471 // If we didn't find it, then it's safe to
229 // assume it is not running. 472 // assume it is not running.
@@ -246,7 +489,78 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
246 } 489 }
247 else 490 else
248 { 491 {
249 ShoutError("llSetScriptState: script "+name+" not found"); 492 Error("llSetScriptState", "Can't find script '" + name + "'");
493 }
494 }
495
496 /// <summary>
497 /// Get a given link entity from a linkset (linked objects and any sitting avatars).
498 /// </summary>
499 /// <remarks>
500 /// If there are any ScenePresence's in the linkset (i.e. because they are sat upon one of the prims), then
501 /// these are counted as extra entities that correspond to linknums beyond the number of prims in the linkset.
502 /// The ScenePresences receive linknums in the order in which they sat.
503 /// </remarks>
504 /// <returns>
505 /// The link entity. null if not found.
506 /// </returns>
507 /// <param name='part'></param>
508 /// <param name='linknum'>
509 /// Can be either a non-negative integer or ScriptBaseClass.LINK_THIS (-4).
510 /// If ScriptBaseClass.LINK_THIS then the entity containing the script is returned.
511 /// If the linkset has one entity and a linknum of zero is given, then the single entity is returned. If any
512 /// positive integer is given in this case then null is returned.
513 /// If the linkset has more than one entity and a linknum greater than zero but equal to or less than the number
514 /// of entities, then the entity which corresponds to that linknum is returned.
515 /// Otherwise, if a positive linknum is given which is greater than the number of entities in the linkset, then
516 /// null is returned.
517 /// </param>
518 public ISceneEntity GetLinkEntity(SceneObjectPart part, int linknum)
519 {
520 if (linknum < 0)
521 {
522 if (linknum == ScriptBaseClass.LINK_THIS)
523 return part;
524 else
525 return null;
526 }
527
528 int actualPrimCount = part.ParentGroup.PrimCount;
529 List<ScenePresence> sittingAvatars = part.ParentGroup.GetSittingAvatars();
530 int adjustedPrimCount = actualPrimCount + sittingAvatars.Count;
531
532 // Special case for a single prim. In this case the linknum is zero. However, this will not match a single
533 // prim that has any avatars sat upon it (in which case the root prim is link 1).
534 if (linknum == 0)
535 {
536 if (actualPrimCount == 1 && sittingAvatars.Count == 0)
537 return part;
538
539 return null;
540 }
541 // Special case to handle a single prim with sitting avatars. GetLinkPart() would only match zero but
542 // here we must match 1 (ScriptBaseClass.LINK_ROOT).
543 else if (linknum == ScriptBaseClass.LINK_ROOT && actualPrimCount == 1)
544 {
545 if (sittingAvatars.Count > 0)
546 return part.ParentGroup.RootPart;
547 else
548 return null;
549 }
550 else if (linknum <= adjustedPrimCount)
551 {
552 if (linknum <= actualPrimCount)
553 {
554 return part.ParentGroup.GetLinkNumPart(linknum);
555 }
556 else
557 {
558 return sittingAvatars[linknum - actualPrimCount - 1];
559 }
560 }
561 else
562 {
563 return null;
250 } 564 }
251 } 565 }
252 566
@@ -301,77 +615,52 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
301 } 615 }
302 } 616 }
303 617
304 protected UUID InventoryKey(string name, int type) 618 public List<ISceneEntity> GetLinkEntities(int linkType)
305 { 619 {
306 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(name); 620 return GetLinkEntities(m_host, linkType);
307
308 if (item != null && item.Type == type)
309 return item.AssetID;
310 else
311 return UUID.Zero;
312 } 621 }
313 622
314 /// <summary> 623 public List<ISceneEntity> GetLinkEntities(SceneObjectPart part, int linkType)
315 /// accepts a valid UUID, -or- a name of an inventory item.
316 /// Returns a valid UUID or UUID.Zero if key invalid and item not found
317 /// in prim inventory.
318 /// </summary>
319 /// <param name="k"></param>
320 /// <returns></returns>
321 protected UUID KeyOrName(string k)
322 { 624 {
323 UUID key; 625 List<ISceneEntity> ret;
324 626
325 // if we can parse the string as a key, use it. 627 switch (linkType)
326 // else try to locate the name in inventory of object. found returns key,
327 // not found returns UUID.Zero
328 if (!UUID.TryParse(k, out key))
329 { 628 {
330 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(k); 629 case ScriptBaseClass.LINK_SET:
630 return new List<ISceneEntity>(part.ParentGroup.Parts);
331 631
332 if (item != null) 632 case ScriptBaseClass.LINK_ROOT:
333 key = item.AssetID; 633 return new List<ISceneEntity>() { part.ParentGroup.RootPart };
334 else
335 key = UUID.Zero;
336 }
337 634
338 return key; 635 case ScriptBaseClass.LINK_ALL_OTHERS:
339 } 636 ret = new List<ISceneEntity>(part.ParentGroup.Parts);
340 637
341 /// <summary> 638 if (ret.Contains(part))
342 /// Return the UUID of the asset matching the specified key or name 639 ret.Remove(part);
343 /// and asset type.
344 /// </summary>
345 /// <param name="k"></param>
346 /// <param name="type"></param>
347 /// <returns></returns>
348 protected UUID KeyOrName(string k, AssetType type)
349 {
350 UUID key;
351 640
352 if (!UUID.TryParse(k, out key)) 641 return ret;
353 { 642
354 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(k); 643 case ScriptBaseClass.LINK_ALL_CHILDREN:
355 if (item != null && item.Type == (int)type) 644 ret = new List<ISceneEntity>(part.ParentGroup.Parts);
356 key = item.AssetID;
357 }
358 else
359 {
360 lock (m_host.TaskInventory)
361 {
362 foreach (KeyValuePair<UUID, TaskInventoryItem> item in m_host.TaskInventory)
363 {
364 if (item.Value.Type == (int)type && item.Value.Name == k)
365 {
366 key = item.Value.ItemID;
367 break;
368 }
369 }
370 }
371 }
372 645
646 if (ret.Contains(part.ParentGroup.RootPart))
647 ret.Remove(part.ParentGroup.RootPart);
373 648
374 return key; 649 return ret;
650
651 case ScriptBaseClass.LINK_THIS:
652 return new List<ISceneEntity>() { part };
653
654 default:
655 if (linkType < 0)
656 return new List<ISceneEntity>();
657
658 ISceneEntity target = GetLinkEntity(part, linkType);
659 if (target == null)
660 return new List<ISceneEntity>();
661
662 return new List<ISceneEntity>() { target };
663 }
375 } 664 }
376 665
377 //These are the implementations of the various ll-functions used by the LSL scripts. 666 //These are the implementations of the various ll-functions used by the LSL scripts.
@@ -430,10 +719,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
430 public LSL_Float llFrand(double mag) 719 public LSL_Float llFrand(double mag)
431 { 720 {
432 m_host.AddScriptLPS(1); 721 m_host.AddScriptLPS(1);
433 lock (Util.RandomClass) 722
434 { 723 return Util.RandomClass.NextDouble() * mag;
435 return Util.RandomClass.NextDouble() * mag;
436 }
437 } 724 }
438 725
439 public LSL_Integer llFloor(double f) 726 public LSL_Integer llFloor(double f)
@@ -837,7 +1124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
837 { 1124 {
838 if (channelID == 0) 1125 if (channelID == 0)
839 { 1126 {
840 LSLError("Cannot use llRegionSay() on channel 0"); 1127 Error("llRegionSay", "Cannot use on channel 0");
841 return; 1128 return;
842 } 1129 }
843 1130
@@ -846,6 +1133,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
846 1133
847 m_host.AddScriptLPS(1); 1134 m_host.AddScriptLPS(1);
848 1135
1136 World.SimChat(Utils.StringToBytes(text),
1137 ChatTypeEnum.Region, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false);
1138
849 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); 1139 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
850 if (wComm != null) 1140 if (wComm != null)
851 wComm.DeliverMessage(ChatTypeEnum.Region, channelID, m_host.Name, m_host.UUID, text); 1141 wComm.DeliverMessage(ChatTypeEnum.Region, channelID, m_host.Name, m_host.UUID, text);
@@ -866,6 +1156,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
866 UUID TargetID; 1156 UUID TargetID;
867 UUID.TryParse(target, out TargetID); 1157 UUID.TryParse(target, out TargetID);
868 1158
1159 World.SimChatToAgent(TargetID, Utils.StringToBytes(msg),
1160 channel, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true);
1161
869 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); 1162 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
870 if (wComm != null) 1163 if (wComm != null)
871 wComm.DeliverMessageTo(TargetID, channel, m_host.AbsolutePosition, m_host.Name, m_host.UUID, msg); 1164 wComm.DeliverMessageTo(TargetID, channel, m_host.AbsolutePosition, m_host.Name, m_host.UUID, msg);
@@ -1255,12 +1548,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1255 } 1548 }
1256 1549
1257 if ((status & ScriptBaseClass.STATUS_BLOCK_GRAB) == ScriptBaseClass.STATUS_BLOCK_GRAB) 1550 if ((status & ScriptBaseClass.STATUS_BLOCK_GRAB) == ScriptBaseClass.STATUS_BLOCK_GRAB)
1258 { 1551 m_host.BlockGrab = value != 0;
1259 if (value != 0) 1552
1260 m_host.SetBlockGrab(true); 1553 if ((status & ScriptBaseClass.STATUS_BLOCK_GRAB_OBJECT) == ScriptBaseClass.STATUS_BLOCK_GRAB_OBJECT)
1261 else 1554 m_host.ParentGroup.BlockGrabOverride = value != 0;
1262 m_host.SetBlockGrab(false);
1263 }
1264 1555
1265 if ((status & ScriptBaseClass.STATUS_DIE_AT_EDGE) == ScriptBaseClass.STATUS_DIE_AT_EDGE) 1556 if ((status & ScriptBaseClass.STATUS_DIE_AT_EDGE) == ScriptBaseClass.STATUS_DIE_AT_EDGE)
1266 { 1557 {
@@ -1321,10 +1612,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1321 return 0; 1612 return 0;
1322 1613
1323 case ScriptBaseClass.STATUS_BLOCK_GRAB: 1614 case ScriptBaseClass.STATUS_BLOCK_GRAB:
1324 if (m_host.GetBlockGrab()) 1615 return m_host.BlockGrab ? 1 : 0;
1325 return 1; 1616
1326 else 1617 case ScriptBaseClass.STATUS_BLOCK_GRAB_OBJECT:
1327 return 0; 1618 return m_host.ParentGroup.BlockGrabOverride ? 1 : 0;
1328 1619
1329 case ScriptBaseClass.STATUS_DIE_AT_EDGE: 1620 case ScriptBaseClass.STATUS_DIE_AT_EDGE:
1330 if (m_host.GetDieAtEdge()) 1621 if (m_host.GetDieAtEdge())
@@ -1427,6 +1718,73 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1427 m_host.SetFaceColorAlpha(face, color, null); 1718 m_host.SetFaceColorAlpha(face, color, null);
1428 } 1719 }
1429 1720
1721 public void llSetContentType(LSL_Key id, LSL_Integer type)
1722 {
1723 m_host.AddScriptLPS(1);
1724
1725 if (m_UrlModule == null)
1726 return;
1727
1728 // Make sure the content type is text/plain to start with
1729 m_UrlModule.HttpContentType(new UUID(id), "text/plain");
1730
1731 // Is the object owner online and in the region
1732 ScenePresence agent = World.GetScenePresence(m_host.ParentGroup.OwnerID);
1733 if (agent == null || agent.IsChildAgent)
1734 return; // Fail if the owner is not in the same region
1735
1736 // Is it the embeded browser?
1737 string userAgent = m_UrlModule.GetHttpHeader(new UUID(id), "user-agent");
1738 if (userAgent.IndexOf("SecondLife") < 0)
1739 return; // Not the embedded browser. Is this check good enough?
1740
1741 // Use the IP address of the client and check against the request
1742 // seperate logins from the same IP will allow all of them to get non-text/plain as long
1743 // as the owner is in the region. Same as SL!
1744 string logonFromIPAddress = agent.ControllingClient.RemoteEndPoint.Address.ToString();
1745 string requestFromIPAddress = m_UrlModule.GetHttpHeader(new UUID(id), "remote_addr");
1746 //m_log.Debug("IP from header='" + requestFromIPAddress + "' IP from endpoint='" + logonFromIPAddress + "'");
1747 if (requestFromIPAddress == null || requestFromIPAddress.Trim() == "")
1748 return;
1749 if (logonFromIPAddress == null || logonFromIPAddress.Trim() == "")
1750 return;
1751
1752 // If the request isnt from the same IP address then the request cannot be from the owner
1753 if (!requestFromIPAddress.Trim().Equals(logonFromIPAddress.Trim()))
1754 return;
1755
1756 switch (type)
1757 {
1758 case ScriptBaseClass.CONTENT_TYPE_HTML:
1759 m_UrlModule.HttpContentType(new UUID(id), "text/html");
1760 break;
1761 case ScriptBaseClass.CONTENT_TYPE_XML:
1762 m_UrlModule.HttpContentType(new UUID(id), "application/xml");
1763 break;
1764 case ScriptBaseClass.CONTENT_TYPE_XHTML:
1765 m_UrlModule.HttpContentType(new UUID(id), "application/xhtml+xml");
1766 break;
1767 case ScriptBaseClass.CONTENT_TYPE_ATOM:
1768 m_UrlModule.HttpContentType(new UUID(id), "application/atom+xml");
1769 break;
1770 case ScriptBaseClass.CONTENT_TYPE_JSON:
1771 m_UrlModule.HttpContentType(new UUID(id), "application/json");
1772 break;
1773 case ScriptBaseClass.CONTENT_TYPE_LLSD:
1774 m_UrlModule.HttpContentType(new UUID(id), "application/llsd+xml");
1775 break;
1776 case ScriptBaseClass.CONTENT_TYPE_FORM:
1777 m_UrlModule.HttpContentType(new UUID(id), "application/x-www-form-urlencoded");
1778 break;
1779 case ScriptBaseClass.CONTENT_TYPE_RSS:
1780 m_UrlModule.HttpContentType(new UUID(id), "application/rss+xml");
1781 break;
1782 default:
1783 m_UrlModule.HttpContentType(new UUID(id), "text/plain");
1784 break;
1785 }
1786 }
1787
1430 public void SetTexGen(SceneObjectPart part, int face,int style) 1788 public void SetTexGen(SceneObjectPart part, int face,int style)
1431 { 1789 {
1432 Primitive.TextureEntry tex = part.Shape.Textures; 1790 Primitive.TextureEntry tex = part.Shape.Textures;
@@ -1522,7 +1880,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1522 if (tex.FaceTextures[i] != null) 1880 if (tex.FaceTextures[i] != null)
1523 { 1881 {
1524 tex.FaceTextures[i].Shiny = sval; 1882 tex.FaceTextures[i].Shiny = sval;
1525 tex.FaceTextures[i].Bump = bump;; 1883 tex.FaceTextures[i].Bump = bump;
1526 } 1884 }
1527 tex.DefaultTexture.Shiny = sval; 1885 tex.DefaultTexture.Shiny = sval;
1528 tex.DefaultTexture.Bump = bump; 1886 tex.DefaultTexture.Bump = bump;
@@ -1631,7 +1989,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1631 texcolor.A = Util.Clip((float)alpha, 0.0f, 1.0f); 1989 texcolor.A = Util.Clip((float)alpha, 0.0f, 1.0f);
1632 tex.DefaultTexture.RGBA = texcolor; 1990 tex.DefaultTexture.RGBA = texcolor;
1633 } 1991 }
1634 1992
1635 part.UpdateTextureEntry(tex.GetBytes()); 1993 part.UpdateTextureEntry(tex.GetBytes());
1636 return; 1994 return;
1637 } 1995 }
@@ -1703,9 +2061,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1703 part.Shape.LightColorR = Util.Clip((float)color.x, 0.0f, 1.0f); 2061 part.Shape.LightColorR = Util.Clip((float)color.x, 0.0f, 1.0f);
1704 part.Shape.LightColorG = Util.Clip((float)color.y, 0.0f, 1.0f); 2062 part.Shape.LightColorG = Util.Clip((float)color.y, 0.0f, 1.0f);
1705 part.Shape.LightColorB = Util.Clip((float)color.z, 0.0f, 1.0f); 2063 part.Shape.LightColorB = Util.Clip((float)color.z, 0.0f, 1.0f);
1706 part.Shape.LightIntensity = intensity; 2064 part.Shape.LightIntensity = Util.Clip((float)intensity, 0.0f, 1.0f);
1707 part.Shape.LightRadius = radius; 2065 part.Shape.LightRadius = Util.Clip((float)radius, 0.1f, 20.0f);
1708 part.Shape.LightFalloff = falloff; 2066 part.Shape.LightFalloff = Util.Clip((float)falloff, 0.01f, 2.0f);
1709 } 2067 }
1710 else 2068 else
1711 { 2069 {
@@ -1752,7 +2110,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1752 rgb.x = texcolor.R; 2110 rgb.x = texcolor.R;
1753 rgb.y = texcolor.G; 2111 rgb.y = texcolor.G;
1754 rgb.z = texcolor.B; 2112 rgb.z = texcolor.B;
1755 2113
1756 return rgb; 2114 return rgb;
1757 } 2115 }
1758 else 2116 else
@@ -1765,7 +2123,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1765 { 2123 {
1766 m_host.AddScriptLPS(1); 2124 m_host.AddScriptLPS(1);
1767 SetTexture(m_host, texture, face); 2125 SetTexture(m_host, texture, face);
1768 ScriptSleep(200); 2126 ScriptSleep(m_sleepMsOnSetTexture);
1769 } 2127 }
1770 2128
1771 public void llSetLinkTexture(int linknumber, string texture, int face) 2129 public void llSetLinkTexture(int linknumber, string texture, int face)
@@ -1777,19 +2135,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1777 foreach (SceneObjectPart part in parts) 2135 foreach (SceneObjectPart part in parts)
1778 SetTexture(part, texture, face); 2136 SetTexture(part, texture, face);
1779 2137
1780 ScriptSleep(200); 2138 ScriptSleep(m_sleepMsOnSetLinkTexture);
1781 } 2139 }
1782 2140
1783 protected void SetTexture(SceneObjectPart part, string texture, int face) 2141 protected void SetTexture(SceneObjectPart part, string texture, int face)
1784 { 2142 {
1785 UUID textureID = new UUID(); 2143 UUID textureID = new UUID();
1786 2144
1787 textureID = InventoryKey(texture, (int)AssetType.Texture); 2145 textureID = ScriptUtils.GetAssetIdFromItemName(m_host, texture, (int)AssetType.Texture);
1788 if (textureID == UUID.Zero) 2146 if (textureID == UUID.Zero)
1789 { 2147 {
1790 if (!UUID.TryParse(texture, out textureID)) 2148 if (!UUID.TryParse(texture, out textureID))
1791 return; 2149 return;
1792 } 2150 }
1793 2151
1794 Primitive.TextureEntry tex = part.Shape.Textures; 2152 Primitive.TextureEntry tex = part.Shape.Textures;
1795 2153
@@ -1821,7 +2179,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1821 m_host.AddScriptLPS(1); 2179 m_host.AddScriptLPS(1);
1822 2180
1823 ScaleTexture(m_host, u, v, face); 2181 ScaleTexture(m_host, u, v, face);
1824 ScriptSleep(200); 2182 ScriptSleep(m_sleepMsOnScaleTexture);
1825 } 2183 }
1826 2184
1827 protected void ScaleTexture(SceneObjectPart part, double u, double v, int face) 2185 protected void ScaleTexture(SceneObjectPart part, double u, double v, int face)
@@ -1857,7 +2215,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1857 { 2215 {
1858 m_host.AddScriptLPS(1); 2216 m_host.AddScriptLPS(1);
1859 OffsetTexture(m_host, u, v, face); 2217 OffsetTexture(m_host, u, v, face);
1860 ScriptSleep(200); 2218 ScriptSleep(m_sleepMsOnOffsetTexture);
1861 } 2219 }
1862 2220
1863 protected void OffsetTexture(SceneObjectPart part, double u, double v, int face) 2221 protected void OffsetTexture(SceneObjectPart part, double u, double v, int face)
@@ -1893,7 +2251,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1893 { 2251 {
1894 m_host.AddScriptLPS(1); 2252 m_host.AddScriptLPS(1);
1895 RotateTexture(m_host, rotation, face); 2253 RotateTexture(m_host, rotation, face);
1896 ScriptSleep(200); 2254 ScriptSleep(m_sleepMsOnRotateTexture);
1897 } 2255 }
1898 2256
1899 protected void RotateTexture(SceneObjectPart part, double rotation, int face) 2257 protected void RotateTexture(SceneObjectPart part, double rotation, int face)
@@ -1968,7 +2326,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1968 2326
1969 SetPos(m_host, pos, true); 2327 SetPos(m_host, pos, true);
1970 2328
1971 ScriptSleep(200); 2329 ScriptSleep(m_sleepMsOnSetPos);
1972 } 2330 }
1973 2331
1974 /// <summary> 2332 /// <summary>
@@ -1986,8 +2344,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1986 // IF YOU GET REGION CROSSINGS WORKING WITH THIS FUNCTION, REPLACE THE WORKAROUND. 2344 // IF YOU GET REGION CROSSINGS WORKING WITH THIS FUNCTION, REPLACE THE WORKAROUND.
1987 // 2345 //
1988 // This workaround is to prevent silent failure of this function. 2346 // This workaround is to prevent silent failure of this function.
1989 // According to the specification on the SL Wiki, providing a position outside of the 2347 // According to the specification on the SL Wiki, providing a position outside of the
1990 if (pos.x < 0 || pos.x > Constants.RegionSize || pos.y < 0 || pos.y > Constants.RegionSize) 2348 if (pos.x < 0 || pos.x > World.RegionInfo.RegionSizeX || pos.y < 0 || pos.y > World.RegionInfo.RegionSizeY)
1991 { 2349 {
1992 return 0; 2350 return 0;
1993 } 2351 }
@@ -1997,9 +2355,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1997 m_host.ParentGroup.IsAttachment || // return FALSE if attachment 2355 m_host.ParentGroup.IsAttachment || // return FALSE if attachment
1998 ( 2356 (
1999 pos.x < -10.0 || // return FALSE if more than 10 meters into a west-adjacent region. 2357 pos.x < -10.0 || // return FALSE if more than 10 meters into a west-adjacent region.
2000 pos.x > (Constants.RegionSize + 10) || // return FALSE if more than 10 meters into a east-adjacent region. 2358 pos.x > (World.RegionInfo.RegionSizeX + 10) || // return FALSE if more than 10 meters into a east-adjacent region.
2001 pos.y < -10.0 || // return FALSE if more than 10 meters into a south-adjacent region. 2359 pos.y < -10.0 || // return FALSE if more than 10 meters into a south-adjacent region.
2002 pos.y > (Constants.RegionSize + 10) || // return FALSE if more than 10 meters into a north-adjacent region. 2360 pos.y > (World.RegionInfo.RegionSizeY + 10) || // return FALSE if more than 10 meters into a north-adjacent region.
2003 pos.z > Constants.RegionHeight // return FALSE if altitude than 4096m 2361 pos.z > Constants.RegionHeight // return FALSE if altitude than 4096m
2004 ) 2362 )
2005 ) 2363 )
@@ -2151,14 +2509,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2151 } 2509 }
2152 } 2510 }
2153 2511
2154 ScriptSleep(200); 2512 ScriptSleep(m_sleepMsOnSetRot);
2155 } 2513 }
2156 2514
2157 public void llSetLocalRot(LSL_Rotation rot) 2515 public void llSetLocalRot(LSL_Rotation rot)
2158 { 2516 {
2159 m_host.AddScriptLPS(1); 2517 m_host.AddScriptLPS(1);
2160 SetRot(m_host, rot); 2518 SetRot(m_host, rot);
2161 ScriptSleep(200); 2519 ScriptSleep(m_sleepMsOnSetLocalRot);
2162 } 2520 }
2163 2521
2164 protected void SetRot(SceneObjectPart part, Quaternion rot) 2522 protected void SetRot(SceneObjectPart part, Quaternion rot)
@@ -2195,7 +2553,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2195 { 2553 {
2196 return llGetRootRotation(); 2554 return llGetRootRotation();
2197 } 2555 }
2198 2556
2199 m_host.AddScriptLPS(1); 2557 m_host.AddScriptLPS(1);
2200 Quaternion q = m_host.GetWorldRotation(); 2558 Quaternion q = m_host.GetWorldRotation();
2201 return new LSL_Rotation(q.X, q.Y, q.Z, q.W); 2559 return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
@@ -2214,23 +2572,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2214 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) 2572 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
2215 q = avatar.CameraRotation; // Mouselook 2573 q = avatar.CameraRotation; // Mouselook
2216 else 2574 else
2217 q = avatar.Rotation; // Currently infrequently updated so may be inaccurate 2575 q = avatar.GetWorldRotation(); // Currently infrequently updated so may be inaccurate
2218 } 2576 }
2219 else 2577 else
2220 q = part.ParentGroup.GroupRotation; // Likely never get here but just in case 2578 q = part.ParentGroup.GroupRotation; // Likely never get here but just in case
2221 } 2579 }
2222 else 2580 else
2223 q = part.ParentGroup.GroupRotation; // just the group rotation 2581 q = part.ParentGroup.GroupRotation; // just the group rotation
2224 return new LSL_Rotation(q.X, q.Y, q.Z, q.W); 2582
2583 return new LSL_Rotation(q);
2225 } 2584 }
2226 q = part.GetWorldRotation(); 2585
2227 return new LSL_Rotation(q.X, q.Y, q.Z, q.W); 2586 return new LSL_Rotation(part.GetWorldRotation());
2228 } 2587 }
2229 2588
2230 public LSL_Rotation llGetLocalRot() 2589 public LSL_Rotation llGetLocalRot()
2231 { 2590 {
2232 m_host.AddScriptLPS(1); 2591 m_host.AddScriptLPS(1);
2233 return new LSL_Rotation(m_host.RotationOffset.X, m_host.RotationOffset.Y, m_host.RotationOffset.Z, m_host.RotationOffset.W); 2592
2593 return new LSL_Rotation(m_host.RotationOffset);
2234 } 2594 }
2235 2595
2236 public void llSetForce(LSL_Vector force, int local) 2596 public void llSetForce(LSL_Vector force, int local)
@@ -2260,6 +2620,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2260 return force; 2620 return force;
2261 } 2621 }
2262 2622
2623 public void llSetVelocity(LSL_Vector velocity, int local)
2624 {
2625 m_host.AddScriptLPS(1);
2626
2627 if (!m_host.ParentGroup.IsDeleted)
2628 {
2629 if (local != 0)
2630 velocity *= llGetRot();
2631
2632 m_host.ParentGroup.RootPart.Velocity = velocity;
2633 }
2634 }
2635
2636 public void llSetAngularVelocity(LSL_Vector angularVelocity, int local)
2637 {
2638 m_host.AddScriptLPS(1);
2639
2640 if (!m_host.ParentGroup.IsDeleted)
2641 {
2642 if (local != 0)
2643 angularVelocity *= llGetRot();
2644
2645 m_host.ParentGroup.RootPart.AngularVelocity = angularVelocity;
2646 }
2647 }
2648
2263 public LSL_Integer llTarget(LSL_Vector position, double range) 2649 public LSL_Integer llTarget(LSL_Vector position, double range)
2264 { 2650 {
2265 m_host.AddScriptLPS(1); 2651 m_host.AddScriptLPS(1);
@@ -2325,8 +2711,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2325 public LSL_Vector llGetTorque() 2711 public LSL_Vector llGetTorque()
2326 { 2712 {
2327 m_host.AddScriptLPS(1); 2713 m_host.AddScriptLPS(1);
2328 Vector3 torque = m_host.ParentGroup.GetTorque(); 2714
2329 return new LSL_Vector(torque.X,torque.Y,torque.Z); 2715 return new LSL_Vector(m_host.ParentGroup.GetTorque());
2330 } 2716 }
2331 2717
2332 public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local) 2718 public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local)
@@ -2345,26 +2731,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2345 if (m_host.ParentGroup.IsAttachment) 2731 if (m_host.ParentGroup.IsAttachment)
2346 { 2732 {
2347 ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); 2733 ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar);
2348 vel = avatar.Velocity; 2734 vel = avatar.GetWorldVelocity();
2349 } 2735 }
2350 else 2736 else
2351 { 2737 {
2352 vel = m_host.Velocity; 2738 vel = m_host.Velocity;
2353 } 2739 }
2354 2740
2355 return new LSL_Vector(vel.X, vel.Y, vel.Z); 2741 return new LSL_Vector(vel);
2356 } 2742 }
2357 2743
2358 public LSL_Vector llGetAccel() 2744 public LSL_Vector llGetAccel()
2359 { 2745 {
2360 m_host.AddScriptLPS(1); 2746 m_host.AddScriptLPS(1);
2361 return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z); 2747
2748 return new LSL_Vector(m_host.Acceleration);
2362 } 2749 }
2363 2750
2364 public LSL_Vector llGetOmega() 2751 public LSL_Vector llGetOmega()
2365 { 2752 {
2366 m_host.AddScriptLPS(1); 2753 m_host.AddScriptLPS(1);
2367 return new LSL_Vector(m_host.AngularVelocity.X, m_host.AngularVelocity.Y, m_host.AngularVelocity.Z); 2754
2755 return new LSL_Vector(m_host.AngularVelocity);
2368 } 2756 }
2369 2757
2370 public LSL_Float llGetTimeOfDay() 2758 public LSL_Float llGetTimeOfDay()
@@ -2403,9 +2791,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2403 public void llSound(string sound, double volume, int queue, int loop) 2791 public void llSound(string sound, double volume, int queue, int loop)
2404 { 2792 {
2405 m_host.AddScriptLPS(1); 2793 m_host.AddScriptLPS(1);
2406 // This function has been deprecated 2794 Deprecated("llSound", "Use llPlaySound instead");
2407 // see http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSound
2408 Deprecated("llSound");
2409 } 2795 }
2410 2796
2411 // Xantor 20080528 PlaySound updated so it accepts an objectinventory name -or- a key to a sound 2797 // Xantor 20080528 PlaySound updated so it accepts an objectinventory name -or- a key to a sound
@@ -2417,9 +2803,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2417 // send the sound, once, to all clients in range 2803 // send the sound, once, to all clients in range
2418 if (m_SoundModule != null) 2804 if (m_SoundModule != null)
2419 { 2805 {
2420 m_SoundModule.SendSound(m_host.UUID, 2806 m_SoundModule.SendSound(
2421 KeyOrName(sound, AssetType.Sound), volume, false, 0, 2807 m_host.UUID,
2422 0, false, false); 2808 ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound, AssetType.Sound),
2809 volume, false, m_host.SoundQueueing ? (byte)SoundFlags.Queue : (byte)SoundFlags.None,
2810 0, false, false);
2423 } 2811 }
2424 } 2812 }
2425 2813
@@ -2428,7 +2816,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2428 m_host.AddScriptLPS(1); 2816 m_host.AddScriptLPS(1);
2429 if (m_SoundModule != null) 2817 if (m_SoundModule != null)
2430 { 2818 {
2431 m_SoundModule.LoopSound(m_host.UUID, KeyOrName(sound), 2819 m_SoundModule.LoopSound(m_host.UUID, ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound),
2432 volume, 20, false); 2820 volume, 20, false);
2433 } 2821 }
2434 } 2822 }
@@ -2438,7 +2826,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2438 m_host.AddScriptLPS(1); 2826 m_host.AddScriptLPS(1);
2439 if (m_SoundModule != null) 2827 if (m_SoundModule != null)
2440 { 2828 {
2441 m_SoundModule.LoopSound(m_host.UUID, KeyOrName(sound), 2829 m_SoundModule.LoopSound(m_host.UUID, ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound),
2442 volume, 20, true); 2830 volume, 20, true);
2443 } 2831 }
2444 } 2832 }
@@ -2460,7 +2848,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2460 if (m_SoundModule != null) 2848 if (m_SoundModule != null)
2461 { 2849 {
2462 m_SoundModule.SendSound(m_host.UUID, 2850 m_SoundModule.SendSound(m_host.UUID,
2463 KeyOrName(sound, AssetType.Sound), volume, false, 0, 2851 ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound, AssetType.Sound), volume, false, 0,
2464 0, true, false); 2852 0, true, false);
2465 } 2853 }
2466 } 2854 }
@@ -2472,7 +2860,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2472 if (m_SoundModule != null) 2860 if (m_SoundModule != null)
2473 { 2861 {
2474 m_SoundModule.SendSound(m_host.UUID, 2862 m_SoundModule.SendSound(m_host.UUID,
2475 KeyOrName(sound, AssetType.Sound), volume, true, 0, 0, 2863 ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound, AssetType.Sound), volume, true, 0, 0,
2476 false, false); 2864 false, false);
2477 } 2865 }
2478 } 2866 }
@@ -2489,8 +2877,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2489 { 2877 {
2490 m_host.AddScriptLPS(1); 2878 m_host.AddScriptLPS(1);
2491 if (m_SoundModule != null) 2879 if (m_SoundModule != null)
2492 m_SoundModule.PreloadSound(m_host.UUID, KeyOrName(sound), 0); 2880 m_SoundModule.PreloadSound(m_host.UUID, ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound), 0);
2493 ScriptSleep(1000); 2881 ScriptSleep(m_sleepMsOnPreloadSound);
2494 } 2882 }
2495 2883
2496 /// <summary> 2884 /// <summary>
@@ -2723,70 +3111,68 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2723 return src.ToLower(); 3111 return src.ToLower();
2724 } 3112 }
2725 3113
2726 public LSL_Integer llGiveMoney(string destination, int amount) 3114 public void llGiveMoney(string destination, int amount)
2727 { 3115 {
2728 m_host.AddScriptLPS(1); 3116 Util.FireAndForget(x =>
2729
2730 if (m_item.PermsGranter == UUID.Zero)
2731 return 0;
2732
2733 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
2734 { 3117 {
2735 LSLError("No permissions to give money"); 3118 m_host.AddScriptLPS(1);
2736 return 0;
2737 }
2738 3119
2739 UUID toID = new UUID(); 3120 if (m_item.PermsGranter == UUID.Zero)
3121 return;
2740 3122
2741 if (!UUID.TryParse(destination, out toID)) 3123 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
2742 { 3124 {
2743 LSLError("Bad key in llGiveMoney"); 3125 Error("llGiveMoney", "No permissions to give money");
2744 return 0; 3126 return;
2745 } 3127 }
2746 3128
2747 IMoneyModule money = World.RequestModuleInterface<IMoneyModule>(); 3129 UUID toID = new UUID();
2748 3130
2749 if (money == null) 3131 if (!UUID.TryParse(destination, out toID))
2750 { 3132 {
2751 NotImplemented("llGiveMoney"); 3133 Error("llGiveMoney", "Bad key in llGiveMoney");
2752 return 0; 3134 return;
2753 } 3135 }
2754 3136
2755 bool result = money.ObjectGiveMoney( 3137 IMoneyModule money = World.RequestModuleInterface<IMoneyModule>();
2756 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount);
2757 3138
2758 if (result) 3139 if (money == null)
2759 return 1; 3140 {
3141 NotImplemented("llGiveMoney");
3142 return;
3143 }
2760 3144
2761 return 0; 3145 money.ObjectGiveMoney(
3146 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount);
3147 }, null, "LSL_Api.llGiveMoney");
2762 } 3148 }
2763 3149
2764 public void llMakeExplosion(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset) 3150 public void llMakeExplosion(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset)
2765 { 3151 {
2766 m_host.AddScriptLPS(1); 3152 m_host.AddScriptLPS(1);
2767 Deprecated("llMakeExplosion"); 3153 Deprecated("llMakeExplosion", "Use llParticleSystem instead");
2768 ScriptSleep(100); 3154 ScriptSleep(m_sleepMsOnMakeExplosion);
2769 } 3155 }
2770 3156
2771 public void llMakeFountain(int particles, double scale, double vel, double lifetime, double arc, int bounce, string texture, LSL_Vector offset, double bounce_offset) 3157 public void llMakeFountain(int particles, double scale, double vel, double lifetime, double arc, int bounce, string texture, LSL_Vector offset, double bounce_offset)
2772 { 3158 {
2773 m_host.AddScriptLPS(1); 3159 m_host.AddScriptLPS(1);
2774 Deprecated("llMakeFountain"); 3160 Deprecated("llMakeFountain", "Use llParticleSystem instead");
2775 ScriptSleep(100); 3161 ScriptSleep(m_sleepMsOnMakeFountain);
2776 } 3162 }
2777 3163
2778 public void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset) 3164 public void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset)
2779 { 3165 {
2780 m_host.AddScriptLPS(1); 3166 m_host.AddScriptLPS(1);
2781 Deprecated("llMakeSmoke"); 3167 Deprecated("llMakeSmoke", "Use llParticleSystem instead");
2782 ScriptSleep(100); 3168 ScriptSleep(m_sleepMsOnMakeSmoke);
2783 } 3169 }
2784 3170
2785 public void llMakeFire(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset) 3171 public void llMakeFire(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset)
2786 { 3172 {
2787 m_host.AddScriptLPS(1); 3173 m_host.AddScriptLPS(1);
2788 Deprecated("llMakeFire"); 3174 Deprecated("llMakeFire", "Use llParticleSystem instead");
2789 ScriptSleep(100); 3175 ScriptSleep(m_sleepMsOnMakeFire);
2790 } 3176 }
2791 3177
2792 public void llRezAtRoot(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param) 3178 public void llRezAtRoot(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param)
@@ -2807,54 +3193,57 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2807 3193
2808 if (item == null) 3194 if (item == null)
2809 { 3195 {
2810 llSay(0, "Could not find object " + inventory); 3196 Error("llRezAtRoot", "Can't find object '" + inventory + "'");
2811 return; 3197 return;
2812 } 3198 }
2813 3199
2814 if (item.InvType != (int)InventoryType.Object) 3200 if (item.InvType != (int)InventoryType.Object)
2815 { 3201 {
2816 llSay(0, "Unable to create requested object. Object is missing from database."); 3202 Error("llRezAtRoot", "Can't create requested object; object is missing from database");
2817 return; 3203 return;
2818 } 3204 }
2819 3205
2820 // need the magnitude later 3206 // need the magnitude later
2821 // float velmag = (float)Util.GetMagnitude(llvel); 3207 // float velmag = (float)Util.GetMagnitude(llvel);
2822 3208
2823 SceneObjectGroup new_group = World.RezObject(m_host, item, pos, rot, vel, param); 3209 List<SceneObjectGroup> new_groups = World.RezObject(m_host, item, pos, rot, vel, param);
2824 3210
2825 // If either of these are null, then there was an unknown error. 3211 // If either of these are null, then there was an unknown error.
2826 if (new_group == null) 3212 if (new_groups == null)
2827 return; 3213 return;
2828 3214
2829 // objects rezzed with this method are die_at_edge by default. 3215 foreach (SceneObjectGroup group in new_groups)
2830 new_group.RootPart.SetDieAtEdge(true); 3216 {
3217 // objects rezzed with this method are die_at_edge by default.
3218 group.RootPart.SetDieAtEdge(true);
2831 3219
2832 new_group.ResumeScripts(); 3220 group.ResumeScripts();
2833 3221
2834 m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams( 3222 m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams(
2835 "object_rez", new Object[] { 3223 "object_rez", new Object[] {
2836 new LSL_String( 3224 new LSL_String(
2837 new_group.RootPart.UUID.ToString()) }, 3225 group.RootPart.UUID.ToString()) },
2838 new DetectParams[0])); 3226 new DetectParams[0]));
2839 3227
2840 float groupmass = new_group.GetMass(); 3228 float groupmass = group.GetMass();
2841 3229
2842 PhysicsActor pa = new_group.RootPart.PhysActor; 3230 PhysicsActor pa = group.RootPart.PhysActor;
2843 3231
2844 //Recoil. 3232 //Recoil.
2845 if (pa != null && pa.IsPhysical && (Vector3)vel != Vector3.Zero) 3233 if (pa != null && pa.IsPhysical && (Vector3)vel != Vector3.Zero)
2846 {
2847 Vector3 recoil = -vel * groupmass * m_recoilScaleFactor;
2848 if (recoil != Vector3.Zero)
2849 { 3234 {
2850 llApplyImpulse(recoil, 0); 3235 Vector3 recoil = -vel * groupmass * m_recoilScaleFactor;
3236 if (recoil != Vector3.Zero)
3237 {
3238 llApplyImpulse(recoil, 0);
3239 }
2851 } 3240 }
3241 // Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay)
2852 } 3242 }
2853 // Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay) 3243 }, null, "LSL_Api.llRezAtRoot");
2854 });
2855 3244
2856 //ScriptSleep((int)((groupmass * velmag) / 10)); 3245 //ScriptSleep((int)((groupmass * velmag) / 10));
2857 ScriptSleep(100); 3246 ScriptSleep(m_sleepMsOnRezAtRoot);
2858 } 3247 }
2859 3248
2860 public void llRezObject(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param) 3249 public void llRezObject(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param)
@@ -2868,26 +3257,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2868 // Determine where we are looking from 3257 // Determine where we are looking from
2869 LSL_Vector from = llGetPos(); 3258 LSL_Vector from = llGetPos();
2870 3259
2871 // Work out the normalised vector from the source to the target 3260 // normalized direction to target
2872 LSL_Vector delta = llVecNorm(target - from); 3261 LSL_Vector dir = llVecNorm(target - from);
2873 LSL_Vector angle = new LSL_Vector(0,0,0); 3262 // use vertical to help compute left axis
3263 LSL_Vector up = new LSL_Vector(0.0, 0.0, 1.0);
3264 // find normalized left axis parallel to horizon
3265 LSL_Vector left = llVecNorm(LSL_Vector.Cross(up, dir));
3266 // make up orthogonal to left and dir
3267 up = LSL_Vector.Cross(dir, left);
2874 3268
2875 // Calculate the yaw 3269 // compute rotation based on orthogonal axes
2876 // subtracting PI_BY_TWO is required to compensate for the odd SL co-ordinate system 3270 LSL_Rotation rot = new LSL_Rotation(0.0, 0.707107, 0.0, 0.707107) * llAxes2Rot(dir, left, up);
2877 angle.x = llAtan2(delta.z, delta.y) - ScriptBaseClass.PI_BY_TWO;
2878 3271
2879 // Calculate pitch
2880 angle.y = llAtan2(delta.x, llSqrt((delta.y * delta.y) + (delta.z * delta.z)));
2881
2882 // we need to convert from a vector describing
2883 // the angles of rotation in radians into rotation value
2884 LSL_Rotation rot = llEuler2Rot(angle);
2885
2886 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply 3272 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply
2887 // set the rotation of the object, copy that behavior 3273 // set the rotation of the object, copy that behavior
2888 PhysicsActor pa = m_host.PhysActor; 3274 PhysicsActor pa = m_host.PhysActor;
2889 3275
2890 if (strength == 0 || pa == null || !pa.IsPhysical) 3276 if (m_host.ParentGroup.IsAttachment || strength == 0 || pa == null || !pa.IsPhysical)
2891 { 3277 {
2892 llSetRot(rot); 3278 llSetRot(rot);
2893 } 3279 }
@@ -2900,7 +3286,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2900 public void llStopLookAt() 3286 public void llStopLookAt()
2901 { 3287 {
2902 m_host.AddScriptLPS(1); 3288 m_host.AddScriptLPS(1);
2903// NotImplemented("llStopLookAt");
2904 m_host.StopLookAt(); 3289 m_host.StopLookAt();
2905 } 3290 }
2906 3291
@@ -2917,7 +3302,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2917 { 3302 {
2918// m_log.Info("llSleep snoozing " + sec + "s."); 3303// m_log.Info("llSleep snoozing " + sec + "s.");
2919 m_host.AddScriptLPS(1); 3304 m_host.AddScriptLPS(1);
2920 Thread.Sleep((int)(sec * 1000)); 3305
3306 Sleep((int)(sec * 1000));
2921 } 3307 }
2922 3308
2923 public LSL_Float llGetMass() 3309 public LSL_Float llGetMass()
@@ -2950,6 +3336,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2950 } 3336 }
2951 } 3337 }
2952 3338
3339 public LSL_Float llGetMassMKS()
3340 {
3341 // this is what the wiki says it does!
3342 // http://wiki.secondlife.com/wiki/LlGetMassMKS
3343 return llGetMass() * 100.0;
3344 }
3345
2953 public void llCollisionFilter(string name, string id, int accept) 3346 public void llCollisionFilter(string name, string id, int accept)
2954 { 3347 {
2955 m_host.AddScriptLPS(1); 3348 m_host.AddScriptLPS(1);
@@ -2958,7 +3351,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2958 3351
2959 if (!UUID.TryParse(id, out objectID)) 3352 if (!UUID.TryParse(id, out objectID))
2960 objectID = UUID.Zero; 3353 objectID = UUID.Zero;
2961 3354
2962 if (objectID == UUID.Zero && name == "") 3355 if (objectID == UUID.Zero && name == "")
2963 return; 3356 return;
2964 3357
@@ -3026,7 +3419,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3026 IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule; 3419 IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
3027 3420
3028 if (attachmentsModule != null) 3421 if (attachmentsModule != null)
3029 return attachmentsModule.AttachObject(presence, grp, (uint)attachmentPoint, false, false); 3422 return attachmentsModule.AttachObject(presence, grp, (uint)attachmentPoint, false, true, true);
3030 else 3423 else
3031 return false; 3424 return false;
3032 } 3425 }
@@ -3039,7 +3432,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3039 /// </remarks> 3432 /// </remarks>
3040 public void DetachFromAvatar() 3433 public void DetachFromAvatar()
3041 { 3434 {
3042 Util.FireAndForget(DetachWrapper, m_host); 3435 Util.FireAndForget(DetachWrapper, m_host, "LSL_Api.DetachFromAvatar");
3043 } 3436 }
3044 3437
3045 private void DetachWrapper(object o) 3438 private void DetachWrapper(object o)
@@ -3083,13 +3476,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3083 public void llTakeCamera(string avatar) 3476 public void llTakeCamera(string avatar)
3084 { 3477 {
3085 m_host.AddScriptLPS(1); 3478 m_host.AddScriptLPS(1);
3086 Deprecated("llTakeCamera"); 3479 Deprecated("llTakeCamera", "Use llSetCameraParams instead");
3087 } 3480 }
3088 3481
3089 public void llReleaseCamera(string avatar) 3482 public void llReleaseCamera(string avatar)
3090 { 3483 {
3091 m_host.AddScriptLPS(1); 3484 m_host.AddScriptLPS(1);
3092 Deprecated("llReleaseCamera"); 3485 Deprecated("llReleaseCamera", "Use llClearCameraParams instead");
3093 } 3486 }
3094 3487
3095 public LSL_String llGetOwner() 3488 public LSL_String llGetOwner()
@@ -3112,14 +3505,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3112 3505
3113 // TODO: figure out values for client, fromSession, and imSessionID 3506 // TODO: figure out values for client, fromSession, and imSessionID
3114 // client.SendInstantMessage(m_host.UUID, fromSession, message, user, imSessionID, m_host.Name, AgentManager.InstantMessageDialog.MessageFromAgent, (uint)Util.UnixTimeSinceEpoch()); 3507 // client.SendInstantMessage(m_host.UUID, fromSession, message, user, imSessionID, m_host.Name, AgentManager.InstantMessageDialog.MessageFromAgent, (uint)Util.UnixTimeSinceEpoch());
3115 UUID friendTransactionID = UUID.Random();
3116
3117 //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID);
3118 3508
3119 GridInstantMessage msg = new GridInstantMessage(); 3509 GridInstantMessage msg = new GridInstantMessage();
3120 msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.Guid; 3510 msg.fromAgentID = new Guid(m_host.OwnerID.ToString()); // fromAgentID.Guid;
3121 msg.toAgentID = new Guid(user); // toAgentID.Guid; 3511 msg.toAgentID = new Guid(user); // toAgentID.Guid;
3122 msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here 3512 msg.imSessionID = new Guid(m_host.UUID.ToString()); // This is the item we're mucking with here
3123// m_log.Debug("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); 3513// m_log.Debug("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message);
3124// m_log.Debug("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); 3514// m_log.Debug("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString());
3125 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; 3515 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp;
@@ -3142,20 +3532,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3142 msg.ParentEstateID = 0; //ParentEstateID; 3532 msg.ParentEstateID = 0; //ParentEstateID;
3143 msg.Position = new Vector3(m_host.AbsolutePosition); 3533 msg.Position = new Vector3(m_host.AbsolutePosition);
3144 msg.RegionID = World.RegionInfo.RegionID.Guid;//RegionID.Guid; 3534 msg.RegionID = World.RegionInfo.RegionID.Guid;//RegionID.Guid;
3145 msg.binaryBucket 3535
3536 Vector3 pos = m_host.AbsolutePosition;
3537 msg.binaryBucket
3146 = Util.StringToBytes256( 3538 = Util.StringToBytes256(
3147 "{0}/{1}/{2}/{3}", 3539 "{0}/{1}/{2}/{3}",
3148 World.RegionInfo.RegionName, 3540 World.RegionInfo.RegionName,
3149 (int)Math.Floor(m_host.AbsolutePosition.X), 3541 (int)Math.Floor(pos.X),
3150 (int)Math.Floor(m_host.AbsolutePosition.Y), 3542 (int)Math.Floor(pos.Y),
3151 (int)Math.Floor(m_host.AbsolutePosition.Z)); 3543 (int)Math.Floor(pos.Z));
3152 3544
3153 if (m_TransferModule != null) 3545 if (m_TransferModule != null)
3154 { 3546 {
3155 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); 3547 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
3156 } 3548 }
3157 3549
3158 ScriptSleep(2000); 3550 ScriptSleep(m_sleepMsOnInstantMessage);
3159 } 3551 }
3160 3552
3161 public void llEmail(string address, string subject, string message) 3553 public void llEmail(string address, string subject, string message)
@@ -3164,12 +3556,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3164 IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); 3556 IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>();
3165 if (emailModule == null) 3557 if (emailModule == null)
3166 { 3558 {
3167 ShoutError("llEmail: email module not configured"); 3559 Error("llEmail", "Email module not configured");
3168 return; 3560 return;
3169 } 3561 }
3170 3562
3563 //Restrict email destination to the avatars registered email address?
3564 //The restriction only applies if the destination address is not local.
3565 if (m_restrictEmail == true && address.Contains(m_internalObjectHost) == false)
3566 {
3567 UserAccount account =
3568 World.UserAccountService.GetUserAccount(
3569 World.RegionInfo.ScopeID,
3570 m_host.OwnerID);
3571
3572 if (account == null)
3573 {
3574 Error("llEmail", "Can't find user account for '" + m_host.OwnerID.ToString() + "'");
3575 return;
3576 }
3577
3578 if (String.IsNullOrEmpty(account.Email))
3579 {
3580 Error("llEmail", "User account has not registered an email address.");
3581 return;
3582 }
3583
3584 address = account.Email;
3585 }
3586
3171 emailModule.SendEmail(m_host.UUID, address, subject, message); 3587 emailModule.SendEmail(m_host.UUID, address, subject, message);
3172 llSleep(EMAIL_PAUSE_TIME); 3588 ScriptSleep(m_sleepMsOnEmail);
3173 } 3589 }
3174 3590
3175 public void llGetNextEmail(string address, string subject) 3591 public void llGetNextEmail(string address, string subject)
@@ -3178,7 +3594,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3178 IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); 3594 IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>();
3179 if (emailModule == null) 3595 if (emailModule == null)
3180 { 3596 {
3181 ShoutError("llGetNextEmail: email module not configured"); 3597 Error("llGetNextEmail", "Email module not configured");
3182 return; 3598 return;
3183 } 3599 }
3184 Email email; 3600 Email email;
@@ -3263,23 +3679,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3263 catch (NotImplementedException) 3679 catch (NotImplementedException)
3264 { 3680 {
3265 // Currently not implemented in DotNetEngine only XEngine 3681 // Currently not implemented in DotNetEngine only XEngine
3266 NotImplemented("llMinEventDelay in DotNetEngine"); 3682 NotImplemented("llMinEventDelay", "In DotNetEngine");
3267 } 3683 }
3268 } 3684 }
3269 3685
3270 /// <summary>
3271 /// llSoundPreload is deprecated. In SL this appears to do absolutely nothing
3272 /// and is documented to have no delay.
3273 /// </summary>
3274 public void llSoundPreload(string sound) 3686 public void llSoundPreload(string sound)
3275 { 3687 {
3276 m_host.AddScriptLPS(1); 3688 m_host.AddScriptLPS(1);
3689 Deprecated("llSoundPreload", "Use llPreloadSound instead");
3277 } 3690 }
3278 3691
3279 public void llRotLookAt(LSL_Rotation target, double strength, double damping) 3692 public void llRotLookAt(LSL_Rotation target, double strength, double damping)
3280 { 3693 {
3281 m_host.AddScriptLPS(1); 3694 m_host.AddScriptLPS(1);
3282 3695
3283 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply 3696 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply
3284 // set the rotation of the object, copy that behavior 3697 // set the rotation of the object, copy that behavior
3285 PhysicsActor pa = m_host.PhysActor; 3698 PhysicsActor pa = m_host.PhysActor;
@@ -3321,7 +3734,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3321 if (presence != null) 3734 if (presence != null)
3322 { 3735 {
3323 // Do NOT try to parse UUID, animations cannot be triggered by ID 3736 // Do NOT try to parse UUID, animations cannot be triggered by ID
3324 UUID animID = InventoryKey(anim, (int)AssetType.Animation); 3737 UUID animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
3325 if (animID == UUID.Zero) 3738 if (animID == UUID.Zero)
3326 presence.Animator.AddAnimation(anim, m_host.UUID); 3739 presence.Animator.AddAnimation(anim, m_host.UUID);
3327 else 3740 else
@@ -3343,7 +3756,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3343 3756
3344 if (presence != null) 3757 if (presence != null)
3345 { 3758 {
3346 UUID animID = KeyOrName(anim); 3759 UUID animID = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, anim);
3347 3760
3348 if (animID == UUID.Zero) 3761 if (animID == UUID.Zero)
3349 presence.Animator.RemoveAnimation(anim); 3762 presence.Animator.RemoveAnimation(anim);
@@ -3371,6 +3784,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3371 3784
3372 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) 3785 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
3373 { 3786 {
3787 PhysicsActor pa = part.PhysActor;
3788 if ( ( pa == null || !pa.IsPhysical ) && gain == 0.0d )
3789 spinrate = 0.0d;
3374 part.UpdateAngularVelocity(axis * spinrate); 3790 part.UpdateAngularVelocity(axis * spinrate);
3375 } 3791 }
3376 3792
@@ -3415,11 +3831,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3415 implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS | 3831 implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS |
3416 ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION | 3832 ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
3417 ScriptBaseClass.PERMISSION_CONTROL_CAMERA | 3833 ScriptBaseClass.PERMISSION_CONTROL_CAMERA |
3834 ScriptBaseClass.PERMISSION_TRACK_CAMERA |
3418 ScriptBaseClass.PERMISSION_ATTACH; 3835 ScriptBaseClass.PERMISSION_ATTACH;
3419 } 3836 }
3420 else 3837 else
3421 { 3838 {
3422 if (m_host.ParentGroup.GetSittingAvatars().Contains(agentID)) 3839 if (m_host.ParentGroup.GetSittingAvatars().SingleOrDefault(sp => sp.UUID == agentID) != null)
3423 { 3840 {
3424 // When agent is sitting, certain permissions are implicit if requested from sitting agent 3841 // When agent is sitting, certain permissions are implicit if requested from sitting agent
3425 implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION | 3842 implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
@@ -3451,10 +3868,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3451 } 3868 }
3452 3869
3453 ScenePresence presence = World.GetScenePresence(agentID); 3870 ScenePresence presence = World.GetScenePresence(agentID);
3871
3454 if (presence != null) 3872 if (presence != null)
3455 { 3873 {
3456 // If permissions are being requested from an NPC and were not implicitly granted above then 3874 // If permissions are being requested from an NPC and were not implicitly granted above then
3457 // auto grant all reuqested permissions if the script is owned by the NPC or the NPCs owner 3875 // auto grant all requested permissions if the script is owned by the NPC or the NPCs owner
3458 INPCModule npcModule = World.RequestModuleInterface<INPCModule>(); 3876 INPCModule npcModule = World.RequestModuleInterface<INPCModule>();
3459 if (npcModule != null && npcModule.IsNPC(agentID, World)) 3877 if (npcModule != null && npcModule.IsNPC(agentID, World))
3460 { 3878 {
@@ -3570,22 +3988,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3570 public void llCreateLink(string target, int parent) 3988 public void llCreateLink(string target, int parent)
3571 { 3989 {
3572 m_host.AddScriptLPS(1); 3990 m_host.AddScriptLPS(1);
3573 UUID targetID;
3574
3575 if (!UUID.TryParse(target, out targetID))
3576 return;
3577 3991
3578 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0 3992 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0
3579 && !m_automaticLinkPermission) 3993 && !m_automaticLinkPermission)
3580 { 3994 {
3581 ShoutError("Script trying to link but PERMISSION_CHANGE_LINKS permission not set!"); 3995 Error("llCreateLink", "PERMISSION_CHANGE_LINKS permission not set");
3582 return; 3996 return;
3583 } 3997 }
3584 3998
3585 IClientAPI client = null; 3999 CreateLink(target, parent);
3586 ScenePresence sp = World.GetScenePresence(m_item.PermsGranter); 4000 }
3587 if (sp != null) 4001
3588 client = sp.ControllingClient; 4002 public void CreateLink(string target, int parent)
4003 {
4004 UUID targetID;
4005
4006 if (!UUID.TryParse(target, out targetID))
4007 return;
3589 4008
3590 SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)targetID); 4009 SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)targetID);
3591 4010
@@ -3620,10 +4039,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3620 parentPrim.HasGroupChanged = true; 4039 parentPrim.HasGroupChanged = true;
3621 parentPrim.ScheduleGroupForFullUpdate(); 4040 parentPrim.ScheduleGroupForFullUpdate();
3622 4041
4042 IClientAPI client = null;
4043 ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
4044 if (sp != null)
4045 client = sp.ControllingClient;
4046
3623 if (client != null) 4047 if (client != null)
3624 parentPrim.SendPropertiesToClient(client); 4048 parentPrim.SendPropertiesToClient(client);
3625 4049
3626 ScriptSleep(1000); 4050 ScriptSleep(m_sleepMsOnCreateLink);
3627 } 4051 }
3628 4052
3629 public void llBreakLink(int linknum) 4053 public void llBreakLink(int linknum)
@@ -3633,10 +4057,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3633 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0 4057 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0
3634 && !m_automaticLinkPermission) 4058 && !m_automaticLinkPermission)
3635 { 4059 {
3636 ShoutError("Script trying to link but PERMISSION_CHANGE_LINKS permission not set!"); 4060 Error("llBreakLink", "PERMISSION_CHANGE_LINKS permission not set");
3637 return; 4061 return;
3638 } 4062 }
3639 4063
4064 BreakLink(linknum);
4065 }
4066
4067 public void BreakLink(int linknum)
4068 {
3640 if (linknum < ScriptBaseClass.LINK_THIS) 4069 if (linknum < ScriptBaseClass.LINK_THIS)
3641 return; 4070 return;
3642 4071
@@ -3712,6 +4141,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3712 public void llBreakAllLinks() 4141 public void llBreakAllLinks()
3713 { 4142 {
3714 m_host.AddScriptLPS(1); 4143 m_host.AddScriptLPS(1);
4144
4145 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0
4146 && !m_automaticLinkPermission)
4147 {
4148 Error("llBreakAllLinks", "PERMISSION_CHANGE_LINKS permission not set");
4149 return;
4150 }
4151
4152 BreakAllLinks();
4153 }
4154
4155 public void BreakAllLinks()
4156 {
3715 SceneObjectGroup parentPrim = m_host.ParentGroup; 4157 SceneObjectGroup parentPrim = m_host.ParentGroup;
3716 if (parentPrim.AttachmentPoint != 0) 4158 if (parentPrim.AttachmentPoint != 0)
3717 return; // Fail silently if attached 4159 return; // Fail silently if attached
@@ -3732,47 +4174,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3732 { 4174 {
3733 m_host.AddScriptLPS(1); 4175 m_host.AddScriptLPS(1);
3734 4176
3735 if (linknum < 0) 4177 ISceneEntity entity = GetLinkEntity(m_host, linknum);
3736 {
3737 if (linknum == ScriptBaseClass.LINK_THIS)
3738 return m_host.UUID.ToString();
3739 else
3740 return ScriptBaseClass.NULL_KEY;
3741 }
3742
3743 int actualPrimCount = m_host.ParentGroup.PrimCount;
3744 List<UUID> sittingAvatarIds = m_host.ParentGroup.GetSittingAvatars();
3745 int adjustedPrimCount = actualPrimCount + sittingAvatarIds.Count;
3746
3747 // Special case for a single prim. In this case the linknum is zero. However, this will not match a single
3748 // prim that has any avatars sat upon it (in which case the root prim is link 1).
3749 if (linknum == 0)
3750 {
3751 if (actualPrimCount == 1 && sittingAvatarIds.Count == 0)
3752 return m_host.UUID.ToString();
3753 4178
3754 return ScriptBaseClass.NULL_KEY; 4179 if (entity != null)
3755 } 4180 return entity.UUID.ToString();
3756 // Special case to handle a single prim with sitting avatars. GetLinkPart() would only match zero but
3757 // here we must match 1 (ScriptBaseClass.LINK_ROOT).
3758 else if (linknum == 1 && actualPrimCount == 1)
3759 {
3760 if (sittingAvatarIds.Count > 0)
3761 return m_host.ParentGroup.RootPart.UUID.ToString();
3762 else
3763 return ScriptBaseClass.NULL_KEY;
3764 }
3765 else if (linknum <= adjustedPrimCount)
3766 {
3767 if (linknum <= actualPrimCount)
3768 return m_host.ParentGroup.GetLinkNumPart(linknum).UUID.ToString();
3769 else
3770 return sittingAvatarIds[linknum - actualPrimCount - 1].ToString();
3771 }
3772 else 4181 else
3773 {
3774 return ScriptBaseClass.NULL_KEY; 4182 return ScriptBaseClass.NULL_KEY;
3775 }
3776 } 4183 }
3777 4184
3778 /// <summary> 4185 /// <summary>
@@ -3818,55 +4225,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3818 { 4225 {
3819 m_host.AddScriptLPS(1); 4226 m_host.AddScriptLPS(1);
3820 4227
3821 if (linknum < 0) 4228 ISceneEntity entity = GetLinkEntity(m_host, linknum);
3822 {
3823 if (linknum == ScriptBaseClass.LINK_THIS)
3824 return m_host.Name;
3825 else
3826 return ScriptBaseClass.NULL_KEY;
3827 }
3828 4229
3829 int actualPrimCount = m_host.ParentGroup.PrimCount; 4230 if (entity != null)
3830 List<UUID> sittingAvatarIds = m_host.ParentGroup.GetSittingAvatars(); 4231 return entity.Name;
3831 int adjustedPrimCount = actualPrimCount + sittingAvatarIds.Count;
3832
3833 // Special case for a single prim. In this case the linknum is zero. However, this will not match a single
3834 // prim that has any avatars sat upon it (in which case the root prim is link 1).
3835 if (linknum == 0)
3836 {
3837 if (actualPrimCount == 1 && sittingAvatarIds.Count == 0)
3838 return m_host.Name;
3839
3840 return ScriptBaseClass.NULL_KEY;
3841 }
3842 // Special case to handle a single prim with sitting avatars. GetLinkPart() would only match zero but
3843 // here we must match 1 (ScriptBaseClass.LINK_ROOT).
3844 else if (linknum == 1 && actualPrimCount == 1)
3845 {
3846 if (sittingAvatarIds.Count > 0)
3847 return m_host.ParentGroup.RootPart.Name;
3848 else
3849 return ScriptBaseClass.NULL_KEY;
3850 }
3851 else if (linknum <= adjustedPrimCount)
3852 {
3853 if (linknum <= actualPrimCount)
3854 {
3855 return m_host.ParentGroup.GetLinkNumPart(linknum).Name;
3856 }
3857 else
3858 {
3859 ScenePresence sp = World.GetScenePresence(sittingAvatarIds[linknum - actualPrimCount - 1]);
3860 if (sp != null)
3861 return sp.Name;
3862 else
3863 return ScriptBaseClass.NULL_KEY;
3864 }
3865 }
3866 else 4232 else
3867 {
3868 return ScriptBaseClass.NULL_KEY; 4233 return ScriptBaseClass.NULL_KEY;
3869 }
3870 } 4234 }
3871 4235
3872 public LSL_Integer llGetInventoryNumber(int type) 4236 public LSL_Integer llGetInventoryNumber(int type)
@@ -3931,7 +4295,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3931 4295
3932 if (!UUID.TryParse(destination, out destId)) 4296 if (!UUID.TryParse(destination, out destId))
3933 { 4297 {
3934 llSay(0, "Could not parse key " + destination); 4298 Error("llGiveInventory", "Can't parse destination key '" + destination + "'");
3935 return; 4299 return;
3936 } 4300 }
3937 4301
@@ -3939,8 +4303,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3939 4303
3940 if (item == null) 4304 if (item == null)
3941 { 4305 {
3942 llSay(0, String.Format("Could not find object '{0}'", inventory)); 4306 Error("llGiveInventory", "Can't find inventory object '" + inventory + "'");
3943 throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory)); 4307 return;
3944 } 4308 }
3945 4309
3946 UUID objId = item.ItemID; 4310 UUID objId = item.ItemID;
@@ -3964,15 +4328,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3964 4328
3965 if (account == null) 4329 if (account == null)
3966 { 4330 {
3967 llSay(0, "Can't find destination "+destId.ToString()); 4331 GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString());
3968 return; 4332 if(info == null || info.Online == false)
4333 {
4334 Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'");
4335 return;
4336 }
3969 } 4337 }
3970 } 4338 }
3971 // destination is an avatar 4339 // destination is an avatar
3972 InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); 4340 string message;
4341 InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId, out message);
3973 4342
3974 if (agentItem == null) 4343 if (agentItem == null)
4344 {
4345 llSay(0, message);
3975 return; 4346 return;
4347 }
3976 4348
3977 if (m_TransferModule != null) 4349 if (m_TransferModule != null)
3978 { 4350 {
@@ -3991,7 +4363,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3991 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); 4363 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
3992 } 4364 }
3993 4365
3994 ScriptSleep(3000); 4366 ScriptSleep(m_sleepMsOnGiveInventory);
3995 } 4367 }
3996 } 4368 }
3997 4369
@@ -4054,87 +4426,98 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4054 UserAccount account; 4426 UserAccount account;
4055 4427
4056 UserInfoCacheEntry ce; 4428 UserInfoCacheEntry ce;
4057 if (!m_userInfoCache.TryGetValue(uuid, out ce)) 4429
4430 lock (m_userInfoCache)
4058 { 4431 {
4059 account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid); 4432 if (!m_userInfoCache.TryGetValue(uuid, out ce))
4060 if (account == null)
4061 { 4433 {
4062 m_userInfoCache[uuid] = null; // Cache negative 4434 account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
4063 return UUID.Zero.ToString(); 4435 if (account == null)
4064 } 4436 {
4065 4437 m_userInfoCache[uuid] = null; // Cache negative
4438 return UUID.Zero.ToString();
4439 }
4066 4440
4067 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 4441 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4068 if (pinfos != null && pinfos.Length > 0) 4442 if (pinfos != null && pinfos.Length > 0)
4069 {
4070 foreach (PresenceInfo p in pinfos)
4071 { 4443 {
4072 if (p.RegionID != UUID.Zero) 4444 foreach (PresenceInfo p in pinfos)
4073 { 4445 {
4074 pinfo = p; 4446 if (p.RegionID != UUID.Zero)
4447 {
4448 pinfo = p;
4449 }
4075 } 4450 }
4076 } 4451 }
4077 }
4078 4452
4079 ce = new UserInfoCacheEntry(); 4453 ce = new UserInfoCacheEntry();
4080 ce.time = Util.EnvironmentTickCount(); 4454 ce.time = Util.EnvironmentTickCount();
4081 ce.account = account; 4455 ce.account = account;
4082 ce.pinfo = pinfo; 4456 ce.pinfo = pinfo;
4083 }
4084 else
4085 {
4086 if (ce == null)
4087 return UUID.Zero.ToString();
4088
4089 account = ce.account;
4090 pinfo = ce.pinfo;
4091 }
4092 4457
4093 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000) 4458 m_userInfoCache[uuid] = ce;
4094 { 4459 }
4095 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 4460 else
4096 if (pinfos != null && pinfos.Length > 0)
4097 { 4461 {
4098 foreach (PresenceInfo p in pinfos) 4462 if (ce == null)
4463 return UUID.Zero.ToString();
4464
4465 account = ce.account;
4466
4467 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time)
4468 >= LlRequestAgentDataCacheTimeoutMs)
4099 { 4469 {
4100 if (p.RegionID != UUID.Zero) 4470 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4471 if (pinfos != null && pinfos.Length > 0)
4101 { 4472 {
4102 pinfo = p; 4473 foreach (PresenceInfo p in pinfos)
4474 {
4475 if (p.RegionID != UUID.Zero)
4476 {
4477 pinfo = p;
4478 }
4479 }
4103 } 4480 }
4481 else
4482 {
4483 pinfo = null;
4484 }
4485
4486 ce.time = Util.EnvironmentTickCount();
4487 ce.pinfo = pinfo;
4488 }
4489 else
4490 {
4491 pinfo = ce.pinfo;
4104 } 4492 }
4105 } 4493 }
4106 else
4107 pinfo = null;
4108
4109 ce.time = Util.EnvironmentTickCount();
4110 ce.pinfo = pinfo;
4111 } 4494 }
4112 4495
4113 string reply = String.Empty; 4496 string reply = String.Empty;
4114 4497
4115 switch (data) 4498 switch (data)
4116 { 4499 {
4117 case 1: // DATA_ONLINE (0|1) 4500 case ScriptBaseClass.DATA_ONLINE:
4118 if (pinfo != null && pinfo.RegionID != UUID.Zero) 4501 if (pinfo != null && pinfo.RegionID != UUID.Zero)
4119 reply = "1"; 4502 reply = "1";
4120 else 4503 else
4121 reply = "0"; 4504 reply = "0";
4122 break; 4505 break;
4123 case 2: // DATA_NAME (First Last) 4506 case ScriptBaseClass.DATA_NAME: // (First Last)
4124 reply = account.FirstName + " " + account.LastName; 4507 reply = account.FirstName + " " + account.LastName;
4125 break; 4508 break;
4126 case 3: // DATA_BORN (YYYY-MM-DD) 4509 case ScriptBaseClass.DATA_BORN: // (YYYY-MM-DD)
4127 DateTime born = new DateTime(1970, 1, 1, 0, 0, 0, 0); 4510 DateTime born = new DateTime(1970, 1, 1, 0, 0, 0, 0);
4128 born = born.AddSeconds(account.Created); 4511 born = born.AddSeconds(account.Created);
4129 reply = born.ToString("yyyy-MM-dd"); 4512 reply = born.ToString("yyyy-MM-dd");
4130 break; 4513 break;
4131 case 4: // DATA_RATING (0,0,0,0,0,0) 4514 case ScriptBaseClass.DATA_RATING: // (0,0,0,0,0,0)
4132 reply = "0,0,0,0,0,0"; 4515 reply = "0,0,0,0,0,0";
4133 break; 4516 break;
4134 case 7: // DATA_USERLEVEL (integer) 4517 case 7: // DATA_USERLEVEL (integer). This is not available in LL and so has no constant.
4135 reply = account.UserLevel.ToString(); 4518 reply = account.UserLevel.ToString();
4136 break; 4519 break;
4137 case 8: // DATA_PAYINFO (0|1|2|3) 4520 case ScriptBaseClass.DATA_PAYINFO: // (0|1|2|3)
4138 reply = "0"; 4521 reply = "0";
4139 break; 4522 break;
4140 default: 4523 default:
@@ -4150,7 +4533,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4150 AsyncCommands. 4533 AsyncCommands.
4151 DataserverPlugin.DataserverReply(rq.ToString(), reply); 4534 DataserverPlugin.DataserverReply(rq.ToString(), reply);
4152 4535
4153 ScriptSleep(100); 4536 ScriptSleep(m_sleepMsOnRequestAgentData);
4154 return tid.ToString(); 4537 return tid.ToString();
4155 } 4538 }
4156 4539
@@ -4166,10 +4549,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4166 DataserverPlugin.RegisterRequest(m_host.LocalId, 4549 DataserverPlugin.RegisterRequest(m_host.LocalId,
4167 m_item.ItemID, item.AssetID.ToString()); 4550 m_item.ItemID, item.AssetID.ToString());
4168 4551
4169 Vector3 region = new Vector3( 4552 Vector3 region = new Vector3(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0);
4170 World.RegionInfo.RegionLocX * Constants.RegionSize,
4171 World.RegionInfo.RegionLocY * Constants.RegionSize,
4172 0);
4173 4553
4174 World.AssetService.Get(item.AssetID.ToString(), this, 4554 World.AssetService.Get(item.AssetID.ToString(), this,
4175 delegate(string i, object sender, AssetBase a) 4555 delegate(string i, object sender, AssetBase a)
@@ -4186,12 +4566,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4186 reply); 4566 reply);
4187 }); 4567 });
4188 4568
4189 ScriptSleep(1000); 4569 ScriptSleep(m_sleepMsOnRequestInventoryData);
4190 return tid.ToString(); 4570 return tid.ToString();
4191 } 4571 }
4192 } 4572 }
4193 4573
4194 ScriptSleep(1000); 4574 ScriptSleep(m_sleepMsOnRequestInventoryData);
4195 return String.Empty; 4575 return String.Empty;
4196 } 4576 }
4197 4577
@@ -4211,14 +4591,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4211 if (presence != null) 4591 if (presence != null)
4212 { 4592 {
4213 // agent must be over the owners land 4593 // agent must be over the owners land
4214 if (m_host.OwnerID == World.LandChannel.GetLandObject( 4594 if (m_host.OwnerID == World.LandChannel.GetLandObject(presence.AbsolutePosition).LandData.OwnerID)
4215 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
4216 { 4595 {
4217 World.TeleportClientHome(agentId, presence.ControllingClient); 4596 World.TeleportClientHome(agentId, presence.ControllingClient);
4218 } 4597 }
4219 } 4598 }
4220 } 4599 }
4221 ScriptSleep(5000); 4600
4601 ScriptSleep(m_sleepMsOnSetDamage);
4222 } 4602 }
4223 4603
4224 public void llTeleportAgent(string agent, string destination, LSL_Vector targetPos, LSL_Vector targetLookAt) 4604 public void llTeleportAgent(string agent, string destination, LSL_Vector targetPos, LSL_Vector targetLookAt)
@@ -4238,8 +4618,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4238 destination = World.RegionInfo.RegionName; 4618 destination = World.RegionInfo.RegionName;
4239 4619
4240 // agent must be over the owners land 4620 // agent must be over the owners land
4241 if (m_host.OwnerID == World.LandChannel.GetLandObject( 4621 if (m_host.OwnerID == World.LandChannel.GetLandObject(presence.AbsolutePosition).LandData.OwnerID)
4242 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
4243 { 4622 {
4244 DoLLTeleport(presence, destination, targetPos, targetLookAt); 4623 DoLLTeleport(presence, destination, targetPos, targetLookAt);
4245 } 4624 }
@@ -4259,7 +4638,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4259 m_host.AddScriptLPS(1); 4638 m_host.AddScriptLPS(1);
4260 UUID agentId = new UUID(); 4639 UUID agentId = new UUID();
4261 4640
4262 ulong regionHandle = Utils.UIntsToLong((uint)global_coords.x, (uint)global_coords.y); 4641 ulong regionHandle = Util.RegionWorldLocToHandle((uint)global_coords.x, (uint)global_coords.y);
4263 4642
4264 if (UUID.TryParse(agent, out agentId)) 4643 if (UUID.TryParse(agent, out agentId))
4265 { 4644 {
@@ -4270,8 +4649,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4270 if (presence.GodLevel >= 200) return; 4649 if (presence.GodLevel >= 200) return;
4271 4650
4272 // agent must be over the owners land 4651 // agent must be over the owners land
4273 if (m_host.OwnerID == World.LandChannel.GetLandObject( 4652 if (m_host.OwnerID == World.LandChannel.GetLandObject(presence.AbsolutePosition).LandData.OwnerID)
4274 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
4275 { 4653 {
4276 World.RequestTeleportLocation(presence.ControllingClient, regionHandle, targetPos, targetLookAt, (uint)TeleportFlags.ViaLocation); 4654 World.RequestTeleportLocation(presence.ControllingClient, regionHandle, targetPos, targetLookAt, (uint)TeleportFlags.ViaLocation);
4277 } 4655 }
@@ -4288,7 +4666,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4288 4666
4289 private void DoLLTeleport(ScenePresence sp, string destination, Vector3 targetPos, Vector3 targetLookAt) 4667 private void DoLLTeleport(ScenePresence sp, string destination, Vector3 targetPos, Vector3 targetLookAt)
4290 { 4668 {
4291 UUID assetID = KeyOrName(destination); 4669 UUID assetID = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, destination);
4292 4670
4293 // The destinaion is not an asset ID and also doesn't name a landmark. 4671 // The destinaion is not an asset ID and also doesn't name a landmark.
4294 // Use it as a sim name 4672 // Use it as a sim name
@@ -4321,22 +4699,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4321 UUID av = new UUID(); 4699 UUID av = new UUID();
4322 if (!UUID.TryParse(agent,out av)) 4700 if (!UUID.TryParse(agent,out av))
4323 { 4701 {
4324 LSLError("First parameter to llDialog needs to be a key"); 4702 Error("llTextBox", "First parameter must be a key");
4325 return; 4703 return;
4326 } 4704 }
4327 4705
4328 if (message == string.Empty) 4706 if (message == string.Empty)
4329 { 4707 {
4330 ShoutError("Trying to use llTextBox with empty message."); 4708 Error("llTextBox", "Empty message");
4331 } 4709 }
4332 else if (message.Length > 512) 4710 else if (message.Length > 512)
4333 { 4711 {
4334 ShoutError("Trying to use llTextBox with message over 512 characters."); 4712 Error("llTextBox", "Message more than 512 characters");
4335 } 4713 }
4336 else 4714 else
4337 { 4715 {
4338 dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID); 4716 dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID);
4339 ScriptSleep(1000); 4717 ScriptSleep(m_sleepMsOnTextBox);
4340 } 4718 }
4341 } 4719 }
4342 4720
@@ -4353,9 +4731,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4353 public void llCollisionSound(string impact_sound, double impact_volume) 4731 public void llCollisionSound(string impact_sound, double impact_volume)
4354 { 4732 {
4355 m_host.AddScriptLPS(1); 4733 m_host.AddScriptLPS(1);
4356 4734
4357 // TODO: Parameter check logic required. 4735 // TODO: Parameter check logic required.
4358 m_host.CollisionSound = KeyOrName(impact_sound, AssetType.Sound); 4736 m_host.CollisionSound = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, impact_sound, AssetType.Sound);
4359 m_host.CollisionSoundVolume = (float)impact_volume; 4737 m_host.CollisionSoundVolume = (float)impact_volume;
4360 } 4738 }
4361 4739
@@ -4475,7 +4853,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4475 { 4853 {
4476 if (pushrestricted) 4854 if (pushrestricted)
4477 { 4855 {
4478 ILandObject targetlandObj = World.LandChannel.GetLandObject(PusheePos.X, PusheePos.Y); 4856 ILandObject targetlandObj = World.LandChannel.GetLandObject(PusheePos);
4479 4857
4480 // We didn't find the parcel but region is push restricted so assume it is NOT ok 4858 // We didn't find the parcel but region is push restricted so assume it is NOT ok
4481 if (targetlandObj == null) 4859 if (targetlandObj == null)
@@ -4490,7 +4868,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4490 } 4868 }
4491 else 4869 else
4492 { 4870 {
4493 ILandObject targetlandObj = World.LandChannel.GetLandObject(PusheePos.X, PusheePos.Y); 4871 ILandObject targetlandObj = World.LandChannel.GetLandObject(PusheePos);
4494 if (targetlandObj == null) 4872 if (targetlandObj == null)
4495 { 4873 {
4496 // We didn't find the parcel but region isn't push restricted so assume it's ok 4874 // We didn't find the parcel but region isn't push restricted so assume it's ok
@@ -4520,6 +4898,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4520 } 4898 }
4521 } 4899 }
4522 } 4900 }
4901
4523 if (pushAllowed) 4902 if (pushAllowed)
4524 { 4903 {
4525 float distance = (PusheePos - m_host.AbsolutePosition).Length(); 4904 float distance = (PusheePos - m_host.AbsolutePosition).Length();
@@ -4548,17 +4927,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4548 applied_linear_impulse *= scaling_factor; 4927 applied_linear_impulse *= scaling_factor;
4549 4928
4550 } 4929 }
4930
4551 if (pusheeIsAvatar) 4931 if (pusheeIsAvatar)
4552 { 4932 {
4553 if (pusheeav != null) 4933 if (pusheeav != null)
4554 { 4934 {
4555 if (pusheeav.PhysicsActor != null) 4935 PhysicsActor pa = pusheeav.PhysicsActor;
4936
4937 if (pa != null)
4556 { 4938 {
4557 if (local != 0) 4939 if (local != 0)
4558 { 4940 {
4559 applied_linear_impulse *= m_host.GetWorldRotation(); 4941 applied_linear_impulse *= m_host.GetWorldRotation();
4560 } 4942 }
4561 pusheeav.PhysicsActor.AddForce(applied_linear_impulse, true); 4943
4944 pa.AddForce(applied_linear_impulse, true);
4562 } 4945 }
4563 } 4946 }
4564 } 4947 }
@@ -4666,6 +5049,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4666 5049
4667 s = Math.Cos(angle * 0.5); 5050 s = Math.Cos(angle * 0.5);
4668 t = Math.Sin(angle * 0.5); // temp value to avoid 2 more sin() calcs 5051 t = Math.Sin(angle * 0.5); // temp value to avoid 2 more sin() calcs
5052 axis = LSL_Vector.Norm(axis);
4669 x = axis.x * t; 5053 x = axis.x * t;
4670 y = axis.y * t; 5054 y = axis.y * t;
4671 z = axis.z * t; 5055 z = axis.z * t;
@@ -4673,41 +5057,29 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4673 return new LSL_Rotation(x,y,z,s); 5057 return new LSL_Rotation(x,y,z,s);
4674 } 5058 }
4675 5059
4676 5060 /// <summary>
4677 // Xantor 29/apr/2008 5061 /// Returns the axis of rotation for a quaternion
4678 // converts a Quaternion to X,Y,Z axis rotations 5062 /// </summary>
5063 /// <returns></returns>
5064 /// <param name='rot'></param>
4679 public LSL_Vector llRot2Axis(LSL_Rotation rot) 5065 public LSL_Vector llRot2Axis(LSL_Rotation rot)
4680 { 5066 {
4681 m_host.AddScriptLPS(1); 5067 m_host.AddScriptLPS(1);
4682 double x,y,z;
4683
4684 if (rot.s > 1) // normalization needed
4685 {
4686 double length = Math.Sqrt(rot.x * rot.x + rot.y * rot.y +
4687 rot.z * rot.z + rot.s * rot.s);
4688 5068
4689 rot.x /= length; 5069 if (Math.Abs(rot.s) > 1) // normalization needed
4690 rot.y /= length; 5070 rot.Normalize();
4691 rot.z /= length;
4692 rot.s /= length;
4693 5071
4694 }
4695
4696 // double angle = 2 * Math.Acos(rot.s);
4697 double s = Math.Sqrt(1 - rot.s * rot.s); 5072 double s = Math.Sqrt(1 - rot.s * rot.s);
4698 if (s < 0.001) 5073 if (s < 0.001)
4699 { 5074 {
4700 x = 1; 5075 return new LSL_Vector(1, 0, 0);
4701 y = z = 0;
4702 } 5076 }
4703 else 5077 else
4704 { 5078 {
4705 x = rot.x / s; // normalise axis 5079 double invS = 1.0 / s;
4706 y = rot.y / s; 5080 if (rot.s < 0) invS = -invS;
4707 z = rot.z / s; 5081 return new LSL_Vector(rot.x * invS, rot.y * invS, rot.z * invS);
4708 } 5082 }
4709
4710 return new LSL_Vector(x,y,z);
4711 } 5083 }
4712 5084
4713 5085
@@ -4716,18 +5088,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4716 { 5088 {
4717 m_host.AddScriptLPS(1); 5089 m_host.AddScriptLPS(1);
4718 5090
4719 if (rot.s > 1) // normalization needed 5091 if (Math.Abs(rot.s) > 1) // normalization needed
4720 { 5092 rot.Normalize();
4721 double length = Math.Sqrt(rot.x * rot.x + rot.y * rot.y +
4722 rot.z * rot.z + rot.s * rot.s);
4723
4724 rot.x /= length;
4725 rot.y /= length;
4726 rot.z /= length;
4727 rot.s /= length;
4728 }
4729 5093
4730 double angle = 2 * Math.Acos(rot.s); 5094 double angle = 2 * Math.Acos(rot.s);
5095 if (angle > Math.PI)
5096 angle = 2 * Math.PI - angle;
4731 5097
4732 return angle; 5098 return angle;
4733 } 5099 }
@@ -4907,8 +5273,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4907 public LSL_Vector llGetCenterOfMass() 5273 public LSL_Vector llGetCenterOfMass()
4908 { 5274 {
4909 m_host.AddScriptLPS(1); 5275 m_host.AddScriptLPS(1);
4910 Vector3 center = m_host.GetGeometricCenter(); 5276
4911 return new LSL_Vector(center.X,center.Y,center.Z); 5277 return new LSL_Vector(m_host.GetCenterOfMass());
4912 } 5278 }
4913 5279
4914 public LSL_List llListSort(LSL_List src, int stride, int ascending) 5280 public LSL_List llListSort(LSL_List src, int stride, int ascending)
@@ -5043,10 +5409,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5043 // SL spits out an empty string for types other than key & string 5409 // SL spits out an empty string for types other than key & string
5044 // At the time of patching, LSL_Key is currently LSL_String, 5410 // At the time of patching, LSL_Key is currently LSL_String,
5045 // so the OR check may be a little redundant, but it's being done 5411 // so the OR check may be a little redundant, but it's being done
5046 // for completion and should LSL_Key ever be implemented 5412 // for completion and should LSL_Key ever be implemented
5047 // as it's own struct 5413 // as it's own struct
5414 // NOTE: 3rd case is needed because a NULL_KEY comes through as
5415 // type 'obj' and wrongly returns ""
5048 else if (!(src.Data[index] is LSL_String || 5416 else if (!(src.Data[index] is LSL_String ||
5049 src.Data[index] is LSL_Key)) 5417 src.Data[index] is LSL_Key ||
5418 src.Data[index].ToString() == "00000000-0000-0000-0000-000000000000"))
5050 { 5419 {
5051 return ""; 5420 return "";
5052 } 5421 }
@@ -5179,8 +5548,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5179 { 5548 {
5180 m_host.AddScriptLPS(1); 5549 m_host.AddScriptLPS(1);
5181 5550
5182 return string.Join(", ", 5551 return string.Join(", ",
5183 (new List<object>(src.Data)).ConvertAll<string>(o => 5552 (new List<object>(src.Data)).ConvertAll<string>(o =>
5184 { 5553 {
5185 return o.ToString(); 5554 return o.ToString();
5186 }).ToArray()); 5555 }).ToArray());
@@ -5254,7 +5623,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5254 public LSL_List llListRandomize(LSL_List src, int stride) 5623 public LSL_List llListRandomize(LSL_List src, int stride)
5255 { 5624 {
5256 LSL_List result; 5625 LSL_List result;
5257 Random rand = new Random(); 5626 BetterRandom rand = new BetterRandom();
5258 5627
5259 int chunkk; 5628 int chunkk;
5260 int[] chunks; 5629 int[] chunks;
@@ -5270,24 +5639,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5270 // If not, then return the src list. This also 5639 // If not, then return the src list. This also
5271 // traps those cases where stride > length. 5640 // traps those cases where stride > length.
5272 5641
5273 if (src.Length != stride && src.Length%stride == 0) 5642 if (src.Length != stride && src.Length % stride == 0)
5274 { 5643 {
5275 chunkk = src.Length/stride; 5644 chunkk = src.Length/stride;
5276 5645
5277 chunks = new int[chunkk]; 5646 chunks = new int[chunkk];
5278 5647
5279 for (int i = 0; i < chunkk; i++) 5648 for (int i = 0; i < chunkk; i++)
5649 {
5280 chunks[i] = i; 5650 chunks[i] = i;
5651 }
5281 5652
5282 // Knuth shuffle the chunkk index 5653 // Knuth shuffle the chunkk index
5283 for (int i = chunkk - 1; i >= 1; i--) 5654 for (int i = chunkk - 1; i > 0; i--)
5284 { 5655 {
5285 // Elect an unrandomized chunk to swap 5656 // Elect an unrandomized chunk to swap
5286 int index = rand.Next(i + 1); 5657 int index = rand.Next(i + 1);
5287 int tmp;
5288 5658
5289 // and swap position with first unrandomized chunk 5659 // and swap position with first unrandomized chunk
5290 tmp = chunks[i]; 5660 int tmp = chunks[i];
5291 chunks[i] = chunks[index]; 5661 chunks[i] = chunks[index];
5292 chunks[index] = tmp; 5662 chunks[index] = tmp;
5293 } 5663 }
@@ -5300,7 +5670,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5300 { 5670 {
5301 for (int j = 0; j < stride; j++) 5671 for (int j = 0; j < stride; j++)
5302 { 5672 {
5303 result.Add(src.Data[chunks[i]*stride+j]); 5673 result.Add(src.Data[chunks[i] * stride + j]);
5304 } 5674 }
5305 } 5675 }
5306 } 5676 }
@@ -5417,7 +5787,72 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5417 public LSL_Vector llGetRegionCorner() 5787 public LSL_Vector llGetRegionCorner()
5418 { 5788 {
5419 m_host.AddScriptLPS(1); 5789 m_host.AddScriptLPS(1);
5420 return new LSL_Vector(World.RegionInfo.RegionLocX * Constants.RegionSize, World.RegionInfo.RegionLocY * Constants.RegionSize, 0); 5790 return new LSL_Vector(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0);
5791 }
5792
5793 public LSL_String llGetEnv(LSL_String name)
5794 {
5795 m_host.AddScriptLPS(1);
5796 if (name == "agent_limit")
5797 {
5798 return World.RegionInfo.RegionSettings.AgentLimit.ToString();
5799 }
5800 else if (name == "dynamic_pathfinding")
5801 {
5802 return "0";
5803 }
5804 else if (name == "estate_id")
5805 {
5806 return World.RegionInfo.EstateSettings.EstateID.ToString();
5807 }
5808 else if (name == "estate_name")
5809 {
5810 return World.RegionInfo.EstateSettings.EstateName;
5811 }
5812 else if (name == "frame_number")
5813 {
5814 return World.Frame.ToString();
5815 }
5816 else if (name == "region_cpu_ratio")
5817 {
5818 return "1";
5819 }
5820 else if (name == "region_idle")
5821 {
5822 return "0";
5823 }
5824 else if (name == "region_product_name")
5825 {
5826 if (World.RegionInfo.RegionType != String.Empty)
5827 return World.RegionInfo.RegionType;
5828 else
5829 return "";
5830 }
5831 else if (name == "region_product_sku")
5832 {
5833 return "OpenSim";
5834 }
5835 else if (name == "region_start_time")
5836 {
5837 return World.UnixStartTime.ToString();
5838 }
5839 else if (name == "sim_channel")
5840 {
5841 return "OpenSim";
5842 }
5843 else if (name == "sim_version")
5844 {
5845 return World.GetSimulatorVersion();
5846 }
5847 else if (name == "simulator_hostname")
5848 {
5849 IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
5850 return UrlModule.ExternalHostNameForLSL;
5851 }
5852 else
5853 {
5854 return "";
5855 }
5421 } 5856 }
5422 5857
5423 /// <summary> 5858 /// <summary>
@@ -5429,8 +5864,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5429 public LSL_List llListInsertList(LSL_List dest, LSL_List src, int index) 5864 public LSL_List llListInsertList(LSL_List dest, LSL_List src, int index)
5430 { 5865 {
5431 5866
5432 LSL_List pref = null; 5867 LSL_List pref;
5433 LSL_List suff = null; 5868 LSL_List suff;
5434 5869
5435 m_host.AddScriptLPS(1); 5870 m_host.AddScriptLPS(1);
5436 5871
@@ -5564,7 +5999,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5564 LSL_Float mag; 5999 LSL_Float mag;
5565 if (dir.x > 0) 6000 if (dir.x > 0)
5566 { 6001 {
5567 mag = (Constants.RegionSize - pos.x) / dir.x; 6002 mag = (World.RegionInfo.RegionSizeX - pos.x) / dir.x;
5568 } 6003 }
5569 else 6004 else
5570 { 6005 {
@@ -5575,7 +6010,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5575 6010
5576 edge.y = pos.y + (dir.y * mag); 6011 edge.y = pos.y + (dir.y * mag);
5577 6012
5578 if (edge.y > Constants.RegionSize || edge.y < 0) 6013 if (edge.y > World.RegionInfo.RegionSizeY || edge.y < 0)
5579 { 6014 {
5580 // Y goes out of bounds first 6015 // Y goes out of bounds first
5581 edge.y = dir.y / Math.Abs(dir.y); 6016 edge.y = dir.y / Math.Abs(dir.y);
@@ -5704,12 +6139,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5704 6139
5705 public LSL_String llGetAgentLanguage(string id) 6140 public LSL_String llGetAgentLanguage(string id)
5706 { 6141 {
5707 // This should only return a value if the avatar is in the same region 6142 // This should only return a value if the avatar is in the same region, but eh. idc.
5708 //ckrinke 1-30-09 : This needs to parse the XMLRPC language field supplied
5709 //by the client at login. Currently returning only en-us until our I18N
5710 //effort gains momentum
5711 m_host.AddScriptLPS(1); 6143 m_host.AddScriptLPS(1);
5712 return "en-us"; 6144 if (World.AgentPreferencesService == null)
6145 {
6146 Error("llGetAgentLanguage", "No AgentPreferencesService present");
6147 }
6148 else
6149 {
6150 UUID key = new UUID();
6151 if (UUID.TryParse(id, out key))
6152 {
6153 return new LSL_String(World.AgentPreferencesService.GetLang(key));
6154 }
6155 }
6156 return new LSL_String("en-us");
5713 } 6157 }
5714 /// <summary> 6158 /// <summary>
5715 /// http://wiki.secondlife.com/wiki/LlGetAgentList 6159 /// http://wiki.secondlife.com/wiki/LlGetAgentList
@@ -5739,12 +6183,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5739 } 6183 }
5740 6184
5741 ILandObject land; 6185 ILandObject land;
5742 Vector3 pos;
5743 UUID id = UUID.Zero; 6186 UUID id = UUID.Zero;
6187
5744 if (parcel || parcelOwned) 6188 if (parcel || parcelOwned)
5745 { 6189 {
5746 pos = m_host.ParentGroup.RootPart.GetWorldPosition(); 6190 land = World.LandChannel.GetLandObject(m_host.ParentGroup.RootPart.GetWorldPosition());
5747 land = World.LandChannel.GetLandObject(pos.X, pos.Y);
5748 if (land == null) 6191 if (land == null)
5749 { 6192 {
5750 id = UUID.Zero; 6193 id = UUID.Zero;
@@ -5770,8 +6213,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5770 { 6213 {
5771 if (!regionWide) 6214 if (!regionWide)
5772 { 6215 {
5773 pos = ssp.AbsolutePosition; 6216 land = World.LandChannel.GetLandObject(ssp.AbsolutePosition);
5774 land = World.LandChannel.GetLandObject(pos.X, pos.Y);
5775 if (land != null) 6217 if (land != null)
5776 { 6218 {
5777 if (parcelOwned && land.LandData.OwnerID == id || 6219 if (parcelOwned && land.LandData.OwnerID == id ||
@@ -5800,7 +6242,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5800 { 6242 {
5801 m_host.AddScriptLPS(1); 6243 m_host.AddScriptLPS(1);
5802 m_host.AdjustSoundGain(volume); 6244 m_host.AdjustSoundGain(volume);
5803 ScriptSleep(100); 6245 ScriptSleep(m_sleepMsOnAdjustSoundVolume);
5804 } 6246 }
5805 6247
5806 public void llSetSoundRadius(double radius) 6248 public void llSetSoundRadius(double radius)
@@ -5881,7 +6323,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5881 if (m_SoundModule != null) 6323 if (m_SoundModule != null)
5882 { 6324 {
5883 m_SoundModule.TriggerSoundLimited(m_host.UUID, 6325 m_SoundModule.TriggerSoundLimited(m_host.UUID,
5884 KeyOrName(sound, AssetType.Sound), volume, 6326 ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, sound, AssetType.Sound), volume,
5885 bottom_south_west, top_north_east); 6327 bottom_south_west, top_north_east);
5886 } 6328 }
5887 } 6329 }
@@ -5896,7 +6338,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5896 if (presence != null) 6338 if (presence != null)
5897 { 6339 {
5898 // agent must be over the owners land 6340 // agent must be over the owners land
5899 ILandObject land = World.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y); 6341 ILandObject land = World.LandChannel.GetLandObject(presence.AbsolutePosition);
5900 if (land == null) 6342 if (land == null)
5901 return; 6343 return;
5902 6344
@@ -5906,7 +6348,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5906 } 6348 }
5907 } 6349 }
5908 } 6350 }
5909 ScriptSleep(5000); 6351 ScriptSleep(m_sleepMsOnEjectFromLand);
5910 } 6352 }
5911 6353
5912 public LSL_Integer llOverMyLand(string id) 6354 public LSL_Integer llOverMyLand(string id)
@@ -5918,19 +6360,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5918 ScenePresence presence = World.GetScenePresence(key); 6360 ScenePresence presence = World.GetScenePresence(key);
5919 if (presence != null) // object is an avatar 6361 if (presence != null) // object is an avatar
5920 { 6362 {
5921 if (m_host.OwnerID 6363 if (m_host.OwnerID == World.LandChannel.GetLandObject(presence.AbsolutePosition).LandData.OwnerID)
5922 == World.LandChannel.GetLandObject(
5923 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
5924 return 1; 6364 return 1;
5925 } 6365 }
5926 else // object is not an avatar 6366 else // object is not an avatar
5927 { 6367 {
5928 SceneObjectPart obj = World.GetSceneObjectPart(key); 6368 SceneObjectPart obj = World.GetSceneObjectPart(key);
6369
5929 if (obj != null) 6370 if (obj != null)
5930 if (m_host.OwnerID 6371 {
5931 == World.LandChannel.GetLandObject( 6372 if (m_host.OwnerID == World.LandChannel.GetLandObject(obj.AbsolutePosition).LandData.OwnerID)
5932 obj.AbsolutePosition.X, obj.AbsolutePosition.Y).LandData.OwnerID)
5933 return 1; 6373 return 1;
6374 }
5934 } 6375 }
5935 } 6376 }
5936 6377
@@ -5962,8 +6403,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5962 } 6403 }
5963 else 6404 else
5964 { 6405 {
5965 agentSize = new LSL_Vector(0.45, 0.6, avatar.Appearance.AvatarHeight); 6406 agentSize = GetAgentSize(avatar);
5966 } 6407 }
6408
5967 return agentSize; 6409 return agentSize;
5968 } 6410 }
5969 6411
@@ -5991,10 +6433,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5991 if (UUID.TryParse(id, out key)) 6433 if (UUID.TryParse(id, out key))
5992 { 6434 {
5993 ScenePresence av = World.GetScenePresence(key); 6435 ScenePresence av = World.GetScenePresence(key);
6436 List<ScenePresence> sittingAvatars = m_host.ParentGroup.GetSittingAvatars();
5994 6437
5995 if (av != null) 6438 if (av != null)
5996 { 6439 {
5997 if (llAvatarOnSitTarget() == id) 6440 if (sittingAvatars.Contains(av))
5998 { 6441 {
5999 // if the avatar is sitting on this object, then 6442 // if the avatar is sitting on this object, then
6000 // we can unsit them. We don't want random scripts unsitting random people 6443 // we can unsit them. We don't want random scripts unsitting random people
@@ -6008,8 +6451,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6008 // if the land is group owned and the object is group owned by the same group 6451 // if the land is group owned and the object is group owned by the same group
6009 // or 6452 // or
6010 // if the object is owned by a person with estate access. 6453 // if the object is owned by a person with estate access.
6011 6454 ILandObject parcel = World.LandChannel.GetLandObject(av.AbsolutePosition);
6012 ILandObject parcel = World.LandChannel.GetLandObject(av.AbsolutePosition.X, av.AbsolutePosition.Y);
6013 if (parcel != null) 6455 if (parcel != null)
6014 { 6456 {
6015 if (m_host.OwnerID == parcel.LandData.OwnerID || 6457 if (m_host.OwnerID == parcel.LandData.OwnerID ||
@@ -6021,14 +6463,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6021 } 6463 }
6022 } 6464 }
6023 } 6465 }
6024
6025 } 6466 }
6026
6027 } 6467 }
6028 6468
6029 public LSL_Vector llGroundSlope(LSL_Vector offset) 6469 public LSL_Vector llGroundSlope(LSL_Vector offset)
6030 { 6470 {
6031 m_host.AddScriptLPS(1); 6471 m_host.AddScriptLPS(1);
6472
6032 //Get the slope normal. This gives us the equation of the plane tangent to the slope. 6473 //Get the slope normal. This gives us the equation of the plane tangent to the slope.
6033 LSL_Vector vsn = llGroundNormal(offset); 6474 LSL_Vector vsn = llGroundNormal(offset);
6034 6475
@@ -6039,7 +6480,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6039 vsl.Normalize(); 6480 vsl.Normalize();
6040 //Normalization might be overkill here 6481 //Normalization might be overkill here
6041 6482
6042 return new LSL_Vector(vsl.X, vsl.Y, vsl.Z); 6483 vsn.x = vsl.X;
6484 vsn.y = vsl.Y;
6485 vsn.z = vsl.Z;
6486
6487 return vsn;
6043 } 6488 }
6044 6489
6045 public LSL_Vector llGroundNormal(LSL_Vector offset) 6490 public LSL_Vector llGroundNormal(LSL_Vector offset)
@@ -6089,7 +6534,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6089 //I believe the crossproduct of two normalized vectors is a normalized vector so 6534 //I believe the crossproduct of two normalized vectors is a normalized vector so
6090 //this normalization may be overkill 6535 //this normalization may be overkill
6091 6536
6092 return new LSL_Vector(vsn.X, vsn.Y, vsn.Z); 6537 return new LSL_Vector(vsn);
6093 } 6538 }
6094 6539
6095 public LSL_Vector llGroundContour(LSL_Vector offset) 6540 public LSL_Vector llGroundContour(LSL_Vector offset)
@@ -6105,11 +6550,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6105 return m_host.ParentGroup.AttachmentPoint; 6550 return m_host.ParentGroup.AttachmentPoint;
6106 } 6551 }
6107 6552
6108 public LSL_Integer llGetFreeMemory() 6553 public virtual LSL_Integer llGetFreeMemory()
6109 { 6554 {
6110 m_host.AddScriptLPS(1); 6555 m_host.AddScriptLPS(1);
6111 // Make scripts designed for LSO happy 6556 // Make scripts designed for Mono happy
6112 return 16384; 6557 return 65536;
6113 } 6558 }
6114 6559
6115 public LSL_Integer llGetFreeURLs() 6560 public LSL_Integer llGetFreeURLs()
@@ -6176,7 +6621,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6176 PSYS_SRC_TARGET_KEY = 20, 6621 PSYS_SRC_TARGET_KEY = 20,
6177 PSYS_SRC_OMEGA = 21, 6622 PSYS_SRC_OMEGA = 21,
6178 PSYS_SRC_ANGLE_BEGIN = 22, 6623 PSYS_SRC_ANGLE_BEGIN = 22,
6179 PSYS_SRC_ANGLE_END = 23 6624 PSYS_SRC_ANGLE_END = 23,
6625 PSYS_PART_BLEND_FUNC_SOURCE = 24,
6626 PSYS_PART_BLEND_FUNC_DEST = 25,
6627 PSYS_PART_START_GLOW = 26,
6628 PSYS_PART_END_GLOW = 27
6180 } 6629 }
6181 6630
6182 internal Primitive.ParticleSystem.ParticleDataFlags ConvertUINTtoFlags(uint flags) 6631 internal Primitive.ParticleSystem.ParticleDataFlags ConvertUINTtoFlags(uint flags)
@@ -6202,6 +6651,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6202 ps.BurstRate = 0.1f; 6651 ps.BurstRate = 0.1f;
6203 ps.PartMaxAge = 10.0f; 6652 ps.PartMaxAge = 10.0f;
6204 ps.BurstPartCount = 1; 6653 ps.BurstPartCount = 1;
6654 ps.BlendFuncSource = ScriptBaseClass.PSYS_PART_BF_SOURCE_ALPHA;
6655 ps.BlendFuncDest = ScriptBaseClass.PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA;
6656 ps.PartStartGlow = 0.0f;
6657 ps.PartEndGlow = 0.0f;
6658
6205 return ps; 6659 return ps;
6206 } 6660 }
6207 6661
@@ -6213,17 +6667,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6213 6667
6214 foreach (SceneObjectPart part in parts) 6668 foreach (SceneObjectPart part in parts)
6215 { 6669 {
6216 SetParticleSystem(part, rules); 6670 SetParticleSystem(part, rules, "llLinkParticleSystem");
6217 } 6671 }
6218 } 6672 }
6219 6673
6220 public void llParticleSystem(LSL_List rules) 6674 public void llParticleSystem(LSL_List rules)
6221 { 6675 {
6222 m_host.AddScriptLPS(1); 6676 m_host.AddScriptLPS(1);
6223 SetParticleSystem(m_host, rules); 6677 SetParticleSystem(m_host, rules, "llParticleSystem");
6224 } 6678 }
6225 6679
6226 private void SetParticleSystem(SceneObjectPart part, LSL_List rules) 6680 private void SetParticleSystem(SceneObjectPart part, LSL_List rules, string originFunc)
6227 { 6681 {
6228 if (rules.Length == 0) 6682 if (rules.Length == 0)
6229 { 6683 {
@@ -6236,65 +6690,156 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6236 LSL_Vector tempv = new LSL_Vector(); 6690 LSL_Vector tempv = new LSL_Vector();
6237 6691
6238 float tempf = 0; 6692 float tempf = 0;
6693 int tmpi = 0;
6239 6694
6240 for (int i = 0; i < rules.Length; i += 2) 6695 for (int i = 0; i < rules.Length; i += 2)
6241 { 6696 {
6242 switch (rules.GetLSLIntegerItem(i)) 6697 int psystype;
6698 try
6699 {
6700 psystype = rules.GetLSLIntegerItem(i);
6701 }
6702 catch (InvalidCastException)
6703 {
6704 Error(originFunc, string.Format("Error running particle system params index #{0}: particle system parameter type must be integer", i));
6705 return;
6706 }
6707 switch (psystype)
6243 { 6708 {
6244 case (int)ScriptBaseClass.PSYS_PART_FLAGS: 6709 case (int)ScriptBaseClass.PSYS_PART_FLAGS:
6245 prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)(uint)rules.GetLSLIntegerItem(i + 1); 6710 try
6711 {
6712 prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)(uint)rules.GetLSLIntegerItem(i + 1);
6713 }
6714 catch(InvalidCastException)
6715 {
6716 Error(originFunc, string.Format("Error running rule PSYS_PART_FLAGS: arg #{0} - parameter 1 must be integer", i + 1));
6717 return;
6718 }
6246 break; 6719 break;
6247 6720
6248 case (int)ScriptBaseClass.PSYS_PART_START_COLOR: 6721 case (int)ScriptBaseClass.PSYS_PART_START_COLOR:
6249 tempv = rules.GetVector3Item(i + 1); 6722 try
6723 {
6724 tempv = rules.GetVector3Item(i + 1);
6725 }
6726 catch(InvalidCastException)
6727 {
6728 Error(originFunc, string.Format("Error running rule PSYS_PART_START_COLOR: arg #{0} - parameter 1 must be vector", i + 1));
6729 return;
6730 }
6250 prules.PartStartColor.R = (float)tempv.x; 6731 prules.PartStartColor.R = (float)tempv.x;
6251 prules.PartStartColor.G = (float)tempv.y; 6732 prules.PartStartColor.G = (float)tempv.y;
6252 prules.PartStartColor.B = (float)tempv.z; 6733 prules.PartStartColor.B = (float)tempv.z;
6253 break; 6734 break;
6254 6735
6255 case (int)ScriptBaseClass.PSYS_PART_START_ALPHA: 6736 case (int)ScriptBaseClass.PSYS_PART_START_ALPHA:
6256 tempf = (float)rules.GetLSLFloatItem(i + 1); 6737 try
6738 {
6739 tempf = (float)rules.GetLSLFloatItem(i + 1);
6740 }
6741 catch(InvalidCastException)
6742 {
6743 Error(originFunc, string.Format("Error running rule PSYS_PART_START_ALPHA: arg #{0} - parameter 1 must be float", i + 1));
6744 return;
6745 }
6257 prules.PartStartColor.A = tempf; 6746 prules.PartStartColor.A = tempf;
6258 break; 6747 break;
6259 6748
6260 case (int)ScriptBaseClass.PSYS_PART_END_COLOR: 6749 case (int)ScriptBaseClass.PSYS_PART_END_COLOR:
6261 tempv = rules.GetVector3Item(i + 1); 6750 try
6751 {
6752 tempv = rules.GetVector3Item(i + 1);
6753 }
6754 catch(InvalidCastException)
6755 {
6756 Error(originFunc, string.Format("Error running rule PSYS_PART_END_COLOR: arg #{0} - parameter 1 must be vector", i + 1));
6757 return;
6758 }
6262 prules.PartEndColor.R = (float)tempv.x; 6759 prules.PartEndColor.R = (float)tempv.x;
6263 prules.PartEndColor.G = (float)tempv.y; 6760 prules.PartEndColor.G = (float)tempv.y;
6264 prules.PartEndColor.B = (float)tempv.z; 6761 prules.PartEndColor.B = (float)tempv.z;
6265 break; 6762 break;
6266 6763
6267 case (int)ScriptBaseClass.PSYS_PART_END_ALPHA: 6764 case (int)ScriptBaseClass.PSYS_PART_END_ALPHA:
6268 tempf = (float)rules.GetLSLFloatItem(i + 1); 6765 try
6766 {
6767 tempf = (float)rules.GetLSLFloatItem(i + 1);
6768 }
6769 catch(InvalidCastException)
6770 {
6771 Error(originFunc, string.Format("Error running rule PSYS_PART_END_ALPHA: arg #{0} - parameter 1 must be float", i + 1));
6772 return;
6773 }
6269 prules.PartEndColor.A = tempf; 6774 prules.PartEndColor.A = tempf;
6270 break; 6775 break;
6271 6776
6272 case (int)ScriptBaseClass.PSYS_PART_START_SCALE: 6777 case (int)ScriptBaseClass.PSYS_PART_START_SCALE:
6273 tempv = rules.GetVector3Item(i + 1); 6778 try
6274 prules.PartStartScaleX = (float)tempv.x; 6779 {
6275 prules.PartStartScaleY = (float)tempv.y; 6780 tempv = rules.GetVector3Item(i + 1);
6781 }
6782 catch(InvalidCastException)
6783 {
6784 Error(originFunc, string.Format("Error running rule PSYS_PART_START_SCALE: arg #{0} - parameter 1 must be vector", i + 1));
6785 return;
6786 }
6787 prules.PartStartScaleX = validParticleScale((float)tempv.x);
6788 prules.PartStartScaleY = validParticleScale((float)tempv.y);
6276 break; 6789 break;
6277 6790
6278 case (int)ScriptBaseClass.PSYS_PART_END_SCALE: 6791 case (int)ScriptBaseClass.PSYS_PART_END_SCALE:
6279 tempv = rules.GetVector3Item(i + 1); 6792 try
6280 prules.PartEndScaleX = (float)tempv.x; 6793 {
6281 prules.PartEndScaleY = (float)tempv.y; 6794 tempv = rules.GetVector3Item(i + 1);
6795 }
6796 catch(InvalidCastException)
6797 {
6798 Error(originFunc, string.Format("Error running rule PSYS_PART_END_SCALE: arg #{0} - parameter 1 must be vector", i + 1));
6799 return;
6800 }
6801 prules.PartEndScaleX = validParticleScale((float)tempv.x);
6802 prules.PartEndScaleY = validParticleScale((float)tempv.y);
6282 break; 6803 break;
6283 6804
6284 case (int)ScriptBaseClass.PSYS_PART_MAX_AGE: 6805 case (int)ScriptBaseClass.PSYS_PART_MAX_AGE:
6285 tempf = (float)rules.GetLSLFloatItem(i + 1); 6806 try
6807 {
6808 tempf = (float)rules.GetLSLFloatItem(i + 1);
6809 }
6810 catch(InvalidCastException)
6811 {
6812 Error(originFunc, string.Format("Error running rule PSYS_PART_MAX_AGE: arg #{0} - parameter 1 must be float", i + 1));
6813 return;
6814 }
6286 prules.PartMaxAge = tempf; 6815 prules.PartMaxAge = tempf;
6287 break; 6816 break;
6288 6817
6289 case (int)ScriptBaseClass.PSYS_SRC_ACCEL: 6818 case (int)ScriptBaseClass.PSYS_SRC_ACCEL:
6290 tempv = rules.GetVector3Item(i + 1); 6819 try
6820 {
6821 tempv = rules.GetVector3Item(i + 1);
6822 }
6823 catch(InvalidCastException)
6824 {
6825 Error(originFunc, string.Format("Error running rule PSYS_SRC_ACCEL: arg #{0} - parameter 1 must be vector", i + 1));
6826 return;
6827 }
6291 prules.PartAcceleration.X = (float)tempv.x; 6828 prules.PartAcceleration.X = (float)tempv.x;
6292 prules.PartAcceleration.Y = (float)tempv.y; 6829 prules.PartAcceleration.Y = (float)tempv.y;
6293 prules.PartAcceleration.Z = (float)tempv.z; 6830 prules.PartAcceleration.Z = (float)tempv.z;
6294 break; 6831 break;
6295 6832
6296 case (int)ScriptBaseClass.PSYS_SRC_PATTERN: 6833 case (int)ScriptBaseClass.PSYS_SRC_PATTERN:
6297 int tmpi = (int)rules.GetLSLIntegerItem(i + 1); 6834 try
6835 {
6836 tmpi = (int)rules.GetLSLIntegerItem(i + 1);
6837 }
6838 catch(InvalidCastException)
6839 {
6840 Error(originFunc, string.Format("Error running rule PSYS_SRC_PATTERN: arg #{0} - parameter 1 must be integer", i + 1));
6841 return;
6842 }
6298 prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi; 6843 prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi;
6299 break; 6844 break;
6300 6845
@@ -6303,47 +6848,171 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6303 // client tells the difference between the two by looking at the 0x02 bit in 6848 // client tells the difference between the two by looking at the 0x02 bit in
6304 // the PartFlags variable. 6849 // the PartFlags variable.
6305 case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: 6850 case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE:
6306 tempf = (float)rules.GetLSLFloatItem(i + 1); 6851 try
6852 {
6853 tempf = (float)rules.GetLSLFloatItem(i + 1);
6854 }
6855 catch(InvalidCastException)
6856 {
6857 Error(originFunc, string.Format("Error running rule PSYS_SRC_INNERANGLE: arg #{0} - parameter 1 must be float", i + 1));
6858 return;
6859 }
6307 prules.InnerAngle = (float)tempf; 6860 prules.InnerAngle = (float)tempf;
6308 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off. 6861 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off.
6309 break; 6862 break;
6310 6863
6311 case (int)ScriptBaseClass.PSYS_SRC_OUTERANGLE: 6864 case (int)ScriptBaseClass.PSYS_SRC_OUTERANGLE:
6312 tempf = (float)rules.GetLSLFloatItem(i + 1); 6865 try
6866 {
6867 tempf = (float)rules.GetLSLFloatItem(i + 1);
6868 }
6869 catch(InvalidCastException)
6870 {
6871 Error(originFunc, string.Format("Error running rule PSYS_SRC_OUTERANGLE: arg #{0} - parameter 1 must be float", i + 1));
6872 return;
6873 }
6313 prules.OuterAngle = (float)tempf; 6874 prules.OuterAngle = (float)tempf;
6314 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off. 6875 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off.
6315 break; 6876 break;
6316 6877
6878 case (int)ScriptBaseClass.PSYS_PART_BLEND_FUNC_SOURCE:
6879 try
6880 {
6881 tmpi = (int)rules.GetLSLIntegerItem(i + 1);
6882 }
6883 catch(InvalidCastException)
6884 {
6885 Error(originFunc, string.Format("Error running rule PSYS_PART_BLEND_FUNC_SOURCE: arg #{0} - parameter 1 must be integer", i + 1));
6886 return;
6887 }
6888 prules.BlendFuncSource = (byte)tmpi;
6889 break;
6890
6891 case (int)ScriptBaseClass.PSYS_PART_BLEND_FUNC_DEST:
6892 try
6893 {
6894 tmpi = (int)rules.GetLSLIntegerItem(i + 1);
6895 }
6896 catch(InvalidCastException)
6897 {
6898 Error(originFunc, string.Format("Error running rule PSYS_PART_BLEND_FUNC_DEST: arg #{0} - parameter 1 must be integer", i + 1));
6899 return;
6900 }
6901 prules.BlendFuncDest = (byte)tmpi;
6902 break;
6903
6904 case (int)ScriptBaseClass.PSYS_PART_START_GLOW:
6905 try
6906 {
6907 tempf = (float)rules.GetLSLFloatItem(i + 1);
6908 }
6909 catch(InvalidCastException)
6910 {
6911 Error(originFunc, string.Format("Error running rule PSYS_PART_START_GLOW: arg #{0} - parameter 1 must be float", i + 1));
6912 return;
6913 }
6914 prules.PartStartGlow = (float)tempf;
6915 break;
6916
6917 case (int)ScriptBaseClass.PSYS_PART_END_GLOW:
6918 try
6919 {
6920 tempf = (float)rules.GetLSLFloatItem(i + 1);
6921 }
6922 catch(InvalidCastException)
6923 {
6924 Error(originFunc, string.Format("Error running rule PSYS_PART_END_GLOW: arg #{0} - parameter 1 must be float", i + 1));
6925 return;
6926 }
6927 prules.PartEndGlow = (float)tempf;
6928 break;
6929
6317 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: 6930 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE:
6318 prules.Texture = KeyOrName(rules.GetLSLStringItem(i + 1)); 6931 try
6932 {
6933 prules.Texture = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, rules.GetLSLStringItem(i + 1));
6934 }
6935 catch(InvalidCastException)
6936 {
6937 Error(originFunc, string.Format("Error running rule PSYS_SRC_TEXTURE: arg #{0} - parameter 1 must be string or key", i + 1));
6938 return;
6939 }
6319 break; 6940 break;
6320 6941
6321 case (int)ScriptBaseClass.PSYS_SRC_BURST_RATE: 6942 case (int)ScriptBaseClass.PSYS_SRC_BURST_RATE:
6322 tempf = (float)rules.GetLSLFloatItem(i + 1); 6943 try
6944 {
6945 tempf = (float)rules.GetLSLFloatItem(i + 1);
6946 }
6947 catch(InvalidCastException)
6948 {
6949 Error(originFunc, string.Format("Error running rule PSYS_SRC_BURST_RATE: arg #{0} - parameter 1 must be float", i + 1));
6950 return;
6951 }
6323 prules.BurstRate = (float)tempf; 6952 prules.BurstRate = (float)tempf;
6324 break; 6953 break;
6325 6954
6326 case (int)ScriptBaseClass.PSYS_SRC_BURST_PART_COUNT: 6955 case (int)ScriptBaseClass.PSYS_SRC_BURST_PART_COUNT:
6327 prules.BurstPartCount = (byte)(int)rules.GetLSLIntegerItem(i + 1); 6956 try
6957 {
6958 prules.BurstPartCount = (byte)(int)rules.GetLSLIntegerItem(i + 1);
6959 }
6960 catch(InvalidCastException)
6961 {
6962 Error(originFunc, string.Format("Error running rule PSYS_SRC_BURST_PART_COUNT: arg #{0} - parameter 1 must be integer", i + 1));
6963 return;
6964 }
6328 break; 6965 break;
6329 6966
6330 case (int)ScriptBaseClass.PSYS_SRC_BURST_RADIUS: 6967 case (int)ScriptBaseClass.PSYS_SRC_BURST_RADIUS:
6331 tempf = (float)rules.GetLSLFloatItem(i + 1); 6968 try
6969 {
6970 tempf = (float)rules.GetLSLFloatItem(i + 1);
6971 }
6972 catch(InvalidCastException)
6973 {
6974 Error(originFunc, string.Format("Error running rule PSYS_SRC_BURST_RADIUS: arg #{0} - parameter 1 must be float", i + 1));
6975 return;
6976 }
6332 prules.BurstRadius = (float)tempf; 6977 prules.BurstRadius = (float)tempf;
6333 break; 6978 break;
6334 6979
6335 case (int)ScriptBaseClass.PSYS_SRC_BURST_SPEED_MIN: 6980 case (int)ScriptBaseClass.PSYS_SRC_BURST_SPEED_MIN:
6336 tempf = (float)rules.GetLSLFloatItem(i + 1); 6981 try
6982 {
6983 tempf = (float)rules.GetLSLFloatItem(i + 1);
6984 }
6985 catch(InvalidCastException)
6986 {
6987 Error(originFunc, string.Format("Error running rule PSYS_SRC_BURST_SPEED_MIN: arg #{0} - parameter 1 must be float", i + 1));
6988 return;
6989 }
6337 prules.BurstSpeedMin = (float)tempf; 6990 prules.BurstSpeedMin = (float)tempf;
6338 break; 6991 break;
6339 6992
6340 case (int)ScriptBaseClass.PSYS_SRC_BURST_SPEED_MAX: 6993 case (int)ScriptBaseClass.PSYS_SRC_BURST_SPEED_MAX:
6341 tempf = (float)rules.GetLSLFloatItem(i + 1); 6994 try
6995 {
6996 tempf = (float)rules.GetLSLFloatItem(i + 1);
6997 }
6998 catch(InvalidCastException)
6999 {
7000 Error(originFunc, string.Format("Error running rule PSYS_SRC_BURST_SPEED_MAX: arg #{0} - parameter 1 must be float", i + 1));
7001 return;
7002 }
6342 prules.BurstSpeedMax = (float)tempf; 7003 prules.BurstSpeedMax = (float)tempf;
6343 break; 7004 break;
6344 7005
6345 case (int)ScriptBaseClass.PSYS_SRC_MAX_AGE: 7006 case (int)ScriptBaseClass.PSYS_SRC_MAX_AGE:
6346 tempf = (float)rules.GetLSLFloatItem(i + 1); 7007 try
7008 {
7009 tempf = (float)rules.GetLSLFloatItem(i + 1);
7010 }
7011 catch(InvalidCastException)
7012 {
7013 Error(originFunc, string.Format("Error running rule PSYS_SRC_MAX_AGE: arg #{0} - parameter 1 must be float", i + 1));
7014 return;
7015 }
6347 prules.MaxAge = (float)tempf; 7016 prules.MaxAge = (float)tempf;
6348 break; 7017 break;
6349 7018
@@ -6361,20 +7030,44 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6361 7030
6362 case (int)ScriptBaseClass.PSYS_SRC_OMEGA: 7031 case (int)ScriptBaseClass.PSYS_SRC_OMEGA:
6363 // AL: This is an assumption, since it is the only thing that would match. 7032 // AL: This is an assumption, since it is the only thing that would match.
6364 tempv = rules.GetVector3Item(i + 1); 7033 try
7034 {
7035 tempv = rules.GetVector3Item(i + 1);
7036 }
7037 catch(InvalidCastException)
7038 {
7039 Error(originFunc, string.Format("Error running rule PSYS_SRC_OMEGA: arg #{0} - parameter 1 must be vector", i + 1));
7040 return;
7041 }
6365 prules.AngularVelocity.X = (float)tempv.x; 7042 prules.AngularVelocity.X = (float)tempv.x;
6366 prules.AngularVelocity.Y = (float)tempv.y; 7043 prules.AngularVelocity.Y = (float)tempv.y;
6367 prules.AngularVelocity.Z = (float)tempv.z; 7044 prules.AngularVelocity.Z = (float)tempv.z;
6368 break; 7045 break;
6369 7046
6370 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN: 7047 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN:
6371 tempf = (float)rules.GetLSLFloatItem(i + 1); 7048 try
7049 {
7050 tempf = (float)rules.GetLSLFloatItem(i + 1);
7051 }
7052 catch(InvalidCastException)
7053 {
7054 Error(originFunc, string.Format("Error running rule PSYS_SRC_ANGLE_BEGIN: arg #{0} - parameter 1 must be float", i + 1));
7055 return;
7056 }
6372 prules.InnerAngle = (float)tempf; 7057 prules.InnerAngle = (float)tempf;
6373 prules.PartFlags |= 0x02; // Set new angle format. 7058 prules.PartFlags |= 0x02; // Set new angle format.
6374 break; 7059 break;
6375 7060
6376 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END: 7061 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END:
6377 tempf = (float)rules.GetLSLFloatItem(i + 1); 7062 try
7063 {
7064 tempf = (float)rules.GetLSLFloatItem(i + 1);
7065 }
7066 catch (InvalidCastException)
7067 {
7068 Error(originFunc, string.Format("Error running rule PSYS_SRC_ANGLE_END: arg #{0} - parameter 1 must be float", i + 1));
7069 return;
7070 }
6378 prules.OuterAngle = (float)tempf; 7071 prules.OuterAngle = (float)tempf;
6379 prules.PartFlags |= 0x02; // Set new angle format. 7072 prules.PartFlags |= 0x02; // Set new angle format.
6380 break; 7073 break;
@@ -6389,6 +7082,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6389 part.SendFullUpdateToAllClients(); 7082 part.SendFullUpdateToAllClients();
6390 } 7083 }
6391 7084
7085 private float validParticleScale(float value)
7086 {
7087 if (value > 4.0f) return 4.0f;
7088 return value;
7089 }
7090
6392 public void llGroundRepel(double height, int water, double tau) 7091 public void llGroundRepel(double height, int water, double tau)
6393 { 7092 {
6394 m_host.AddScriptLPS(1); 7093 m_host.AddScriptLPS(1);
@@ -6460,7 +7159,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6460 m_host.OwnerID, m_host.Name, destID, 7159 m_host.OwnerID, m_host.Name, destID,
6461 (byte)InstantMessageDialog.TaskInventoryOffered, 7160 (byte)InstantMessageDialog.TaskInventoryOffered,
6462 false, string.Format("'{0}'", category), 7161 false, string.Format("'{0}'", category),
6463// We won't go so far as to add a SLURL, but this is the format used by LL as of 2012-10-06 7162// We won't go so far as to add a SLURL, but this is the format used by LL as of 2012-10-06
6464// false, string.Format("'{0}' ( http://slurl.com/secondlife/{1}/{2}/{3}/{4} )", category, World.Name, (int)pos.X, (int)pos.Y, (int)pos.Z), 7163// false, string.Format("'{0}' ( http://slurl.com/secondlife/{1}/{2}/{3}/{4} )", category, World.Name, (int)pos.X, (int)pos.Y, (int)pos.Z),
6465 folderID, false, pos, 7164 folderID, false, pos,
6466 bucket, false); 7165 bucket, false);
@@ -6575,12 +7274,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6575 public LSL_String llAvatarOnLinkSitTarget(int linknum) 7274 public LSL_String llAvatarOnLinkSitTarget(int linknum)
6576 { 7275 {
6577 m_host.AddScriptLPS(1); 7276 m_host.AddScriptLPS(1);
6578 if(linknum == ScriptBaseClass.LINK_SET || 7277 if(linknum == ScriptBaseClass.LINK_SET ||
6579 linknum == ScriptBaseClass.LINK_ALL_CHILDREN || 7278 linknum == ScriptBaseClass.LINK_ALL_CHILDREN ||
6580 linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString(); 7279 linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString();
6581 7280
6582 List<SceneObjectPart> parts = GetLinkParts(linknum); 7281 List<SceneObjectPart> parts = GetLinkParts(linknum);
6583 if (parts.Count == 0) return UUID.Zero.ToString(); 7282 if (parts.Count == 0) return UUID.Zero.ToString();
6584 return parts[0].SitTargetAvatar.ToString(); 7283 return parts[0].SitTargetAvatar.ToString();
6585 } 7284 }
6586 7285
@@ -6589,7 +7288,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6589 { 7288 {
6590 m_host.AddScriptLPS(1); 7289 m_host.AddScriptLPS(1);
6591 UUID key; 7290 UUID key;
6592 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 7291 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
7292
6593 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned)) 7293 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned))
6594 { 7294 {
6595 int expires = 0; 7295 int expires = 0;
@@ -6623,7 +7323,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6623 World.EventManager.TriggerLandObjectUpdated((uint)land.LandData.LocalID, land); 7323 World.EventManager.TriggerLandObjectUpdated((uint)land.LandData.LocalID, land);
6624 } 7324 }
6625 } 7325 }
6626 ScriptSleep(100); 7326 ScriptSleep(m_sleepMsOnAddToLandPassList);
6627 } 7327 }
6628 7328
6629 public void llSetTouchText(string text) 7329 public void llSetTouchText(string text)
@@ -6642,12 +7342,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6642 { 7342 {
6643 m_host.AddScriptLPS(1); 7343 m_host.AddScriptLPS(1);
6644 m_host.SetCameraEyeOffset(offset); 7344 m_host.SetCameraEyeOffset(offset);
7345
7346 if (m_host.ParentGroup.RootPart.GetCameraEyeOffset() == Vector3.Zero)
7347 m_host.ParentGroup.RootPart.SetCameraEyeOffset(offset);
6645 } 7348 }
6646 7349
6647 public void llSetCameraAtOffset(LSL_Vector offset) 7350 public void llSetCameraAtOffset(LSL_Vector offset)
6648 { 7351 {
6649 m_host.AddScriptLPS(1); 7352 m_host.AddScriptLPS(1);
6650 m_host.SetCameraAtOffset(offset); 7353 m_host.SetCameraAtOffset(offset);
7354
7355 if (m_host.ParentGroup.RootPart.GetCameraAtOffset() == Vector3.Zero)
7356 m_host.ParentGroup.RootPart.SetCameraAtOffset(offset);
6651 } 7357 }
6652 7358
6653 public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at) 7359 public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
@@ -6722,17 +7428,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6722 UUID av = new UUID(); 7428 UUID av = new UUID();
6723 if (!UUID.TryParse(avatar,out av)) 7429 if (!UUID.TryParse(avatar,out av))
6724 { 7430 {
6725 LSLError("First parameter to llDialog needs to be a key"); 7431 Error("llDialog", "First parameter must be a key");
6726 return; 7432 return;
6727 } 7433 }
6728 if (buttons.Length < 1) 7434 if (buttons.Length < 1)
6729 { 7435 {
6730 LSLError("No less than 1 button can be shown"); 7436 Error("llDialog", "At least 1 button must be shown");
6731 return; 7437 return;
6732 } 7438 }
6733 if (buttons.Length > 12) 7439 if (buttons.Length > 12)
6734 { 7440 {
6735 LSLError("No more than 12 buttons can be shown"); 7441 Error("llDialog", "No more than 12 buttons can be shown");
6736 return; 7442 return;
6737 } 7443 }
6738 string[] buts = new string[buttons.Length]; 7444 string[] buts = new string[buttons.Length];
@@ -6740,12 +7446,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6740 { 7446 {
6741 if (buttons.Data[i].ToString() == String.Empty) 7447 if (buttons.Data[i].ToString() == String.Empty)
6742 { 7448 {
6743 LSLError("button label cannot be blank"); 7449 Error("llDialog", "Button label cannot be blank");
6744 return; 7450 return;
6745 } 7451 }
6746 if (buttons.Data[i].ToString().Length > 24) 7452 if (buttons.Data[i].ToString().Length > 24)
6747 { 7453 {
6748 LSLError("button label cannot be longer than 24 characters"); 7454 Error("llDialog", "Button label cannot be longer than 24 characters");
6749 return; 7455 return;
6750 } 7456 }
6751 buts[i] = buttons.Data[i].ToString(); 7457 buts[i] = buttons.Data[i].ToString();
@@ -6755,7 +7461,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6755 av, m_host.Name, m_host.UUID, m_host.OwnerID, 7461 av, m_host.Name, m_host.UUID, m_host.OwnerID,
6756 message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts); 7462 message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts);
6757 7463
6758 ScriptSleep(1000); 7464 ScriptSleep(m_sleepMsOnDialog);
6759 } 7465 }
6760 7466
6761 public void llVolumeDetect(int detect) 7467 public void llVolumeDetect(int detect)
@@ -6766,16 +7472,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6766 m_host.ParentGroup.ScriptSetVolumeDetect(detect != 0); 7472 m_host.ParentGroup.ScriptSetVolumeDetect(detect != 0);
6767 } 7473 }
6768 7474
6769 /// <summary>
6770 /// This is a depecated function so this just replicates the result of
6771 /// invoking it in SL
6772 /// </summary>
6773 public void llRemoteLoadScript(string target, string name, int running, int start_param) 7475 public void llRemoteLoadScript(string target, string name, int running, int start_param)
6774 { 7476 {
6775 m_host.AddScriptLPS(1); 7477 m_host.AddScriptLPS(1);
6776 // Report an error as it does in SL 7478 Deprecated("llRemoteLoadScript", "Use llRemoteLoadScriptPin instead");
6777 ShoutError("Deprecated. Please use llRemoteLoadScriptPin instead."); 7479 ScriptSleep(m_sleepMsOnRemoteLoadScript);
6778 ScriptSleep(3000);
6779 } 7480 }
6780 7481
6781 public void llSetRemoteScriptAccessPin(int pin) 7482 public void llSetRemoteScriptAccessPin(int pin)
@@ -6792,7 +7493,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6792 7493
6793 if (!UUID.TryParse(target, out destId)) 7494 if (!UUID.TryParse(target, out destId))
6794 { 7495 {
6795 llSay(0, "Could not parse key " + target); 7496 Error("llRemoteLoadScriptPin", "Can't parse key '" + target + "'");
6796 return; 7497 return;
6797 } 7498 }
6798 7499
@@ -6808,7 +7509,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6808 // make sure the object is a script 7509 // make sure the object is a script
6809 if (item == null || item.Type != 10) 7510 if (item == null || item.Type != 10)
6810 { 7511 {
6811 llSay(0, "Could not find script " + name); 7512 Error("llRemoteLoadScriptPin", "Can't find script '" + name + "'");
6812 return; 7513 return;
6813 } 7514 }
6814 7515
@@ -6816,14 +7517,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6816 World.RezScriptFromPrim(item.ItemID, m_host, destId, pin, running, start_param); 7517 World.RezScriptFromPrim(item.ItemID, m_host, destId, pin, running, start_param);
6817 7518
6818 // this will cause the delay even if the script pin or permissions were wrong - seems ok 7519 // this will cause the delay even if the script pin or permissions were wrong - seems ok
6819 ScriptSleep(3000); 7520 ScriptSleep(m_sleepMsOnRemoteLoadScriptPin);
6820 } 7521 }
6821 7522
6822 public void llOpenRemoteDataChannel() 7523 public void llOpenRemoteDataChannel()
6823 { 7524 {
6824 m_host.AddScriptLPS(1); 7525 m_host.AddScriptLPS(1);
6825 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); 7526 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
6826 if (xmlrpcMod.IsEnabled()) 7527 if (xmlrpcMod != null && xmlrpcMod.IsEnabled())
6827 { 7528 {
6828 UUID channelID = xmlrpcMod.OpenXMLRPCChannel(m_host.LocalId, m_item.ItemID, UUID.Zero); 7529 UUID channelID = xmlrpcMod.OpenXMLRPCChannel(m_host.LocalId, m_item.ItemID, UUID.Zero);
6829 IXmlRpcRouter xmlRpcRouter = m_ScriptEngine.World.RequestModuleInterface<IXmlRpcRouter>(); 7530 IXmlRpcRouter xmlRpcRouter = m_ScriptEngine.World.RequestModuleInterface<IXmlRpcRouter>();
@@ -6847,14 +7548,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6847 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams("remote_data", resobj, 7548 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams("remote_data", resobj,
6848 new DetectParams[0])); 7549 new DetectParams[0]));
6849 } 7550 }
6850 ScriptSleep(1000); 7551 ScriptSleep(m_sleepMsOnOpenRemoteDataChannel);
6851 } 7552 }
6852 7553
6853 public LSL_String llSendRemoteData(string channel, string dest, int idata, string sdata) 7554 public LSL_String llSendRemoteData(string channel, string dest, int idata, string sdata)
6854 { 7555 {
6855 m_host.AddScriptLPS(1); 7556 m_host.AddScriptLPS(1);
6856 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); 7557 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
6857 ScriptSleep(3000); 7558 ScriptSleep(m_sleepMsOnSendRemoteData);
7559 if (xmlrpcMod == null)
7560 return "";
6858 return (xmlrpcMod.SendRemoteData(m_host.LocalId, m_item.ItemID, channel, dest, idata, sdata)).ToString(); 7561 return (xmlrpcMod.SendRemoteData(m_host.LocalId, m_item.ItemID, channel, dest, idata, sdata)).ToString();
6859 } 7562 }
6860 7563
@@ -6862,8 +7565,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6862 { 7565 {
6863 m_host.AddScriptLPS(1); 7566 m_host.AddScriptLPS(1);
6864 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); 7567 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
6865 xmlrpcMod.RemoteDataReply(channel, message_id, sdata, idata); 7568 if (xmlrpcMod != null)
6866 ScriptSleep(3000); 7569 xmlrpcMod.RemoteDataReply(channel, message_id, sdata, idata);
7570 ScriptSleep(m_sleepMsOnRemoteDataReply);
6867 } 7571 }
6868 7572
6869 public void llCloseRemoteDataChannel(string channel) 7573 public void llCloseRemoteDataChannel(string channel)
@@ -6877,8 +7581,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6877 } 7581 }
6878 7582
6879 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); 7583 IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
6880 xmlrpcMod.CloseXMLRPCChannel((UUID)channel); 7584 if (xmlrpcMod != null)
6881 ScriptSleep(1000); 7585 xmlrpcMod.CloseXMLRPCChannel((UUID)channel);
7586 ScriptSleep(m_sleepMsOnCloseRemoteDataChannel);
6882 } 7587 }
6883 7588
6884 public LSL_String llMD5String(string src, int nonce) 7589 public LSL_String llMD5String(string src, int nonce)
@@ -6924,13 +7629,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6924 { 7629 {
6925 cut.y = 1f; 7630 cut.y = 1f;
6926 } 7631 }
6927 if (cut.y - cut.x < 0.05f) 7632 if (cut.y - cut.x < 0.02f)
6928 { 7633 {
6929 cut.x = cut.y - 0.05f; 7634 cut.x = cut.y - 0.02f;
6930 if (cut.x < 0.0f) 7635 if (cut.x < 0.0f)
6931 { 7636 {
6932 cut.x = 0.0f; 7637 cut.x = 0.0f;
6933 cut.y = 0.05f; 7638 cut.y = 0.02f;
6934 } 7639 }
6935 } 7640 }
6936 shapeBlock.ProfileBegin = (ushort)(50000 * cut.x); 7641 shapeBlock.ProfileBegin = (ushort)(50000 * cut.x);
@@ -6952,12 +7657,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6952 hollow = 0.70f; 7657 hollow = 0.70f;
6953 } 7658 }
6954 } 7659 }
6955 // Otherwise, hollow is limited to 95%. 7660 // Otherwise, hollow is limited to 99%.
6956 else 7661 else
6957 { 7662 {
6958 if (hollow > 0.95f) 7663 if (hollow > 0.99f)
6959 { 7664 {
6960 hollow = 0.95f; 7665 hollow = 0.99f;
6961 } 7666 }
6962 } 7667 }
6963 shapeBlock.ProfileHollow = (ushort)(50000 * hollow); 7668 shapeBlock.ProfileHollow = (ushort)(50000 * hollow);
@@ -7081,9 +7786,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7081 { 7786 {
7082 dimple.y = 1f; 7787 dimple.y = 1f;
7083 } 7788 }
7084 if (dimple.y - cut.x < 0.05f) 7789 if (dimple.y - dimple.x < 0.02f)
7085 { 7790 {
7086 dimple.x = cut.y - 0.05f; 7791 dimple.x = dimple.y - 0.02f;
7792 if (dimple.x < 0.0f)
7793 {
7794 dimple.x = 0.0f;
7795 dimple.y = 0.02f;
7796 }
7087 } 7797 }
7088 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x); 7798 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
7089 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y)); 7799 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));
@@ -7104,17 +7814,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7104 shapeBlock.PathBegin = shapeBlock.ProfileBegin; 7814 shapeBlock.PathBegin = shapeBlock.ProfileBegin;
7105 shapeBlock.PathEnd = shapeBlock.ProfileEnd; 7815 shapeBlock.PathEnd = shapeBlock.ProfileEnd;
7106 7816
7107 if (holesize.x < 0.05f) 7817 if (holesize.x < 0.01f)
7108 { 7818 {
7109 holesize.x = 0.05f; 7819 holesize.x = 0.01f;
7110 } 7820 }
7111 if (holesize.x > 1f) 7821 if (holesize.x > 1f)
7112 { 7822 {
7113 holesize.x = 1f; 7823 holesize.x = 1f;
7114 } 7824 }
7115 if (holesize.y < 0.05f) 7825 if (holesize.y < 0.01f)
7116 { 7826 {
7117 holesize.y = 0.05f; 7827 holesize.y = 0.01f;
7118 } 7828 }
7119 if (holesize.y > 0.5f) 7829 if (holesize.y > 0.5f)
7120 { 7830 {
@@ -7160,13 +7870,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7160 { 7870 {
7161 profilecut.y = 1f; 7871 profilecut.y = 1f;
7162 } 7872 }
7163 if (profilecut.y - profilecut.x < 0.05f) 7873 if (profilecut.y - profilecut.x < 0.02f)
7164 { 7874 {
7165 profilecut.x = profilecut.y - 0.05f; 7875 profilecut.x = profilecut.y - 0.02f;
7166 if (profilecut.x < 0.0f) 7876 if (profilecut.x < 0.0f)
7167 { 7877 {
7168 profilecut.x = 0.0f; 7878 profilecut.x = 0.0f;
7169 profilecut.y = 0.05f; 7879 profilecut.y = 0.02f;
7170 } 7880 }
7171 } 7881 }
7172 shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x); 7882 shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x);
@@ -7234,9 +7944,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7234 UUID sculptId; 7944 UUID sculptId;
7235 7945
7236 if (!UUID.TryParse(map, out sculptId)) 7946 if (!UUID.TryParse(map, out sculptId))
7237 { 7947 sculptId = ScriptUtils.GetAssetIdFromItemName(m_host, map, (int)AssetType.Texture);
7238 sculptId = InventoryKey(map, (int)AssetType.Texture);
7239 }
7240 7948
7241 if (sculptId == UUID.Zero) 7949 if (sculptId == UUID.Zero)
7242 return; 7950 return;
@@ -7266,45 +7974,205 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7266 { 7974 {
7267 m_host.AddScriptLPS(1); 7975 m_host.AddScriptLPS(1);
7268 7976
7269 setLinkPrimParams(ScriptBaseClass.LINK_THIS, rules, "llSetPrimitiveParams"); 7977 SetLinkPrimParams(ScriptBaseClass.LINK_THIS, rules, "llSetPrimitiveParams");
7270 7978
7271 ScriptSleep(200); 7979 ScriptSleep(m_sleepMsOnSetPrimitiveParams);
7272 } 7980 }
7273 7981
7274 public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules) 7982 public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules)
7275 { 7983 {
7276 m_host.AddScriptLPS(1); 7984 m_host.AddScriptLPS(1);
7277 7985
7278 setLinkPrimParams(linknumber, rules, "llSetLinkPrimitiveParams"); 7986 SetLinkPrimParams(linknumber, rules, "llSetLinkPrimitiveParams");
7279 7987
7280 ScriptSleep(200); 7988 ScriptSleep(m_sleepMsOnSetLinkPrimitiveParams);
7281 } 7989 }
7282 7990
7283 public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules) 7991 public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules)
7284 { 7992 {
7285 m_host.AddScriptLPS(1); 7993 m_host.AddScriptLPS(1);
7286 7994
7287 setLinkPrimParams(linknumber, rules, "llSetLinkPrimitiveParamsFast"); 7995 SetLinkPrimParams(linknumber, rules, "llSetLinkPrimitiveParamsFast");
7288 } 7996 }
7289 7997
7290 protected void setLinkPrimParams(int linknumber, LSL_List rules, string originFunc) 7998 protected void SetLinkPrimParams(int linknumber, LSL_List rules, string originFunc)
7291 { 7999 {
7292 List<SceneObjectPart> parts = GetLinkParts(linknumber); 8000 SetEntityParams(GetLinkEntities(linknumber), rules, originFunc);
8001 }
7293 8002
7294 LSL_List remaining = null; 8003 protected void SetEntityParams(List<ISceneEntity> entities, LSL_List rules, string originFunc)
8004 {
8005 LSL_List remaining = new LSL_List();
7295 uint rulesParsed = 0; 8006 uint rulesParsed = 0;
7296 8007
7297 foreach (SceneObjectPart part in parts) 8008 foreach (ISceneEntity entity in entities)
7298 remaining = SetPrimParams(part, rules, originFunc, ref rulesParsed); 8009 {
8010 if (entity is SceneObjectPart)
8011 remaining = SetPrimParams((SceneObjectPart)entity, rules, originFunc, ref rulesParsed);
8012 else
8013 remaining = SetAgentParams((ScenePresence)entity, rules, originFunc, ref rulesParsed);
8014 }
7299 8015
7300 while (remaining != null && remaining.Length > 2) 8016 while (remaining.Length > 2)
7301 { 8017 {
7302 linknumber = remaining.GetLSLIntegerItem(0); 8018 int linknumber;
8019 try
8020 {
8021 linknumber = remaining.GetLSLIntegerItem(0);
8022 }
8023 catch(InvalidCastException)
8024 {
8025 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_LINK_TARGET: parameter 2 must be integer", rulesParsed));
8026 return;
8027 }
8028
7303 rules = remaining.GetSublist(1, -1); 8029 rules = remaining.GetSublist(1, -1);
7304 parts = GetLinkParts(linknumber); 8030 entities = GetLinkEntities(linknumber);
7305 8031
7306 foreach (SceneObjectPart part in parts) 8032 foreach (ISceneEntity entity in entities)
7307 remaining = SetPrimParams(part, rules, originFunc, ref rulesParsed); 8033 {
8034 if (entity is SceneObjectPart)
8035 remaining = SetPrimParams((SceneObjectPart)entity, rules, originFunc, ref rulesParsed);
8036 else
8037 remaining = SetAgentParams((ScenePresence)entity, rules, originFunc, ref rulesParsed);
8038 }
8039 }
8040 }
8041
8042 public void llSetKeyframedMotion(LSL_List frames, LSL_List options)
8043 {
8044 SceneObjectGroup group = m_host.ParentGroup;
8045
8046 if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical)
8047 return;
8048 if (group.IsAttachment)
8049 return;
8050
8051 if (frames.Data.Length > 0) // We are getting a new motion
8052 {
8053 if (group.RootPart.KeyframeMotion != null)
8054 group.RootPart.KeyframeMotion.Delete();
8055 group.RootPart.KeyframeMotion = null;
8056
8057 int idx = 0;
8058
8059 KeyframeMotion.PlayMode mode = KeyframeMotion.PlayMode.Forward;
8060 KeyframeMotion.DataFormat data = KeyframeMotion.DataFormat.Translation | KeyframeMotion.DataFormat.Rotation;
8061
8062 while (idx < options.Data.Length)
8063 {
8064 int option = (int)options.GetLSLIntegerItem(idx++);
8065 int remain = options.Data.Length - idx;
8066
8067 switch (option)
8068 {
8069 case ScriptBaseClass.KFM_MODE:
8070 if (remain < 1)
8071 break;
8072 int modeval = (int)options.GetLSLIntegerItem(idx++);
8073 switch(modeval)
8074 {
8075 case ScriptBaseClass.KFM_FORWARD:
8076 mode = KeyframeMotion.PlayMode.Forward;
8077 break;
8078 case ScriptBaseClass.KFM_REVERSE:
8079 mode = KeyframeMotion.PlayMode.Reverse;
8080 break;
8081 case ScriptBaseClass.KFM_LOOP:
8082 mode = KeyframeMotion.PlayMode.Loop;
8083 break;
8084 case ScriptBaseClass.KFM_PING_PONG:
8085 mode = KeyframeMotion.PlayMode.PingPong;
8086 break;
8087 }
8088 break;
8089 case ScriptBaseClass.KFM_DATA:
8090 if (remain < 1)
8091 break;
8092 int dataval = (int)options.GetLSLIntegerItem(idx++);
8093 data = (KeyframeMotion.DataFormat)dataval;
8094 break;
8095 }
8096 }
8097
8098 group.RootPart.KeyframeMotion = new KeyframeMotion(group, mode, data);
8099
8100 idx = 0;
8101
8102 int elemLength = 2;
8103 if (data == (KeyframeMotion.DataFormat.Translation | KeyframeMotion.DataFormat.Rotation))
8104 elemLength = 3;
8105
8106 List<KeyframeMotion.Keyframe> keyframes = new List<KeyframeMotion.Keyframe>();
8107 while (idx < frames.Data.Length)
8108 {
8109 int remain = frames.Data.Length - idx;
8110
8111 if (remain < elemLength)
8112 break;
8113
8114 KeyframeMotion.Keyframe frame = new KeyframeMotion.Keyframe();
8115 frame.Position = null;
8116 frame.Rotation = null;
8117
8118 if ((data & KeyframeMotion.DataFormat.Translation) != 0)
8119 {
8120 LSL_Types.Vector3 tempv = frames.GetVector3Item(idx++);
8121 frame.Position = new Vector3((float)tempv.x, (float)tempv.y, (float)tempv.z);
8122 }
8123 if ((data & KeyframeMotion.DataFormat.Rotation) != 0)
8124 {
8125 LSL_Types.Quaternion tempq = frames.GetQuaternionItem(idx++);
8126 Quaternion q = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s);
8127 q.Normalize();
8128 frame.Rotation = q;
8129 }
8130
8131 float tempf = (float)frames.GetLSLFloatItem(idx++);
8132 frame.TimeMS = (int)(tempf * 1000.0f);
8133
8134 keyframes.Add(frame);
8135 }
8136
8137 group.RootPart.KeyframeMotion.SetKeyframes(keyframes.ToArray());
8138 group.RootPart.KeyframeMotion.Start();
8139 }
8140 else
8141 {
8142 if (group.RootPart.KeyframeMotion == null)
8143 return;
8144
8145 if (options.Data.Length == 0)
8146 {
8147 group.RootPart.KeyframeMotion.Stop();
8148 return;
8149 }
8150
8151 int idx = 0;
8152
8153 while (idx < options.Data.Length)
8154 {
8155 int option = (int)options.GetLSLIntegerItem(idx++);
8156
8157 switch (option)
8158 {
8159 case ScriptBaseClass.KFM_COMMAND:
8160 int cmd = (int)options.GetLSLIntegerItem(idx++);
8161 switch (cmd)
8162 {
8163 case ScriptBaseClass.KFM_CMD_PLAY:
8164 group.RootPart.KeyframeMotion.Start();
8165 break;
8166 case ScriptBaseClass.KFM_CMD_STOP:
8167 group.RootPart.KeyframeMotion.Stop();
8168 break;
8169 case ScriptBaseClass.KFM_CMD_PAUSE:
8170 group.RootPart.KeyframeMotion.Pause();
8171 break;
8172 }
8173 break;
8174 }
8175 }
7308 } 8176 }
7309 } 8177 }
7310 8178
@@ -7331,29 +8199,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7331 8199
7332 switch (code) 8200 switch (code)
7333 { 8201 {
7334 case (int)ScriptBaseClass.PRIM_POSITION: 8202 case ScriptBaseClass.PRIM_POSITION:
7335 case (int)ScriptBaseClass.PRIM_POS_LOCAL: 8203 case ScriptBaseClass.PRIM_POS_LOCAL:
7336 if (remain < 1) 8204 if (remain < 1)
7337 return null; 8205 return new LSL_List();
7338 8206
7339 v=rules.GetVector3Item(idx++); 8207 try
8208 {
8209 v = rules.GetVector3Item(idx++);
8210 }
8211 catch(InvalidCastException)
8212 {
8213 if(code == ScriptBaseClass.PRIM_POSITION)
8214 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POSITION: arg #{1} - parameter 1 must be vector", rulesParsed, idx - idxStart - 1));
8215 else
8216 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POS_LOCAL: arg #{1} - parameter 1 must be vector", rulesParsed, idx - idxStart - 1));
8217 return new LSL_List();
8218 }
7340 positionChanged = true; 8219 positionChanged = true;
7341 currentPosition = GetSetPosTarget(part, v, currentPosition); 8220 currentPosition = GetSetPosTarget(part, v, currentPosition);
7342 8221
7343 break; 8222 break;
7344 case (int)ScriptBaseClass.PRIM_SIZE: 8223 case ScriptBaseClass.PRIM_SIZE:
7345 if (remain < 1) 8224 if (remain < 1)
7346 return null; 8225 return new LSL_List();
7347 8226
7348 v=rules.GetVector3Item(idx++); 8227 v=rules.GetVector3Item(idx++);
7349 SetScale(part, v); 8228 SetScale(part, v);
7350 8229
7351 break; 8230 break;
7352 case (int)ScriptBaseClass.PRIM_ROTATION: 8231 case ScriptBaseClass.PRIM_ROTATION:
7353 if (remain < 1) 8232 if (remain < 1)
7354 return null; 8233 return new LSL_List();
7355 8234 LSL_Rotation q;
7356 LSL_Rotation q = rules.GetQuaternionItem(idx++); 8235 try
8236 {
8237 q = rules.GetQuaternionItem(idx++);
8238 }
8239 catch(InvalidCastException)
8240 {
8241 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_ROTATION: arg #{1} - parameter 1 must be rotation", rulesParsed, idx - idxStart - 1));
8242 return new LSL_List();
8243 }
7357 // try to let this work as in SL... 8244 // try to let this work as in SL...
7358 if (part.ParentID == 0) 8245 if (part.ParentID == 0)
7359 { 8246 {
@@ -7369,11 +8256,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7369 8256
7370 break; 8257 break;
7371 8258
7372 case (int)ScriptBaseClass.PRIM_TYPE: 8259 case ScriptBaseClass.PRIM_TYPE:
7373 if (remain < 3) 8260 if (remain < 3)
7374 return null; 8261 return new LSL_List();
7375 8262
7376 code = (int)rules.GetLSLIntegerItem(idx++); 8263 try
8264 {
8265 code = (int)rules.GetLSLIntegerItem(idx++);
8266 }
8267 catch(InvalidCastException)
8268 {
8269 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE: arg #{1} - parameter 1 must be integer", rulesParsed, idx - idxStart - 1));
8270 return new LSL_List();
8271 }
7377 8272
7378 remain = rules.Length - idx; 8273 remain = rules.Length - idx;
7379 float hollow; 8274 float hollow;
@@ -7388,140 +8283,625 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7388 8283
7389 switch (code) 8284 switch (code)
7390 { 8285 {
7391 case (int)ScriptBaseClass.PRIM_TYPE_BOX: 8286 case ScriptBaseClass.PRIM_TYPE_BOX:
7392 if (remain < 6) 8287 if (remain < 6)
7393 return null; 8288 return new LSL_List();
7394 8289
7395 face = (int)rules.GetLSLIntegerItem(idx++); 8290 try
7396 v = rules.GetVector3Item(idx++); // cut 8291 {
7397 hollow = (float)rules.GetLSLFloatItem(idx++); 8292 face = (int)rules.GetLSLIntegerItem(idx++);
7398 twist = rules.GetVector3Item(idx++); 8293 }
7399 taper_b = rules.GetVector3Item(idx++); 8294 catch(InvalidCastException)
7400 topshear = rules.GetVector3Item(idx++); 8295 {
8296 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
8297 return new LSL_List();
8298 }
8299 try
8300 {
8301 v = rules.GetVector3Item(idx++); // cut
8302 }
8303 catch(InvalidCastException)
8304 {
8305 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 3 must be vector", rulesParsed, idx - idxStart - 1));
8306 return new LSL_List();
8307 }
8308 try
8309 {
8310 hollow = (float)rules.GetLSLFloatItem(idx++);
8311 }
8312 catch(InvalidCastException)
8313 {
8314 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
8315 return new LSL_List();
8316 }
8317 try
8318 {
8319 twist = rules.GetVector3Item(idx++);
8320 }
8321 catch(InvalidCastException)
8322 {
8323 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 5 must be vector", rulesParsed, idx - idxStart - 1));
8324 return new LSL_List();
8325 }
8326 try
8327 {
8328 taper_b = rules.GetVector3Item(idx++);
8329 }
8330 catch(InvalidCastException)
8331 {
8332 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8333 return new LSL_List();
8334 }
8335 try
8336 {
8337 topshear = rules.GetVector3Item(idx++);
8338 }
8339 catch(InvalidCastException)
8340 {
8341 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_BOX: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8342 return new LSL_List();
8343 }
7401 8344
7402 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear, 8345 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear,
7403 (byte)ProfileShape.Square, (byte)Extrusion.Straight); 8346 (byte)ProfileShape.Square, (byte)Extrusion.Straight);
7404 break; 8347 break;
7405 8348
7406 case (int)ScriptBaseClass.PRIM_TYPE_CYLINDER: 8349 case ScriptBaseClass.PRIM_TYPE_CYLINDER:
7407 if (remain < 6) 8350 if (remain < 6)
7408 return null; 8351 return new LSL_List();
7409 8352
7410 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8353 try
7411 v = rules.GetVector3Item(idx++); // cut 8354 {
7412 hollow = (float)rules.GetLSLFloatItem(idx++); 8355 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7413 twist = rules.GetVector3Item(idx++); 8356 }
7414 taper_b = rules.GetVector3Item(idx++); 8357 catch(InvalidCastException)
7415 topshear = rules.GetVector3Item(idx++); 8358 {
8359 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
8360 return new LSL_List();
8361 }
8362 try
8363 {
8364 v = rules.GetVector3Item(idx++); // cut
8365 }
8366 catch(InvalidCastException)
8367 {
8368 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8369 return new LSL_List();
8370 }
8371 try
8372 {
8373 hollow = (float)rules.GetLSLFloatItem(idx++);
8374 }
8375 catch(InvalidCastException)
8376 {
8377 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8378 return new LSL_List();
8379 }
8380 try
8381 {
8382 twist = rules.GetVector3Item(idx++);
8383 }
8384 catch(InvalidCastException)
8385 {
8386 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8387 return new LSL_List();
8388 }
8389 try
8390 {
8391 taper_b = rules.GetVector3Item(idx++);
8392 }
8393 catch(InvalidCastException)
8394 {
8395 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8396 return new LSL_List();
8397 }
8398 try
8399 {
8400 topshear = rules.GetVector3Item(idx++);
8401 }
8402 catch(InvalidCastException)
8403 {
8404 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_CYLINDER: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
8405 return new LSL_List();
8406 }
7416 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear, 8407 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear,
7417 (byte)ProfileShape.Circle, (byte)Extrusion.Straight); 8408 (byte)ProfileShape.Circle, (byte)Extrusion.Straight);
7418 break; 8409 break;
7419 8410
7420 case (int)ScriptBaseClass.PRIM_TYPE_PRISM: 8411 case ScriptBaseClass.PRIM_TYPE_PRISM:
7421 if (remain < 6) 8412 if (remain < 6)
7422 return null; 8413 return new LSL_List();
7423 8414
7424 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8415 try
7425 v = rules.GetVector3Item(idx++); //cut 8416 {
7426 hollow = (float)rules.GetLSLFloatItem(idx++); 8417 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7427 twist = rules.GetVector3Item(idx++); 8418 }
7428 taper_b = rules.GetVector3Item(idx++); 8419 catch(InvalidCastException)
7429 topshear = rules.GetVector3Item(idx++); 8420 {
8421 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
8422 return new LSL_List();
8423 }
8424 try
8425 {
8426 v = rules.GetVector3Item(idx++); //cut
8427 }
8428 catch(InvalidCastException)
8429 {
8430 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8431 return new LSL_List();
8432 }
8433 try
8434 {
8435 hollow = (float)rules.GetLSLFloatItem(idx++);
8436 }
8437 catch(InvalidCastException)
8438 {
8439 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8440 return new LSL_List();
8441 }
8442 try
8443 {
8444 twist = rules.GetVector3Item(idx++);
8445 }
8446 catch(InvalidCastException)
8447 {
8448 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8449 return new LSL_List();
8450 }
8451 try
8452 {
8453 taper_b = rules.GetVector3Item(idx++);
8454 }
8455 catch(InvalidCastException)
8456 {
8457 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8458 return new LSL_List();
8459 }
8460 try
8461 {
8462 topshear = rules.GetVector3Item(idx++);
8463 }
8464 catch(InvalidCastException)
8465 {
8466 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_PRISM: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
8467 return new LSL_List();
8468 }
7430 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear, 8469 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear,
7431 (byte)ProfileShape.EquilateralTriangle, (byte)Extrusion.Straight); 8470 (byte)ProfileShape.EquilateralTriangle, (byte)Extrusion.Straight);
7432 break; 8471 break;
7433 8472
7434 case (int)ScriptBaseClass.PRIM_TYPE_SPHERE: 8473 case ScriptBaseClass.PRIM_TYPE_SPHERE:
7435 if (remain < 5) 8474 if (remain < 5)
7436 return null; 8475 return new LSL_List();
7437 8476
7438 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8477 try
7439 v = rules.GetVector3Item(idx++); // cut 8478 {
7440 hollow = (float)rules.GetLSLFloatItem(idx++); 8479 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7441 twist = rules.GetVector3Item(idx++); 8480 }
7442 taper_b = rules.GetVector3Item(idx++); // dimple 8481 catch(InvalidCastException)
8482 {
8483 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SPHERE: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
8484 return new LSL_List();
8485 }
8486 try
8487 {
8488 v = rules.GetVector3Item(idx++); // cut
8489 }
8490 catch(InvalidCastException)
8491 {
8492 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SPHERE: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8493 return new LSL_List();
8494 }
8495 try
8496 {
8497 hollow = (float)rules.GetLSLFloatItem(idx++);
8498 }
8499 catch(InvalidCastException)
8500 {
8501 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SPHERE: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8502 return new LSL_List();
8503 }
8504 try
8505 {
8506 twist = rules.GetVector3Item(idx++);
8507 }
8508 catch(InvalidCastException)
8509 {
8510 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SPHERE: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8511 return new LSL_List();
8512 }
8513 try
8514 {
8515 taper_b = rules.GetVector3Item(idx++); // dimple
8516 }
8517 catch(InvalidCastException)
8518 {
8519 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SPHERE: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8520 return new LSL_List();
8521 }
7443 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, 8522 SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b,
7444 (byte)ProfileShape.HalfCircle, (byte)Extrusion.Curve1); 8523 (byte)ProfileShape.HalfCircle, (byte)Extrusion.Curve1);
7445 break; 8524 break;
7446 8525
7447 case (int)ScriptBaseClass.PRIM_TYPE_TORUS: 8526 case ScriptBaseClass.PRIM_TYPE_TORUS:
7448 if (remain < 11) 8527 if (remain < 11)
7449 return null; 8528 return new LSL_List();
7450 8529
7451 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8530 try
7452 v = rules.GetVector3Item(idx++); //cut 8531 {
7453 hollow = (float)rules.GetLSLFloatItem(idx++); 8532 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7454 twist = rules.GetVector3Item(idx++); 8533 }
7455 holesize = rules.GetVector3Item(idx++); 8534 catch(InvalidCastException)
7456 topshear = rules.GetVector3Item(idx++); 8535 {
7457 profilecut = rules.GetVector3Item(idx++); 8536 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
7458 taper_b = rules.GetVector3Item(idx++); // taper_a 8537 return new LSL_List();
7459 revolutions = (float)rules.GetLSLFloatItem(idx++); 8538 }
7460 radiusoffset = (float)rules.GetLSLFloatItem(idx++); 8539 try
7461 skew = (float)rules.GetLSLFloatItem(idx++); 8540 {
8541 v = rules.GetVector3Item(idx++); //cut
8542 }
8543 catch(InvalidCastException)
8544 {
8545 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8546 return new LSL_List();
8547 }
8548 try
8549 {
8550 hollow = (float)rules.GetLSLFloatItem(idx++);
8551 }
8552 catch(InvalidCastException)
8553 {
8554 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8555 return new LSL_List();
8556 }
8557 try
8558 {
8559 twist = rules.GetVector3Item(idx++);
8560 }
8561 catch(InvalidCastException)
8562 {
8563 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8564 return new LSL_List();
8565 }
8566 try
8567 {
8568 holesize = rules.GetVector3Item(idx++);
8569 }
8570 catch(InvalidCastException)
8571 {
8572 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8573 return new LSL_List();
8574 }
8575 try
8576 {
8577 topshear = rules.GetVector3Item(idx++);
8578 }
8579 catch(InvalidCastException)
8580 {
8581 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
8582 return new LSL_List();
8583 }
8584 try
8585 {
8586 profilecut = rules.GetVector3Item(idx++);
8587 }
8588 catch(InvalidCastException)
8589 {
8590 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 9 must be vector", rulesParsed, idx - idxStart - 1));
8591 return new LSL_List();
8592 }
8593 try
8594 {
8595 taper_b = rules.GetVector3Item(idx++); // taper_a
8596 }
8597 catch(InvalidCastException)
8598 {
8599 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 10 must be vector", rulesParsed, idx - idxStart - 1));
8600 return new LSL_List();
8601 }
8602 try
8603 {
8604 revolutions = (float)rules.GetLSLFloatItem(idx++);
8605 }
8606 catch(InvalidCastException)
8607 {
8608 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 11 must be float", rulesParsed, idx - idxStart - 1));
8609 return new LSL_List();
8610 }
8611 try
8612 {
8613 radiusoffset = (float)rules.GetLSLFloatItem(idx++);
8614 }
8615 catch(InvalidCastException)
8616 {
8617 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 12 must be float", rulesParsed, idx - idxStart - 1));
8618 return new LSL_List();
8619 }
8620 try
8621 {
8622 skew = (float)rules.GetLSLFloatItem(idx++);
8623 }
8624 catch(InvalidCastException)
8625 {
8626 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TORUS: arg #{1} - parameter 13 must be vector", rulesParsed, idx - idxStart - 1));
8627 return new LSL_List();
8628 }
7462 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b, 8629 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b,
7463 revolutions, radiusoffset, skew, (byte)ProfileShape.Circle, (byte)Extrusion.Curve1); 8630 revolutions, radiusoffset, skew, (byte)ProfileShape.Circle, (byte)Extrusion.Curve1);
7464 break; 8631 break;
7465 8632
7466 case (int)ScriptBaseClass.PRIM_TYPE_TUBE: 8633 case ScriptBaseClass.PRIM_TYPE_TUBE:
7467 if (remain < 11) 8634 if (remain < 11)
7468 return null; 8635 return new LSL_List();
7469 8636
7470 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8637 try
7471 v = rules.GetVector3Item(idx++); //cut 8638 {
7472 hollow = (float)rules.GetLSLFloatItem(idx++); 8639 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7473 twist = rules.GetVector3Item(idx++); 8640 }
7474 holesize = rules.GetVector3Item(idx++); 8641 catch(InvalidCastException)
7475 topshear = rules.GetVector3Item(idx++); 8642 {
7476 profilecut = rules.GetVector3Item(idx++); 8643 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
7477 taper_b = rules.GetVector3Item(idx++); // taper_a 8644 return new LSL_List();
7478 revolutions = (float)rules.GetLSLFloatItem(idx++); 8645 }
7479 radiusoffset = (float)rules.GetLSLFloatItem(idx++); 8646 try
7480 skew = (float)rules.GetLSLFloatItem(idx++); 8647 {
8648 v = rules.GetVector3Item(idx++); //cut
8649 }
8650 catch(InvalidCastException)
8651 {
8652 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8653 return new LSL_List();
8654 }
8655 try
8656 {
8657 hollow = (float)rules.GetLSLFloatItem(idx++);
8658 }
8659 catch(InvalidCastException)
8660 {
8661 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8662 return new LSL_List();
8663 }
8664 try
8665 {
8666 twist = rules.GetVector3Item(idx++);
8667 }
8668 catch(InvalidCastException)
8669 {
8670 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8671 return new LSL_List();
8672 }
8673 try
8674 {
8675 holesize = rules.GetVector3Item(idx++);
8676 }
8677 catch(InvalidCastException)
8678 {
8679 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8680 return new LSL_List();
8681 }
8682 try
8683 {
8684 topshear = rules.GetVector3Item(idx++);
8685 }
8686 catch(InvalidCastException)
8687 {
8688 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
8689 return new LSL_List();
8690 }
8691 try
8692 {
8693 profilecut = rules.GetVector3Item(idx++);
8694 }
8695 catch(InvalidCastException)
8696 {
8697 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 9 must be vector", rulesParsed, idx - idxStart - 1));
8698 return new LSL_List();
8699 }
8700 try
8701 {
8702 taper_b = rules.GetVector3Item(idx++); // taper_a
8703 }
8704 catch(InvalidCastException)
8705 {
8706 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 10 must be vector", rulesParsed, idx - idxStart - 1));
8707 return new LSL_List();
8708 }
8709 try
8710 {
8711 revolutions = (float)rules.GetLSLFloatItem(idx++);
8712 }
8713 catch(InvalidCastException)
8714 {
8715 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 11 must be float", rulesParsed, idx - idxStart - 1));
8716 return new LSL_List();
8717 }
8718 try
8719 {
8720 radiusoffset = (float)rules.GetLSLFloatItem(idx++);
8721 }
8722 catch(InvalidCastException)
8723 {
8724 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 12 must be float", rulesParsed, idx - idxStart - 1));
8725 return new LSL_List();
8726 }
8727 try
8728 {
8729 skew = (float)rules.GetLSLFloatItem(idx++);
8730 }
8731 catch(InvalidCastException)
8732 {
8733 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_TUBE: arg #{1} - parameter 13 must be float", rulesParsed, idx - idxStart - 1));
8734 return new LSL_List();
8735 }
7481 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b, 8736 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b,
7482 revolutions, radiusoffset, skew, (byte)ProfileShape.Square, (byte)Extrusion.Curve1); 8737 revolutions, radiusoffset, skew, (byte)ProfileShape.Square, (byte)Extrusion.Curve1);
7483 break; 8738 break;
7484 8739
7485 case (int)ScriptBaseClass.PRIM_TYPE_RING: 8740 case ScriptBaseClass.PRIM_TYPE_RING:
7486 if (remain < 11) 8741 if (remain < 11)
7487 return null; 8742 return new LSL_List();
7488 8743
7489 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape 8744 try
7490 v = rules.GetVector3Item(idx++); //cut 8745 {
7491 hollow = (float)rules.GetLSLFloatItem(idx++); 8746 face = (int)rules.GetLSLIntegerItem(idx++); // holeshape
7492 twist = rules.GetVector3Item(idx++); 8747 }
7493 holesize = rules.GetVector3Item(idx++); 8748 catch(InvalidCastException)
7494 topshear = rules.GetVector3Item(idx++); 8749 {
7495 profilecut = rules.GetVector3Item(idx++); 8750 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
7496 taper_b = rules.GetVector3Item(idx++); // taper_a 8751 return new LSL_List();
7497 revolutions = (float)rules.GetLSLFloatItem(idx++); 8752 }
7498 radiusoffset = (float)rules.GetLSLFloatItem(idx++); 8753 try
7499 skew = (float)rules.GetLSLFloatItem(idx++); 8754 {
8755 v = rules.GetVector3Item(idx++); //cut
8756 }
8757 catch(InvalidCastException)
8758 {
8759 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8760 return new LSL_List();
8761 }
8762 try
8763 {
8764 hollow = (float)rules.GetLSLFloatItem(idx++);
8765 }
8766 catch(InvalidCastException)
8767 {
8768 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8769 return new LSL_List();
8770 }
8771 try
8772 {
8773 twist = rules.GetVector3Item(idx++);
8774 }
8775 catch(InvalidCastException)
8776 {
8777 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 6 must be vector", rulesParsed, idx - idxStart - 1));
8778 return new LSL_List();
8779 }
8780 try
8781 {
8782 holesize = rules.GetVector3Item(idx++);
8783 }
8784 catch(InvalidCastException)
8785 {
8786 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 7 must be vector", rulesParsed, idx - idxStart - 1));
8787 return new LSL_List();
8788 }
8789 try
8790 {
8791 topshear = rules.GetVector3Item(idx++);
8792 }
8793 catch(InvalidCastException)
8794 {
8795 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
8796 return new LSL_List();
8797 }
8798 try
8799 {
8800 profilecut = rules.GetVector3Item(idx++);
8801 }
8802 catch(InvalidCastException)
8803 {
8804 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 9 must be vector", rulesParsed, idx - idxStart - 1));
8805 return new LSL_List();
8806 }
8807 try
8808 {
8809 taper_b = rules.GetVector3Item(idx++); // taper_a
8810 }
8811 catch(InvalidCastException)
8812 {
8813 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 10 must be vector", rulesParsed, idx - idxStart - 1));
8814 return new LSL_List();
8815 }
8816 try
8817 {
8818 revolutions = (float)rules.GetLSLFloatItem(idx++);
8819 }
8820 catch(InvalidCastException)
8821 {
8822 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 11 must be float", rulesParsed, idx - idxStart - 1));
8823 return new LSL_List();
8824 }
8825 try
8826 {
8827 radiusoffset = (float)rules.GetLSLFloatItem(idx++);
8828 }
8829 catch(InvalidCastException)
8830 {
8831 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 12 must be float", rulesParsed, idx - idxStart - 1));
8832 return new LSL_List();
8833 }
8834 try
8835 {
8836 skew = (float)rules.GetLSLFloatItem(idx++);
8837 }
8838 catch(InvalidCastException)
8839 {
8840 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_RING: arg #{1} - parameter 13 must be float", rulesParsed, idx - idxStart - 1));
8841 return new LSL_List();
8842 }
7500 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b, 8843 SetPrimitiveShapeParams(part, face, v, hollow, twist, holesize, topshear, profilecut, taper_b,
7501 revolutions, radiusoffset, skew, (byte)ProfileShape.EquilateralTriangle, (byte)Extrusion.Curve1); 8844 revolutions, radiusoffset, skew, (byte)ProfileShape.EquilateralTriangle, (byte)Extrusion.Curve1);
7502 break; 8845 break;
7503 8846
7504 case (int)ScriptBaseClass.PRIM_TYPE_SCULPT: 8847 case ScriptBaseClass.PRIM_TYPE_SCULPT:
7505 if (remain < 2) 8848 if (remain < 2)
7506 return null; 8849 return new LSL_List();
7507 8850
7508 string map = rules.Data[idx++].ToString(); 8851 string map = rules.Data[idx++].ToString();
7509 face = (int)rules.GetLSLIntegerItem(idx++); // type 8852 try
8853 {
8854 face = (int)rules.GetLSLIntegerItem(idx++); // type
8855 }
8856 catch(InvalidCastException)
8857 {
8858 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TYPE, PRIM_TYPE_SCULPT: arg #{1} - parameter 4 must be integer", rulesParsed, idx - idxStart - 1));
8859 return new LSL_List();
8860 }
7510 SetPrimitiveShapeParams(part, map, face, (byte)Extrusion.Curve1); 8861 SetPrimitiveShapeParams(part, map, face, (byte)Extrusion.Curve1);
7511 break; 8862 break;
7512 } 8863 }
7513 8864
7514 break; 8865 break;
7515 8866
7516 case (int)ScriptBaseClass.PRIM_TEXTURE: 8867 case ScriptBaseClass.PRIM_TEXTURE:
7517 if (remain < 5) 8868 if (remain < 5)
7518 return null; 8869 return new LSL_List();
7519 8870
7520 face=(int)rules.GetLSLIntegerItem(idx++); 8871 face=(int)rules.GetLSLIntegerItem(idx++);
7521 string tex=rules.Data[idx++].ToString(); 8872 string tex;
7522 LSL_Vector repeats=rules.GetVector3Item(idx++); 8873 LSL_Vector repeats;
7523 LSL_Vector offsets=rules.GetVector3Item(idx++); 8874 LSL_Vector offsets;
7524 double rotation=(double)rules.GetLSLFloatItem(idx++); 8875 double rotation;
8876
8877 tex = rules.Data[idx++].ToString();
8878 try
8879 {
8880 repeats = rules.GetVector3Item(idx++);
8881 }
8882 catch(InvalidCastException)
8883 {
8884 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXTURE: arg #{1} - parameter 3 must be vector", rulesParsed, idx - idxStart - 1));
8885 return new LSL_List();
8886 }
8887 try
8888 {
8889 offsets = rules.GetVector3Item(idx++);
8890 }
8891 catch(InvalidCastException)
8892 {
8893 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXTURE: arg #{1} - parameter 4 must be vector", rulesParsed, idx - idxStart - 1));
8894 return new LSL_List();
8895 }
8896 try
8897 {
8898 rotation = (double)rules.GetLSLFloatItem(idx++);
8899 }
8900 catch(InvalidCastException)
8901 {
8902 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXTURE: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8903 return new LSL_List();
8904 }
7525 8905
7526 SetTexture(part, tex, face); 8906 SetTexture(part, tex, face);
7527 ScaleTexture(part, repeats.x, repeats.y, face); 8907 ScaleTexture(part, repeats.x, repeats.y, face);
@@ -7530,180 +8910,525 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7530 8910
7531 break; 8911 break;
7532 8912
7533 case (int)ScriptBaseClass.PRIM_COLOR: 8913 case ScriptBaseClass.PRIM_COLOR:
7534 if (remain < 3) 8914 if (remain < 3)
7535 return null; 8915 return new LSL_List();
7536 8916
7537 face=(int)rules.GetLSLIntegerItem(idx++); 8917 LSL_Vector color;
7538 LSL_Vector color=rules.GetVector3Item(idx++); 8918 double alpha;
7539 double alpha=(double)rules.GetLSLFloatItem(idx++); 8919
8920 try
8921 {
8922 face = (int)rules.GetLSLIntegerItem(idx++);
8923 }
8924 catch(InvalidCastException)
8925 {
8926 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_COLOR: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
8927 return new LSL_List();
8928 }
8929 try
8930 {
8931 color = rules.GetVector3Item(idx++);
8932 }
8933 catch(InvalidCastException)
8934 {
8935 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_COLOR: arg #{1} - parameter 3 must be vector", rulesParsed, idx - idxStart - 1));
8936 return new LSL_List();
8937 }
8938 try
8939 {
8940 alpha = (double)rules.GetLSLFloatItem(idx++);
8941 }
8942 catch(InvalidCastException)
8943 {
8944 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_COLOR: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
8945 return new LSL_List();
8946 }
7540 8947
7541 part.SetFaceColorAlpha(face, color, alpha); 8948 part.SetFaceColorAlpha(face, color, alpha);
7542 8949
7543 break; 8950 break;
7544 8951
7545 case (int)ScriptBaseClass.PRIM_FLEXIBLE: 8952 case ScriptBaseClass.PRIM_FLEXIBLE:
7546 if (remain < 7) 8953 if (remain < 7)
7547 return null; 8954 return new LSL_List();
7548 8955 bool flexi;
7549 bool flexi = rules.GetLSLIntegerItem(idx++); 8956 int softness;
7550 int softness = rules.GetLSLIntegerItem(idx++); 8957 float gravity;
7551 float gravity = (float)rules.GetLSLFloatItem(idx++); 8958 float friction;
7552 float friction = (float)rules.GetLSLFloatItem(idx++); 8959 float wind;
7553 float wind = (float)rules.GetLSLFloatItem(idx++); 8960 float tension;
7554 float tension = (float)rules.GetLSLFloatItem(idx++); 8961 LSL_Vector force;
7555 LSL_Vector force = rules.GetVector3Item(idx++); 8962
8963 try
8964 {
8965 flexi = rules.GetLSLIntegerItem(idx++);
8966 }
8967 catch(InvalidCastException)
8968 {
8969 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
8970 return new LSL_List();
8971 }
8972 try
8973 {
8974 softness = rules.GetLSLIntegerItem(idx++);
8975 }
8976 catch(InvalidCastException)
8977 {
8978 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
8979 return new LSL_List();
8980 }
8981 try
8982 {
8983 gravity = (float)rules.GetLSLFloatItem(idx++);
8984 }
8985 catch(InvalidCastException)
8986 {
8987 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
8988 return new LSL_List();
8989 }
8990 try
8991 {
8992 friction = (float)rules.GetLSLFloatItem(idx++);
8993 }
8994 catch(InvalidCastException)
8995 {
8996 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
8997 return new LSL_List();
8998 }
8999 try
9000 {
9001 wind = (float)rules.GetLSLFloatItem(idx++);
9002 }
9003 catch(InvalidCastException)
9004 {
9005 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 6 must be float", rulesParsed, idx - idxStart - 1));
9006 return new LSL_List();
9007 }
9008 try
9009 {
9010 tension = (float)rules.GetLSLFloatItem(idx++);
9011 }
9012 catch(InvalidCastException)
9013 {
9014 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 7 must be float", rulesParsed, idx - idxStart - 1));
9015 return new LSL_List();
9016 }
9017 try
9018 {
9019 force = rules.GetVector3Item(idx++);
9020 }
9021 catch(InvalidCastException)
9022 {
9023 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FLEXIBLE: arg #{1} - parameter 8 must be vector", rulesParsed, idx - idxStart - 1));
9024 return new LSL_List();
9025 }
7556 9026
7557 SetFlexi(part, flexi, softness, gravity, friction, wind, tension, force); 9027 SetFlexi(part, flexi, softness, gravity, friction, wind, tension, force);
7558 9028
7559 break; 9029 break;
7560 9030
7561 case (int)ScriptBaseClass.PRIM_POINT_LIGHT: 9031 case ScriptBaseClass.PRIM_POINT_LIGHT:
7562 if (remain < 5) 9032 if (remain < 5)
7563 return null; 9033 return new LSL_List();
7564 bool light = rules.GetLSLIntegerItem(idx++); 9034 bool light;
7565 LSL_Vector lightcolor = rules.GetVector3Item(idx++); 9035 LSL_Vector lightcolor;
7566 float intensity = (float)rules.GetLSLFloatItem(idx++); 9036 float intensity;
7567 float radius = (float)rules.GetLSLFloatItem(idx++); 9037 float radius;
7568 float falloff = (float)rules.GetLSLFloatItem(idx++); 9038 float falloff;
9039
9040 try
9041 {
9042 light = rules.GetLSLIntegerItem(idx++);
9043 }
9044 catch(InvalidCastException)
9045 {
9046 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POINT_LIGHT: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9047 return new LSL_List();
9048 }
9049 try
9050 {
9051 lightcolor = rules.GetVector3Item(idx++);
9052 }
9053 catch(InvalidCastException)
9054 {
9055 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POINT_LIGHT: arg #{1} - parameter 3 must be vector", rulesParsed, idx - idxStart - 1));
9056 return new LSL_List();
9057 }
9058 try
9059 {
9060 intensity = (float)rules.GetLSLFloatItem(idx++);
9061 }
9062 catch(InvalidCastException)
9063 {
9064 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POINT_LIGHT: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
9065 return new LSL_List();
9066 }
9067 try
9068 {
9069 radius = (float)rules.GetLSLFloatItem(idx++);
9070 }
9071 catch(InvalidCastException)
9072 {
9073 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POINT_LIGHT: arg #{1} - parameter 5 must be float", rulesParsed, idx - idxStart - 1));
9074 return new LSL_List();
9075 }
9076 try
9077 {
9078 falloff = (float)rules.GetLSLFloatItem(idx++);
9079 }
9080 catch(InvalidCastException)
9081 {
9082 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POINT_LIGHT: arg #{1} - parameter 6 must be float", rulesParsed, idx - idxStart - 1));
9083 return new LSL_List();
9084 }
7569 9085
7570 SetPointLight(part, light, lightcolor, intensity, radius, falloff); 9086 SetPointLight(part, light, lightcolor, intensity, radius, falloff);
7571 9087
7572 break; 9088 break;
7573 9089
7574 case (int)ScriptBaseClass.PRIM_GLOW: 9090 case ScriptBaseClass.PRIM_GLOW:
7575 if (remain < 2) 9091 if (remain < 2)
7576 return null; 9092 return new LSL_List();
7577 face = rules.GetLSLIntegerItem(idx++); 9093
7578 float glow = (float)rules.GetLSLFloatItem(idx++); 9094 float glow;
9095
9096 try
9097 {
9098 face = rules.GetLSLIntegerItem(idx++);
9099 }
9100 catch(InvalidCastException)
9101 {
9102 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_GLOW: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9103 return new LSL_List();
9104 }
9105 try
9106 {
9107 glow = (float)rules.GetLSLFloatItem(idx++);
9108 }
9109 catch(InvalidCastException)
9110 {
9111 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_GLOW: arg #{1} - parameter 3 must be float", rulesParsed, idx - idxStart - 1));
9112 return new LSL_List();
9113 }
7579 9114
7580 SetGlow(part, face, glow); 9115 SetGlow(part, face, glow);
7581 9116
7582 break; 9117 break;
7583 9118
7584 case (int)ScriptBaseClass.PRIM_BUMP_SHINY: 9119 case ScriptBaseClass.PRIM_BUMP_SHINY:
7585 if (remain < 3) 9120 if (remain < 3)
7586 return null; 9121 return new LSL_List();
7587 face = (int)rules.GetLSLIntegerItem(idx++); 9122
7588 int shiny = (int)rules.GetLSLIntegerItem(idx++); 9123 int shiny;
7589 Bumpiness bump = (Bumpiness)(int)rules.GetLSLIntegerItem(idx++); 9124 Bumpiness bump;
9125
9126 try
9127 {
9128 face = (int)rules.GetLSLIntegerItem(idx++);
9129 }
9130 catch(InvalidCastException)
9131 {
9132 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_BUMP_SHINY: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9133 return new LSL_List();
9134 }
9135 try
9136 {
9137 shiny = (int)rules.GetLSLIntegerItem(idx++);
9138 }
9139 catch(InvalidCastException)
9140 {
9141 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_BUMP_SHINY: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
9142 return new LSL_List();
9143 }
9144 try
9145 {
9146 bump = (Bumpiness)(int)rules.GetLSLIntegerItem(idx++);
9147 }
9148 catch(InvalidCastException)
9149 {
9150 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_BUMP_SHINY: arg #{1} - parameter 4 must be integer", rulesParsed, idx - idxStart - 1));
9151 return new LSL_List();
9152 }
7590 9153
7591 SetShiny(part, face, shiny, bump); 9154 SetShiny(part, face, shiny, bump);
7592 9155
7593 break; 9156 break;
7594 9157
7595 case (int)ScriptBaseClass.PRIM_FULLBRIGHT: 9158 case ScriptBaseClass.PRIM_FULLBRIGHT:
7596 if (remain < 2) 9159 if (remain < 2)
7597 return null; 9160 return new LSL_List();
7598 face = rules.GetLSLIntegerItem(idx++); 9161 bool st;
7599 bool st = rules.GetLSLIntegerItem(idx++); 9162
7600 SetFullBright(part, face , st); 9163 try
7601 break; 9164 {
9165 face = rules.GetLSLIntegerItem(idx++);
9166 }
9167 catch(InvalidCastException)
9168 {
9169 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FULLBRIGHT: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9170 return new LSL_List();
9171 }
9172 try
9173 {
9174 st = rules.GetLSLIntegerItem(idx++);
9175 }
9176 catch(InvalidCastException)
9177 {
9178 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_FULLBRIGHT: arg #{1} - parameter 4 must be integer", rulesParsed, idx - idxStart - 1));
9179 return new LSL_List();
9180 }
9181 SetFullBright(part, face , st);
9182 break;
9183
9184 case ScriptBaseClass.PRIM_MATERIAL:
9185 if (remain < 1)
9186 return new LSL_List();
9187 int mat;
9188
9189 try
9190 {
9191 mat = rules.GetLSLIntegerItem(idx++);
9192 }
9193 catch(InvalidCastException)
9194 {
9195 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_MATERIAL: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9196 return new LSL_List();
9197 }
9198 if (mat < 0 || mat > 7)
9199 return new LSL_List();
7602 9200
7603 case (int)ScriptBaseClass.PRIM_MATERIAL: 9201 part.Material = Convert.ToByte(mat);
7604 if (remain < 1) 9202 break;
7605 return null;
7606 int mat = rules.GetLSLIntegerItem(idx++);
7607 if (mat < 0 || mat > 7)
7608 return null;
7609 9203
7610 part.Material = Convert.ToByte(mat); 9204 case ScriptBaseClass.PRIM_PHANTOM:
7611 break; 9205 if (remain < 1)
9206 return new LSL_List();
7612 9207
7613 case (int)ScriptBaseClass.PRIM_PHANTOM: 9208 string ph = rules.Data[idx++].ToString();
7614 if (remain < 1) 9209 part.ParentGroup.ScriptSetPhantomStatus(ph.Equals("1"));
7615 return null;
7616 9210
7617 string ph = rules.Data[idx++].ToString(); 9211 break;
7618 m_host.ParentGroup.ScriptSetPhantomStatus(ph.Equals("1"));
7619 9212
7620 break; 9213 case ScriptBaseClass.PRIM_PHYSICS:
9214 if (remain < 1)
9215 return new LSL_List();
9216 string phy = rules.Data[idx++].ToString();
9217 part.ScriptSetPhysicsStatus(phy.Equals("1"));
9218 break;
7621 9219
7622 case (int)ScriptBaseClass.PRIM_PHYSICS: 9220 case ScriptBaseClass.PRIM_PHYSICS_SHAPE_TYPE:
7623 if (remain < 1) 9221 if (remain < 1)
7624 return null; 9222 return new LSL_List();
7625 string phy = rules.Data[idx++].ToString();
7626 bool physics;
7627 9223
7628 if (phy.Equals("1")) 9224 int shape_type;
7629 physics = true;
7630 else
7631 physics = false;
7632 9225
7633 part.ScriptSetPhysicsStatus(physics); 9226 try
7634 break; 9227 {
9228 shape_type = rules.GetLSLIntegerItem(idx++);
9229 }
9230 catch(InvalidCastException)
9231 {
9232 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_PHYSICS_SHAPE_TYPE: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9233 return new LSL_List();
9234 }
9235
9236 ExtraPhysicsData physdata = new ExtraPhysicsData();
9237 physdata.Density = part.Density;
9238 physdata.Bounce = part.Restitution;
9239 physdata.GravitationModifier = part.GravityModifier;
9240 physdata.PhysShapeType = (PhysShapeType)shape_type;
9241
9242 part.UpdateExtraPhysics(physdata);
7635 9243
7636 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ: 9244 break;
9245
9246 case ScriptBaseClass.PRIM_TEMP_ON_REZ:
7637 if (remain < 1) 9247 if (remain < 1)
7638 return null; 9248 return new LSL_List();
7639 string temp = rules.Data[idx++].ToString(); 9249 string temp = rules.Data[idx++].ToString();
7640 9250
7641 m_host.ParentGroup.ScriptSetTemporaryStatus(temp.Equals("1")); 9251 part.ParentGroup.ScriptSetTemporaryStatus(temp.Equals("1"));
7642 9252
7643 break; 9253 break;
7644 9254
7645 case (int)ScriptBaseClass.PRIM_TEXGEN: 9255 case ScriptBaseClass.PRIM_TEXGEN:
7646 if (remain < 2) 9256 if (remain < 2)
7647 return null; 9257 return new LSL_List();
7648 //face,type 9258 //face,type
7649 face = rules.GetLSLIntegerItem(idx++); 9259 int style;
7650 int style = rules.GetLSLIntegerItem(idx++); 9260
9261 try
9262 {
9263 face = rules.GetLSLIntegerItem(idx++);
9264 }
9265 catch(InvalidCastException)
9266 {
9267 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXGEN: arg #{1} - parameter 2 must be integer", rulesParsed, idx - idxStart - 1));
9268 return new LSL_List();
9269 }
9270 try
9271 {
9272 style = rules.GetLSLIntegerItem(idx++);
9273 }
9274 catch(InvalidCastException)
9275 {
9276 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXGEN: arg #{1} - parameter 3 must be integer", rulesParsed, idx - idxStart - 1));
9277 return new LSL_List();
9278 }
7651 SetTexGen(part, face, style); 9279 SetTexGen(part, face, style);
7652 break; 9280 break;
7653 case (int)ScriptBaseClass.PRIM_TEXT: 9281 case ScriptBaseClass.PRIM_TEXT:
7654 if (remain < 3) 9282 if (remain < 3)
7655 return null; 9283 return new LSL_List();
7656 string primText = rules.GetLSLStringItem(idx++); 9284 string primText;
7657 LSL_Vector primTextColor = rules.GetVector3Item(idx++); 9285 LSL_Vector primTextColor;
7658 LSL_Float primTextAlpha = rules.GetLSLFloatItem(idx++); 9286 LSL_Float primTextAlpha;
9287
9288 try
9289 {
9290 primText = rules.GetLSLStringItem(idx++);
9291 }
9292 catch(InvalidCastException)
9293 {
9294 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXT: arg #{1} - parameter 2 must be string", rulesParsed, idx - idxStart - 1));
9295 return new LSL_List();
9296 }
9297 try
9298 {
9299 primTextColor = rules.GetVector3Item(idx++);
9300 }
9301 catch(InvalidCastException)
9302 {
9303 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXT: arg #{1} - parameter 3 must be vector", rulesParsed, idx - idxStart - 1));
9304 return new LSL_List();
9305 }
9306 try
9307 {
9308 primTextAlpha = rules.GetLSLFloatItem(idx++);
9309 }
9310 catch(InvalidCastException)
9311 {
9312 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_TEXT: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
9313 return new LSL_List();
9314 }
7659 Vector3 av3 = Util.Clip(primTextColor, 0.0f, 1.0f); 9315 Vector3 av3 = Util.Clip(primTextColor, 0.0f, 1.0f);
7660 part.SetText(primText, av3, Util.Clip((float)primTextAlpha, 0.0f, 1.0f)); 9316 part.SetText(primText, av3, Util.Clip((float)primTextAlpha, 0.0f, 1.0f));
7661 9317
7662 break; 9318 break;
7663 case (int)ScriptBaseClass.PRIM_NAME: 9319
9320 case ScriptBaseClass.PRIM_NAME:
7664 if (remain < 1) 9321 if (remain < 1)
7665 return null; 9322 return new LSL_List();
7666 string primName = rules.GetLSLStringItem(idx++); 9323 try
7667 part.Name = primName; 9324 {
9325 string primName = rules.GetLSLStringItem(idx++);
9326 part.Name = primName;
9327 }
9328 catch(InvalidCastException)
9329 {
9330 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_NAME: arg #{1} - parameter 2 must be string", rulesParsed, idx - idxStart - 1));
9331 return new LSL_List();
9332 }
7668 break; 9333 break;
7669 case (int)ScriptBaseClass.PRIM_DESC: 9334 case ScriptBaseClass.PRIM_DESC:
7670 if (remain < 1) 9335 if (remain < 1)
7671 return null; 9336 return new LSL_List();
7672 string primDesc = rules.GetLSLStringItem(idx++); 9337 try
7673 part.Description = primDesc; 9338 {
9339 string primDesc = rules.GetLSLStringItem(idx++);
9340 part.Description = primDesc;
9341 }
9342 catch(InvalidCastException)
9343 {
9344 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_DESC: arg #{1} - parameter 2 must be string", rulesParsed, idx - idxStart - 1));
9345 return new LSL_List();
9346 }
7674 break; 9347 break;
7675 case (int)ScriptBaseClass.PRIM_ROT_LOCAL: 9348 case ScriptBaseClass.PRIM_ROT_LOCAL:
7676 if (remain < 1) 9349 if (remain < 1)
7677 return null; 9350 return new LSL_List();
7678 SetRot(part, rules.GetQuaternionItem(idx++)); 9351 LSL_Rotation rot;
9352 try
9353 {
9354 rot = rules.GetQuaternionItem(idx++);
9355 }
9356 catch(InvalidCastException)
9357 {
9358 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_ROT_LOCAL: arg #{1} - parameter 2 must be rotation", rulesParsed, idx - idxStart - 1));
9359 return new LSL_List();
9360 }
9361 SetRot(part, rot);
7679 break; 9362 break;
7680 case (int)ScriptBaseClass.PRIM_OMEGA: 9363
9364 case ScriptBaseClass.PRIM_OMEGA:
7681 if (remain < 3) 9365 if (remain < 3)
7682 return null; 9366 return new LSL_List();
7683 LSL_Vector axis = rules.GetVector3Item(idx++); 9367 LSL_Vector axis;
7684 LSL_Float spinrate = rules.GetLSLFloatItem(idx++); 9368 LSL_Float spinrate;
7685 LSL_Float gain = rules.GetLSLFloatItem(idx++); 9369 LSL_Float gain;
9370
9371 try
9372 {
9373 axis = rules.GetVector3Item(idx++);
9374 }
9375 catch(InvalidCastException)
9376 {
9377 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_OMEGA: arg #{1} - parameter 2 must be vector", rulesParsed, idx - idxStart - 1));
9378 return new LSL_List();
9379 }
9380 try
9381 {
9382 spinrate = rules.GetLSLFloatItem(idx++);
9383 }
9384 catch(InvalidCastException)
9385 {
9386 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_OMEGA: arg #{1} - parameter 3 must be float", rulesParsed, idx - idxStart - 1));
9387 return new LSL_List();
9388 }
9389 try
9390 {
9391 gain = rules.GetLSLFloatItem(idx++);
9392 }
9393 catch(InvalidCastException)
9394 {
9395 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_OMEGA: arg #{1} - parameter 4 must be float", rulesParsed, idx - idxStart - 1));
9396 return new LSL_List();
9397 }
7686 TargetOmega(part, axis, (double)spinrate, (double)gain); 9398 TargetOmega(part, axis, (double)spinrate, (double)gain);
7687 break; 9399 break;
7688 case (int)ScriptBaseClass.PRIM_SLICE: 9400
9401 case ScriptBaseClass.PRIM_SLICE:
7689 if (remain < 1) 9402 if (remain < 1)
7690 return null; 9403 return new LSL_List();
7691 LSL_Vector slice = rules.GetVector3Item(idx++); 9404 LSL_Vector slice;
9405 try
9406 {
9407 slice = rules.GetVector3Item(idx++);
9408 }
9409 catch(InvalidCastException)
9410 {
9411 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_SLICE: arg #{1} - parameter 2 must be vector", rulesParsed, idx - idxStart - 1));
9412 return new LSL_List();
9413 }
7692 part.UpdateSlice((float)slice.x, (float)slice.y); 9414 part.UpdateSlice((float)slice.x, (float)slice.y);
7693 break; 9415 break;
7694 case (int)ScriptBaseClass.PRIM_LINK_TARGET: 9416
9417 case ScriptBaseClass.PRIM_LINK_TARGET:
7695 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless. 9418 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
7696 return null; 9419 return new LSL_List();
7697 9420
7698 return rules.GetSublist(idx, -1); 9421 return rules.GetSublist(idx, -1);
9422
9423 default:
9424 Error(originFunc, string.Format("Error running rule #{0}: arg #{1} - unsupported parameter", rulesParsed, idx - idxStart));
9425 return new LSL_List();
7699 } 9426 }
7700 } 9427 }
7701 } 9428 }
7702 catch (InvalidCastException e) 9429 catch (InvalidCastException e)
7703 { 9430 {
7704 ShoutError(string.Format( 9431 Error(originFunc, string.Format("Error running rule #{0}: arg #{1} - ", rulesParsed, idx - idxStart) + e.Message);
7705 "{0} error running rule #{1}: arg #{2} ",
7706 originFunc, rulesParsed, idx - idxStart) + e.Message);
7707 } 9432 }
7708 finally 9433 finally
7709 { 9434 {
@@ -7723,7 +9448,118 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7723 } 9448 }
7724 } 9449 }
7725 } 9450 }
7726 return null; 9451
9452 return new LSL_List();
9453 }
9454
9455 protected LSL_List SetAgentParams(ScenePresence sp, LSL_List rules, string originFunc, ref uint rulesParsed)
9456 {
9457 int idx = 0;
9458 int idxStart = 0;
9459
9460 try
9461 {
9462 while (idx < rules.Length)
9463 {
9464 ++rulesParsed;
9465 int code = rules.GetLSLIntegerItem(idx++);
9466
9467 int remain = rules.Length - idx;
9468 idxStart = idx;
9469
9470 switch (code)
9471 {
9472 case ScriptBaseClass.PRIM_POSITION:
9473 case ScriptBaseClass.PRIM_POS_LOCAL:
9474 if (remain < 1)
9475 return new LSL_List();
9476
9477 try
9478 {
9479 sp.OffsetPosition = rules.GetVector3Item(idx++);
9480 }
9481 catch(InvalidCastException)
9482 {
9483 if (code == ScriptBaseClass.PRIM_POSITION)
9484 {
9485 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POSITION: arg #{1} - parameter 2 must be vector", rulesParsed, idx - idxStart - 1));
9486 }
9487 else
9488 {
9489 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_POS_LOCAL: arg #{1} - parameter 2 must be vector", rulesParsed, idx - idxStart - 1));
9490 }
9491 return new LSL_List();
9492 }
9493 break;
9494
9495 case ScriptBaseClass.PRIM_ROTATION:
9496 if (remain < 1)
9497 return new LSL_List();
9498
9499 Quaternion inRot;
9500
9501 try
9502 {
9503 inRot = rules.GetQuaternionItem(idx++);
9504 }
9505 catch(InvalidCastException)
9506 {
9507 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_ROTATION: arg #{1} - parameter 2 must be rotation", rulesParsed, idx - idxStart - 1));
9508 return new LSL_List();
9509 }
9510
9511 SceneObjectPart parentPart = sp.ParentPart;
9512
9513 if (parentPart != null)
9514 sp.Rotation = m_host.GetWorldRotation() * inRot;
9515
9516 break;
9517
9518 case ScriptBaseClass.PRIM_ROT_LOCAL:
9519 if (remain < 1)
9520 return new LSL_List();
9521
9522 try
9523 {
9524 sp.Rotation = rules.GetQuaternionItem(idx++);
9525 }
9526 catch(InvalidCastException)
9527 {
9528 Error(originFunc, string.Format("Error running rule #{0} -> PRIM_ROT_LOCAL: arg #{1} - parameter 2 must be rotation", rulesParsed, idx - idxStart - 1));
9529 return new LSL_List();
9530 }
9531
9532 break;
9533
9534 case ScriptBaseClass.PRIM_TYPE:
9535 Error(originFunc, "PRIM_TYPE disallowed on agent");
9536 return new LSL_List();
9537
9538 case ScriptBaseClass.PRIM_OMEGA:
9539 Error(originFunc, "PRIM_OMEGA disallowed on agent");
9540 return new LSL_List();
9541
9542 case ScriptBaseClass.PRIM_LINK_TARGET:
9543 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
9544 return new LSL_List();
9545
9546 return rules.GetSublist(idx, -1);
9547
9548 default:
9549 Error(originFunc,
9550 string.Format("Error running rule #{0} on agent: arg #{1} - disallowed on agent", rulesParsed, idx - idxStart));
9551 return new LSL_List();
9552 }
9553 }
9554 }
9555 catch (InvalidCastException e)
9556 {
9557 Error(
9558 originFunc,
9559 string.Format("Error running rule #{0}: arg #{1} - ", rulesParsed, idx - idxStart) + e.Message);
9560 }
9561
9562 return new LSL_List();
7727 } 9563 }
7728 9564
7729 public LSL_String llStringToBase64(string str) 9565 public LSL_String llStringToBase64(string str)
@@ -7731,14 +9567,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7731 m_host.AddScriptLPS(1); 9567 m_host.AddScriptLPS(1);
7732 try 9568 try
7733 { 9569 {
7734 byte[] encData_byte = new byte[str.Length]; 9570 byte[] encData_byte;
7735 encData_byte = Util.UTF8.GetBytes(str); 9571 encData_byte = Util.UTF8.GetBytes(str);
7736 string encodedData = Convert.ToBase64String(encData_byte); 9572 string encodedData = Convert.ToBase64String(encData_byte);
7737 return encodedData; 9573 return encodedData;
7738 } 9574 }
7739 catch (Exception e) 9575 catch
7740 { 9576 {
7741 throw new Exception("Error in base64Encode" + e.Message); 9577 Error("llBase64ToString", "Error encoding string");
9578 return String.Empty;
7742 } 9579 }
7743 } 9580 }
7744 9581
@@ -7747,26 +9584,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7747 m_host.AddScriptLPS(1); 9584 m_host.AddScriptLPS(1);
7748 try 9585 try
7749 { 9586 {
7750 return Util.Base64ToString(str); 9587 byte[] b = Convert.FromBase64String(str);
9588 return Encoding.UTF8.GetString(b);
7751 } 9589 }
7752 catch (Exception e) 9590 catch
7753 { 9591 {
7754 throw new Exception("Error in base64Decode" + e.Message); 9592 Error("llBase64ToString", "Error decoding string");
9593 return String.Empty;
7755 } 9594 }
7756 } 9595 }
7757 9596
7758 public LSL_String llXorBase64Strings(string str1, string str2) 9597 public LSL_String llXorBase64Strings(string str1, string str2)
7759 { 9598 {
7760 m_host.AddScriptLPS(1); 9599 m_host.AddScriptLPS(1);
7761 Deprecated("llXorBase64Strings"); 9600 Deprecated("llXorBase64Strings", "Use llXorBase64 instead");
7762 ScriptSleep(300); 9601 ScriptSleep(m_sleepMsOnXorBase64Strings);
7763 return String.Empty; 9602 return String.Empty;
7764 } 9603 }
7765 9604
7766 public void llRemoteDataSetRegion() 9605 public void llRemoteDataSetRegion()
7767 { 9606 {
7768 m_host.AddScriptLPS(1); 9607 m_host.AddScriptLPS(1);
7769 Deprecated("llRemoteDataSetRegion"); 9608 Deprecated("llRemoteDataSetRegion", "Use llOpenRemoteDataChannel instead");
7770 } 9609 }
7771 9610
7772 public LSL_Float llLog10(double val) 9611 public LSL_Float llLog10(double val)
@@ -7800,21 +9639,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7800 { 9639 {
7801 m_host.AddScriptLPS(1); 9640 m_host.AddScriptLPS(1);
7802 9641
7803 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 9642 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
7804 9643
7805 if (land.LandData.OwnerID != m_host.OwnerID) 9644 if (land.LandData.OwnerID != m_host.OwnerID)
7806 return; 9645 return;
7807 9646
7808 land.SetMusicUrl(url); 9647 land.SetMusicUrl(url);
7809 9648
7810 ScriptSleep(2000); 9649 ScriptSleep(m_sleepMsOnSetParcelMusicURL);
7811 } 9650 }
7812 9651
7813 public LSL_String llGetParcelMusicURL() 9652 public LSL_String llGetParcelMusicURL()
7814 { 9653 {
7815 m_host.AddScriptLPS(1); 9654 m_host.AddScriptLPS(1);
7816 9655
7817 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 9656 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
7818 9657
7819 if (land.LandData.OwnerID != m_host.OwnerID) 9658 if (land.LandData.OwnerID != m_host.OwnerID)
7820 return String.Empty; 9659 return String.Empty;
@@ -7825,8 +9664,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7825 public LSL_Vector llGetRootPosition() 9664 public LSL_Vector llGetRootPosition()
7826 { 9665 {
7827 m_host.AddScriptLPS(1); 9666 m_host.AddScriptLPS(1);
7828 return new LSL_Vector(m_host.ParentGroup.AbsolutePosition.X, m_host.ParentGroup.AbsolutePosition.Y, 9667
7829 m_host.ParentGroup.AbsolutePosition.Z); 9668 return new LSL_Vector(m_host.ParentGroup.AbsolutePosition);
7830 } 9669 }
7831 9670
7832 /// <summary> 9671 /// <summary>
@@ -7849,13 +9688,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7849 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) 9688 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
7850 q = avatar.CameraRotation; // Mouselook 9689 q = avatar.CameraRotation; // Mouselook
7851 else 9690 else
7852 q = avatar.Rotation; // Currently infrequently updated so may be inaccurate 9691 q = avatar.GetWorldRotation(); // Currently infrequently updated so may be inaccurate
7853 else 9692 else
7854 q = m_host.ParentGroup.GroupRotation; // Likely never get here but just in case 9693 q = m_host.ParentGroup.GroupRotation; // Likely never get here but just in case
7855 } 9694 }
7856 else 9695 else
7857 q = m_host.ParentGroup.GroupRotation; // just the group rotation 9696 q = m_host.ParentGroup.GroupRotation; // just the group rotation
7858 return new LSL_Rotation(q.X, q.Y, q.Z, q.W); 9697
9698 return new LSL_Rotation(q);
7859 } 9699 }
7860 9700
7861 public LSL_String llGetObjectDesc() 9701 public LSL_String llGetObjectDesc()
@@ -7889,137 +9729,668 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7889 } 9729 }
7890 9730
7891 /// <summary> 9731 /// <summary>
7892 /// A partial implementation. 9732 /// Full implementation of llGetBoundingBox according to SL 2015-04-15.
9733 /// http://wiki.secondlife.com/wiki/LlGetBoundingBox
7893 /// http://lslwiki.net/lslwiki/wakka.php?wakka=llGetBoundingBox 9734 /// http://lslwiki.net/lslwiki/wakka.php?wakka=llGetBoundingBox
7894 /// So far only valid for standing/flying/ground sitting avatars and single prim objects. 9735 /// Returns local bounding box of avatar without attachments
7895 /// If the object has multiple prims and/or a sitting avatar then the bounding 9736 /// if target is non-seated avatar or prim/mesh in avatar attachment.
7896 /// box is for the root prim only. 9737 /// Returns local bounding box of object including seated avatars
9738 /// if target is seated avatar or prim/mesh in object.
9739 /// Uses meshing of prims for high accuracy
9740 /// or less accurate box models for speed.
7897 /// </summary> 9741 /// </summary>
7898 public LSL_List llGetBoundingBox(string obj) 9742 public LSL_List llGetBoundingBox(string obj)
7899 { 9743 {
7900 m_host.AddScriptLPS(1); 9744 m_host.AddScriptLPS(1);
9745
9746 // Get target avatar if non-seated avatar or attachment, or prim and object
7901 UUID objID = UUID.Zero; 9747 UUID objID = UUID.Zero;
9748 UUID.TryParse(obj, out objID);
9749 ScenePresence agent = World.GetScenePresence(objID);
9750 if (agent != null)
9751 {
9752 if (agent.ParentPart != null)
9753 {
9754 objID = agent.ParentPart.UUID;
9755 agent = null;
9756 }
9757 }
9758 SceneObjectGroup group = null;
9759 SceneObjectPart target = World.GetSceneObjectPart(objID);
9760 if (target != null)
9761 {
9762 group = target.ParentGroup;
9763 if (group.IsAttachment) {
9764 objID = group.AttachedAvatar;
9765 agent = World.GetScenePresence(objID);
9766 group = null;
9767 target = null;
9768 }
9769 }
9770
9771 // Initialize but break if no target
7902 LSL_List result = new LSL_List(); 9772 LSL_List result = new LSL_List();
7903 if (!UUID.TryParse(obj, out objID)) 9773 int groupCount = 0;
9774 int partCount = 0;
9775 int vertexCount = 0;
9776 if (target == null && agent == null)
7904 { 9777 {
7905 result.Add(new LSL_Vector()); 9778 result.Add(new LSL_Vector());
7906 result.Add(new LSL_Vector()); 9779 result.Add(new LSL_Vector());
9780 if (m_addStatsInGetBoundingBox)
9781 result.Add(new LSL_Vector((float)groupCount, (float)partCount, (float)vertexCount));
7907 return result; 9782 return result;
7908 } 9783 }
7909 ScenePresence presence = World.GetScenePresence(objID); 9784 Vector3 minPosition = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
7910 if (presence != null) 9785 Vector3 maxPosition = new Vector3(float.MinValue, float.MinValue, float.MinValue);
9786
9787 // Try to get a mesher
9788 IRendering primMesher = null;
9789 List<string> renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory());
9790 if (renderers.Count > 0)
9791 primMesher = RenderingLoader.LoadRenderer(renderers[0]);
9792
9793 // Get bounding box of just avatar, seated or not
9794 if (agent != null)
9795 {
9796 bool hasParent = false;
9797 Vector3 lower;
9798 Vector3 upper;
9799 BoundingBoxOfScenePresence(agent, out lower, out upper);
9800 Vector3 offset = Vector3.Zero;
9801
9802 // Since local bounding box unrotated and untilted, keep it simple
9803 AddBoundingBoxOfSimpleBox(lower, upper, offset, agent.Rotation, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9804 partCount++;
9805 groupCount++;
9806
9807 // Return lower and upper bounding box corners
9808 result.Add(new LSL_Vector(minPosition));
9809 result.Add(new LSL_Vector(maxPosition));
9810 if (m_addStatsInGetBoundingBox)
9811 result.Add(new LSL_Vector((float)groupCount, (float)partCount, (float)vertexCount));
9812 return result;
9813 }
9814 // Get bounding box of object including seated avatars
9815 else if (group != null)
7911 { 9816 {
7912 if (presence.ParentID == 0) // not sat on an object 9817 // Merge bounding boxes of all parts (prims and mesh)
9818 foreach (SceneObjectPart part in group.Parts)
7913 { 9819 {
7914 LSL_Vector lower; 9820 bool hasParent = (!part.IsRoot);
7915 LSL_Vector upper; 9821 // When requested or if no mesher, keep it simple
7916 if (presence.Animator.Animations.ImplicitDefaultAnimation.AnimID 9822 if (m_useSimpleBoxesInGetBoundingBox || primMesher == null)
7917 == DefaultAvatarAnimations.AnimsUUID["SIT_GROUND_CONSTRAINED"])
7918 { 9823 {
7919 // This is for ground sitting avatars 9824 AddBoundingBoxOfSimpleBox(part.Scale * -0.5f, part.Scale * 0.5f, part.OffsetPosition, part.RotationOffset, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
7920 float height = presence.Appearance.AvatarHeight / 2.66666667f;
7921 lower = new LSL_Vector(-0.3375f, -0.45f, height * -1.0f);
7922 upper = new LSL_Vector(0.3375f, 0.45f, 0.0f);
7923 } 9825 }
9826 // Do the full mounty
7924 else 9827 else
7925 { 9828 {
7926 // This is for standing/flying avatars 9829 Primitive omvPrim = part.Shape.ToOmvPrimitive(part.OffsetPosition, part.RotationOffset);
7927 float height = presence.Appearance.AvatarHeight / 2.0f; 9830 byte[] sculptAsset = null;
7928 lower = new LSL_Vector(-0.225f, -0.3f, height * -1.0f); 9831 if (omvPrim.Sculpt != null)
7929 upper = new LSL_Vector(0.225f, 0.3f, height + 0.05f); 9832 sculptAsset = World.AssetService.GetData(omvPrim.Sculpt.SculptTexture.ToString());
9833
9834 // When part is mesh
9835 // Quirk: Only imports as incompletely populated faceted mesh object, so needs an own handler.
9836 if (omvPrim.Sculpt != null && omvPrim.Sculpt.Type == SculptType.Mesh && sculptAsset != null)
9837 {
9838 AssetMesh meshAsset = new AssetMesh(omvPrim.Sculpt.SculptTexture, sculptAsset);
9839 FacetedMesh mesh = null;
9840 FacetedMesh.TryDecodeFromAsset(omvPrim, meshAsset, DetailLevel.Highest, out mesh);
9841 meshAsset = null;
9842 if (mesh != null)
9843 {
9844 AddBoundingBoxOfFacetedMesh(mesh, omvPrim, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9845 mesh = null;
9846 }
9847 }
9848
9849 // When part is sculpt
9850 // Quirk: Generated sculpt mesh is about 2.8% smaller in X and Y than visual sculpt.
9851 else if (omvPrim.Sculpt != null && omvPrim.Sculpt.Type != SculptType.Mesh && sculptAsset != null)
9852 {
9853 IJ2KDecoder imgDecoder = World.RequestModuleInterface<IJ2KDecoder>();
9854 if (imgDecoder != null)
9855 {
9856 Image sculpt = imgDecoder.DecodeToImage(sculptAsset);
9857 if (sculpt != null)
9858 {
9859 SimpleMesh mesh = primMesher.GenerateSimpleSculptMesh(omvPrim, (Bitmap)sculpt, DetailLevel.Medium);
9860 sculpt.Dispose();
9861 if (mesh != null)
9862 {
9863 AddBoundingBoxOfSimpleMesh(mesh, omvPrim, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9864 mesh = null;
9865 }
9866 }
9867 }
9868 }
9869
9870 // When part is prim
9871 else if (omvPrim.Sculpt == null)
9872 {
9873 SimpleMesh mesh = primMesher.GenerateSimpleMesh(omvPrim, DetailLevel.Medium);
9874 if (mesh != null)
9875 {
9876 AddBoundingBoxOfSimpleMesh(mesh, omvPrim, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9877 mesh = null;
9878 }
9879 }
9880
9881 // When all else fails, try fallback to simple box
9882 else
9883 {
9884 AddBoundingBoxOfSimpleBox(part.Scale * -0.5f, part.Scale * 0.5f, part.OffsetPosition, part.RotationOffset, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9885 }
7930 } 9886 }
7931 result.Add(lower); 9887 partCount++;
7932 result.Add(upper);
7933 return result;
7934 } 9888 }
9889 }
9890
9891 // Merge bounding boxes of seated avatars
9892 foreach (ScenePresence sp in group.GetSittingAvatars())
9893 {
9894 Vector3 lower;
9895 Vector3 upper;
9896 BoundingBoxOfScenePresence(sp, out lower, out upper);
9897 Vector3 offset = sp.OffsetPosition;
9898
9899 bool hasParent = true;
9900 // When requested or if no mesher, keep it simple
9901 if (m_useSimpleBoxesInGetBoundingBox || primMesher == null)
9902 {
9903 AddBoundingBoxOfSimpleBox(lower, upper, offset, sp.Rotation, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
9904 }
9905 // Do the full mounty
7935 else 9906 else
7936 { 9907 {
7937 // sitting on an object so we need the bounding box of that 9908 // Prim shapes don't do center offsets, so add it here.
7938 // which should include the avatar so set the UUID to the 9909 offset = offset + (lower + upper) * 0.5f * sp.Rotation;
7939 // UUID of the object the avatar is sat on and allow it to fall through 9910 Primitive omvPrim = MakeOpenMetaversePrim(upper - lower, offset, sp.Rotation, ScriptBaseClass.PRIM_TYPE_SPHERE);
7940 // to processing an object 9911 SimpleMesh mesh = primMesher.GenerateSimpleMesh(omvPrim, DetailLevel.Medium);
7941 SceneObjectPart p = World.GetSceneObjectPart(presence.ParentID); 9912 AddBoundingBoxOfSimpleMesh(mesh, omvPrim, hasParent, ref minPosition, ref maxPosition, ref vertexCount);
7942 objID = p.UUID; 9913 mesh = null;
7943 } 9914 }
9915 partCount++;
7944 } 9916 }
7945 SceneObjectPart part = World.GetSceneObjectPart(objID); 9917
7946 // Currently only works for single prims without a sitting avatar 9918 groupCount++;
7947 if (part != null) 9919
9920 // Return lower and upper bounding box corners
9921 result.Add(new LSL_Vector(minPosition));
9922 result.Add(new LSL_Vector(maxPosition));
9923 if (m_addStatsInGetBoundingBox)
9924 result.Add(new LSL_Vector((float)groupCount, (float)partCount, (float)vertexCount));
9925
9926 primMesher = null;
9927 return result;
9928 }
9929
9930 /// <summary>
9931 /// Helper to calculate bounding box of an avatar.
9932 /// </summary>
9933 private void BoundingBoxOfScenePresence(ScenePresence sp, out Vector3 lower, out Vector3 upper)
9934 {
9935 // Adjust from OS model
9936 // avatar height = visual height - 0.2, bounding box height = visual height
9937 // to SL model
9938 // avatar height = visual height, bounding box height = visual height + 0.2
9939 float height = sp.Appearance.AvatarHeight + m_avatarHeightCorrection;
9940
9941 // According to avatar bounding box in SL 2015-04-18:
9942 // standing = <-0.275,-0.35,-0.1-0.5*h> : <0.275,0.35,0.1+0.5*h>
9943 // groundsitting = <-0.3875,-0.5,-0.05-0.375*h> : <0.3875,0.5,0.5>
9944 // sitting = <-0.5875,-0.35,-0.35-0.375*h> : <0.1875,0.35,-0.25+0.25*h>
9945
9946 // When avatar is sitting
9947 if (sp.ParentPart != null)
7948 { 9948 {
7949 Vector3 halfSize = part.Scale / 2.0f; 9949 lower = new Vector3(m_lABB1SitX0, m_lABB1SitY0, m_lABB1SitZ0 + m_lABB1SitZ1 * height);
7950 LSL_Vector lower = (new LSL_Vector(halfSize)) * -1.0f; 9950 upper = new Vector3(m_lABB2SitX0, m_lABB2SitY0, m_lABB2SitZ0 + m_lABB2SitZ1 * height);
7951 LSL_Vector upper = new LSL_Vector(halfSize); 9951 }
7952 result.Add(lower); 9952 // When avatar is groundsitting
7953 result.Add(upper); 9953 else if (sp.Animator.Animations.ImplicitDefaultAnimation.AnimID == DefaultAvatarAnimations.AnimsUUID["SIT_GROUND_CONSTRAINED"])
7954 return result; 9954 {
9955 lower = new Vector3(m_lABB1GrsX0, m_lABB1GrsY0, m_lABB1GrsZ0 + m_lABB1GrsZ1 * height);
9956 upper = new Vector3(m_lABB2GrsX0, m_lABB2GrsY0, m_lABB2GrsZ0 + m_lABB2GrsZ1 * height);
9957 }
9958 // When avatar is standing or flying
9959 else
9960 {
9961 lower = new Vector3(m_lABB1StdX0, m_lABB1StdY0, m_lABB1StdZ0 + m_lABB1StdZ1 * height);
9962 upper = new Vector3(m_lABB2StdX0, m_lABB2StdY0, m_lABB2StdZ0 + m_lABB2StdZ1 * height);
7955 } 9963 }
9964 }
7956 9965
7957 // Not found so return empty values 9966 /// <summary>
7958 result.Add(new LSL_Vector()); 9967 /// Helper to approximate a part with a simple box.
7959 result.Add(new LSL_Vector()); 9968 /// </summary>
7960 return result; 9969 private void AddBoundingBoxOfSimpleBox(Vector3 corner1, Vector3 corner2, Vector3 offset, Quaternion rotation, bool hasParent, ref Vector3 lower, ref Vector3 upper, ref int count)
9970 {
9971 // Parse the 8 box corners
9972 for (int i = 0; i < 8; i++)
9973 {
9974 // Calculate each box corner
9975 Vector3 position = corner1;
9976 if ((i & 1) != 0)
9977 position.X = corner2.X;
9978 if ((i & 2) != 0)
9979 position.Y = corner2.Y;
9980 if ((i & 4) != 0)
9981 position.Z = corner2.Z;
9982 // Rotate part unless part is root
9983 if (hasParent)
9984 position = position * rotation;
9985 position = position + offset;
9986 // Adjust lower and upper bounding box corners if needed
9987 lower = Vector3.Min(lower, position);
9988 upper = Vector3.Max(upper, position);
9989 count++;
9990 }
7961 } 9991 }
7962 9992
7963 public LSL_Vector llGetGeometricCenter() 9993 /// <summary>
9994 /// Helper to parse a meshed prim and needed especially
9995 /// for accuracy with tortured prims and sculpts.
9996 /// </summary>
9997 private void AddBoundingBoxOfSimpleMesh(SimpleMesh mesh, Primitive prim, bool hasParent, ref Vector3 lower, ref Vector3 upper, ref int count)
7964 { 9998 {
7965 return new LSL_Vector(m_host.GetGeometricCenter().X, m_host.GetGeometricCenter().Y, m_host.GetGeometricCenter().Z); 9999 // Quirk: A meshed box contains 10 instead of the 8 necessary vertices.
10000 if (mesh != null)
10001 {
10002 // Parse each vertex in mesh
10003 foreach (Vertex vertex in mesh.Vertices)
10004 {
10005 Vector3 position = vertex.Position;
10006 position = position * prim.Scale;
10007 // Rotate part unless part is root
10008 if (hasParent)
10009 position = position * prim.Rotation;
10010 position = position + prim.Position;
10011 // Adjust lower and upper bounding box corners if needed
10012 lower = Vector3.Min(lower, position);
10013 upper = Vector3.Max(upper, position);
10014 count++;
10015 }
10016 }
7966 } 10017 }
7967 10018
7968 public LSL_List llGetPrimitiveParams(LSL_List rules) 10019 /// <summary>
10020 /// Helper to parse mesh because no method exists
10021 /// to parse mesh assets to SimpleMesh.
10022 /// </summary>
10023 private void AddBoundingBoxOfFacetedMesh(FacetedMesh mesh, Primitive prim, bool hasParent, ref Vector3 lower, ref Vector3 upper, ref int count)
7969 { 10024 {
7970 m_host.AddScriptLPS(1); 10025 if (mesh != null)
10026 {
10027 // Parse each face in mesh
10028 // since vertex array isn't populated.
10029 // This parses each unique vertex 3-6 times.
10030 foreach (Face face in mesh.Faces)
10031 {
10032 // Parse each vertex in face
10033 foreach (Vertex vertex in face.Vertices)
10034 {
10035 Vector3 position = vertex.Position;
10036 position = position * prim.Scale;
10037 // Rotate part unless part is root
10038 if (hasParent)
10039 position = position * prim.Rotation;
10040 position = position + prim.Position;
10041 // Adjust lower and upper bounding box corners if needed
10042 lower = Vector3.Min(lower, position);
10043 upper = Vector3.Max(upper, position);
10044 count++;
10045 }
10046 }
10047 }
10048 }
7971 10049
7972 LSL_List result = new LSL_List(); 10050 /// <summary>
10051 /// Helper to make up an OpenMetaverse prim
10052 /// needed to create mesh from parts.
10053 /// </summary>
10054 private Primitive MakeOpenMetaversePrim(Vector3 scale, Vector3 position, Quaternion rotation, int primType)
10055 {
10056 // Initialize and set common parameters
10057 Primitive prim = new OpenMetaverse.Primitive();
10058 prim.Scale = scale;
10059 prim.Position = position;
10060 prim.Rotation = rotation;
10061 prim.PrimData.PathShearX = 0.0f;
10062 prim.PrimData.PathShearY = 0.0f;
10063 prim.PrimData.PathBegin = 0.0f;
10064 prim.PrimData.PathEnd = 1.0f;
10065 prim.PrimData.PathScaleX = 1.0f;
10066 prim.PrimData.PathScaleY = 1.0f;
10067 prim.PrimData.PathTaperX = 0.0f;
10068 prim.PrimData.PathTaperY = 0.0f;
10069 prim.PrimData.PathTwistBegin = 0.0f;
10070 prim.PrimData.PathTwist = 0.0f;
10071 prim.PrimData.ProfileBegin = 0.0f;
10072 prim.PrimData.ProfileEnd = 1.0f;
10073 prim.PrimData.ProfileHollow = 0.0f;
10074 prim.PrimData.ProfileCurve = (ProfileCurve)1;
10075 prim.PrimData.ProfileHole = (HoleType)0;
10076 prim.PrimData.PathCurve = (PathCurve)16;
10077 prim.PrimData.PathRadiusOffset = 0.0f;
10078 prim.PrimData.PathRevolutions = 1.0f;
10079 prim.PrimData.PathSkew = 0.0f;
10080 prim.PrimData.PCode = OpenMetaverse.PCode.Prim;
10081 prim.PrimData.State = (byte)0;
10082
10083 // Set type specific parameters
10084 switch (primType)
10085 {
10086 // Set specific parameters for box
10087 case ScriptBaseClass.PRIM_TYPE_BOX:
10088 prim.PrimData.PathScaleY = 1.0f;
10089 prim.PrimData.ProfileCurve = (ProfileCurve)1;
10090 prim.PrimData.PathCurve = (PathCurve)16;
10091 break;
10092 // Set specific parameters for cylinder
10093 case ScriptBaseClass.PRIM_TYPE_CYLINDER:
10094 prim.PrimData.PathScaleY = 1.0f;
10095 prim.PrimData.ProfileCurve = (ProfileCurve)0;
10096 prim.PrimData.PathCurve = (PathCurve)16;
10097 break;
10098 // Set specific parameters for prism
10099 case ScriptBaseClass.PRIM_TYPE_PRISM:
10100 prim.PrimData.PathScaleY = 1.0f;
10101 prim.PrimData.ProfileCurve = (ProfileCurve)3;
10102 prim.PrimData.PathCurve = (PathCurve)16;
10103 break;
10104 // Set specific parameters for sphere
10105 case ScriptBaseClass.PRIM_TYPE_SPHERE:
10106 prim.PrimData.PathScaleY = 1.0f;
10107 prim.PrimData.ProfileCurve = (ProfileCurve)5;
10108 prim.PrimData.PathCurve = (PathCurve)32;
10109 break;
10110 // Set specific parameters for torus
10111 case ScriptBaseClass.PRIM_TYPE_TORUS:
10112 prim.PrimData.PathScaleY = 0.5f;
10113 prim.PrimData.ProfileCurve = (ProfileCurve)0;
10114 prim.PrimData.PathCurve = (PathCurve)32;
10115 break;
10116 // Set specific parameters for tube
10117 case ScriptBaseClass.PRIM_TYPE_TUBE:
10118 prim.PrimData.PathScaleY = 0.5f;
10119 prim.PrimData.ProfileCurve = (ProfileCurve)1;
10120 prim.PrimData.PathCurve = (PathCurve)32;
10121 break;
10122 // Set specific parameters for ring
10123 case ScriptBaseClass.PRIM_TYPE_RING:
10124 prim.PrimData.PathScaleY = 0.5f;
10125 prim.PrimData.ProfileCurve = (ProfileCurve)3;
10126 prim.PrimData.PathCurve = (PathCurve)32;
10127 break;
10128 // Set specific parameters for sculpt
10129 case ScriptBaseClass.PRIM_TYPE_SCULPT:
10130 prim.PrimData.PathScaleY = 1.0f;
10131 prim.PrimData.ProfileCurve = (ProfileCurve)5;
10132 prim.PrimData.PathCurve = (PathCurve)32;
10133 break;
10134 // Default to specific parameters for box
10135 default:
10136 prim.PrimData.PathScaleY = 1.0f;
10137 prim.PrimData.ProfileCurve = (ProfileCurve)1;
10138 prim.PrimData.PathCurve = (PathCurve)16;
10139 break;
10140 }
7973 10141
7974 LSL_List remaining = GetPrimParams(m_host, rules, ref result); 10142 return prim;
10143 }
10144
10145 /// <summary>
10146 /// Implementation of llGetGeometricCenter according to SL 2015-04-30.
10147 /// http://wiki.secondlife.com/wiki/LlGetGeometricCenter
10148 /// Returns the average position offset of all linked parts,
10149 /// including the root prim and seated avatars,
10150 /// relative to the root prim in local coordinates.
10151 /// </summary>
10152 public LSL_Vector llGetGeometricCenter()
10153 {
10154 // Subtract whatever position the root prim has to make it zero
10155 Vector3 offset = m_host.ParentGroup.RootPart.OffsetPosition * -1.0f;
10156
10157 // Add all prim/part position offsets
10158 foreach (SceneObjectPart part in m_host.ParentGroup.Parts)
10159 offset = offset + part.OffsetPosition;
10160 // Add all avatar/scene presence position offsets
10161 foreach (ScenePresence sp in m_host.ParentGroup.GetSittingAvatars())
10162 offset = offset + sp.OffsetPosition;
7975 10163
7976 while (remaining != null && remaining.Length > 2) 10164 // Calculate and return the average offset
10165 offset = offset / (float)(m_host.ParentGroup.PrimCount + m_host.ParentGroup.GetSittingAvatarsCount());
10166 return new LSL_Vector(offset);
10167 }
10168
10169 public LSL_List GetEntityParams(ISceneEntity entity, LSL_List rules)
10170 {
10171 LSL_List result = new LSL_List();
10172 LSL_List remaining;
10173
10174 while (true)
7977 { 10175 {
10176// m_log.DebugFormat(
10177// "[LSL API]: GetEntityParams has {0} rules with scene entity named {1}",
10178// rules.Length, entity != null ? entity.Name : "NULL");
10179
10180 if (entity == null)
10181 return result;
10182
10183 if (entity is SceneObjectPart)
10184 remaining = GetPrimParams((SceneObjectPart)entity, rules, ref result);
10185 else
10186 remaining = GetAgentParams((ScenePresence)entity, rules, ref result);
10187
10188 if (remaining == null || remaining.Length < 2)
10189 return result;
10190
7978 int linknumber = remaining.GetLSLIntegerItem(0); 10191 int linknumber = remaining.GetLSLIntegerItem(0);
7979 rules = remaining.GetSublist(1, -1); 10192 rules = remaining.GetSublist(1, -1);
7980 List<SceneObjectPart> parts = GetLinkParts(linknumber); 10193 entity = GetLinkEntity(m_host, linknumber);
7981
7982 foreach (SceneObjectPart part in parts)
7983 remaining = GetPrimParams(part, rules, ref result);
7984 } 10194 }
10195 }
7985 10196
7986 return result; 10197 public LSL_List llGetPrimitiveParams(LSL_List rules)
10198 {
10199 m_host.AddScriptLPS(1);
10200
10201 return GetEntityParams(m_host, rules);
7987 } 10202 }
7988 10203
7989 public LSL_List llGetLinkPrimitiveParams(int linknumber, LSL_List rules) 10204 public LSL_List llGetLinkPrimitiveParams(int linknumber, LSL_List rules)
7990 { 10205 {
7991 m_host.AddScriptLPS(1); 10206 m_host.AddScriptLPS(1);
7992 10207
7993 List<SceneObjectPart> parts = GetLinkParts(linknumber); 10208 return GetEntityParams(GetLinkEntity(m_host, linknumber), rules);
10209 }
7994 10210
7995 LSL_List res = new LSL_List(); 10211 public LSL_Vector GetAgentSize(ScenePresence sp)
7996 LSL_List remaining = null; 10212 {
10213 return new LSL_Vector(0.45, 0.6, sp.Appearance.AvatarHeight);
10214 }
7997 10215
7998 foreach (SceneObjectPart part in parts) 10216 /// <summary>
10217 /// Gets params for a seated avatar in a linkset.
10218 /// </summary>
10219 /// <returns></returns>
10220 /// <param name='sp'></param>
10221 /// <param name='rules'></param>
10222 /// <param name='res'></param>
10223 public LSL_List GetAgentParams(ScenePresence sp, LSL_List rules, ref LSL_List res)
10224 {
10225 int idx = 0;
10226 while (idx < rules.Length)
7999 { 10227 {
8000 remaining = GetPrimParams(part, rules, ref res); 10228 int code = (int)rules.GetLSLIntegerItem(idx++);
8001 } 10229 int remain = rules.Length-idx;
8002 10230
8003 while (remaining != null && remaining.Length > 2) 10231 switch (code)
8004 { 10232 {
8005 linknumber = remaining.GetLSLIntegerItem(0); 10233 case (int)ScriptBaseClass.PRIM_MATERIAL:
8006 rules = remaining.GetSublist(1, -1); 10234 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_MATERIAL_FLESH));
8007 parts = GetLinkParts(linknumber); 10235 break;
8008 10236
8009 foreach (SceneObjectPart part in parts) 10237 case (int)ScriptBaseClass.PRIM_PHYSICS:
8010 remaining = GetPrimParams(part, rules, ref res); 10238 res.Add(ScriptBaseClass.FALSE);
10239 break;
10240
10241 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ:
10242 res.Add(ScriptBaseClass.FALSE);
10243 break;
10244
10245 case (int)ScriptBaseClass.PRIM_PHANTOM:
10246 res.Add(ScriptBaseClass.FALSE);
10247 break;
10248
10249 case (int)ScriptBaseClass.PRIM_POSITION:
10250 res.Add(new LSL_Vector(sp.AbsolutePosition));
10251 break;
10252
10253 case (int)ScriptBaseClass.PRIM_SIZE:
10254 res.Add(GetAgentSize(sp));
10255 break;
10256
10257 case (int)ScriptBaseClass.PRIM_ROTATION:
10258 res.Add(sp.GetWorldRotation());
10259 break;
10260
10261 case (int)ScriptBaseClass.PRIM_TYPE:
10262 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TYPE_BOX));
10263 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_HOLE_DEFAULT));
10264 res.Add(new LSL_Vector(0, 1, 0));
10265 res.Add(new LSL_Float(0));
10266 res.Add(new LSL_Vector(0, 0, 0));
10267 res.Add(new LSL_Vector(1, 1, 0));
10268 res.Add(new LSL_Vector(0, 0, 0));
10269 break;
10270
10271 case (int)ScriptBaseClass.PRIM_TEXTURE:
10272 if (remain < 1)
10273 return new LSL_List();
10274
10275 int face = (int)rules.GetLSLIntegerItem(idx++);
10276 if (face > 21)
10277 break;
10278
10279 res.Add(new LSL_String(""));
10280 res.Add(ScriptBaseClass.ZERO_VECTOR);
10281 res.Add(ScriptBaseClass.ZERO_VECTOR);
10282 res.Add(new LSL_Float(0));
10283 break;
10284
10285 case (int)ScriptBaseClass.PRIM_COLOR:
10286 if (remain < 1)
10287 return new LSL_List();
10288
10289 face = (int)rules.GetLSLIntegerItem(idx++);
10290 if (face > 21)
10291 break;
10292
10293 res.Add(ScriptBaseClass.ZERO_VECTOR);
10294 res.Add(new LSL_Float(0));
10295 break;
10296
10297 case (int)ScriptBaseClass.PRIM_BUMP_SHINY:
10298 if (remain < 1)
10299 return new LSL_List();
10300
10301 face = (int)rules.GetLSLIntegerItem(idx++);
10302 if (face > 21)
10303 break;
10304
10305 res.Add(ScriptBaseClass.PRIM_SHINY_NONE);
10306 res.Add(ScriptBaseClass.PRIM_BUMP_NONE);
10307 break;
10308
10309 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
10310 if (remain < 1)
10311 return new LSL_List();
10312
10313 face = (int)rules.GetLSLIntegerItem(idx++);
10314 if (face > 21)
10315 break;
10316
10317 res.Add(ScriptBaseClass.FALSE);
10318 break;
10319
10320 case (int)ScriptBaseClass.PRIM_FLEXIBLE:
10321 res.Add(ScriptBaseClass.FALSE);
10322 res.Add(new LSL_Integer(0));
10323 res.Add(new LSL_Float(0));
10324 res.Add(new LSL_Float(0));
10325 res.Add(new LSL_Float(0));
10326 res.Add(new LSL_Float(0));
10327 res.Add(ScriptBaseClass.ZERO_VECTOR);
10328 break;
10329
10330 case (int)ScriptBaseClass.PRIM_TEXGEN:
10331 if (remain < 1)
10332 return new LSL_List();
10333
10334 face = (int)rules.GetLSLIntegerItem(idx++);
10335 if (face > 21)
10336 break;
10337
10338 res.Add(ScriptBaseClass.PRIM_TEXGEN_DEFAULT);
10339 break;
10340
10341 case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
10342 res.Add(ScriptBaseClass.FALSE);
10343 res.Add(ScriptBaseClass.ZERO_VECTOR);
10344 res.Add(ScriptBaseClass.ZERO_VECTOR);
10345 break;
10346
10347 case (int)ScriptBaseClass.PRIM_GLOW:
10348 if (remain < 1)
10349 return new LSL_List();
10350
10351 face = (int)rules.GetLSLIntegerItem(idx++);
10352 if (face > 21)
10353 break;
10354
10355 res.Add(new LSL_Float(0));
10356 break;
10357
10358 case (int)ScriptBaseClass.PRIM_TEXT:
10359 res.Add(new LSL_String(""));
10360 res.Add(ScriptBaseClass.ZERO_VECTOR);
10361 res.Add(new LSL_Float(1));
10362 break;
10363
10364 case (int)ScriptBaseClass.PRIM_ROT_LOCAL:
10365 res.Add(new LSL_Rotation(sp.Rotation));
10366 break;
10367
10368 case (int)ScriptBaseClass.PRIM_POS_LOCAL:
10369 res.Add(new LSL_Vector(sp.OffsetPosition));
10370 break;
10371
10372 case (int)ScriptBaseClass.PRIM_SLICE:
10373 res.Add(new LSL_Vector(0, 1, 0));
10374 break;
10375
10376 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
10377 if(remain < 3)
10378 return new LSL_List();
10379
10380 return rules.GetSublist(idx, -1);
10381 }
8011 } 10382 }
8012 10383
8013 return res; 10384 return new LSL_List();
8014 } 10385 }
8015 10386
8016 public LSL_List GetPrimParams(SceneObjectPart part, LSL_List rules, ref LSL_List res) 10387 public LSL_List GetPrimParams(SceneObjectPart part, LSL_List rules, ref LSL_List res)
8017 { 10388 {
8018 int idx=0; 10389 int idx = 0;
8019 while (idx < rules.Length) 10390 while (idx < rules.Length)
8020 { 10391 {
8021 int code=(int)rules.GetLSLIntegerItem(idx++); 10392 int code = (int)rules.GetLSLIntegerItem(idx++);
8022 int remain=rules.Length-idx; 10393 int remain = rules.Length - idx;
8023 10394
8024 switch (code) 10395 switch (code)
8025 { 10396 {
@@ -8049,29 +10420,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8049 break; 10420 break;
8050 10421
8051 case (int)ScriptBaseClass.PRIM_POSITION: 10422 case (int)ScriptBaseClass.PRIM_POSITION:
8052 LSL_Vector v = new LSL_Vector(part.AbsolutePosition.X, 10423 LSL_Vector v = new LSL_Vector(part.AbsolutePosition);
8053 part.AbsolutePosition.Y, 10424
8054 part.AbsolutePosition.Z);
8055 // For some reason, the part.AbsolutePosition.* values do not change if the 10425 // For some reason, the part.AbsolutePosition.* values do not change if the
8056 // linkset is rotated; they always reflect the child prim's world position 10426 // linkset is rotated; they always reflect the child prim's world position
8057 // as though the linkset is unrotated. This is incompatible behavior with SL's 10427 // as though the linkset is unrotated. This is incompatible behavior with SL's
8058 // implementation, so will break scripts imported from there (not to mention it 10428 // implementation, so will break scripts imported from there (not to mention it
8059 // makes it more difficult to determine a child prim's actual inworld position). 10429 // makes it more difficult to determine a child prim's actual inworld position).
8060 if (part.ParentID != 0) 10430 if (!part.IsRoot)
8061 v = ((v - llGetRootPosition()) * llGetRootRotation()) + llGetRootPosition(); 10431 {
10432 LSL_Vector rootPos = new LSL_Vector(m_host.ParentGroup.AbsolutePosition);
10433 v = ((v - rootPos) * llGetRootRotation()) + rootPos;
10434 }
10435
8062 res.Add(v); 10436 res.Add(v);
8063 break; 10437 break;
8064 10438
8065 case (int)ScriptBaseClass.PRIM_SIZE: 10439 case (int)ScriptBaseClass.PRIM_SIZE:
8066 res.Add(new LSL_Vector(part.Scale.X, 10440 res.Add(new LSL_Vector(part.Scale));
8067 part.Scale.Y,
8068 part.Scale.Z));
8069 break; 10441 break;
8070 10442
8071 case (int)ScriptBaseClass.PRIM_ROTATION: 10443 case (int)ScriptBaseClass.PRIM_ROTATION:
8072 res.Add(GetPartRot(part)); 10444 res.Add(GetPartRot(part));
8073 break; 10445 break;
8074 10446
10447 case (int)ScriptBaseClass.PRIM_PHYSICS_SHAPE_TYPE:
10448 res.Add(new LSL_Integer((int)part.PhysicsShapeType));
10449 break;
10450
8075 case (int)ScriptBaseClass.PRIM_TYPE: 10451 case (int)ScriptBaseClass.PRIM_TYPE:
8076 // implementing box 10452 // implementing box
8077 PrimitiveBaseShape Shape = part.Shape; 10453 PrimitiveBaseShape Shape = part.Shape;
@@ -8101,7 +10477,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8101 break; 10477 break;
8102 10478
8103 case ScriptBaseClass.PRIM_TYPE_SCULPT: 10479 case ScriptBaseClass.PRIM_TYPE_SCULPT:
8104 res.Add(Shape.SculptTexture.ToString()); 10480 res.Add(new LSL_String(Shape.SculptTexture.ToString()));
8105 res.Add(new LSL_Integer(Shape.SculptType)); 10481 res.Add(new LSL_Integer(Shape.SculptType));
8106 break; 10482 break;
8107 10483
@@ -8133,16 +10509,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8133 res.Add(new LSL_Vector(Shape.PathTaperX / 100.0, Shape.PathTaperY / 100.0, 0)); 10509 res.Add(new LSL_Vector(Shape.PathTaperX / 100.0, Shape.PathTaperY / 100.0, 0));
8134 10510
8135 // float revolutions 10511 // float revolutions
8136 res.Add(new LSL_Float(Math.Round(Shape.PathRevolutions * 0.015d, 2, MidpointRounding.AwayFromZero)) + 1.0d); 10512 res.Add(new LSL_Float(Math.Round(Shape.PathRevolutions * 0.015d, 2, MidpointRounding.AwayFromZero)) + 1.0d);
8137 // Slightly inaccurate, because an unsigned byte is being used to represent 10513 // Slightly inaccurate, because an unsigned byte is being used to represent
8138 // the entire range of floating-point values from 1.0 through 4.0 (which is how 10514 // the entire range of floating-point values from 1.0 through 4.0 (which is how
8139 // SL does it). 10515 // SL does it).
8140 // 10516 //
8141 // Using these formulas to store and retrieve PathRevolutions, it is not 10517 // Using these formulas to store and retrieve PathRevolutions, it is not
8142 // possible to use all values between 1.00 and 4.00. For instance, you can't 10518 // possible to use all values between 1.00 and 4.00. For instance, you can't
8143 // represent 1.10. You can represent 1.09 and 1.11, but not 1.10. So, if you 10519 // represent 1.10. You can represent 1.09 and 1.11, but not 1.10. So, if you
8144 // use llSetPrimitiveParams to set revolutions to 1.10 and then retreive them 10520 // use llSetPrimitiveParams to set revolutions to 1.10 and then retreive them
8145 // with llGetPrimitiveParams, you'll retrieve 1.09. You can also see a similar 10521 // with llGetPrimitiveParams, you'll retrieve 1.09. You can also see a similar
8146 // behavior in the viewer as you cannot set 1.10. The viewer jumps to 1.11. 10522 // behavior in the viewer as you cannot set 1.10. The viewer jumps to 1.11.
8147 // In SL, llSetPrimitveParams and llGetPrimitiveParams can set and get a value 10523 // In SL, llSetPrimitveParams and llGetPrimitiveParams can set and get a value
8148 // such as 1.10. So, SL must store and retreive the actual user input rather 10524 // such as 1.10. So, SL must store and retreive the actual user input rather
@@ -8159,7 +10535,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8159 10535
8160 case (int)ScriptBaseClass.PRIM_TEXTURE: 10536 case (int)ScriptBaseClass.PRIM_TEXTURE:
8161 if (remain < 1) 10537 if (remain < 1)
8162 return null; 10538 return new LSL_List();
8163 10539
8164 int face = (int)rules.GetLSLIntegerItem(idx++); 10540 int face = (int)rules.GetLSLIntegerItem(idx++);
8165 Primitive.TextureEntry tex = part.Shape.Textures; 10541 Primitive.TextureEntry tex = part.Shape.Textures;
@@ -8199,7 +10575,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8199 10575
8200 case (int)ScriptBaseClass.PRIM_COLOR: 10576 case (int)ScriptBaseClass.PRIM_COLOR:
8201 if (remain < 1) 10577 if (remain < 1)
8202 return null; 10578 return new LSL_List();
8203 10579
8204 face=(int)rules.GetLSLIntegerItem(idx++); 10580 face=(int)rules.GetLSLIntegerItem(idx++);
8205 10581
@@ -8228,7 +10604,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8228 10604
8229 case (int)ScriptBaseClass.PRIM_BUMP_SHINY: 10605 case (int)ScriptBaseClass.PRIM_BUMP_SHINY:
8230 if (remain < 1) 10606 if (remain < 1)
8231 return null; 10607 return new LSL_List();
8232 10608
8233 face=(int)rules.GetLSLIntegerItem(idx++); 10609 face=(int)rules.GetLSLIntegerItem(idx++);
8234 10610
@@ -8259,9 +10635,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8259 10635
8260 case (int)ScriptBaseClass.PRIM_FULLBRIGHT: 10636 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
8261 if (remain < 1) 10637 if (remain < 1)
8262 return null; 10638 return new LSL_List();
8263 10639
8264 face=(int)rules.GetLSLIntegerItem(idx++); 10640 face = (int)rules.GetLSLIntegerItem(idx++);
8265 10641
8266 tex = part.Shape.Textures; 10642 tex = part.Shape.Textures;
8267 if (face == ScriptBaseClass.ALL_SIDES) 10643 if (face == ScriptBaseClass.ALL_SIDES)
@@ -8301,7 +10677,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8301 10677
8302 case (int)ScriptBaseClass.PRIM_TEXGEN: 10678 case (int)ScriptBaseClass.PRIM_TEXGEN:
8303 if (remain < 1) 10679 if (remain < 1)
8304 return null; 10680 return new LSL_List();
8305 10681
8306 face=(int)rules.GetLSLIntegerItem(idx++); 10682 face=(int)rules.GetLSLIntegerItem(idx++);
8307 10683
@@ -8342,7 +10718,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8342 10718
8343 case (int)ScriptBaseClass.PRIM_GLOW: 10719 case (int)ScriptBaseClass.PRIM_GLOW:
8344 if (remain < 1) 10720 if (remain < 1)
8345 return null; 10721 return new LSL_List();
8346 10722
8347 face=(int)rules.GetLSLIntegerItem(idx++); 10723 face=(int)rules.GetLSLIntegerItem(idx++);
8348 10724
@@ -8371,7 +10747,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8371 res.Add(new LSL_Vector(textColor.R, 10747 res.Add(new LSL_Vector(textColor.R,
8372 textColor.G, 10748 textColor.G,
8373 textColor.B)); 10749 textColor.B));
8374 res.Add(new LSL_Float(textColor.A)); 10750 res.Add(new LSL_Float(1.0 - textColor.A));
8375 break; 10751 break;
8376 case (int)ScriptBaseClass.PRIM_NAME: 10752 case (int)ScriptBaseClass.PRIM_NAME:
8377 res.Add(new LSL_String(part.Name)); 10753 res.Add(new LSL_String(part.Name));
@@ -8380,7 +10756,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8380 res.Add(new LSL_String(part.Description)); 10756 res.Add(new LSL_String(part.Description));
8381 break; 10757 break;
8382 case (int)ScriptBaseClass.PRIM_ROT_LOCAL: 10758 case (int)ScriptBaseClass.PRIM_ROT_LOCAL:
8383 res.Add(new LSL_Rotation(part.RotationOffset.X, part.RotationOffset.Y, part.RotationOffset.Z, part.RotationOffset.W)); 10759 res.Add(new LSL_Rotation(part.RotationOffset));
8384 break; 10760 break;
8385 case (int)ScriptBaseClass.PRIM_POS_LOCAL: 10761 case (int)ScriptBaseClass.PRIM_POS_LOCAL:
8386 res.Add(new LSL_Vector(GetPartLocalPos(part))); 10762 res.Add(new LSL_Vector(GetPartLocalPos(part)));
@@ -8395,27 +10771,29 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8395 )); 10771 ));
8396 break; 10772 break;
8397 case (int)ScriptBaseClass.PRIM_LINK_TARGET: 10773 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
8398 if(remain < 3) 10774
8399 return null; 10775 // TODO: Should be issuing a runtime script warning in this case.
10776 if (remain < 2)
10777 return new LSL_List();
8400 10778
8401 return rules.GetSublist(idx, -1); 10779 return rules.GetSublist(idx, -1);
8402 } 10780 }
8403 } 10781 }
8404 10782
8405 return null; 10783 return new LSL_List();
8406 } 10784 }
8407 10785
8408 public LSL_List llGetPrimMediaParams(int face, LSL_List rules) 10786 public LSL_List llGetPrimMediaParams(int face, LSL_List rules)
8409 { 10787 {
8410 m_host.AddScriptLPS(1); 10788 m_host.AddScriptLPS(1);
8411 ScriptSleep(1000); 10789 ScriptSleep(m_sleepMsOnGetPrimMediaParams);
8412 return GetPrimMediaParams(m_host, face, rules); 10790 return GetPrimMediaParams(m_host, face, rules);
8413 } 10791 }
8414 10792
8415 public LSL_List llGetLinkMedia(LSL_Integer link, LSL_Integer face, LSL_List rules) 10793 public LSL_List llGetLinkMedia(LSL_Integer link, LSL_Integer face, LSL_List rules)
8416 { 10794 {
8417 m_host.AddScriptLPS(1); 10795 m_host.AddScriptLPS(1);
8418 ScriptSleep(1000); 10796 ScriptSleep(m_sleepMsOnGetLinkMedia);
8419 if (link == ScriptBaseClass.LINK_ROOT) 10797 if (link == ScriptBaseClass.LINK_ROOT)
8420 return GetPrimMediaParams(m_host.ParentGroup.RootPart, face, rules); 10798 return GetPrimMediaParams(m_host.ParentGroup.RootPart, face, rules);
8421 else if (link == ScriptBaseClass.LINK_THIS) 10799 else if (link == ScriptBaseClass.LINK_THIS)
@@ -8535,14 +10913,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8535 public LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules) 10913 public LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules)
8536 { 10914 {
8537 m_host.AddScriptLPS(1); 10915 m_host.AddScriptLPS(1);
8538 ScriptSleep(1000); 10916 ScriptSleep(m_sleepMsOnSetPrimMediaParams);
8539 return SetPrimMediaParams(m_host, face, rules); 10917 return SetPrimMediaParams(m_host, face, rules);
8540 } 10918 }
8541 10919
8542 public LSL_Integer llSetLinkMedia(LSL_Integer link, LSL_Integer face, LSL_List rules) 10920 public LSL_Integer llSetLinkMedia(LSL_Integer link, LSL_Integer face, LSL_List rules)
8543 { 10921 {
8544 m_host.AddScriptLPS(1); 10922 m_host.AddScriptLPS(1);
8545 ScriptSleep(1000); 10923 ScriptSleep(m_sleepMsOnSetLinkMedia);
8546 if (link == ScriptBaseClass.LINK_ROOT) 10924 if (link == ScriptBaseClass.LINK_ROOT)
8547 return SetPrimMediaParams(m_host.ParentGroup.RootPart, face, rules); 10925 return SetPrimMediaParams(m_host.ParentGroup.RootPart, face, rules);
8548 else if (link == ScriptBaseClass.LINK_THIS) 10926 else if (link == ScriptBaseClass.LINK_THIS)
@@ -8661,14 +11039,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8661 public LSL_Integer llClearPrimMedia(LSL_Integer face) 11039 public LSL_Integer llClearPrimMedia(LSL_Integer face)
8662 { 11040 {
8663 m_host.AddScriptLPS(1); 11041 m_host.AddScriptLPS(1);
8664 ScriptSleep(1000); 11042 ScriptSleep(m_sleepMsOnClearPrimMedia);
8665 return ClearPrimMedia(m_host, face); 11043 return ClearPrimMedia(m_host, face);
8666 } 11044 }
8667 11045
8668 public LSL_Integer llClearLinkMedia(LSL_Integer link, LSL_Integer face) 11046 public LSL_Integer llClearLinkMedia(LSL_Integer link, LSL_Integer face)
8669 { 11047 {
8670 m_host.AddScriptLPS(1); 11048 m_host.AddScriptLPS(1);
8671 ScriptSleep(1000); 11049 ScriptSleep(m_sleepMsOnClearLinkMedia);
8672 if (link == ScriptBaseClass.LINK_ROOT) 11050 if (link == ScriptBaseClass.LINK_ROOT)
8673 return ClearPrimMedia(m_host.ParentGroup.RootPart, face); 11051 return ClearPrimMedia(m_host.ParentGroup.RootPart, face);
8674 else if (link == ScriptBaseClass.LINK_THIS) 11052 else if (link == ScriptBaseClass.LINK_THIS)
@@ -9307,7 +11685,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9307 11685
9308 if (item == null) 11686 if (item == null)
9309 { 11687 {
9310 llSay(0, "No item name '" + item + "'"); 11688 Error("llGetInventoryCreator", "Can't find item '" + item + "'");
9311 11689
9312 return String.Empty; 11690 return String.Empty;
9313 } 11691 }
@@ -9355,7 +11733,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9355 case ScriptBaseClass.DATA_SIM_POS: 11733 case ScriptBaseClass.DATA_SIM_POS:
9356 if (info == null) 11734 if (info == null)
9357 { 11735 {
9358 ScriptSleep(1000); 11736 ScriptSleep(m_sleepMsOnRequestSimulatorData);
9359 return UUID.Zero.ToString(); 11737 return UUID.Zero.ToString();
9360 } 11738 }
9361 11739
@@ -9402,7 +11780,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9402 case ScriptBaseClass.DATA_SIM_RATING: 11780 case ScriptBaseClass.DATA_SIM_RATING:
9403 if (info == null) 11781 if (info == null)
9404 { 11782 {
9405 ScriptSleep(1000); 11783 ScriptSleep(m_sleepMsOnRequestSimulatorData);
9406 return UUID.Zero.ToString(); 11784 return UUID.Zero.ToString();
9407 } 11785 }
9408 int access = info.Maturity; 11786 int access = info.Maturity;
@@ -9421,7 +11799,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9421 reply = "OpenSim"; 11799 reply = "OpenSim";
9422 break; 11800 break;
9423 default: 11801 default:
9424 ScriptSleep(1000); 11802 ScriptSleep(m_sleepMsOnRequestSimulatorData);
9425 return UUID.Zero.ToString(); // Raise no event 11803 return UUID.Zero.ToString(); // Raise no event
9426 } 11804 }
9427 UUID rq = UUID.Random(); 11805 UUID rq = UUID.Random();
@@ -9432,7 +11810,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9432 AsyncCommands. 11810 AsyncCommands.
9433 DataserverPlugin.DataserverReply(rq.ToString(), reply); 11811 DataserverPlugin.DataserverReply(rq.ToString(), reply);
9434 11812
9435 ScriptSleep(1000); 11813 ScriptSleep(m_sleepMsOnRequestSimulatorData);
9436 return tid.ToString(); 11814 return tid.ToString();
9437 } 11815 }
9438 catch(Exception) 11816 catch(Exception)
@@ -9441,6 +11819,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9441 return UUID.Zero.ToString(); 11819 return UUID.Zero.ToString();
9442 } 11820 }
9443 } 11821 }
11822
9444 public LSL_String llRequestURL() 11823 public LSL_String llRequestURL()
9445 { 11824 {
9446 m_host.AddScriptLPS(1); 11825 m_host.AddScriptLPS(1);
@@ -9499,7 +11878,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9499 11878
9500 public LSL_List llListReplaceList(LSL_List dest, LSL_List src, int start, int end) 11879 public LSL_List llListReplaceList(LSL_List dest, LSL_List src, int start, int end)
9501 { 11880 {
9502 LSL_List pref = null; 11881 LSL_List pref;
9503 11882
9504 m_host.AddScriptLPS(1); 11883 m_host.AddScriptLPS(1);
9505 11884
@@ -9576,7 +11955,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9576 dm.SendUrlToUser( 11955 dm.SendUrlToUser(
9577 new UUID(avatar_id), m_host.Name, m_host.UUID, m_host.OwnerID, false, message, url); 11956 new UUID(avatar_id), m_host.Name, m_host.UUID, m_host.OwnerID, false, message, url);
9578 11957
9579 ScriptSleep(10000); 11958 ScriptSleep(m_sleepMsOnLoadURL);
9580 } 11959 }
9581 11960
9582 public void llParcelMediaCommandList(LSL_List commandList) 11961 public void llParcelMediaCommandList(LSL_List commandList)
@@ -9588,7 +11967,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9588 11967
9589 // according to the docs, this command only works if script owner and land owner are the same 11968 // according to the docs, this command only works if script owner and land owner are the same
9590 // lets add estate owners and gods, too, and use the generic permission check. 11969 // lets add estate owners and gods, too, and use the generic permission check.
9591 ILandObject landObject = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 11970 ILandObject landObject = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
9592 if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, landObject, GroupPowers.ChangeMedia)) return; 11971 if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, landObject, GroupPowers.ChangeMedia)) return;
9593 11972
9594 bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)? 11973 bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)?
@@ -9625,7 +12004,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9625 presence = World.GetScenePresence(agentID); 12004 presence = World.GetScenePresence(agentID);
9626 } 12005 }
9627 } 12006 }
9628 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_AGENT must be a key"); 12007 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_AGENT must be a key");
9629 ++i; 12008 ++i;
9630 } 12009 }
9631 break; 12010 break;
@@ -9656,7 +12035,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9656 url = (LSL_String)commandList.Data[i + 1]; 12035 url = (LSL_String)commandList.Data[i + 1];
9657 update = true; 12036 update = true;
9658 } 12037 }
9659 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_URL must be a string."); 12038 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_URL must be a string");
9660 ++i; 12039 ++i;
9661 } 12040 }
9662 break; 12041 break;
@@ -9669,7 +12048,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9669 texture = (LSL_String)commandList.Data[i + 1]; 12048 texture = (LSL_String)commandList.Data[i + 1];
9670 update = true; 12049 update = true;
9671 } 12050 }
9672 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_TEXTURE must be a string or key."); 12051 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_TEXTURE must be a string or a key");
9673 ++i; 12052 ++i;
9674 } 12053 }
9675 break; 12054 break;
@@ -9681,7 +12060,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9681 { 12060 {
9682 time = (float)(LSL_Float)commandList.Data[i + 1]; 12061 time = (float)(LSL_Float)commandList.Data[i + 1];
9683 } 12062 }
9684 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_TIME must be a float."); 12063 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_TIME must be a float");
9685 ++i; 12064 ++i;
9686 } 12065 }
9687 break; 12066 break;
@@ -9695,7 +12074,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9695 update = true; 12074 update = true;
9696 } 12075 }
9697 12076
9698 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_AUTO_ALIGN must be an integer."); 12077 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_AUTO_ALIGN must be an integer");
9699 ++i; 12078 ++i;
9700 } 12079 }
9701 break; 12080 break;
@@ -9708,7 +12087,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9708 mediaType = (LSL_String)commandList.Data[i + 1]; 12087 mediaType = (LSL_String)commandList.Data[i + 1];
9709 update = true; 12088 update = true;
9710 } 12089 }
9711 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_TYPE must be a string."); 12090 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_TYPE must be a string");
9712 ++i; 12091 ++i;
9713 } 12092 }
9714 break; 12093 break;
@@ -9721,7 +12100,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9721 description = (LSL_String)commandList.Data[i + 1]; 12100 description = (LSL_String)commandList.Data[i + 1];
9722 update = true; 12101 update = true;
9723 } 12102 }
9724 else ShoutError("The argument of PARCEL_MEDIA_COMMAND_DESC must be a string."); 12103 else Error("llParcelMediaCommandList", "The argument of PARCEL_MEDIA_COMMAND_DESC must be a string");
9725 ++i; 12104 ++i;
9726 } 12105 }
9727 break; 12106 break;
@@ -9737,15 +12116,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9737 height = (LSL_Integer)commandList.Data[i + 2]; 12116 height = (LSL_Integer)commandList.Data[i + 2];
9738 update = true; 12117 update = true;
9739 } 12118 }
9740 else ShoutError("The second argument of PARCEL_MEDIA_COMMAND_SIZE must be an integer."); 12119 else Error("llParcelMediaCommandList", "The second argument of PARCEL_MEDIA_COMMAND_SIZE must be an integer");
9741 } 12120 }
9742 else ShoutError("The first argument of PARCEL_MEDIA_COMMAND_SIZE must be an integer."); 12121 else Error("llParcelMediaCommandList", "The first argument of PARCEL_MEDIA_COMMAND_SIZE must be an integer");
9743 i += 2; 12122 i += 2;
9744 } 12123 }
9745 break; 12124 break;
9746 12125
9747 default: 12126 default:
9748 NotImplemented("llParcelMediaCommandList parameter not supported yet: " + Enum.Parse(typeof(ParcelMediaCommandEnum), commandList.Data[i].ToString()).ToString()); 12127 NotImplemented("llParcelMediaCommandList", "Parameter not supported yet: " + Enum.Parse(typeof(ParcelMediaCommandEnum), commandList.Data[i].ToString()).ToString());
9749 break; 12128 break;
9750 }//end switch 12129 }//end switch
9751 }//end for 12130 }//end for
@@ -9819,7 +12198,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9819 time); 12198 time);
9820 } 12199 }
9821 } 12200 }
9822 ScriptSleep(2000); 12201 ScriptSleep(m_sleepMsOnParcelMediaCommandList);
9823 } 12202 }
9824 12203
9825 public LSL_List llParcelMediaQuery(LSL_List aList) 12204 public LSL_List llParcelMediaQuery(LSL_List aList)
@@ -9853,13 +12232,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9853 break; 12232 break;
9854 default: 12233 default:
9855 ParcelMediaCommandEnum mediaCommandEnum = ParcelMediaCommandEnum.Url; 12234 ParcelMediaCommandEnum mediaCommandEnum = ParcelMediaCommandEnum.Url;
9856 NotImplemented("llParcelMediaQuery parameter do not supported yet: " + Enum.Parse(mediaCommandEnum.GetType() , aList.Data[i].ToString()).ToString()); 12235 NotImplemented("llParcelMediaQuery", "Parameter not supported yet: " + Enum.Parse(mediaCommandEnum.GetType() , aList.Data[i].ToString()).ToString());
9857 break; 12236 break;
9858 } 12237 }
9859 12238
9860 } 12239 }
9861 } 12240 }
9862 ScriptSleep(2000); 12241 ScriptSleep(m_sleepMsOnParcelMediaQuery);
9863 return list; 12242 return list;
9864 } 12243 }
9865 12244
@@ -9868,7 +12247,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9868 m_host.AddScriptLPS(1); 12247 m_host.AddScriptLPS(1);
9869 Int64 tmp = 0; 12248 Int64 tmp = 0;
9870 Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp); 12249 Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp);
9871 ScriptSleep(1000); 12250 ScriptSleep(m_sleepMsOnModPow);
9872 return Convert.ToInt32(tmp); 12251 return Convert.ToInt32(tmp);
9873 } 12252 }
9874 12253
@@ -9890,7 +12269,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9890 12269
9891 if (quick_pay_buttons.Data.Length < 4) 12270 if (quick_pay_buttons.Data.Length < 4)
9892 { 12271 {
9893 LSLError("List must have at least 4 elements"); 12272 Error("llSetPayPrice", "List must have at least 4 elements");
9894 return; 12273 return;
9895 } 12274 }
9896 m_host.ParentGroup.RootPart.PayPrice[0]=price; 12275 m_host.ParentGroup.RootPart.PayPrice[0]=price;
@@ -9907,21 +12286,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9907 m_host.AddScriptLPS(1); 12286 m_host.AddScriptLPS(1);
9908 12287
9909 if (m_item.PermsGranter == UUID.Zero) 12288 if (m_item.PermsGranter == UUID.Zero)
9910 return new LSL_Vector(); 12289 return Vector3.Zero;
9911 12290
9912 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0) 12291 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0)
9913 { 12292 {
9914 ShoutError("No permissions to track the camera"); 12293 Error("llGetCameraPos", "No permissions to track the camera");
9915 return new LSL_Vector(); 12294 return Vector3.Zero;
9916 } 12295 }
9917 12296
9918 ScenePresence presence = World.GetScenePresence(m_host.OwnerID); 12297 ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
9919 if (presence != null) 12298 if (presence != null)
9920 { 12299 {
9921 LSL_Vector pos = new LSL_Vector(presence.CameraPosition.X, presence.CameraPosition.Y, presence.CameraPosition.Z); 12300 LSL_Vector pos = new LSL_Vector(presence.CameraPosition);
9922 return pos; 12301 return pos;
9923 } 12302 }
9924 return new LSL_Vector(); 12303
12304 return Vector3.Zero;
9925 } 12305 }
9926 12306
9927 public LSL_Rotation llGetCameraRot() 12307 public LSL_Rotation llGetCameraRot()
@@ -9929,42 +12309,35 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9929 m_host.AddScriptLPS(1); 12309 m_host.AddScriptLPS(1);
9930 12310
9931 if (m_item.PermsGranter == UUID.Zero) 12311 if (m_item.PermsGranter == UUID.Zero)
9932 return new LSL_Rotation(); 12312 return Quaternion.Identity;
9933 12313
9934 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0) 12314 if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TRACK_CAMERA) == 0)
9935 { 12315 {
9936 ShoutError("No permissions to track the camera"); 12316 Error("llGetCameraRot", "No permissions to track the camera");
9937 return new LSL_Rotation(); 12317 return Quaternion.Identity;
9938 } 12318 }
9939 12319
9940 ScenePresence presence = World.GetScenePresence(m_host.OwnerID); 12320 ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
9941 if (presence != null) 12321 if (presence != null)
9942 { 12322 {
9943 return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W); 12323 return new LSL_Rotation(presence.CameraRotation);
9944 } 12324 }
9945 12325
9946 return new LSL_Rotation(); 12326 return Quaternion.Identity;
9947 } 12327 }
9948 12328
9949 /// <summary>
9950 /// The SL implementation does nothing, it is deprecated
9951 /// This duplicates SL
9952 /// </summary>
9953 public void llSetPrimURL(string url) 12329 public void llSetPrimURL(string url)
9954 { 12330 {
9955 m_host.AddScriptLPS(1); 12331 m_host.AddScriptLPS(1);
9956 ScriptSleep(2000); 12332 Deprecated("llSetPrimURL", "Use llSetPrimMediaParams instead");
12333 ScriptSleep(m_sleepMsOnSetPrimURL);
9957 } 12334 }
9958 12335
9959 /// <summary>
9960 /// The SL implementation shouts an error, it is deprecated
9961 /// This duplicates SL
9962 /// </summary>
9963 public void llRefreshPrimURL() 12336 public void llRefreshPrimURL()
9964 { 12337 {
9965 m_host.AddScriptLPS(1); 12338 m_host.AddScriptLPS(1);
9966 ShoutError("llRefreshPrimURL - not yet supported"); 12339 Deprecated("llRefreshPrimURL");
9967 ScriptSleep(20000); 12340 ScriptSleep(m_sleepMsOnRefreshPrimURL);
9968 } 12341 }
9969 12342
9970 public LSL_String llEscapeURL(string url) 12343 public LSL_String llEscapeURL(string url)
@@ -10005,14 +12378,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10005 avatar.ControllingClient.SendScriptTeleportRequest(m_host.Name, 12378 avatar.ControllingClient.SendScriptTeleportRequest(m_host.Name,
10006 simname, pos, lookAt); 12379 simname, pos, lookAt);
10007 } 12380 }
10008 ScriptSleep(1000); 12381 ScriptSleep(m_sleepMsOnMapDestination);
10009 } 12382 }
10010 12383
10011 public void llAddToLandBanList(string avatar, double hours) 12384 public void llAddToLandBanList(string avatar, double hours)
10012 { 12385 {
10013 m_host.AddScriptLPS(1); 12386 m_host.AddScriptLPS(1);
10014 UUID key; 12387 UUID key;
10015 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 12388 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
10016 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned)) 12389 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned))
10017 { 12390 {
10018 int expires = 0; 12391 int expires = 0;
@@ -10046,14 +12419,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10046 World.EventManager.TriggerLandObjectUpdated((uint)land.LandData.LocalID, land); 12419 World.EventManager.TriggerLandObjectUpdated((uint)land.LandData.LocalID, land);
10047 } 12420 }
10048 } 12421 }
10049 ScriptSleep(100); 12422 ScriptSleep(m_sleepMsOnAddToLandBanList);
10050 } 12423 }
10051 12424
10052 public void llRemoveFromLandPassList(string avatar) 12425 public void llRemoveFromLandPassList(string avatar)
10053 { 12426 {
10054 m_host.AddScriptLPS(1); 12427 m_host.AddScriptLPS(1);
10055 UUID key; 12428 UUID key;
10056 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 12429 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
10057 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageAllowed)) 12430 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageAllowed))
10058 { 12431 {
10059 if (UUID.TryParse(avatar, out key)) 12432 if (UUID.TryParse(avatar, out key))
@@ -10073,14 +12446,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10073 } 12446 }
10074 } 12447 }
10075 } 12448 }
10076 ScriptSleep(100); 12449 ScriptSleep(m_sleepMsOnRemoveFromLandPassList);
10077 } 12450 }
10078 12451
10079 public void llRemoveFromLandBanList(string avatar) 12452 public void llRemoveFromLandBanList(string avatar)
10080 { 12453 {
10081 m_host.AddScriptLPS(1); 12454 m_host.AddScriptLPS(1);
10082 UUID key; 12455 UUID key;
10083 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 12456 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
10084 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned)) 12457 if (World.Permissions.CanEditParcelProperties(m_host.OwnerID, land, GroupPowers.LandManageBanned))
10085 { 12458 {
10086 if (UUID.TryParse(avatar, out key)) 12459 if (UUID.TryParse(avatar, out key))
@@ -10100,7 +12473,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10100 } 12473 }
10101 } 12474 }
10102 } 12475 }
10103 ScriptSleep(100); 12476 ScriptSleep(m_sleepMsOnRemoveFromLandBanList);
10104 } 12477 }
10105 12478
10106 public void llSetCameraParams(LSL_List rules) 12479 public void llSetCameraParams(LSL_List rules)
@@ -10128,19 +12501,84 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10128 12501
10129 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>(); 12502 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>();
10130 object[] data = rules.Data; 12503 object[] data = rules.Data;
10131 for (int i = 0; i < data.Length; ++i) { 12504 for (int i = 0; i < data.Length; ++i)
10132 int type = Convert.ToInt32(data[i++].ToString()); 12505 {
12506 int type;
12507 try
12508 {
12509 type = Convert.ToInt32(data[i++].ToString());
12510 }
12511 catch
12512 {
12513 Error("llSetCameraParams", string.Format("Invalid camera param type {0}", data[i - 1]));
12514 return;
12515 }
10133 if (i >= data.Length) break; // odd number of entries => ignore the last 12516 if (i >= data.Length) break; // odd number of entries => ignore the last
10134 12517
10135 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3) 12518 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3)
10136 switch (type) { 12519 switch (type)
12520 {
10137 case ScriptBaseClass.CAMERA_FOCUS: 12521 case ScriptBaseClass.CAMERA_FOCUS:
10138 case ScriptBaseClass.CAMERA_FOCUS_OFFSET: 12522 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
10139 case ScriptBaseClass.CAMERA_POSITION: 12523 case ScriptBaseClass.CAMERA_POSITION:
10140 LSL_Vector v = (LSL_Vector)data[i]; 12524 LSL_Vector v = (LSL_Vector)data[i];
10141 parameters.Add(type + 1, (float)v.x); 12525 try
10142 parameters.Add(type + 2, (float)v.y); 12526 {
10143 parameters.Add(type + 3, (float)v.z); 12527 parameters.Add(type + 1, (float)v.x);
12528 }
12529 catch
12530 {
12531 switch(type)
12532 {
12533 case ScriptBaseClass.CAMERA_FOCUS:
12534 Error("llSetCameraParams", "CAMERA_FOCUS: Parameter x is invalid");
12535 return;
12536 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
12537 Error("llSetCameraParams", "CAMERA_FOCUS_OFFSET: Parameter x is invalid");
12538 return;
12539 case ScriptBaseClass.CAMERA_POSITION:
12540 Error("llSetCameraParams", "CAMERA_POSITION: Parameter x is invalid");
12541 return;
12542 }
12543 }
12544 try
12545 {
12546 parameters.Add(type + 2, (float)v.y);
12547 }
12548 catch
12549 {
12550 switch(type)
12551 {
12552 case ScriptBaseClass.CAMERA_FOCUS:
12553 Error("llSetCameraParams", "CAMERA_FOCUS: Parameter y is invalid");
12554 return;
12555 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
12556 Error("llSetCameraParams", "CAMERA_FOCUS_OFFSET: Parameter y is invalid");
12557 return;
12558 case ScriptBaseClass.CAMERA_POSITION:
12559 Error("llSetCameraParams", "CAMERA_POSITION: Parameter y is invalid");
12560 return;
12561 }
12562 }
12563 try
12564 {
12565 parameters.Add(type + 3, (float)v.z);
12566 }
12567 catch
12568 {
12569 switch(type)
12570 {
12571 case ScriptBaseClass.CAMERA_FOCUS:
12572 Error("llSetCameraParams", "CAMERA_FOCUS: Parameter z is invalid");
12573 return;
12574 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
12575 Error("llSetCameraParams", "CAMERA_FOCUS_OFFSET: Parameter z is invalid");
12576 return;
12577 case ScriptBaseClass.CAMERA_POSITION:
12578 Error("llSetCameraParams", "CAMERA_POSITION: Parameter z is invalid");
12579 return;
12580 }
12581 }
10144 break; 12582 break;
10145 default: 12583 default:
10146 // TODO: clean that up as soon as the implicit casts are in 12584 // TODO: clean that up as soon as the implicit casts are in
@@ -10148,7 +12586,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10148 parameters.Add(type, (float)((LSL_Float)data[i]).value); 12586 parameters.Add(type, (float)((LSL_Float)data[i]).value);
10149 else if (data[i] is LSL_Integer) 12587 else if (data[i] is LSL_Integer)
10150 parameters.Add(type, (float)((LSL_Integer)data[i]).value); 12588 parameters.Add(type, (float)((LSL_Integer)data[i]).value);
10151 else parameters.Add(type, Convert.ToSingle(data[i])); 12589 else
12590 {
12591 try
12592 {
12593 parameters.Add(type, Convert.ToSingle(data[i]));
12594 }
12595 catch
12596 {
12597 Error("llSetCameraParams", string.Format("{0}: Parameter is invalid", type));
12598 }
12599 }
10152 break; 12600 break;
10153 } 12601 }
10154 } 12602 }
@@ -10264,9 +12712,60 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10264 IHttpRequestModule httpScriptMod = 12712 IHttpRequestModule httpScriptMod =
10265 m_ScriptEngine.World.RequestModuleInterface<IHttpRequestModule>(); 12713 m_ScriptEngine.World.RequestModuleInterface<IHttpRequestModule>();
10266 List<string> param = new List<string>(); 12714 List<string> param = new List<string>();
10267 foreach (object o in parameters.Data) 12715 bool ok;
12716 Int32 flag;
12717
12718 for (int i = 0; i < parameters.Data.Length; i += 2)
10268 { 12719 {
10269 param.Add(o.ToString()); 12720 ok = Int32.TryParse(parameters.Data[i].ToString(), out flag);
12721 if (!ok || flag < 0 ||
12722 flag > (int)HttpRequestConstants.HTTP_PRAGMA_NO_CACHE)
12723 {
12724 Error("llHTTPRequest", "Parameter " + i.ToString() + " is an invalid flag");
12725 }
12726
12727 param.Add(parameters.Data[i].ToString()); //Add parameter flag
12728
12729 if (flag != (int)HttpRequestConstants.HTTP_CUSTOM_HEADER)
12730 {
12731 param.Add(parameters.Data[i+1].ToString()); //Add parameter value
12732 }
12733 else
12734 {
12735 //Parameters are in pairs and custom header takes
12736 //arguments in pairs so adjust for header marker.
12737 ++i;
12738
12739 //Maximum of 8 headers are allowed based on the
12740 //Second Life documentation for llHTTPRequest.
12741 for (int count = 1; count <= 8; ++count)
12742 {
12743 //Enough parameters remaining for (another) header?
12744 if (parameters.Data.Length - i < 2)
12745 {
12746 //There must be at least one name/value pair for custom header
12747 if (count == 1)
12748 Error("llHTTPRequest", "Missing name/value for custom header at parameter " + i.ToString());
12749 break;
12750 }
12751
12752 if (HttpStandardHeaders.Contains(parameters.Data[i].ToString(), StringComparer.OrdinalIgnoreCase))
12753 Error("llHTTPRequest", "Name is invalid as a custom header at parameter " + i.ToString());
12754
12755 param.Add(parameters.Data[i].ToString());
12756 param.Add(parameters.Data[i+1].ToString());
12757
12758 //Have we reached the end of the list of headers?
12759 //End is marked by a string with a single digit.
12760 if (i+2 >= parameters.Data.Length ||
12761 Char.IsDigit(parameters.Data[i].ToString()[0]))
12762 {
12763 break;
12764 }
12765
12766 i += 2;
12767 }
12768 }
10270 } 12769 }
10271 12770
10272 Vector3 position = m_host.AbsolutePosition; 12771 Vector3 position = m_host.AbsolutePosition;
@@ -10318,8 +12817,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10318 } 12817 }
10319 } 12818 }
10320 12819
12820 HttpInitialRequestStatus status;
10321 UUID reqID 12821 UUID reqID
10322 = httpScriptMod.StartHttpRequest(m_host.LocalId, m_item.ItemID, url, param, httpHeaders, body); 12822 = httpScriptMod.StartHttpRequest(m_host.LocalId, m_item.ItemID, url, param, httpHeaders, body, out status);
12823
12824 if (status == HttpInitialRequestStatus.DISALLOWED_BY_FILTER)
12825 Error("llHttpRequest", string.Format("Request to {0} disallowed by filter", url));
10323 12826
10324 if (reqID != UUID.Zero) 12827 if (reqID != UUID.Zero)
10325 return reqID.ToString(); 12828 return reqID.ToString();
@@ -10342,7 +12845,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10342 public void llResetLandBanList() 12845 public void llResetLandBanList()
10343 { 12846 {
10344 m_host.AddScriptLPS(1); 12847 m_host.AddScriptLPS(1);
10345 LandData land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y).LandData; 12848 LandData land = World.LandChannel.GetLandObject(m_host.AbsolutePosition).LandData;
10346 if (land.OwnerID == m_host.OwnerID) 12849 if (land.OwnerID == m_host.OwnerID)
10347 { 12850 {
10348 foreach (LandAccessEntry entry in land.ParcelAccessList) 12851 foreach (LandAccessEntry entry in land.ParcelAccessList)
@@ -10353,13 +12856,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10353 } 12856 }
10354 } 12857 }
10355 } 12858 }
10356 ScriptSleep(100); 12859 ScriptSleep(m_sleepMsOnResetLandBanList);
10357 } 12860 }
10358 12861
10359 public void llResetLandPassList() 12862 public void llResetLandPassList()
10360 { 12863 {
10361 m_host.AddScriptLPS(1); 12864 m_host.AddScriptLPS(1);
10362 LandData land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y).LandData; 12865 LandData land = World.LandChannel.GetLandObject(m_host.AbsolutePosition).LandData;
10363 if (land.OwnerID == m_host.OwnerID) 12866 if (land.OwnerID == m_host.OwnerID)
10364 { 12867 {
10365 foreach (LandAccessEntry entry in land.ParcelAccessList) 12868 foreach (LandAccessEntry entry in land.ParcelAccessList)
@@ -10370,18 +12873,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10370 } 12873 }
10371 } 12874 }
10372 } 12875 }
10373 ScriptSleep(100); 12876 ScriptSleep(m_sleepMsOnResetLandPassList);
10374 } 12877 }
10375 12878
10376 public LSL_Integer llGetParcelPrimCount(LSL_Vector pos, int category, int sim_wide) 12879 public LSL_Integer llGetParcelPrimCount(LSL_Vector pos, int category, int sim_wide)
10377 { 12880 {
10378 m_host.AddScriptLPS(1); 12881 m_host.AddScriptLPS(1);
10379 12882
10380 ILandObject lo = World.LandChannel.GetLandObject((float)pos.x, (float)pos.y); 12883 ILandObject lo = World.LandChannel.GetLandObject((float)pos.x, (float)pos.y);
10381 12884
10382 if (lo == null) 12885 if (lo == null)
10383 return 0; 12886 return 0;
10384 12887
10385 IPrimCounts pc = lo.PrimCounts; 12888 IPrimCounts pc = lo.PrimCounts;
10386 12889
10387 if (sim_wide != ScriptBaseClass.FALSE) 12890 if (sim_wide != ScriptBaseClass.FALSE)
@@ -10411,7 +12914,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10411 else if (category == ScriptBaseClass.PARCEL_COUNT_TEMP) 12914 else if (category == ScriptBaseClass.PARCEL_COUNT_TEMP)
10412 return 0; // counts not implemented yet 12915 return 0; // counts not implemented yet
10413 } 12916 }
10414 12917
10415 return 0; 12918 return 0;
10416 } 12919 }
10417 12920
@@ -10428,7 +12931,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10428 ret.Add(new LSL_Integer(detectedParams.Value)); 12931 ret.Add(new LSL_Integer(detectedParams.Value));
10429 } 12932 }
10430 } 12933 }
10431 ScriptSleep(2000); 12934 ScriptSleep(m_sleepMsOnGetParcelPrimOwners);
10432 return ret; 12935 return ret;
10433 } 12936 }
10434 12937
@@ -10535,10 +13038,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10535 ret.Add(new LSL_Vector((double)av.AbsolutePosition.X, (double)av.AbsolutePosition.Y, (double)av.AbsolutePosition.Z)); 13038 ret.Add(new LSL_Vector((double)av.AbsolutePosition.X, (double)av.AbsolutePosition.Y, (double)av.AbsolutePosition.Z));
10536 break; 13039 break;
10537 case ScriptBaseClass.OBJECT_ROT: 13040 case ScriptBaseClass.OBJECT_ROT:
10538 ret.Add(new LSL_Rotation((double)av.Rotation.X, (double)av.Rotation.Y, (double)av.Rotation.Z, (double)av.Rotation.W)); 13041 ret.Add(new LSL_Rotation(av.GetWorldRotation()));
10539 break; 13042 break;
10540 case ScriptBaseClass.OBJECT_VELOCITY: 13043 case ScriptBaseClass.OBJECT_VELOCITY:
10541 ret.Add(new LSL_Vector(av.Velocity.X, av.Velocity.Y, av.Velocity.Z)); 13044 ret.Add(new LSL_Vector(av.GetWorldVelocity()));
10542 break; 13045 break;
10543 case ScriptBaseClass.OBJECT_OWNER: 13046 case ScriptBaseClass.OBJECT_OWNER:
10544 ret.Add(new LSL_String(id)); 13047 ret.Add(new LSL_String(id));
@@ -10603,6 +13106,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10603 case ScriptBaseClass.OBJECT_TEMP_ON_REZ: 13106 case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
10604 ret.Add(new LSL_Integer(0)); 13107 ret.Add(new LSL_Integer(0));
10605 break; 13108 break;
13109 case ScriptBaseClass.OBJECT_RENDER_WEIGHT:
13110 ret.Add(new LSL_Integer(-1));
13111 break;
13112 case ScriptBaseClass.OBJECT_HOVER_HEIGHT:
13113 ret.Add(new LSL_Float(0));
13114 break;
13115 case ScriptBaseClass.OBJECT_BODY_SHAPE_TYPE:
13116 LSL_Float shapeType;
13117 if (av.Appearance.VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MALE] != 0)
13118 shapeType = new LSL_Float(1);
13119 else
13120 shapeType = new LSL_Float(0);
13121 ret.Add(shapeType);
13122 break;
13123 case ScriptBaseClass.OBJECT_LAST_OWNER_ID:
13124 ret.Add(new LSL_Key(ScriptBaseClass.NULL_KEY));
13125 break;
10606 default: 13126 default:
10607 // Invalid or unhandled constant. 13127 // Invalid or unhandled constant.
10608 ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL)); 13128 ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
@@ -10630,20 +13150,43 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10630 ret.Add(new LSL_Vector(obj.AbsolutePosition.X, obj.AbsolutePosition.Y, obj.AbsolutePosition.Z)); 13150 ret.Add(new LSL_Vector(obj.AbsolutePosition.X, obj.AbsolutePosition.Y, obj.AbsolutePosition.Z));
10631 break; 13151 break;
10632 case ScriptBaseClass.OBJECT_ROT: 13152 case ScriptBaseClass.OBJECT_ROT:
13153 Quaternion rot = Quaternion.Identity;
13154
13155 if (obj.ParentGroup.IsAttachment)
10633 { 13156 {
10634 Quaternion rot = Quaternion.Identity; 13157 ScenePresence sp = World.GetScenePresence(obj.ParentGroup.AttachedAvatar);
10635 13158
13159 if (sp != null)
13160 rot = sp.GetWorldRotation();
13161 }
13162 else
13163 {
10636 if (obj.ParentGroup.RootPart == obj) 13164 if (obj.ParentGroup.RootPart == obj)
10637 rot = obj.ParentGroup.GroupRotation; 13165 rot = obj.ParentGroup.GroupRotation;
10638 else 13166 else
10639 rot = obj.GetWorldRotation(); 13167 rot = obj.GetWorldRotation();
10640
10641 LSL_Rotation objrot = new LSL_Rotation(rot);
10642 ret.Add(objrot);
10643 } 13168 }
13169
13170 LSL_Rotation objrot = new LSL_Rotation(rot);
13171 ret.Add(objrot);
13172
10644 break; 13173 break;
10645 case ScriptBaseClass.OBJECT_VELOCITY: 13174 case ScriptBaseClass.OBJECT_VELOCITY:
10646 ret.Add(new LSL_Vector(obj.Velocity)); 13175 Vector3 vel = Vector3.Zero;
13176
13177 if (obj.ParentGroup.IsAttachment)
13178 {
13179 ScenePresence sp = World.GetScenePresence(obj.ParentGroup.AttachedAvatar);
13180
13181 if (sp != null)
13182 vel = sp.GetWorldVelocity();
13183 }
13184 else
13185 {
13186 vel = obj.Velocity;
13187 }
13188
13189 ret.Add(vel);
10647 break; 13190 break;
10648 case ScriptBaseClass.OBJECT_OWNER: 13191 case ScriptBaseClass.OBJECT_OWNER:
10649 ret.Add(new LSL_String(obj.OwnerID.ToString())); 13192 ret.Add(new LSL_String(obj.OwnerID.ToString()));
@@ -10744,6 +13287,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10744 case ScriptBaseClass.OBJECT_TEMP_ON_REZ: 13287 case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
10745 ret.Add(new LSL_Integer(obj.ParentGroup.IsTemporary ? 1 : 0)); 13288 ret.Add(new LSL_Integer(obj.ParentGroup.IsTemporary ? 1 : 0));
10746 break; 13289 break;
13290 case ScriptBaseClass.OBJECT_RENDER_WEIGHT:
13291 ret.Add(new LSL_Integer(0));
13292 break;
13293 case ScriptBaseClass.OBJECT_HOVER_HEIGHT:
13294 ret.Add(new LSL_Float(0));
13295 break;
13296 case ScriptBaseClass.OBJECT_BODY_SHAPE_TYPE:
13297 ret.Add(new LSL_Float(-1));
13298 break;
13299 case ScriptBaseClass.OBJECT_LAST_OWNER_ID:
13300 ret.Add(new LSL_Key(obj.ParentGroup.LastOwnerID.ToString()));
13301 break;
10747 default: 13302 default:
10748 // Invalid or unhandled constant. 13303 // Invalid or unhandled constant.
10749 ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL)); 13304 ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
@@ -10754,7 +13309,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10754 return ret; 13309 return ret;
10755 } 13310 }
10756 } 13311 }
10757 13312
10758 return new LSL_List(); 13313 return new LSL_List();
10759 } 13314 }
10760 13315
@@ -10768,25 +13323,71 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10768 return item.ItemID; 13323 return item.ItemID;
10769 } 13324 }
10770 13325
10771 internal void ShoutError(string msg) 13326 /// <summary>
13327 /// Reports the script error in the viewer's Script Warning/Error dialog and shouts it on the debug channel.
13328 /// </summary>
13329 /// <param name="command">The name of the command that generated the error.</param>
13330 /// <param name="message">The error message to report to the user.</param>
13331 internal void Error(string command, string message)
10772 { 13332 {
10773 llShout(ScriptBaseClass.DEBUG_CHANNEL, msg); 13333 string text = command + ": " + message;
13334 if (text.Length > 1023)
13335 {
13336 text = text.Substring(0, 1023);
13337 }
13338
13339 World.SimChat(Utils.StringToBytes(text), ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL,
13340 m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false);
13341
13342 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
13343 if (wComm != null)
13344 {
13345 wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, text);
13346 }
10774 } 13347 }
10775 13348
10776 internal void NotImplemented(string command) 13349 /// <summary>
13350 /// Reports that the command is not implemented as a script error.
13351 /// </summary>
13352 /// <param name="command">The name of the command that is not implemented.</param>
13353 /// <param name="message">Additional information to report to the user. (Optional)</param>
13354 internal void NotImplemented(string command, string message = "")
10777 { 13355 {
10778 if (throwErrorOnNotImplemented) 13356 if (throwErrorOnNotImplemented)
10779 throw new NotImplementedException("Command not implemented: " + command); 13357 {
10780 } 13358 if (message != "")
13359 {
13360 message = " - " + message;
13361 }
10781 13362
10782 internal void Deprecated(string command) 13363 throw new NotImplementedException("Command not implemented: " + command + message);
10783 { 13364 }
10784 throw new ScriptException("Command deprecated: " + command); 13365 else
13366 {
13367 string text = "Command not implemented";
13368 if (message != "")
13369 {
13370 text = text + " - " + message;
13371 }
13372
13373 Error(command, text);
13374 }
10785 } 13375 }
10786 13376
10787 internal void LSLError(string msg) 13377 /// <summary>
13378 /// Reports that the command is deprecated as a script error.
13379 /// </summary>
13380 /// <param name="command">The name of the command that is deprecated.</param>
13381 /// <param name="message">Additional information to report to the user. (Optional)</param>
13382 internal void Deprecated(string command, string message = "")
10788 { 13383 {
10789 throw new ScriptException("LSL Runtime Error: " + msg); 13384 string text = "Command deprecated";
13385 if (message != "")
13386 {
13387 text = text + " - " + message;
13388 }
13389
13390 Error(command, text);
10790 } 13391 }
10791 13392
10792 public delegate void AssetRequestCallback(UUID assetID, AssetBase asset); 13393 public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
@@ -10818,20 +13419,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10818 if (assetID == UUID.Zero) 13419 if (assetID == UUID.Zero)
10819 { 13420 {
10820 // => complain loudly, as specified by the LSL docs 13421 // => complain loudly, as specified by the LSL docs
10821 ShoutError("Notecard '" + name + "' could not be found."); 13422 Error("llGetNumberOfNotecardLines", "Can't find notecard '" + name + "'");
10822 13423
10823 return UUID.Zero.ToString(); 13424 return UUID.Zero.ToString();
10824 } 13425 }
10825 13426
13427 string reqIdentifier = UUID.Random().ToString();
13428
10826 // was: UUID tid = tid = AsyncCommands. 13429 // was: UUID tid = tid = AsyncCommands.
10827 UUID tid = AsyncCommands.DataserverPlugin.RegisterRequest(m_host.LocalId, m_item.ItemID, assetID.ToString()); 13430 UUID tid = AsyncCommands.DataserverPlugin.RegisterRequest(m_host.LocalId, m_item.ItemID, reqIdentifier);
10828 13431
10829 if (NotecardCache.IsCached(assetID)) 13432 if (NotecardCache.IsCached(assetID))
10830 { 13433 {
10831 AsyncCommands. 13434 AsyncCommands.DataserverPlugin.DataserverReply(reqIdentifier, NotecardCache.GetLines(assetID).ToString());
10832 DataserverPlugin.DataserverReply(assetID.ToString(), 13435
10833 NotecardCache.GetLines(assetID).ToString()); 13436 ScriptSleep(m_sleepMsOnGetNumberOfNotecardLines);
10834 ScriptSleep(100);
10835 return tid.ToString(); 13437 return tid.ToString();
10836 } 13438 }
10837 13439
@@ -10839,19 +13441,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10839 { 13441 {
10840 if (a == null || a.Type != 7) 13442 if (a == null || a.Type != 7)
10841 { 13443 {
10842 ShoutError("Notecard '" + name + "' could not be found."); 13444 Error("llGetNumberOfNotecardLines", "Can't find notecard '" + name + "'");
10843 return; 13445 return;
10844 } 13446 }
10845 13447
10846 string data = Encoding.UTF8.GetString(a.Data); 13448 NotecardCache.Cache(id, a.Data);
10847 //m_log.Debug(data); 13449 AsyncCommands.DataserverPlugin.DataserverReply(reqIdentifier, NotecardCache.GetLines(id).ToString());
10848 NotecardCache.Cache(id, data);
10849 AsyncCommands.
10850 DataserverPlugin.DataserverReply(id.ToString(),
10851 NotecardCache.GetLines(id).ToString());
10852 }); 13450 });
10853 13451
10854 ScriptSleep(100); 13452 ScriptSleep(m_sleepMsOnGetNumberOfNotecardLines);
10855 return tid.ToString(); 13453 return tid.ToString();
10856 } 13454 }
10857 13455
@@ -10872,19 +13470,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10872 if (assetID == UUID.Zero) 13470 if (assetID == UUID.Zero)
10873 { 13471 {
10874 // => complain loudly, as specified by the LSL docs 13472 // => complain loudly, as specified by the LSL docs
10875 ShoutError("Notecard '" + name + "' could not be found."); 13473 Error("llGetNotecardLine", "Can't find notecard '" + name + "'");
10876 13474
10877 return UUID.Zero.ToString(); 13475 return UUID.Zero.ToString();
10878 } 13476 }
10879 13477
13478 string reqIdentifier = UUID.Random().ToString();
13479
10880 // was: UUID tid = tid = AsyncCommands. 13480 // was: UUID tid = tid = AsyncCommands.
10881 UUID tid = AsyncCommands.DataserverPlugin.RegisterRequest(m_host.LocalId, m_item.ItemID, assetID.ToString()); 13481 UUID tid = AsyncCommands.DataserverPlugin.RegisterRequest(m_host.LocalId, m_item.ItemID, reqIdentifier);
10882 13482
10883 if (NotecardCache.IsCached(assetID)) 13483 if (NotecardCache.IsCached(assetID))
10884 { 13484 {
10885 AsyncCommands.DataserverPlugin.DataserverReply(assetID.ToString(), 13485 AsyncCommands.DataserverPlugin.DataserverReply(
10886 NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax)); 13486 reqIdentifier, NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax));
10887 ScriptSleep(100); 13487
13488 ScriptSleep(m_sleepMsOnGetNotecardLine);
10888 return tid.ToString(); 13489 return tid.ToString();
10889 } 13490 }
10890 13491
@@ -10892,18 +13493,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10892 { 13493 {
10893 if (a == null || a.Type != 7) 13494 if (a == null || a.Type != 7)
10894 { 13495 {
10895 ShoutError("Notecard '" + name + "' could not be found."); 13496 Error("llGetNotecardLine", "Can't find notecard '" + name + "'");
10896 return; 13497 return;
10897 } 13498 }
10898 13499
10899 string data = Encoding.UTF8.GetString(a.Data); 13500 string data = Encoding.UTF8.GetString(a.Data);
10900 //m_log.Debug(data); 13501 //m_log.Debug(data);
10901 NotecardCache.Cache(id, data); 13502 NotecardCache.Cache(id, a.Data);
10902 AsyncCommands.DataserverPlugin.DataserverReply(id.ToString(), 13503 AsyncCommands.DataserverPlugin.DataserverReply(
10903 NotecardCache.GetLine(id, line, m_notecardLineReadCharsMax)); 13504 reqIdentifier, NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax));
10904 }); 13505 });
10905 13506
10906 ScriptSleep(100); 13507 ScriptSleep(m_sleepMsOnGetNotecardLine);
10907 return tid.ToString(); 13508 return tid.ToString();
10908 } 13509 }
10909 13510
@@ -10916,41 +13517,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10916 if (obj.OwnerID != m_host.OwnerID) 13517 if (obj.OwnerID != m_host.OwnerID)
10917 return; 13518 return;
10918 13519
10919 uint rulesParsed = 0; 13520 SetEntityParams(new List<ISceneEntity>() { obj }, rules, originFunc);
10920 LSL_List remaining = SetPrimParams(obj, rules, originFunc, ref rulesParsed);
10921
10922 while ((object)remaining != null && remaining.Length > 2)
10923 {
10924 LSL_Integer newLink = remaining.GetLSLIntegerItem(0);
10925 LSL_List newrules = remaining.GetSublist(1, -1);
10926 foreach(SceneObjectPart part in GetLinkParts(obj, newLink)){
10927 remaining = SetPrimParams(part, newrules, originFunc, ref rulesParsed);
10928 }
10929 }
10930 } 13521 }
10931 13522
10932 public LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules) 13523 public LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules)
10933 { 13524 {
10934 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim)); 13525 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim));
10935 13526
10936 LSL_List result = new LSL_List(); 13527 if (obj != null && obj.OwnerID == m_host.OwnerID)
10937 13528 return GetEntityParams(obj, rules);
10938 if (obj != null && obj.OwnerID != m_host.OwnerID)
10939 {
10940 LSL_List remaining = GetPrimParams(obj, rules, ref result);
10941
10942 while (remaining != null && remaining.Length > 2)
10943 {
10944 int linknumber = remaining.GetLSLIntegerItem(0);
10945 rules = remaining.GetSublist(1, -1);
10946 List<SceneObjectPart> parts = GetLinkParts(linknumber);
10947 13529
10948 foreach (SceneObjectPart part in parts) 13530 return new LSL_List();
10949 remaining = GetPrimParams(part, rules, ref result);
10950 }
10951 }
10952
10953 return result;
10954 } 13531 }
10955 13532
10956 public void print(string str) 13533 public void print(string str)
@@ -11036,7 +13613,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11036 World.ForEachScenePresence(delegate(ScenePresence sp) 13613 World.ForEachScenePresence(delegate(ScenePresence sp)
11037 { 13614 {
11038 Vector3 ac = sp.AbsolutePosition - rayStart; 13615 Vector3 ac = sp.AbsolutePosition - rayStart;
11039 Vector3 bc = sp.AbsolutePosition - rayEnd; 13616// Vector3 bc = sp.AbsolutePosition - rayEnd;
11040 13617
11041 double d = Math.Abs(Vector3.Mag(Vector3.Cross(ab, ac)) / Vector3.Distance(rayStart, rayEnd)); 13618 double d = Math.Abs(Vector3.Mag(Vector3.Cross(ab, ac)) / Vector3.Distance(rayStart, rayEnd));
11042 13619
@@ -11124,9 +13701,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11124 radius = Math.Abs(maxY); 13701 radius = Math.Abs(maxY);
11125 if (Math.Abs(maxZ) > radius) 13702 if (Math.Abs(maxZ) > radius)
11126 radius = Math.Abs(maxZ); 13703 radius = Math.Abs(maxZ);
11127 13704 radius = radius*1.413f;
11128 Vector3 ac = group.AbsolutePosition - rayStart; 13705 Vector3 ac = group.AbsolutePosition - rayStart;
11129 Vector3 bc = group.AbsolutePosition - rayEnd; 13706// Vector3 bc = group.AbsolutePosition - rayEnd;
11130 13707
11131 double d = Math.Abs(Vector3.Mag(Vector3.Cross(ab, ac)) / Vector3.Distance(rayStart, rayEnd)); 13708 double d = Math.Abs(Vector3.Mag(Vector3.Cross(ab, ac)) / Vector3.Distance(rayStart, rayEnd));
11132 13709
@@ -11139,11 +13716,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11139 if (d2 > 0) 13716 if (d2 > 0)
11140 return; 13717 return;
11141 13718
13719 ray = new Ray(rayStart, Vector3.Normalize(rayEnd - rayStart));
11142 EntityIntersection intersection = group.TestIntersection(ray, true, false); 13720 EntityIntersection intersection = group.TestIntersection(ray, true, false);
11143 // Miss. 13721 // Miss.
11144 if (!intersection.HitTF) 13722 if (!intersection.HitTF)
11145 return; 13723 return;
11146 13724
13725 Vector3 b1 = group.AbsolutePosition + new Vector3(minX, minY, minZ);
13726 Vector3 b2 = group.AbsolutePosition + new Vector3(maxX, maxY, maxZ);
13727 //m_log.DebugFormat("[LLCASTRAY]: min<{0},{1},{2}>, max<{3},{4},{5}> = hitp<{6},{7},{8}>", b1.X,b1.Y,b1.Z,b2.X,b2.Y,b2.Z,intersection.ipoint.X,intersection.ipoint.Y,intersection.ipoint.Z);
13728 if (!(intersection.ipoint.X >= b1.X && intersection.ipoint.X <= b2.X &&
13729 intersection.ipoint.Y >= b1.Y && intersection.ipoint.Y <= b2.Y &&
13730 intersection.ipoint.Z >= b1.Z && intersection.ipoint.Z <= b2.Z))
13731 return;
13732
11147 ContactResult result = new ContactResult (); 13733 ContactResult result = new ContactResult ();
11148 result.ConsumerID = group.LocalId; 13734 result.ConsumerID = group.LocalId;
11149 result.Depth = intersection.distance; 13735 result.Depth = intersection.distance;
@@ -11284,6 +13870,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11284 13870
11285 public LSL_List llCastRay(LSL_Vector start, LSL_Vector end, LSL_List options) 13871 public LSL_List llCastRay(LSL_Vector start, LSL_Vector end, LSL_List options)
11286 { 13872 {
13873 // Use llCastRay V3 if configured
13874 if (m_useCastRayV3)
13875 return llCastRayV3(start, end, options);
13876
11287 LSL_List list = new LSL_List(); 13877 LSL_List list = new LSL_List();
11288 13878
11289 m_host.AddScriptLPS(1); 13879 m_host.AddScriptLPS(1);
@@ -11322,25 +13912,93 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11322 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL); 13912 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL);
11323 13913
11324 13914
11325 if (checkTerrain) 13915 if (World.SupportsRayCastFiltered())
11326 { 13916 {
11327 ContactResult? groundContact = GroundIntersection(rayStart, rayEnd); 13917 if (dist == 0)
11328 if (groundContact != null) 13918 return list;
11329 results.Add((ContactResult)groundContact); 13919
11330 } 13920 RayFilterFlags rayfilter = RayFilterFlags.ClosestAndBackCull;
13921 if (checkTerrain)
13922 rayfilter |= RayFilterFlags.land;
13923// if (checkAgents)
13924// rayfilter |= RayFilterFlags.agent;
13925 if (checkPhysical)
13926 rayfilter |= RayFilterFlags.physical;
13927 if (checkNonPhysical)
13928 rayfilter |= RayFilterFlags.nonphysical;
13929 if (detectPhantom)
13930 rayfilter |= RayFilterFlags.LSLPhantom;
11331 13931
11332 if (checkAgents) 13932 Vector3 direction = dir * ( 1/dist);
13933
13934 if(rayfilter == 0)
13935 {
13936 list.Add(new LSL_Integer(0));
13937 return list;
13938 }
13939
13940 // get some more contacts to sort ???
13941 int physcount = 4 * count;
13942 if (physcount > 20)
13943 physcount = 20;
13944
13945 object physresults;
13946 physresults = World.RayCastFiltered(rayStart, direction, dist, physcount, rayfilter);
13947
13948 if (physresults == null)
13949 {
13950 list.Add(new LSL_Integer(-3)); // timeout error
13951 return list;
13952 }
13953
13954 results = (List<ContactResult>)physresults;
13955
13956 // for now physics doesn't detect sitted avatars so do it outside physics
13957 if (checkAgents)
13958 {
13959 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd);
13960 foreach (ContactResult r in agentHits)
13961 results.Add(r);
13962 }
13963
13964 // TODO: Replace this with a better solution. ObjectIntersection can only
13965 // detect nonphysical phantoms. They are detected by virtue of being
13966 // nonphysical (e.g. no PhysActor) so will not conflict with detecting
13967 // physicsl phantoms as done by the physics scene
13968 // We don't want anything else but phantoms here.
13969 if (detectPhantom)
13970 {
13971 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, false, false, true);
13972 foreach (ContactResult r in objectHits)
13973 results.Add(r);
13974 }
13975 }
13976 else
11333 { 13977 {
11334 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd); 13978 if (checkAgents)
11335 foreach (ContactResult r in agentHits) 13979 {
11336 results.Add(r); 13980 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd);
13981 foreach (ContactResult r in agentHits)
13982 results.Add(r);
13983 }
13984
13985 if (checkPhysical || checkNonPhysical || detectPhantom)
13986 {
13987 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, checkPhysical, checkNonPhysical, detectPhantom);
13988 for (int iter = 0; iter < objectHits.Length; iter++)
13989 {
13990 // Redistance the Depth because the Scene RayCaster returns distance from center to make the rezzing code simpler.
13991 objectHits[iter].Depth = Vector3.Distance(objectHits[iter].Pos, rayStart);
13992 results.Add(objectHits[iter]);
13993 }
13994 }
11337 } 13995 }
11338 13996
11339 if (checkPhysical || checkNonPhysical || detectPhantom) 13997 if (checkTerrain)
11340 { 13998 {
11341 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, checkPhysical, checkNonPhysical, detectPhantom); 13999 ContactResult? groundContact = GroundIntersection(rayStart, rayEnd);
11342 foreach (ContactResult r in objectHits) 14000 if (groundContact != null)
11343 results.Add(r); 14001 results.Add((ContactResult)groundContact);
11344 } 14002 }
11345 14003
11346 results.Sort(delegate(ContactResult a, ContactResult b) 14004 results.Sort(delegate(ContactResult a, ContactResult b)
@@ -11381,7 +14039,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11381 else 14039 else
11382 { 14040 {
11383 ScenePresence sp = World.GetScenePresence(result.ConsumerID); 14041 ScenePresence sp = World.GetScenePresence(result.ConsumerID);
11384 /// It it a boy? a girl? 14042 /// It it a boy? a girl?
11385 if (sp != null) 14043 if (sp != null)
11386 itemID = sp.UUID; 14044 itemID = sp.UUID;
11387 } 14045 }
@@ -11393,7 +14051,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11393 list.Add(new LSL_Integer(linkNum)); 14051 list.Add(new LSL_Integer(linkNum));
11394 14052
11395 if ((dataFlags & ScriptBaseClass.RC_GET_NORMAL) == ScriptBaseClass.RC_GET_NORMAL) 14053 if ((dataFlags & ScriptBaseClass.RC_GET_NORMAL) == ScriptBaseClass.RC_GET_NORMAL)
11396 list.Add(new LSL_Vector(result.Normal.X, result.Normal.Y, result.Normal.Z)); 14054 list.Add(new LSL_Vector(result.Normal));
11397 14055
11398 values++; 14056 values++;
11399 if (values >= count) 14057 if (values >= count)
@@ -11405,6 +14063,872 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11405 return list; 14063 return list;
11406 } 14064 }
11407 14065
14066 /// <summary>
14067 /// Implementation of llCastRay similar to SL 2015-04-21.
14068 /// http://wiki.secondlife.com/wiki/LlCastRay
14069 /// Uses pure geometry, bounding shapes, meshing and no physics
14070 /// for prims, sculpts, meshes, avatars and terrain.
14071 /// Implements all flags, reject types and data flags.
14072 /// Can handle both objects/groups and prims/parts, by config.
14073 /// May sometimes be inaccurate owing to calculation precision,
14074 /// meshing detail level and a bug in libopenmetaverse PrimMesher.
14075 /// </summary>
14076 public LSL_List llCastRayV3(LSL_Vector start, LSL_Vector end, LSL_List options)
14077 {
14078 m_host.AddScriptLPS(1);
14079 LSL_List result = new LSL_List();
14080
14081 // Prepare throttle data
14082 int calledMs = Environment.TickCount;
14083 Stopwatch stopWatch = new Stopwatch();
14084 stopWatch.Start();
14085 UUID regionId = World.RegionInfo.RegionID;
14086 UUID userId = UUID.Zero;
14087 int msAvailable = 0;
14088 // Throttle per owner when attachment or "vehicle" (sat upon)
14089 if (m_host.ParentGroup.IsAttachment || m_host.ParentGroup.GetSittingAvatars().Count > 0)
14090 {
14091 userId = m_host.OwnerID;
14092 msAvailable = m_msPerAvatarInCastRay;
14093 }
14094 // Throttle per parcel when not attachment or vehicle
14095 else
14096 {
14097 LandData land = World.GetLandData(m_host.GetWorldPosition());
14098 if (land != null)
14099 msAvailable = m_msPerRegionInCastRay * land.Area / 65536;
14100 }
14101 // Clamp for "oversized" parcels on varregions
14102 if (msAvailable > m_msMaxInCastRay)
14103 msAvailable = m_msMaxInCastRay;
14104
14105 // Check throttle data
14106 int fromCalledMs = calledMs - m_msThrottleInCastRay;
14107 lock (m_castRayCalls)
14108 {
14109 for (int i = m_castRayCalls.Count - 1; i >= 0; i--)
14110 {
14111 // Delete old calls from throttle data
14112 if (m_castRayCalls[i].CalledMs < fromCalledMs)
14113 m_castRayCalls.RemoveAt(i);
14114 // Use current region (in multi-region sims)
14115 else if (m_castRayCalls[i].RegionId == regionId)
14116 {
14117 // Reduce available time with recent calls
14118 if (m_castRayCalls[i].UserId == userId)
14119 msAvailable -= m_castRayCalls[i].UsedMs;
14120 }
14121 }
14122 }
14123
14124 // Return failure if not enough available time
14125 if (msAvailable < m_msMinInCastRay)
14126 {
14127 result.Add(new LSL_Integer(ScriptBaseClass.RCERR_CAST_TIME_EXCEEDED));
14128 return result;
14129 }
14130
14131 // Initialize
14132 List<RayHit> rayHits = new List<RayHit>();
14133 float tol = m_floatToleranceInCastRay;
14134 Vector3 pos1Ray = start;
14135 Vector3 pos2Ray = end;
14136
14137 // Get input options
14138 int rejectTypes = 0;
14139 int dataFlags = 0;
14140 int maxHits = 1;
14141 bool detectPhantom = false;
14142 for (int i = 0; i < options.Length; i += 2)
14143 {
14144 if (options.GetLSLIntegerItem(i) == ScriptBaseClass.RC_REJECT_TYPES)
14145 rejectTypes = options.GetLSLIntegerItem(i + 1);
14146 else if (options.GetLSLIntegerItem(i) == ScriptBaseClass.RC_DATA_FLAGS)
14147 dataFlags = options.GetLSLIntegerItem(i + 1);
14148 else if (options.GetLSLIntegerItem(i) == ScriptBaseClass.RC_MAX_HITS)
14149 maxHits = options.GetLSLIntegerItem(i + 1);
14150 else if (options.GetLSLIntegerItem(i) == ScriptBaseClass.RC_DETECT_PHANTOM)
14151 detectPhantom = (options.GetLSLIntegerItem(i + 1) != 0);
14152 }
14153 if (maxHits > m_maxHitsInCastRay)
14154 maxHits = m_maxHitsInCastRay;
14155 bool rejectAgents = ((rejectTypes & ScriptBaseClass.RC_REJECT_AGENTS) != 0);
14156 bool rejectPhysical = ((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) != 0);
14157 bool rejectNonphysical = ((rejectTypes & ScriptBaseClass.RC_REJECT_NONPHYSICAL) != 0);
14158 bool rejectLand = ((rejectTypes & ScriptBaseClass.RC_REJECT_LAND) != 0);
14159 bool getNormal = ((dataFlags & ScriptBaseClass.RC_GET_NORMAL) != 0);
14160 bool getRootKey = ((dataFlags & ScriptBaseClass.RC_GET_ROOT_KEY) != 0);
14161 bool getLinkNum = ((dataFlags & ScriptBaseClass.RC_GET_LINK_NUM) != 0);
14162
14163 // Calculate some basic parameters
14164 Vector3 vecRay = pos2Ray - pos1Ray;
14165 float rayLength = vecRay.Length();
14166
14167 // Try to get a mesher and return failure if none, degenerate ray, or max 0 hits
14168 IRendering primMesher = null;
14169 List<string> renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory());
14170 if (renderers.Count < 1 || rayLength < tol || m_maxHitsInCastRay < 1)
14171 {
14172 result.Add(new LSL_Integer(ScriptBaseClass.RCERR_UNKNOWN));
14173 return result;
14174 }
14175 primMesher = RenderingLoader.LoadRenderer(renderers[0]);
14176
14177 // Iterate over all objects/groups and prims/parts in region
14178 World.ForEachSOG(
14179 delegate(SceneObjectGroup group)
14180 {
14181 // Check group filters unless part filters are configured
14182 bool isPhysical = (group.RootPart != null && group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical);
14183 bool isNonphysical = !isPhysical;
14184 bool isPhantom = group.IsPhantom || group.IsVolumeDetect;
14185 bool isAttachment = group.IsAttachment;
14186 bool doGroup = true;
14187 if (isPhysical && rejectPhysical)
14188 doGroup = false;
14189 if (isNonphysical && rejectNonphysical)
14190 doGroup = false;
14191 if (isPhantom && detectPhantom)
14192 doGroup = true;
14193 if (m_filterPartsInCastRay)
14194 doGroup = true;
14195 if (isAttachment && !m_doAttachmentsInCastRay)
14196 doGroup = false;
14197 // Parse object/group if passed filters
14198 if (doGroup)
14199 {
14200 // Iterate over all prims/parts in object/group
14201 foreach(SceneObjectPart part in group.Parts)
14202 {
14203 // Check part filters if configured
14204 if (m_filterPartsInCastRay)
14205 {
14206 isPhysical = (part.PhysActor != null && part.PhysActor.IsPhysical);
14207 isNonphysical = !isPhysical;
14208 isPhantom = ((part.Flags & PrimFlags.Phantom) != 0) || (part.VolumeDetectActive);
14209 bool doPart = true;
14210 if (isPhysical && rejectPhysical)
14211 doPart = false;
14212 if (isNonphysical && rejectNonphysical)
14213 doPart = false;
14214 if (isPhantom && detectPhantom)
14215 doPart = true;
14216 if (!doPart)
14217 continue;
14218 }
14219
14220 // Parse prim/part and project ray if passed filters
14221 Vector3 scalePart = part.Scale;
14222 Vector3 posPart = part.GetWorldPosition();
14223 Quaternion rotPart = part.GetWorldRotation();
14224 Quaternion rotPartInv = Quaternion.Inverse(rotPart);
14225 Vector3 pos1RayProj = ((pos1Ray - posPart) * rotPartInv) / scalePart;
14226 Vector3 pos2RayProj = ((pos2Ray - posPart) * rotPartInv) / scalePart;
14227
14228 // Filter parts by shape bounding boxes
14229 Vector3 shapeBoxMax = new Vector3(0.5f, 0.5f, 0.5f);
14230 if (!part.Shape.SculptEntry)
14231 shapeBoxMax = shapeBoxMax * (new Vector3(m_primSafetyCoeffX, m_primSafetyCoeffY, m_primSafetyCoeffZ));
14232 shapeBoxMax = shapeBoxMax + (new Vector3(tol, tol, tol));
14233 if (RayIntersectsShapeBox(pos1RayProj, pos2RayProj, shapeBoxMax))
14234 {
14235 // Prepare data needed to check for ray hits
14236 RayTrans rayTrans = new RayTrans();
14237 rayTrans.PartId = part.UUID;
14238 rayTrans.GroupId = part.ParentGroup.UUID;
14239 rayTrans.Link = group.PrimCount > 1 ? part.LinkNum : 0;
14240 rayTrans.ScalePart = scalePart;
14241 rayTrans.PositionPart = posPart;
14242 rayTrans.RotationPart = rotPart;
14243 rayTrans.ShapeNeedsEnds = true;
14244 rayTrans.Position1Ray = pos1Ray;
14245 rayTrans.Position1RayProj = pos1RayProj;
14246 rayTrans.VectorRayProj = pos2RayProj - pos1RayProj;
14247
14248 // Get detail level depending on type
14249 int lod = 0;
14250 // Mesh detail level
14251 if (part.Shape.SculptEntry && part.Shape.SculptType == (byte)SculptType.Mesh)
14252 lod = (int)m_meshLodInCastRay;
14253 // Sculpt detail level
14254 else if (part.Shape.SculptEntry && part.Shape.SculptType == (byte)SculptType.Mesh)
14255 lod = (int)m_sculptLodInCastRay;
14256 // Shape detail level
14257 else if (!part.Shape.SculptEntry)
14258 lod = (int)m_primLodInCastRay;
14259
14260 // Try to get cached mesh if configured
14261 ulong meshKey = 0;
14262 FacetedMesh mesh = null;
14263 if (m_useMeshCacheInCastRay)
14264 {
14265 meshKey = part.Shape.GetMeshKey(Vector3.One, (float)(4 << lod));
14266 lock (m_cachedMeshes)
14267 {
14268 m_cachedMeshes.TryGetValue(meshKey, out mesh);
14269 }
14270 }
14271
14272 // Create mesh if no cached mesh
14273 if (mesh == null)
14274 {
14275 // Make an OMV prim to be able to mesh part
14276 Primitive omvPrim = part.Shape.ToOmvPrimitive(posPart, rotPart);
14277 byte[] sculptAsset = null;
14278 if (omvPrim.Sculpt != null)
14279 sculptAsset = World.AssetService.GetData(omvPrim.Sculpt.SculptTexture.ToString());
14280
14281 // When part is mesh, get mesh
14282 if (omvPrim.Sculpt != null && omvPrim.Sculpt.Type == SculptType.Mesh && sculptAsset != null)
14283 {
14284 AssetMesh meshAsset = new AssetMesh(omvPrim.Sculpt.SculptTexture, sculptAsset);
14285 FacetedMesh.TryDecodeFromAsset(omvPrim, meshAsset, m_meshLodInCastRay, out mesh);
14286 meshAsset = null;
14287 }
14288
14289 // When part is sculpt, create mesh
14290 // Quirk: Generated sculpt mesh is about 2.8% smaller in X and Y than visual sculpt.
14291 else if (omvPrim.Sculpt != null && omvPrim.Sculpt.Type != SculptType.Mesh && sculptAsset != null)
14292 {
14293 IJ2KDecoder imgDecoder = World.RequestModuleInterface<IJ2KDecoder>();
14294 if (imgDecoder != null)
14295 {
14296 Image sculpt = imgDecoder.DecodeToImage(sculptAsset);
14297 if (sculpt != null)
14298 {
14299 mesh = primMesher.GenerateFacetedSculptMesh(omvPrim, (Bitmap)sculpt, m_sculptLodInCastRay);
14300 sculpt.Dispose();
14301 }
14302 }
14303 }
14304
14305 // When part is shape, create mesh
14306 else if (omvPrim.Sculpt == null)
14307 {
14308 if (
14309 omvPrim.PrimData.PathBegin == 0.0 && omvPrim.PrimData.PathEnd == 1.0 &&
14310 omvPrim.PrimData.PathTaperX == 0.0 && omvPrim.PrimData.PathTaperY == 0.0 &&
14311 omvPrim.PrimData.PathSkew == 0.0 &&
14312 omvPrim.PrimData.PathTwist - omvPrim.PrimData.PathTwistBegin == 0.0
14313 )
14314 rayTrans.ShapeNeedsEnds = false;
14315 mesh = primMesher.GenerateFacetedMesh(omvPrim, m_primLodInCastRay);
14316 }
14317
14318 // Cache mesh if configured
14319 if (m_useMeshCacheInCastRay && mesh != null)
14320 {
14321 lock(m_cachedMeshes)
14322 {
14323 if (!m_cachedMeshes.ContainsKey(meshKey))
14324 m_cachedMeshes.Add(meshKey, mesh);
14325 }
14326 }
14327 }
14328 // Check mesh for ray hits
14329 AddRayInFacetedMesh(mesh, rayTrans, ref rayHits);
14330 mesh = null;
14331 }
14332 }
14333 }
14334 }
14335 );
14336
14337 // Check avatar filter
14338 if (!rejectAgents)
14339 {
14340 // Iterate over all avatars in region
14341 World.ForEachRootScenePresence(
14342 delegate (ScenePresence sp)
14343 {
14344 // Get bounding box
14345 Vector3 lower;
14346 Vector3 upper;
14347 BoundingBoxOfScenePresence(sp, out lower, out upper);
14348 // Parse avatar
14349 Vector3 scalePart = upper - lower;
14350 Vector3 posPart = sp.AbsolutePosition;
14351 Quaternion rotPart = sp.GetWorldRotation();
14352 Quaternion rotPartInv = Quaternion.Inverse(rotPart);
14353 posPart = posPart + (lower + upper) * 0.5f * rotPart;
14354 // Project ray
14355 Vector3 pos1RayProj = ((pos1Ray - posPart) * rotPartInv) / scalePart;
14356 Vector3 pos2RayProj = ((pos2Ray - posPart) * rotPartInv) / scalePart;
14357
14358 // Filter avatars by shape bounding boxes
14359 Vector3 shapeBoxMax = new Vector3(0.5f + tol, 0.5f + tol, 0.5f + tol);
14360 if (RayIntersectsShapeBox(pos1RayProj, pos2RayProj, shapeBoxMax))
14361 {
14362 // Prepare data needed to check for ray hits
14363 RayTrans rayTrans = new RayTrans();
14364 rayTrans.PartId = sp.UUID;
14365 rayTrans.GroupId = sp.ParentPart != null ? sp.ParentPart.ParentGroup.UUID : sp.UUID;
14366 rayTrans.Link = sp.ParentPart != null ? UUID2LinkNumber(sp.ParentPart, sp.UUID) : 0;
14367 rayTrans.ScalePart = scalePart;
14368 rayTrans.PositionPart = posPart;
14369 rayTrans.RotationPart = rotPart;
14370 rayTrans.ShapeNeedsEnds = false;
14371 rayTrans.Position1Ray = pos1Ray;
14372 rayTrans.Position1RayProj = pos1RayProj;
14373 rayTrans.VectorRayProj = pos2RayProj - pos1RayProj;
14374
14375 // Try to get cached mesh if configured
14376 PrimitiveBaseShape prim = PrimitiveBaseShape.CreateSphere();
14377 int lod = (int)m_avatarLodInCastRay;
14378 ulong meshKey = prim.GetMeshKey(Vector3.One, (float)(4 << lod));
14379 FacetedMesh mesh = null;
14380 if (m_useMeshCacheInCastRay)
14381 {
14382 lock (m_cachedMeshes)
14383 {
14384 m_cachedMeshes.TryGetValue(meshKey, out mesh);
14385 }
14386 }
14387
14388 // Create mesh if no cached mesh
14389 if (mesh == null)
14390 {
14391 // Make OMV prim and create mesh
14392 prim.Scale = scalePart;
14393 Primitive omvPrim = prim.ToOmvPrimitive(posPart, rotPart);
14394 mesh = primMesher.GenerateFacetedMesh(omvPrim, m_avatarLodInCastRay);
14395
14396 // Cache mesh if configured
14397 if (m_useMeshCacheInCastRay && mesh != null)
14398 {
14399 lock(m_cachedMeshes)
14400 {
14401 if (!m_cachedMeshes.ContainsKey(meshKey))
14402 m_cachedMeshes.Add(meshKey, mesh);
14403 }
14404 }
14405 }
14406
14407 // Check mesh for ray hits
14408 AddRayInFacetedMesh(mesh, rayTrans, ref rayHits);
14409 mesh = null;
14410 }
14411 }
14412 );
14413 }
14414
14415 // Check terrain filter
14416 if (!rejectLand)
14417 {
14418 // Parse terrain
14419
14420 // Mesh terrain and check bounding box
14421 Vector3 lower;
14422 Vector3 upper;
14423 List<Tri> triangles = TrisFromHeightmapUnderRay(pos1Ray, pos2Ray, out lower, out upper);
14424 lower.Z -= tol;
14425 upper.Z += tol;
14426 if ((pos1Ray.Z >= lower.Z || pos2Ray.Z >= lower.Z) && (pos1Ray.Z <= upper.Z || pos2Ray.Z <= upper.Z))
14427 {
14428 // Prepare data needed to check for ray hits
14429 RayTrans rayTrans = new RayTrans();
14430 rayTrans.PartId = UUID.Zero;
14431 rayTrans.GroupId = UUID.Zero;
14432 rayTrans.Link = 0;
14433 rayTrans.ScalePart = new Vector3 (1.0f, 1.0f, 1.0f);
14434 rayTrans.PositionPart = Vector3.Zero;
14435 rayTrans.RotationPart = Quaternion.Identity;
14436 rayTrans.ShapeNeedsEnds = true;
14437 rayTrans.Position1Ray = pos1Ray;
14438 rayTrans.Position1RayProj = pos1Ray;
14439 rayTrans.VectorRayProj = vecRay;
14440
14441 // Check mesh
14442 AddRayInTris(triangles, rayTrans, ref rayHits);
14443 triangles = null;
14444 }
14445 }
14446
14447 // Sort hits by ascending distance
14448 rayHits.Sort((s1, s2) => s1.Distance.CompareTo(s2.Distance));
14449
14450 // Check excess hits per part and group
14451 for (int t = 0; t < 2; t++)
14452 {
14453 int maxHitsPerType = 0;
14454 UUID id = UUID.Zero;
14455 if (t == 0)
14456 maxHitsPerType = m_maxHitsPerPrimInCastRay;
14457 else
14458 maxHitsPerType = m_maxHitsPerObjectInCastRay;
14459
14460 // Handle excess hits only when needed
14461 if (maxHitsPerType < m_maxHitsInCastRay)
14462 {
14463 // Find excess hits
14464 Hashtable hits = new Hashtable();
14465 for (int i = rayHits.Count - 1; i >= 0; i--)
14466 {
14467 if (t == 0)
14468 id = rayHits[i].PartId;
14469 else
14470 id = rayHits[i].GroupId;
14471 if (hits.ContainsKey(id))
14472 hits[id] = (int)hits[id] + 1;
14473 else
14474 hits[id] = 1;
14475 }
14476
14477 // Remove excess hits
14478 for (int i = rayHits.Count - 1; i >= 0; i--)
14479 {
14480 if (t == 0)
14481 id = rayHits[i].PartId;
14482 else
14483 id = rayHits[i].GroupId;
14484 int hit = (int)hits[id];
14485 if (hit > m_maxHitsPerPrimInCastRay)
14486 {
14487 rayHits.RemoveAt(i);
14488 hit--;
14489 hits[id] = hit;
14490 }
14491 }
14492 }
14493 }
14494
14495 // Parse hits into result list according to data flags
14496 int hitCount = rayHits.Count;
14497 if (hitCount > maxHits)
14498 hitCount = maxHits;
14499 for (int i = 0; i < hitCount; i++)
14500 {
14501 RayHit rayHit = rayHits[i];
14502 if (getRootKey)
14503 result.Add(new LSL_Key(rayHit.GroupId.ToString()));
14504 else
14505 result.Add(new LSL_Key(rayHit.PartId.ToString()));
14506 result.Add(new LSL_Vector(rayHit.Position));
14507 if (getLinkNum)
14508 result.Add(new LSL_Integer(rayHit.Link));
14509 if (getNormal)
14510 result.Add(new LSL_Vector(rayHit.Normal));
14511 }
14512 result.Add(new LSL_Integer(hitCount));
14513
14514 // Add to throttle data
14515 stopWatch.Stop();
14516 CastRayCall castRayCall = new CastRayCall();
14517 castRayCall.RegionId = regionId;
14518 castRayCall.UserId = userId;
14519 castRayCall.CalledMs = calledMs;
14520 castRayCall.UsedMs = (int)stopWatch.ElapsedMilliseconds;
14521 lock (m_castRayCalls)
14522 {
14523 m_castRayCalls.Add(castRayCall);
14524 }
14525
14526 // Return hits
14527 return result;
14528 }
14529
14530 /// <summary>
14531 /// Struct for transmitting parameters required for finding llCastRay ray hits.
14532 /// </summary>
14533 public struct RayTrans
14534 {
14535 public UUID PartId;
14536 public UUID GroupId;
14537 public int Link;
14538 public Vector3 ScalePart;
14539 public Vector3 PositionPart;
14540 public Quaternion RotationPart;
14541 public bool ShapeNeedsEnds;
14542 public Vector3 Position1Ray;
14543 public Vector3 Position1RayProj;
14544 public Vector3 VectorRayProj;
14545 }
14546
14547 /// <summary>
14548 /// Struct for llCastRay ray hits.
14549 /// </summary>
14550 public struct RayHit
14551 {
14552 public UUID PartId;
14553 public UUID GroupId;
14554 public int Link;
14555 public Vector3 Position;
14556 public Vector3 Normal;
14557 public float Distance;
14558 }
14559
14560 /// <summary>
14561 /// Struct for llCastRay throttle data.
14562 /// </summary>
14563 public struct CastRayCall
14564 {
14565 public UUID RegionId;
14566 public UUID UserId;
14567 public int CalledMs;
14568 public int UsedMs;
14569 }
14570
14571 /// <summary>
14572 /// Helper to check if a ray intersects a shape bounding box.
14573 /// </summary>
14574 private bool RayIntersectsShapeBox(Vector3 pos1RayProj, Vector3 pos2RayProj, Vector3 shapeBoxMax)
14575 {
14576 // Skip if ray can't intersect bounding box;
14577 Vector3 rayBoxProjMin = Vector3.Min(pos1RayProj, pos2RayProj);
14578 Vector3 rayBoxProjMax = Vector3.Max(pos1RayProj, pos2RayProj);
14579 if (
14580 rayBoxProjMin.X > shapeBoxMax.X || rayBoxProjMin.Y > shapeBoxMax.Y || rayBoxProjMin.Z > shapeBoxMax.Z ||
14581 rayBoxProjMax.X < -shapeBoxMax.X || rayBoxProjMax.Y < -shapeBoxMax.Y || rayBoxProjMax.Z < -shapeBoxMax.Z
14582 )
14583 return false;
14584
14585 // Check if ray intersect any bounding box side
14586 int sign = 0;
14587 float dist = 0.0f;
14588 Vector3 posProj = Vector3.Zero;
14589 Vector3 vecRayProj = pos2RayProj - pos1RayProj;
14590
14591 // Check both X sides unless ray is parallell to them
14592 if (Math.Abs(vecRayProj.X) > m_floatToleranceInCastRay)
14593 {
14594 for (sign = -1; sign <= 1; sign += 2)
14595 {
14596 dist = ((float)sign * shapeBoxMax.X - pos1RayProj.X) / vecRayProj.X;
14597 posProj = pos1RayProj + vecRayProj * dist;
14598 if (Math.Abs(posProj.Y) <= shapeBoxMax.Y && Math.Abs(posProj.Z) <= shapeBoxMax.Z)
14599 return true;
14600 }
14601 }
14602
14603 // Check both Y sides unless ray is parallell to them
14604 if (Math.Abs(vecRayProj.Y) > m_floatToleranceInCastRay)
14605 {
14606 for (sign = -1; sign <= 1; sign += 2)
14607 {
14608 dist = ((float)sign * shapeBoxMax.Y - pos1RayProj.Y) / vecRayProj.Y;
14609 posProj = pos1RayProj + vecRayProj * dist;
14610 if (Math.Abs(posProj.X) <= shapeBoxMax.X && Math.Abs(posProj.Z) <= shapeBoxMax.Z)
14611 return true;
14612 }
14613 }
14614
14615 // Check both Z sides unless ray is parallell to them
14616 if (Math.Abs(vecRayProj.Z) > m_floatToleranceInCastRay)
14617 {
14618 for (sign = -1; sign <= 1; sign += 2)
14619 {
14620 dist = ((float)sign * shapeBoxMax.Z - pos1RayProj.Z) / vecRayProj.Z;
14621 posProj = pos1RayProj + vecRayProj * dist;
14622 if (Math.Abs(posProj.X) <= shapeBoxMax.X && Math.Abs(posProj.Y) <= shapeBoxMax.Y)
14623 return true;
14624 }
14625 }
14626
14627 // No hits on bounding box so return false
14628 return false;
14629 }
14630
14631 /// <summary>
14632 /// Helper to parse FacetedMesh for ray hits.
14633 /// </summary>
14634 private void AddRayInFacetedMesh(FacetedMesh mesh, RayTrans rayTrans, ref List<RayHit> rayHits)
14635 {
14636 if (mesh != null)
14637 {
14638 foreach (Face face in mesh.Faces)
14639 {
14640 for (int i = 0; i < face.Indices.Count; i += 3)
14641 {
14642 Tri triangle = new Tri();
14643 triangle.p1 = face.Vertices[face.Indices[i]].Position;
14644 triangle.p2 = face.Vertices[face.Indices[i + 1]].Position;
14645 triangle.p3 = face.Vertices[face.Indices[i + 2]].Position;
14646 AddRayInTri(triangle, rayTrans, ref rayHits);
14647 }
14648 }
14649 }
14650 }
14651
14652 /// <summary>
14653 /// Helper to parse Tri (triangle) List for ray hits.
14654 /// </summary>
14655 private void AddRayInTris(List<Tri> triangles, RayTrans rayTrans, ref List<RayHit> rayHits)
14656 {
14657 foreach (Tri triangle in triangles)
14658 {
14659 AddRayInTri(triangle, rayTrans, ref rayHits);
14660 }
14661 }
14662
14663 /// <summary>
14664 /// Helper to add ray hit in a Tri (triangle).
14665 /// </summary>
14666 private void AddRayInTri(Tri triProj, RayTrans rayTrans, ref List<RayHit> rayHits)
14667 {
14668 // Check for hit in triangle
14669 Vector3 posHitProj;
14670 Vector3 normalProj;
14671 if (HitRayInTri(triProj, rayTrans.Position1RayProj, rayTrans.VectorRayProj, out posHitProj, out normalProj))
14672 {
14673 // Hack to circumvent ghost face bug in PrimMesher by removing hits in (ghost) face plane through shape center
14674 if (Math.Abs(Vector3.Dot(posHitProj, normalProj)) < m_floatToleranceInCastRay && !rayTrans.ShapeNeedsEnds)
14675 return;
14676
14677 // Transform hit and normal to region coordinate system
14678 Vector3 posHit = rayTrans.PositionPart + (posHitProj * rayTrans.ScalePart) * rayTrans.RotationPart;
14679 Vector3 normal = Vector3.Normalize((normalProj * rayTrans.ScalePart) * rayTrans.RotationPart);
14680
14681 // Remove duplicate hits at triangle intersections
14682 float distance = Vector3.Distance(rayTrans.Position1Ray, posHit);
14683 for (int i = rayHits.Count - 1; i >= 0; i--)
14684 {
14685 if (rayHits[i].PartId != rayTrans.PartId)
14686 break;
14687 if (Math.Abs(rayHits[i].Distance - distance) < m_floatTolerance2InCastRay)
14688 return;
14689 }
14690
14691 // Build result data set
14692 RayHit rayHit = new RayHit();
14693 rayHit.PartId = rayTrans.PartId;
14694 rayHit.GroupId = rayTrans.GroupId;
14695 rayHit.Link = rayTrans.Link;
14696 rayHit.Position = posHit;
14697 rayHit.Normal = normal;
14698 rayHit.Distance = distance;
14699 rayHits.Add(rayHit);
14700 }
14701 }
14702
14703 /// <summary>
14704 /// Helper to find ray hit in triangle
14705 /// </summary>
14706 bool HitRayInTri(Tri triProj, Vector3 pos1RayProj, Vector3 vecRayProj, out Vector3 posHitProj, out Vector3 normalProj)
14707 {
14708 float tol = m_floatToleranceInCastRay;
14709 posHitProj = Vector3.Zero;
14710
14711 // Calculate triangle edge vectors
14712 Vector3 vec1Proj = triProj.p2 - triProj.p1;
14713 Vector3 vec2Proj = triProj.p3 - triProj.p2;
14714 Vector3 vec3Proj = triProj.p1 - triProj.p3;
14715
14716 // Calculate triangle normal
14717 normalProj = Vector3.Cross(vec1Proj, vec2Proj);
14718
14719 // Skip if degenerate triangle or ray parallell with triangle plane
14720 float divisor = Vector3.Dot(vecRayProj, normalProj);
14721 if (Math.Abs(divisor) < tol)
14722 return false;
14723
14724 // Skip if exit and not configured to detect
14725 if (divisor > tol && !m_detectExitsInCastRay)
14726 return false;
14727
14728 // Skip if outside ray ends
14729 float distanceProj = Vector3.Dot(triProj.p1 - pos1RayProj, normalProj) / divisor;
14730 if (distanceProj < -tol || distanceProj > 1 + tol)
14731 return false;
14732
14733 // Calculate hit position in triangle
14734 posHitProj = pos1RayProj + vecRayProj * distanceProj;
14735
14736 // Skip if outside triangle bounding box
14737 Vector3 triProjMin = Vector3.Min(Vector3.Min(triProj.p1, triProj.p2), triProj.p3);
14738 Vector3 triProjMax = Vector3.Max(Vector3.Max(triProj.p1, triProj.p2), triProj.p3);
14739 if (
14740 posHitProj.X < triProjMin.X - tol || posHitProj.Y < triProjMin.Y - tol || posHitProj.Z < triProjMin.Z - tol ||
14741 posHitProj.X > triProjMax.X + tol || posHitProj.Y > triProjMax.Y + tol || posHitProj.Z > triProjMax.Z + tol
14742 )
14743 return false;
14744
14745 // Skip if outside triangle
14746 if (
14747 Vector3.Dot(Vector3.Cross(vec1Proj, normalProj), posHitProj - triProj.p1) > tol ||
14748 Vector3.Dot(Vector3.Cross(vec2Proj, normalProj), posHitProj - triProj.p2) > tol ||
14749 Vector3.Dot(Vector3.Cross(vec3Proj, normalProj), posHitProj - triProj.p3) > tol
14750 )
14751 return false;
14752
14753 // Return hit
14754 return true;
14755 }
14756
14757 /// <summary>
14758 /// Helper to parse selected parts of HeightMap into a Tri (triangle) List and calculate bounding box.
14759 /// </summary>
14760 private List<Tri> TrisFromHeightmapUnderRay(Vector3 posStart, Vector3 posEnd, out Vector3 lower, out Vector3 upper)
14761 {
14762 // Get bounding X-Y rectangle of terrain under ray
14763 lower = Vector3.Min(posStart, posEnd);
14764 upper = Vector3.Max(posStart, posEnd);
14765 lower.X = (float)Math.Floor(lower.X);
14766 lower.Y = (float)Math.Floor(lower.Y);
14767 float zLower = float.MaxValue;
14768 upper.X = (float)Math.Ceiling(upper.X);
14769 upper.Y = (float)Math.Ceiling(upper.Y);
14770 float zUpper = float.MinValue;
14771
14772 // Initialize Tri (triangle) List
14773 List<Tri> triangles = new List<Tri>();
14774
14775 // Set parsing lane direction to major ray X-Y axis
14776 Vector3 vec = posEnd - posStart;
14777 float xAbs = Math.Abs(vec.X);
14778 float yAbs = Math.Abs(vec.Y);
14779 bool bigX = true;
14780 if (yAbs > xAbs)
14781 {
14782 bigX = false;
14783 vec = vec / yAbs;
14784 }
14785 else if (xAbs > yAbs || xAbs > 0.0f)
14786 vec = vec / xAbs;
14787 else
14788 vec = new Vector3(1.0f, 1.0f, 0.0f);
14789
14790 // Simplify by start parsing in lower end of lane
14791 if ((bigX && vec.X < 0.0f) || (!bigX && vec.Y < 0.0f))
14792 {
14793 Vector3 posTemp = posStart;
14794 posStart = posEnd;
14795 posEnd = posTemp;
14796 vec = vec * -1.0f;
14797 }
14798
14799 // First 1x1 rectangle under ray
14800 float xFloorOld = 0.0f;
14801 float yFloorOld = 0.0f;
14802 Vector3 pos = posStart;
14803 float xFloor = (float)Math.Floor(pos.X);
14804 float yFloor = (float)Math.Floor(pos.Y);
14805 AddTrisFromHeightmap(xFloor, yFloor, ref triangles, ref zLower, ref zUpper);
14806
14807 // Parse every remaining 1x1 rectangle under ray
14808 while (pos != posEnd)
14809 {
14810 // Next 1x1 rectangle under ray
14811 xFloorOld = xFloor;
14812 yFloorOld = yFloor;
14813 pos = pos + vec;
14814
14815 // Clip position to 1x1 rectangle border
14816 xFloor = (float)Math.Floor(pos.X);
14817 yFloor = (float)Math.Floor(pos.Y);
14818 if (bigX && pos.X > xFloor)
14819 {
14820 pos.Y -= vec.Y * (pos.X - xFloor);
14821 pos.X = xFloor;
14822 }
14823 else if (!bigX && pos.Y > yFloor)
14824 {
14825 pos.X -= vec.X * (pos.Y - yFloor);
14826 pos.Y = yFloor;
14827 }
14828
14829 // Last 1x1 rectangle under ray
14830 if ((bigX && pos.X >= posEnd.X) || (!bigX && pos.Y >= posEnd.Y))
14831 {
14832 pos = posEnd;
14833 xFloor = (float)Math.Floor(pos.X);
14834 yFloor = (float)Math.Floor(pos.Y);
14835 }
14836
14837 // Add new 1x1 rectangle in lane
14838 if ((bigX && xFloor != xFloorOld) || (!bigX && yFloor != yFloorOld))
14839 AddTrisFromHeightmap(xFloor, yFloor, ref triangles, ref zLower, ref zUpper);
14840 // Add last 1x1 rectangle in old lane at lane shift
14841 if (bigX && yFloor != yFloorOld)
14842 AddTrisFromHeightmap(xFloor, yFloorOld, ref triangles, ref zLower, ref zUpper);
14843 if (!bigX && xFloor != xFloorOld)
14844 AddTrisFromHeightmap(xFloorOld, yFloor, ref triangles, ref zLower, ref zUpper);
14845 }
14846
14847 // Finalize bounding box Z
14848 lower.Z = zLower;
14849 upper.Z = zUpper;
14850
14851 // Done and returning Tri (triangle)List
14852 return triangles;
14853 }
14854
14855 /// <summary>
14856 /// Helper to add HeightMap squares into Tri (triangle) List and adjust bounding box.
14857 /// </summary>
14858 private void AddTrisFromHeightmap(float xPos, float yPos, ref List<Tri> triangles, ref float zLower, ref float zUpper)
14859 {
14860 int xInt = (int)xPos;
14861 int yInt = (int)yPos;
14862
14863 // Corner 1 of 1x1 rectangle
14864 int x = Util.Clamp<int>(xInt+1, 0, World.Heightmap.Width - 1);
14865 int y = Util.Clamp<int>(yInt+1, 0, World.Heightmap.Height - 1);
14866 Vector3 pos1 = new Vector3(x, y, (float)World.Heightmap[x, y]);
14867 // Adjust bounding box
14868 zLower = Math.Min(zLower, pos1.Z);
14869 zUpper = Math.Max(zUpper, pos1.Z);
14870
14871 // Corner 2 of 1x1 rectangle
14872 x = Util.Clamp<int>(xInt, 0, World.Heightmap.Width - 1);
14873 y = Util.Clamp<int>(yInt+1, 0, World.Heightmap.Height - 1);
14874 Vector3 pos2 = new Vector3(x, y, (float)World.Heightmap[x, y]);
14875 // Adjust bounding box
14876 zLower = Math.Min(zLower, pos2.Z);
14877 zUpper = Math.Max(zUpper, pos2.Z);
14878
14879 // Corner 3 of 1x1 rectangle
14880 x = Util.Clamp<int>(xInt, 0, World.Heightmap.Width - 1);
14881 y = Util.Clamp<int>(yInt, 0, World.Heightmap.Height - 1);
14882 Vector3 pos3 = new Vector3(x, y, (float)World.Heightmap[x, y]);
14883 // Adjust bounding box
14884 zLower = Math.Min(zLower, pos3.Z);
14885 zUpper = Math.Max(zUpper, pos3.Z);
14886
14887 // Corner 4 of 1x1 rectangle
14888 x = Util.Clamp<int>(xInt+1, 0, World.Heightmap.Width - 1);
14889 y = Util.Clamp<int>(yInt, 0, World.Heightmap.Height - 1);
14890 Vector3 pos4 = new Vector3(x, y, (float)World.Heightmap[x, y]);
14891 // Adjust bounding box
14892 zLower = Math.Min(zLower, pos4.Z);
14893 zUpper = Math.Max(zUpper, pos4.Z);
14894
14895 // Add triangle 1
14896 Tri triangle1 = new Tri();
14897 triangle1.p1 = pos1;
14898 triangle1.p2 = pos2;
14899 triangle1.p3 = pos3;
14900 triangles.Add(triangle1);
14901
14902 // Add triangle 2
14903 Tri triangle2 = new Tri();
14904 triangle2.p1 = pos3;
14905 triangle2.p2 = pos4;
14906 triangle2.p3 = pos1;
14907 triangles.Add(triangle2);
14908 }
14909
14910 /// <summary>
14911 /// Helper to get link number for a UUID.
14912 /// </summary>
14913 private int UUID2LinkNumber(SceneObjectPart part, UUID id)
14914 {
14915 SceneObjectGroup group = part.ParentGroup;
14916 if (group != null)
14917 {
14918 // Parse every link for UUID
14919 int linkCount = group.PrimCount + group.GetSittingAvatarsCount();
14920 for (int link = linkCount; link > 0; link--)
14921 {
14922 ISceneEntity entity = GetLinkEntity(part, link);
14923 // Return link number if UUID match
14924 if (entity != null && entity.UUID == id)
14925 return link;
14926 }
14927 }
14928 // Return link number 0 if no links or UUID matches
14929 return 0;
14930 }
14931
11408 public LSL_Integer llManageEstateAccess(int action, string avatar) 14932 public LSL_Integer llManageEstateAccess(int action, string avatar)
11409 { 14933 {
11410 m_host.AddScriptLPS(1); 14934 m_host.AddScriptLPS(1);
@@ -11477,8 +15001,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11477 public LSL_Integer llGetMemoryLimit() 15001 public LSL_Integer llGetMemoryLimit()
11478 { 15002 {
11479 m_host.AddScriptLPS(1); 15003 m_host.AddScriptLPS(1);
11480 // The value returned for LSO scripts in SL 15004 // The value returned for Mono scripts in SL
11481 return 16384; 15005 return 65536;
11482 } 15006 }
11483 15007
11484 public LSL_Integer llSetMemoryLimit(LSL_Integer limit) 15008 public LSL_Integer llSetMemoryLimit(LSL_Integer limit)
@@ -11491,15 +15015,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11491 public LSL_Integer llGetSPMaxMemory() 15015 public LSL_Integer llGetSPMaxMemory()
11492 { 15016 {
11493 m_host.AddScriptLPS(1); 15017 m_host.AddScriptLPS(1);
11494 // The value returned for LSO scripts in SL 15018 // The value returned for Mono scripts in SL
11495 return 16384; 15019 return 65536;
11496 } 15020 }
11497 15021
11498 public LSL_Integer llGetUsedMemory() 15022 public virtual LSL_Integer llGetUsedMemory()
11499 { 15023 {
11500 m_host.AddScriptLPS(1); 15024 m_host.AddScriptLPS(1);
11501 // The value returned for LSO scripts in SL 15025 // The value returned for Mono scripts in SL
11502 return 16384; 15026 return 65536;
11503 } 15027 }
11504 15028
11505 public void llScriptProfiler(LSL_Integer flags) 15029 public void llScriptProfiler(LSL_Integer flags)
@@ -11514,16 +15038,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11514 // them from this region as they are completed 15038 // them from this region as they are completed
11515 // 15039 //
11516 15040
11517 public void llGetEnv(LSL_String name)
11518 {
11519 m_host.AddScriptLPS(1);
11520 NotImplemented("llGetEnv");
11521 }
11522
11523 public void llSetSoundQueueing(int queue) 15041 public void llSetSoundQueueing(int queue)
11524 { 15042 {
11525 m_host.AddScriptLPS(1); 15043 m_host.AddScriptLPS(1);
11526 NotImplemented("llSetSoundQueueing"); 15044
15045 if (m_SoundModule != null)
15046 m_SoundModule.SetSoundQueueing(m_host.UUID, queue == ScriptBaseClass.TRUE.value);
11527 } 15047 }
11528 15048
11529 public void llCollisionSprite(string impact_sprite) 15049 public void llCollisionSprite(string impact_sprite)
@@ -11538,6 +15058,79 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11538 NotImplemented("llGodLikeRezObject"); 15058 NotImplemented("llGodLikeRezObject");
11539 } 15059 }
11540 15060
15061 public LSL_String llTransferLindenDollars(string destination, int amount)
15062 {
15063 UUID txn = UUID.Random();
15064
15065 Util.FireAndForget(delegate(object x)
15066 {
15067 int replycode = 0;
15068 string replydata = destination + "," + amount.ToString();
15069
15070 try
15071 {
15072 TaskInventoryItem item = m_item;
15073 if (item == null)
15074 {
15075 replydata = "SERVICE_ERROR";
15076 return;
15077 }
15078
15079 m_host.AddScriptLPS(1);
15080
15081 if (item.PermsGranter == UUID.Zero)
15082 {
15083 replydata = "MISSING_PERMISSION_DEBIT";
15084 return;
15085 }
15086
15087 if ((item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
15088 {
15089 replydata = "MISSING_PERMISSION_DEBIT";
15090 return;
15091 }
15092
15093 UUID toID = new UUID();
15094
15095 if (!UUID.TryParse(destination, out toID))
15096 {
15097 replydata = "INVALID_AGENT";
15098 return;
15099 }
15100
15101 IMoneyModule money = World.RequestModuleInterface<IMoneyModule>();
15102
15103 if (money == null)
15104 {
15105 replydata = "TRANSFERS_DISABLED";
15106 return;
15107 }
15108
15109 bool result = money.ObjectGiveMoney(
15110 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount);
15111
15112 if (result)
15113 {
15114 replycode = 1;
15115 return;
15116 }
15117
15118 replydata = "LINDENDOLLAR_INSUFFICIENTFUNDS";
15119 }
15120 finally
15121 {
15122 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
15123 "transaction_result", new Object[] {
15124 new LSL_String(txn.ToString()),
15125 new LSL_Integer(replycode),
15126 new LSL_String(replydata) },
15127 new DetectParams[0]));
15128 }
15129 }, null, "LSL_Api.llTransferLindenDollars");
15130
15131 return txn.ToString();
15132 }
15133
11541 #endregion 15134 #endregion
11542 } 15135 }
11543 15136
@@ -11549,12 +15142,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11549 public DateTime lastRef; 15142 public DateTime lastRef;
11550 } 15143 }
11551 15144
11552 protected static Dictionary<UUID, Notecard> m_Notecards = 15145 private static Dictionary<UUID, Notecard> m_Notecards =
11553 new Dictionary<UUID, Notecard>(); 15146 new Dictionary<UUID, Notecard>();
11554 15147
11555 public static void Cache(UUID assetID, string text) 15148 public static void Cache(UUID assetID, byte[] text)
11556 { 15149 {
11557 CacheCheck(); 15150 CheckCache();
11558 15151
11559 lock (m_Notecards) 15152 lock (m_Notecards)
11560 { 15153 {
@@ -11563,7 +15156,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11563 15156
11564 Notecard nc = new Notecard(); 15157 Notecard nc = new Notecard();
11565 nc.lastRef = DateTime.Now; 15158 nc.lastRef = DateTime.Now;
11566 nc.text = SLUtil.ParseNotecardToList(text).ToArray(); 15159 try
15160 {
15161 nc.text = SLUtil.ParseNotecardToArray(text);
15162 }
15163 catch(SLUtil.NotANotecardFormatException)
15164 {
15165 nc.text = new string[0];
15166 }
11567 m_Notecards[assetID] = nc; 15167 m_Notecards[assetID] = nc;
11568 } 15168 }
11569 } 15169 }
@@ -11639,13 +15239,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11639 return line; 15239 return line;
11640 } 15240 }
11641 15241
11642 public static void CacheCheck() 15242 public static void CheckCache()
11643 { 15243 {
11644 foreach (UUID key in new List<UUID>(m_Notecards.Keys)) 15244 lock (m_Notecards)
11645 { 15245 {
11646 Notecard nc = m_Notecards[key]; 15246 foreach (UUID key in new List<UUID>(m_Notecards.Keys))
11647 if (nc.lastRef.AddSeconds(30) < DateTime.Now) 15247 {
11648 m_Notecards.Remove(key); 15248 Notecard nc = m_Notecards[key];
15249 if (nc.lastRef.AddSeconds(30) < DateTime.Now)
15250 m_Notecards.Remove(key);
15251 }
11649 } 15252 }
11650 } 15253 }
11651 } 15254 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
index ceb4660..e5e43f8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
@@ -30,6 +30,7 @@ using System.Reflection;
30using System.Collections; 30using System.Collections;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
33using System.Threading;
33using OpenMetaverse; 34using OpenMetaverse;
34using Nini.Config; 35using Nini.Config;
35using OpenSim; 36using OpenSim;
@@ -61,9 +62,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
61 internal bool m_LSFunctionsEnabled = false; 62 internal bool m_LSFunctionsEnabled = false;
62 internal IScriptModuleComms m_comms = null; 63 internal IScriptModuleComms m_comms = null;
63 64
64 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 65 public void Initialize(
66 IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item)
65 { 67 {
66 m_ScriptEngine = ScriptEngine; 68 m_ScriptEngine = scriptEngine;
67 m_host = host; 69 m_host = host;
68 70
69 if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false)) 71 if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false))
@@ -92,10 +94,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
92 get { return m_ScriptEngine.World; } 94 get { return m_ScriptEngine.World; }
93 } 95 }
94 96
95 // 97 /// <summary>
96 //Dumps an error message on the debug console. 98 /// Dumps an error message on the debug console.
97 // 99 /// </summary>
98
99 internal void LSShoutError(string message) 100 internal void LSShoutError(string message)
100 { 101 {
101 if (message.Length > 1023) 102 if (message.Length > 1023)
@@ -264,175 +265,445 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
264 int idx = 0; 265 int idx = 0;
265 while (idx < rules.Length) 266 while (idx < rules.Length)
266 { 267 {
267 uint rule = (uint)rules.GetLSLIntegerItem(idx); 268 uint rule;
269
270 try
271 {
272 rule = (uint)rules.GetLSLIntegerItem(idx);
273 }
274 catch (InvalidCastException)
275 {
276 throw new InvalidCastException(string.Format("Error running rule type: arg #{0} - parameter type must be integer", idx));
277 }
278
268 LSL_Types.Quaternion iQ; 279 LSL_Types.Quaternion iQ;
269 LSL_Types.Vector3 iV; 280 LSL_Types.Vector3 iV;
270 switch (rule) 281 switch (rule)
271 { 282 {
272 case (int)ScriptBaseClass.WL_SUN_MOON_POSITION: 283 case (int)ScriptBaseClass.WL_SUN_MOON_POSITION:
273 idx++; 284 idx++;
274 wl.sunMoonPosition = (float)rules.GetLSLFloatItem(idx); 285 try
286 {
287 wl.sunMoonPosition = (float)rules.GetLSLFloatItem(idx);
288 }
289 catch (InvalidCastException)
290 {
291 throw new InvalidCastException(string.Format("Error running rule WL_SUN_MOON_POSITION: arg #{0} - parameter 1 must be float", idx));
292 }
275 break; 293 break;
276 case (int)ScriptBaseClass.WL_AMBIENT: 294 case (int)ScriptBaseClass.WL_AMBIENT:
277 idx++; 295 idx++;
278 iQ = rules.GetQuaternionItem(idx); 296 try
297 {
298 iQ = rules.GetQuaternionItem(idx);
299 }
300 catch (InvalidCastException)
301 {
302 throw new InvalidCastException(string.Format("Error running rule WL_AMBIENT: arg #{0} - parameter 1 must be rotation", idx));
303 }
279 wl.ambient = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s); 304 wl.ambient = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s);
280 break; 305 break;
281 case (int)ScriptBaseClass.WL_BIG_WAVE_DIRECTION: 306 case (int)ScriptBaseClass.WL_BIG_WAVE_DIRECTION:
282 idx++; 307 idx++;
283 iV = rules.GetVector3Item(idx); 308 try
309 {
310 iV = rules.GetVector3Item(idx);
311 }
312 catch (InvalidCastException)
313 {
314 throw new InvalidCastException(string.Format("Error running rule WL_BIG_WAVE_DIRECTION: arg #{0} - parameter 1 must be vector", idx));
315 }
284 wl.bigWaveDirection = new Vector2((float)iV.x, (float)iV.y); 316 wl.bigWaveDirection = new Vector2((float)iV.x, (float)iV.y);
285 break; 317 break;
286 case (int)ScriptBaseClass.WL_BLUE_DENSITY: 318 case (int)ScriptBaseClass.WL_BLUE_DENSITY:
287 idx++; 319 idx++;
288 iQ = rules.GetQuaternionItem(idx); 320 try
321 {
322 iQ = rules.GetQuaternionItem(idx);
323 }
324 catch (InvalidCastException)
325 {
326 throw new InvalidCastException(string.Format("Error running rule WL_BLUE_DENSITY: arg #{0} - parameter 1 must be rotation", idx));
327 }
289 wl.blueDensity = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s); 328 wl.blueDensity = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s);
290 break; 329 break;
291 case (int)ScriptBaseClass.WL_BLUR_MULTIPLIER: 330 case (int)ScriptBaseClass.WL_BLUR_MULTIPLIER:
292 idx++; 331 idx++;
293 wl.blurMultiplier = (float)rules.GetLSLFloatItem(idx); 332 try
333 {
334 wl.blurMultiplier = (float)rules.GetLSLFloatItem(idx);
335 }
336 catch (InvalidCastException)
337 {
338 throw new InvalidCastException(string.Format("Error running rule WL_BLUR_MULTIPLIER: arg #{0} - parameter 1 must be float", idx));
339 }
294 break; 340 break;
295 case (int)ScriptBaseClass.WL_CLOUD_COLOR: 341 case (int)ScriptBaseClass.WL_CLOUD_COLOR:
296 idx++; 342 idx++;
297 iQ = rules.GetQuaternionItem(idx); 343 try
344 {
345 iQ = rules.GetQuaternionItem(idx);
346 }
347 catch (InvalidCastException)
348 {
349 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_COLOR: arg #{0} - parameter 1 must be rotation", idx));
350 }
298 wl.cloudColor = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s); 351 wl.cloudColor = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s);
299 break; 352 break;
300 case (int)ScriptBaseClass.WL_CLOUD_COVERAGE: 353 case (int)ScriptBaseClass.WL_CLOUD_COVERAGE:
301 idx++; 354 idx++;
302 wl.cloudCoverage = (float)rules.GetLSLFloatItem(idx); 355 try
356 {
357 wl.cloudCoverage = (float)rules.GetLSLFloatItem(idx);
358 }
359 catch (InvalidCastException)
360 {
361 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_COVERAGE: arg #{0} - parameter 1 must be float", idx));
362 }
303 break; 363 break;
304 case (int)ScriptBaseClass.WL_CLOUD_DETAIL_XY_DENSITY: 364 case (int)ScriptBaseClass.WL_CLOUD_DETAIL_XY_DENSITY:
305 idx++; 365 idx++;
306 iV = rules.GetVector3Item(idx); 366 try
367 {
368 iV = rules.GetVector3Item(idx);
369 }
370 catch (InvalidCastException)
371 {
372 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_DETAIL_XY_DENSITY: arg #{0} - parameter 1 must be vector", idx));
373 }
307 wl.cloudDetailXYDensity = iV; 374 wl.cloudDetailXYDensity = iV;
308 break; 375 break;
309 case (int)ScriptBaseClass.WL_CLOUD_SCALE: 376 case (int)ScriptBaseClass.WL_CLOUD_SCALE:
310 idx++; 377 idx++;
311 wl.cloudScale = (float)rules.GetLSLFloatItem(idx); 378 try
379 {
380 wl.cloudScale = (float)rules.GetLSLFloatItem(idx);
381 }
382 catch (InvalidCastException)
383 {
384 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_SCALE: arg #{0} - parameter 1 must be float", idx));
385 }
312 break; 386 break;
313 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_X: 387 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_X:
314 idx++; 388 idx++;
315 wl.cloudScrollX = (float)rules.GetLSLFloatItem(idx); 389 try
390 {
391 wl.cloudScrollX = (float)rules.GetLSLFloatItem(idx);
392 }
393 catch (InvalidCastException)
394 {
395 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_SCROLL_X: arg #{0} - parameter 1 must be float", idx));
396 }
316 break; 397 break;
317 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_X_LOCK: 398 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_X_LOCK:
318 idx++; 399 idx++;
319 wl.cloudScrollXLock = rules.GetLSLIntegerItem(idx).value == 1 ? true : false; 400 try
401 {
402 wl.cloudScrollXLock = rules.GetLSLIntegerItem(idx).value == 1 ? true : false;
403 }
404 catch (InvalidCastException)
405 {
406 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_SCROLL_Y_LOCK: arg #{0} - parameter 1 must be integer", idx));
407 }
320 break; 408 break;
321 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_Y: 409 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_Y:
322 idx++; 410 idx++;
323 wl.cloudScrollY = (float)rules.GetLSLFloatItem(idx); 411 try
412 {
413 wl.cloudScrollY = (float)rules.GetLSLFloatItem(idx);
414 }
415 catch (InvalidCastException)
416 {
417 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_SCROLL_Y: arg #{0} - parameter 1 must be float", idx));
418 }
324 break; 419 break;
325 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_Y_LOCK: 420 case (int)ScriptBaseClass.WL_CLOUD_SCROLL_Y_LOCK:
326 idx++; 421 idx++;
327 wl.cloudScrollYLock = rules.GetLSLIntegerItem(idx).value == 1 ? true : false; 422 try
423 {
424 wl.cloudScrollYLock = rules.GetLSLIntegerItem(idx).value == 1 ? true : false;
425 }
426 catch (InvalidCastException)
427 {
428 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_SCROLL_Y_LOCK: arg #{0} - parameter 1 must be integer", idx));
429 }
328 break; 430 break;
329 case (int)ScriptBaseClass.WL_CLOUD_XY_DENSITY: 431 case (int)ScriptBaseClass.WL_CLOUD_XY_DENSITY:
330 idx++; 432 idx++;
331 iV = rules.GetVector3Item(idx); 433 try
434 {
435 iV = rules.GetVector3Item(idx);
436 }
437 catch (InvalidCastException)
438 {
439 throw new InvalidCastException(string.Format("Error running rule WL_CLOUD_XY_DENSITY: arg #{0} - parameter 1 must be vector", idx));
440 }
332 wl.cloudXYDensity = iV; 441 wl.cloudXYDensity = iV;
333 break; 442 break;
334 case (int)ScriptBaseClass.WL_DENSITY_MULTIPLIER: 443 case (int)ScriptBaseClass.WL_DENSITY_MULTIPLIER:
335 idx++; 444 idx++;
336 wl.densityMultiplier = (float)rules.GetLSLFloatItem(idx); 445 try
446 {
447 wl.densityMultiplier = (float)rules.GetLSLFloatItem(idx);
448 }
449 catch (InvalidCastException)
450 {
451 throw new InvalidCastException(string.Format("Error running rule WL_DENSITY_MULTIPLIER: arg #{0} - parameter 1 must be float", idx));
452 }
337 break; 453 break;
338 case (int)ScriptBaseClass.WL_DISTANCE_MULTIPLIER: 454 case (int)ScriptBaseClass.WL_DISTANCE_MULTIPLIER:
339 idx++; 455 idx++;
340 wl.distanceMultiplier = (float)rules.GetLSLFloatItem(idx); 456 try
457 {
458 wl.distanceMultiplier = (float)rules.GetLSLFloatItem(idx);
459 }
460 catch (InvalidCastException)
461 {
462 throw new InvalidCastException(string.Format("Error running rule WL_DISTANCE_MULTIPLIER: arg #{0} - parameter 1 must be float", idx));
463 }
341 break; 464 break;
342 case (int)ScriptBaseClass.WL_DRAW_CLASSIC_CLOUDS: 465 case (int)ScriptBaseClass.WL_DRAW_CLASSIC_CLOUDS:
343 idx++; 466 idx++;
344 wl.drawClassicClouds = rules.GetLSLIntegerItem(idx).value == 1 ? true : false; 467 try
468 {
469 wl.drawClassicClouds = rules.GetLSLIntegerItem(idx).value == 1 ? true : false;
470 }
471 catch (InvalidCastException)
472 {
473 throw new InvalidCastException(string.Format("Error running rule WL_DRAW_CLASSIC_CLOUDS: arg #{0} - parameter 1 must be integer", idx));
474 }
345 break; 475 break;
346 case (int)ScriptBaseClass.WL_EAST_ANGLE: 476 case (int)ScriptBaseClass.WL_EAST_ANGLE:
347 idx++; 477 idx++;
348 wl.eastAngle = (float)rules.GetLSLFloatItem(idx); 478 try
479 {
480 wl.eastAngle = (float)rules.GetLSLFloatItem(idx);
481 }
482 catch (InvalidCastException)
483 {
484 throw new InvalidCastException(string.Format("Error running rule WL_EAST_ANGLE: arg #{0} - parameter 1 must be float", idx));
485 }
349 break; 486 break;
350 case (int)ScriptBaseClass.WL_FRESNEL_OFFSET: 487 case (int)ScriptBaseClass.WL_FRESNEL_OFFSET:
351 idx++; 488 idx++;
352 wl.fresnelOffset = (float)rules.GetLSLFloatItem(idx); 489 try
490 {
491 wl.fresnelOffset = (float)rules.GetLSLFloatItem(idx);
492 }
493 catch (InvalidCastException)
494 {
495 throw new InvalidCastException(string.Format("Error running rule WL_FRESNEL_OFFSET: arg #{0} - parameter 1 must be float", idx));
496 }
353 break; 497 break;
354 case (int)ScriptBaseClass.WL_FRESNEL_SCALE: 498 case (int)ScriptBaseClass.WL_FRESNEL_SCALE:
355 idx++; 499 idx++;
356 wl.fresnelScale = (float)rules.GetLSLFloatItem(idx); 500 try
501 {
502 wl.fresnelScale = (float)rules.GetLSLFloatItem(idx);
503 }
504 catch (InvalidCastException)
505 {
506 throw new InvalidCastException(string.Format("Error running rule WL_FRESNEL_SCALE: arg #{0} - parameter 1 must be float", idx));
507 }
357 break; 508 break;
358 case (int)ScriptBaseClass.WL_HAZE_DENSITY: 509 case (int)ScriptBaseClass.WL_HAZE_DENSITY:
359 idx++; 510 idx++;
360 wl.hazeDensity = (float)rules.GetLSLFloatItem(idx); 511 try
512 {
513 wl.hazeDensity = (float)rules.GetLSLFloatItem(idx);
514 }
515 catch (InvalidCastException)
516 {
517 throw new InvalidCastException(string.Format("Error running rule WL_HAZE_DENSITY: arg #{0} - parameter 1 must be float", idx));
518 }
361 break; 519 break;
362 case (int)ScriptBaseClass.WL_HAZE_HORIZON: 520 case (int)ScriptBaseClass.WL_HAZE_HORIZON:
363 idx++; 521 idx++;
364 wl.hazeHorizon = (float)rules.GetLSLFloatItem(idx); 522 try
523 {
524 wl.hazeHorizon = (float)rules.GetLSLFloatItem(idx);
525 }
526 catch (InvalidCastException)
527 {
528 throw new InvalidCastException(string.Format("Error running rule WL_HAZE_HORIZON: arg #{0} - parameter 1 must be float", idx));
529 }
365 break; 530 break;
366 case (int)ScriptBaseClass.WL_HORIZON: 531 case (int)ScriptBaseClass.WL_HORIZON:
367 idx++; 532 idx++;
368 iQ = rules.GetQuaternionItem(idx); 533 try
534 {
535 iQ = rules.GetQuaternionItem(idx);
536 }
537 catch (InvalidCastException)
538 {
539 throw new InvalidCastException(string.Format("Error running rule WL_HORIZON: arg #{0} - parameter 1 must be rotation", idx));
540 }
369 wl.horizon = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s); 541 wl.horizon = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s);
370 break; 542 break;
371 case (int)ScriptBaseClass.WL_LITTLE_WAVE_DIRECTION: 543 case (int)ScriptBaseClass.WL_LITTLE_WAVE_DIRECTION:
372 idx++; 544 idx++;
373 iV = rules.GetVector3Item(idx); 545 try
546 {
547 iV = rules.GetVector3Item(idx);
548 }
549 catch (InvalidCastException)
550 {
551 throw new InvalidCastException(string.Format("Error running rule WL_LITTLE_WAVE_DIRECTION: arg #{0} - parameter 1 must be vector", idx));
552 }
374 wl.littleWaveDirection = new Vector2((float)iV.x, (float)iV.y); 553 wl.littleWaveDirection = new Vector2((float)iV.x, (float)iV.y);
375 break; 554 break;
376 case (int)ScriptBaseClass.WL_MAX_ALTITUDE: 555 case (int)ScriptBaseClass.WL_MAX_ALTITUDE:
377 idx++; 556 idx++;
378 wl.maxAltitude = (ushort)rules.GetLSLIntegerItem(idx).value; 557 try
558 {
559 wl.maxAltitude = (ushort)rules.GetLSLIntegerItem(idx).value;
560 }
561 catch (InvalidCastException)
562 {
563 throw new InvalidCastException(string.Format("Error running rule WL_MAX_ALTITUDE: arg #{0} - parameter 1 must be integer", idx));
564 }
379 break; 565 break;
380 case (int)ScriptBaseClass.WL_NORMAL_MAP_TEXTURE: 566 case (int)ScriptBaseClass.WL_NORMAL_MAP_TEXTURE:
381 idx++; 567 idx++;
382 wl.normalMapTexture = new UUID(rules.GetLSLStringItem(idx).m_string); 568 try
569 {
570 wl.normalMapTexture = new UUID(rules.GetLSLStringItem(idx).m_string);
571 }
572 catch (ArgumentException)
573 {
574 throw new InvalidCastException(string.Format("Error running rule WL_NORMAL_MAP_TEXTURE: arg #{0} - parameter 1 must be key", idx));
575 }
383 break; 576 break;
384 case (int)ScriptBaseClass.WL_REFLECTION_WAVELET_SCALE: 577 case (int)ScriptBaseClass.WL_REFLECTION_WAVELET_SCALE:
385 idx++; 578 idx++;
386 iV = rules.GetVector3Item(idx); 579 try
580 {
581 iV = rules.GetVector3Item(idx);
582 }
583 catch (InvalidCastException)
584 {
585 throw new InvalidCastException(string.Format("Error running rule WL_REFLECTION_WAVELET_SCALE: arg #{0} - parameter 1 must be vector", idx));
586 }
387 wl.reflectionWaveletScale = iV; 587 wl.reflectionWaveletScale = iV;
388 break; 588 break;
389 case (int)ScriptBaseClass.WL_REFRACT_SCALE_ABOVE: 589 case (int)ScriptBaseClass.WL_REFRACT_SCALE_ABOVE:
390 idx++; 590 idx++;
391 wl.refractScaleAbove = (float)rules.GetLSLFloatItem(idx); 591 try
592 {
593 wl.refractScaleAbove = (float)rules.GetLSLFloatItem(idx);
594 }
595 catch (InvalidCastException)
596 {
597 throw new InvalidCastException(string.Format("Error running rule WL_REFRACT_SCALE_ABOVE: arg #{0} - parameter 1 must be float", idx));
598 }
392 break; 599 break;
393 case (int)ScriptBaseClass.WL_REFRACT_SCALE_BELOW: 600 case (int)ScriptBaseClass.WL_REFRACT_SCALE_BELOW:
394 idx++; 601 idx++;
395 wl.refractScaleBelow = (float)rules.GetLSLFloatItem(idx); 602 try
603 {
604 wl.refractScaleBelow = (float)rules.GetLSLFloatItem(idx);
605 }
606 catch (InvalidCastException)
607 {
608 throw new InvalidCastException(string.Format("Error running rule WL_REFRACT_SCALE_BELOW: arg #{0} - parameter 1 must be float", idx));
609 }
396 break; 610 break;
397 case (int)ScriptBaseClass.WL_SCENE_GAMMA: 611 case (int)ScriptBaseClass.WL_SCENE_GAMMA:
398 idx++; 612 idx++;
399 wl.sceneGamma = (float)rules.GetLSLFloatItem(idx); 613 try
614 {
615 wl.sceneGamma = (float)rules.GetLSLFloatItem(idx);
616 }
617 catch (InvalidCastException)
618 {
619 throw new InvalidCastException(string.Format("Error running rule WL_SCENE_GAMMA: arg #{0} - parameter 1 must be float", idx));
620 }
400 break; 621 break;
401 case (int)ScriptBaseClass.WL_STAR_BRIGHTNESS: 622 case (int)ScriptBaseClass.WL_STAR_BRIGHTNESS:
402 idx++; 623 idx++;
403 wl.starBrightness = (float)rules.GetLSLFloatItem(idx); 624 try
625 {
626 wl.starBrightness = (float)rules.GetLSLFloatItem(idx);
627 }
628 catch (InvalidCastException)
629 {
630 throw new InvalidCastException(string.Format("Error running rule WL_STAR_BRIGHTNESS: arg #{0} - parameter 1 must be float", idx));
631 }
404 break; 632 break;
405 case (int)ScriptBaseClass.WL_SUN_GLOW_FOCUS: 633 case (int)ScriptBaseClass.WL_SUN_GLOW_FOCUS:
406 idx++; 634 idx++;
407 wl.sunGlowFocus = (float)rules.GetLSLFloatItem(idx); 635 try
636 {
637 wl.sunGlowFocus = (float)rules.GetLSLFloatItem(idx);
638 }
639 catch (InvalidCastException)
640 {
641 throw new InvalidCastException(string.Format("Error running rule WL_SUN_GLOW_FOCUS: arg #{0} - parameter 1 must be float", idx));
642 }
408 break; 643 break;
409 case (int)ScriptBaseClass.WL_SUN_GLOW_SIZE: 644 case (int)ScriptBaseClass.WL_SUN_GLOW_SIZE:
410 idx++; 645 idx++;
411 wl.sunGlowSize = (float)rules.GetLSLFloatItem(idx); 646 try
647 {
648 wl.sunGlowSize = (float)rules.GetLSLFloatItem(idx);
649 }
650 catch (InvalidCastException)
651 {
652 throw new InvalidCastException(string.Format("Error running rule WL_SUN_GLOW_SIZE: arg #{0} - parameter 1 must be float", idx));
653 }
412 break; 654 break;
413 case (int)ScriptBaseClass.WL_SUN_MOON_COLOR: 655 case (int)ScriptBaseClass.WL_SUN_MOON_COLOR:
414 idx++; 656 idx++;
415 iQ = rules.GetQuaternionItem(idx); 657 iQ = rules.GetQuaternionItem(idx);
416 wl.sunMoonColor = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s); 658 try
659 {
660 wl.sunMoonColor = new Vector4((float)iQ.x, (float)iQ.y, (float)iQ.z, (float)iQ.s);
661 }
662 catch (InvalidCastException)
663 {
664 throw new InvalidCastException(string.Format("Error running rule WL_SUN_MOON_COLOR: arg #{0} - parameter 1 must be rotation", idx));
665 }
417 break; 666 break;
418 case (int)ScriptBaseClass.WL_UNDERWATER_FOG_MODIFIER: 667 case (int)ScriptBaseClass.WL_UNDERWATER_FOG_MODIFIER:
419 idx++; 668 idx++;
420 wl.underwaterFogModifier = (float)rules.GetLSLFloatItem(idx); 669 try
670 {
671 wl.underwaterFogModifier = (float)rules.GetLSLFloatItem(idx);
672 }
673 catch (InvalidCastException)
674 {
675 throw new InvalidCastException(string.Format("Error running rule WL_UNDERWATER_FOG_MODIFIER: arg #{0} - parameter 1 must be float", idx));
676 }
421 break; 677 break;
422 case (int)ScriptBaseClass.WL_WATER_COLOR: 678 case (int)ScriptBaseClass.WL_WATER_COLOR:
423 idx++; 679 idx++;
424 iV = rules.GetVector3Item(idx); 680 try
681 {
682 iV = rules.GetVector3Item(idx);
683 }
684 catch (InvalidCastException)
685 {
686 throw new InvalidCastException(string.Format("Error running rule WL_WATER_COLOR: arg #{0} - parameter 1 must be vector", idx));
687 }
425 wl.waterColor = iV; 688 wl.waterColor = iV;
426 break; 689 break;
427 case (int)ScriptBaseClass.WL_WATER_FOG_DENSITY_EXPONENT: 690 case (int)ScriptBaseClass.WL_WATER_FOG_DENSITY_EXPONENT:
428 idx++; 691 idx++;
429 wl.waterFogDensityExponent = (float)rules.GetLSLFloatItem(idx); 692 try
693 {
694 wl.waterFogDensityExponent = (float)rules.GetLSLFloatItem(idx);
695 }
696 catch (InvalidCastException)
697 {
698 throw new InvalidCastException(string.Format("Error running rule WL_WATER_FOG_DENSITY_EXPONENT: arg #{0} - parameter 1 must be float", idx));
699 }
430 break; 700 break;
431 } 701 }
432 idx++; 702 idx++;
433 } 703 }
434 return wl; 704 return wl;
435 } 705 }
706
436 /// <summary> 707 /// <summary>
437 /// Set the current Windlight scene 708 /// Set the current Windlight scene
438 /// </summary> 709 /// </summary>
@@ -445,16 +716,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
445 LSShoutError("LightShare functions are not enabled."); 716 LSShoutError("LightShare functions are not enabled.");
446 return 0; 717 return 0;
447 } 718 }
448 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) 719
720 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
449 { 721 {
450 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); 722 ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
451 return 0; 723
724 if (sp == null || sp.GodLevel < 200)
725 {
726 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
727 return 0;
728 }
452 } 729 }
730
453 int success = 0; 731 int success = 0;
454 m_host.AddScriptLPS(1); 732 m_host.AddScriptLPS(1);
733
455 if (LightShareModule.EnableWindlight) 734 if (LightShareModule.EnableWindlight)
456 { 735 {
457 RegionLightShareData wl = getWindlightProfileFromRules(rules); 736 RegionLightShareData wl;
737 try
738 {
739 wl = getWindlightProfileFromRules(rules);
740 }
741 catch(InvalidCastException e)
742 {
743 LSShoutError(e.Message);
744 return 0;
745 }
458 wl.valid = true; 746 wl.valid = true;
459 m_host.ParentGroup.Scene.StoreWindlightProfile(wl); 747 m_host.ParentGroup.Scene.StoreWindlightProfile(wl);
460 success = 1; 748 success = 1;
@@ -464,8 +752,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
464 LSShoutError("Windlight module is disabled"); 752 LSShoutError("Windlight module is disabled");
465 return 0; 753 return 0;
466 } 754 }
755
467 return success; 756 return success;
468 } 757 }
758
469 public void lsClearWindlightScene() 759 public void lsClearWindlightScene()
470 { 760 {
471 if (!m_LSFunctionsEnabled) 761 if (!m_LSFunctionsEnabled)
@@ -473,17 +763,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
473 LSShoutError("LightShare functions are not enabled."); 763 LSShoutError("LightShare functions are not enabled.");
474 return; 764 return;
475 } 765 }
476 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) 766
767 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
477 { 768 {
478 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); 769 ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
479 return; 770
771 if (sp == null || sp.GodLevel < 200)
772 {
773 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
774 return;
775 }
480 } 776 }
481 777
482 m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false; 778 m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false;
483 if (m_host.ParentGroup.Scene.SimulationDataService != null) 779 if (m_host.ParentGroup.Scene.SimulationDataService != null)
484 m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID); 780 m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID);
781
485 m_host.ParentGroup.Scene.EventManager.TriggerOnSaveNewWindlightProfile(); 782 m_host.ParentGroup.Scene.EventManager.TriggerOnSaveNewWindlightProfile();
486 } 783 }
784
487 /// <summary> 785 /// <summary>
488 /// Set the current Windlight scene to a target avatar 786 /// Set the current Windlight scene to a target avatar
489 /// </summary> 787 /// </summary>
@@ -496,16 +794,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
496 LSShoutError("LightShare functions are not enabled."); 794 LSShoutError("LightShare functions are not enabled.");
497 return 0; 795 return 0;
498 } 796 }
499 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) 797
798 if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
500 { 799 {
501 LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners."); 800 ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
502 return 0; 801
802 if (sp == null || sp.GodLevel < 200)
803 {
804 LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners.");
805 return 0;
806 }
503 } 807 }
808
504 int success = 0; 809 int success = 0;
505 m_host.AddScriptLPS(1); 810 m_host.AddScriptLPS(1);
811
506 if (LightShareModule.EnableWindlight) 812 if (LightShareModule.EnableWindlight)
507 { 813 {
508 RegionLightShareData wl = getWindlightProfileFromRules(rules); 814 RegionLightShareData wl;
815 try
816 {
817 wl = getWindlightProfileFromRules(rules);
818 }
819 catch(InvalidCastException e)
820 {
821 LSShoutError(e.Message);
822 return 0;
823 }
509 World.EventManager.TriggerOnSendNewWindlightProfileTargeted(wl, new UUID(target.m_string)); 824 World.EventManager.TriggerOnSendNewWindlightProfileTargeted(wl, new UUID(target.m_string));
510 success = 1; 825 success = 1;
511 } 826 }
@@ -514,8 +829,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
514 LSShoutError("Windlight module is disabled"); 829 LSShoutError("Windlight module is disabled");
515 return 0; 830 return 0;
516 } 831 }
832
517 return success; 833 return success;
518 } 834 }
519
520 } 835 }
521} 836}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs
index 8f34833..1458c95 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs
@@ -30,6 +30,8 @@ using System.Reflection;
30using System.Collections; 30using System.Collections;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
33using System.Threading;
34using log4net;
33using OpenMetaverse; 35using OpenMetaverse;
34using Nini.Config; 36using Nini.Config;
35using OpenSim; 37using OpenSim;
@@ -55,15 +57,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
55 [Serializable] 57 [Serializable]
56 public class MOD_Api : MarshalByRefObject, IMOD_Api, IScriptApi 58 public class MOD_Api : MarshalByRefObject, IMOD_Api, IScriptApi
57 { 59 {
60// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
61
58 internal IScriptEngine m_ScriptEngine; 62 internal IScriptEngine m_ScriptEngine;
59 internal SceneObjectPart m_host; 63 internal SceneObjectPart m_host;
60 internal TaskInventoryItem m_item; 64 internal TaskInventoryItem m_item;
61 internal bool m_MODFunctionsEnabled = false; 65 internal bool m_MODFunctionsEnabled = false;
62 internal IScriptModuleComms m_comms = null; 66 internal IScriptModuleComms m_comms = null;
63 67
64 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 68 public void Initialize(
69 IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item)
65 { 70 {
66 m_ScriptEngine = ScriptEngine; 71 m_ScriptEngine = scriptEngine;
67 m_host = host; 72 m_host = host;
68 m_item = item; 73 m_item = item;
69 74
@@ -107,8 +112,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
107 if (message.Length > 1023) 112 if (message.Length > 1023)
108 message = message.Substring(0, 1023); 113 message = message.Substring(0, 1023);
109 114
110 World.SimChat(Utils.StringToBytes(message), 115 World.SimChat(
111 ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); 116 Utils.StringToBytes(message),
117 ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL,
118 m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false);
112 119
113 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); 120 IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
114 wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message); 121 wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
@@ -122,6 +129,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
122 /// <returns>string result of the invocation</returns> 129 /// <returns>string result of the invocation</returns>
123 public void modInvokeN(string fname, params object[] parms) 130 public void modInvokeN(string fname, params object[] parms)
124 { 131 {
132// m_log.DebugFormat(
133// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
134// fname,
135// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
136// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
137
125 Type returntype = m_comms.LookupReturnType(fname); 138 Type returntype = m_comms.LookupReturnType(fname);
126 if (returntype != typeof(string)) 139 if (returntype != typeof(string))
127 MODError(String.Format("return type mismatch for {0}",fname)); 140 MODError(String.Format("return type mismatch for {0}",fname));
@@ -131,6 +144,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
131 144
132 public LSL_String modInvokeS(string fname, params object[] parms) 145 public LSL_String modInvokeS(string fname, params object[] parms)
133 { 146 {
147// m_log.DebugFormat(
148// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
149// fname,
150// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
151// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
152
134 Type returntype = m_comms.LookupReturnType(fname); 153 Type returntype = m_comms.LookupReturnType(fname);
135 if (returntype != typeof(string)) 154 if (returntype != typeof(string))
136 MODError(String.Format("return type mismatch for {0}",fname)); 155 MODError(String.Format("return type mismatch for {0}",fname));
@@ -141,6 +160,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
141 160
142 public LSL_Integer modInvokeI(string fname, params object[] parms) 161 public LSL_Integer modInvokeI(string fname, params object[] parms)
143 { 162 {
163// m_log.DebugFormat(
164// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
165// fname,
166// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
167// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
168
144 Type returntype = m_comms.LookupReturnType(fname); 169 Type returntype = m_comms.LookupReturnType(fname);
145 if (returntype != typeof(int)) 170 if (returntype != typeof(int))
146 MODError(String.Format("return type mismatch for {0}",fname)); 171 MODError(String.Format("return type mismatch for {0}",fname));
@@ -151,6 +176,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
151 176
152 public LSL_Float modInvokeF(string fname, params object[] parms) 177 public LSL_Float modInvokeF(string fname, params object[] parms)
153 { 178 {
179// m_log.DebugFormat(
180// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
181// fname,
182// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
183// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
184
154 Type returntype = m_comms.LookupReturnType(fname); 185 Type returntype = m_comms.LookupReturnType(fname);
155 if (returntype != typeof(float)) 186 if (returntype != typeof(float))
156 MODError(String.Format("return type mismatch for {0}",fname)); 187 MODError(String.Format("return type mismatch for {0}",fname));
@@ -161,6 +192,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
161 192
162 public LSL_Key modInvokeK(string fname, params object[] parms) 193 public LSL_Key modInvokeK(string fname, params object[] parms)
163 { 194 {
195// m_log.DebugFormat(
196// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
197// fname,
198// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
199// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
200
164 Type returntype = m_comms.LookupReturnType(fname); 201 Type returntype = m_comms.LookupReturnType(fname);
165 if (returntype != typeof(UUID)) 202 if (returntype != typeof(UUID))
166 MODError(String.Format("return type mismatch for {0}",fname)); 203 MODError(String.Format("return type mismatch for {0}",fname));
@@ -171,6 +208,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
171 208
172 public LSL_Vector modInvokeV(string fname, params object[] parms) 209 public LSL_Vector modInvokeV(string fname, params object[] parms)
173 { 210 {
211// m_log.DebugFormat(
212// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
213// fname,
214// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
215// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
216
174 Type returntype = m_comms.LookupReturnType(fname); 217 Type returntype = m_comms.LookupReturnType(fname);
175 if (returntype != typeof(OpenMetaverse.Vector3)) 218 if (returntype != typeof(OpenMetaverse.Vector3))
176 MODError(String.Format("return type mismatch for {0}",fname)); 219 MODError(String.Format("return type mismatch for {0}",fname));
@@ -181,6 +224,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
181 224
182 public LSL_Rotation modInvokeR(string fname, params object[] parms) 225 public LSL_Rotation modInvokeR(string fname, params object[] parms)
183 { 226 {
227// m_log.DebugFormat(
228// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
229// fname,
230// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
231// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
232
184 Type returntype = m_comms.LookupReturnType(fname); 233 Type returntype = m_comms.LookupReturnType(fname);
185 if (returntype != typeof(OpenMetaverse.Quaternion)) 234 if (returntype != typeof(OpenMetaverse.Quaternion))
186 MODError(String.Format("return type mismatch for {0}",fname)); 235 MODError(String.Format("return type mismatch for {0}",fname));
@@ -191,6 +240,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
191 240
192 public LSL_List modInvokeL(string fname, params object[] parms) 241 public LSL_List modInvokeL(string fname, params object[] parms)
193 { 242 {
243// m_log.DebugFormat(
244// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
245// fname,
246// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
247// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
248
194 Type returntype = m_comms.LookupReturnType(fname); 249 Type returntype = m_comms.LookupReturnType(fname);
195 if (returntype != typeof(object[])) 250 if (returntype != typeof(object[]))
196 MODError(String.Format("return type mismatch for {0}",fname)); 251 MODError(String.Format("return type mismatch for {0}",fname));
@@ -211,6 +266,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
211 { 266 {
212 llist[i] = new LSL_Float((float)result[i]); 267 llist[i] = new LSL_Float((float)result[i]);
213 } 268 }
269 else if (result[i] is double)
270 {
271 llist[i] = new LSL_Float((double)result[i]);
272 }
214 else if (result[i] is UUID) 273 else if (result[i] is UUID)
215 { 274 {
216 llist[i] = new LSL_Key(result[i].ToString()); 275 llist[i] = new LSL_Key(result[i].ToString());
@@ -248,13 +307,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
248 return ""; 307 return "";
249 } 308 }
250 309
310// m_log.DebugFormat(
311// "[MOD API]: Invoking dynamic function {0}, args '{1}' with {2} return type",
312// fname,
313// string.Join(",", Array.ConvertAll<object, string>(parms, o => o.ToString())),
314// ((MethodInfo)MethodBase.GetCurrentMethod()).ReturnType);
315
251 Type[] signature = m_comms.LookupTypeSignature(fname); 316 Type[] signature = m_comms.LookupTypeSignature(fname);
252 if (signature.Length != parms.Length) 317 if (signature.Length != parms.Length)
253 MODError(String.Format("wrong number of parameters to function {0}",fname)); 318 MODError(String.Format("wrong number of parameters to function {0}",fname));
254 319
255 object[] convertedParms = new object[parms.Length]; 320 object[] convertedParms = new object[parms.Length];
256 for (int i = 0; i < parms.Length; i++) 321 for (int i = 0; i < parms.Length; i++)
257 convertedParms[i] = ConvertFromLSL(parms[i],signature[i], fname); 322 convertedParms[i] = ConvertFromLSL(parms[i], signature[i], fname);
258 323
259 // now call the function, the contract with the function is that it will always return 324 // now call the function, the contract with the function is that it will always return
260 // non-null but don't trust it completely 325 // non-null but don't trust it completely
@@ -351,7 +416,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
351 { 416 {
352 if (type == typeof(object[])) 417 if (type == typeof(object[]))
353 { 418 {
354 object[] plist = (lslparm as LSL_List).Data; 419 object[] plist = ((LSL_List)lslparm).Data;
355 object[] result = new object[plist.Length]; 420 object[] result = new object[plist.Length];
356 for (int i = 0; i < plist.Length; i++) 421 for (int i = 0; i < plist.Length; i++)
357 { 422 {
@@ -379,7 +444,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
379 } 444 }
380 } 445 }
381 446
382 MODError(String.Format("{1}: parameter type mismatch; expecting {0}",type.Name, fname)); 447 MODError(String.Format("{0}: parameter type mismatch; expecting {1}, type(parm)={2}", fname, type.Name, lslparm.GetType()));
383 return null; 448 return null;
384 } 449 }
385 450
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index dcc85c4..e799714 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -62,6 +62,8 @@ using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
62using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; 62using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
63using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 63using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
64using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; 64using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
65using PermissionMask = OpenSim.Framework.PermissionMask;
66using OpenSim.Services.Connectors.Hypergrid;
65 67
66namespace OpenSim.Region.ScriptEngine.Shared.Api 68namespace OpenSim.Region.ScriptEngine.Shared.Api
67{ 69{
@@ -142,16 +144,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
142 144
143 protected IUrlModule m_UrlModule = null; 145 protected IUrlModule m_UrlModule = null;
144 146
145 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 147 public void Initialize(
148 IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item)
146 { 149 {
147 m_ScriptEngine = ScriptEngine; 150 m_ScriptEngine = scriptEngine;
148 m_host = host; 151 m_host = host;
149 m_item = item; 152 m_item = item;
150 153
151 m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>(); 154 m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>();
152 155
153 if (m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false)) 156 if (m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
157 {
154 m_OSFunctionsEnabled = true; 158 m_OSFunctionsEnabled = true;
159 // m_log.Warn("[OSSL] OSSL FUNCTIONS ENABLED");
160 }
155 161
156 m_ScriptDelayFactor = 162 m_ScriptDelayFactor =
157 m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f); 163 m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f);
@@ -245,11 +251,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
245 wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message); 251 wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
246 } 252 }
247 253
254 // Returns of the function is allowed. Throws a script exception if not allowed.
248 public void CheckThreatLevel(ThreatLevel level, string function) 255 public void CheckThreatLevel(ThreatLevel level, string function)
249 { 256 {
250 if (!m_OSFunctionsEnabled) 257 if (!m_OSFunctionsEnabled)
251 OSSLError(String.Format("{0} permission denied. All OS functions are disabled.", function)); // throws 258 OSSLError(String.Format("{0} permission denied. All OS functions are disabled.", function)); // throws
252 259
260 string reasonWhyNot = CheckThreatLevelTest(level, function);
261 if (!String.IsNullOrEmpty(reasonWhyNot))
262 {
263 OSSLError(reasonWhyNot);
264 }
265 }
266
267 // Check to see if function is allowed. Returns an empty string if function permitted
268 // or a string explaining why this function can't be used.
269 private string CheckThreatLevelTest(ThreatLevel level, string function)
270 {
253 if (!m_FunctionPerms.ContainsKey(function)) 271 if (!m_FunctionPerms.ContainsKey(function))
254 { 272 {
255 FunctionPerms perms = new FunctionPerms(); 273 FunctionPerms perms = new FunctionPerms();
@@ -329,10 +347,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
329 { 347 {
330 // Allow / disallow by threat level 348 // Allow / disallow by threat level
331 if (level > m_MaxThreatLevel) 349 if (level > m_MaxThreatLevel)
332 OSSLError( 350 return
333 String.Format( 351 String.Format(
334 "{0} permission denied. Allowed threat level is {1} but function threat level is {2}.", 352 "{0} permission denied. Allowed threat level is {1} but function threat level is {2}.",
335 function, m_MaxThreatLevel, level)); 353 function, m_MaxThreatLevel, level);
336 } 354 }
337 else 355 else
338 { 356 {
@@ -342,7 +360,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
342 if (m_FunctionPerms[function].AllowedOwners.Contains(m_host.OwnerID)) 360 if (m_FunctionPerms[function].AllowedOwners.Contains(m_host.OwnerID))
343 { 361 {
344 // prim owner is in the list of allowed owners 362 // prim owner is in the list of allowed owners
345 return; 363 return String.Empty;
346 } 364 }
347 365
348 UUID ownerID = m_item.OwnerID; 366 UUID ownerID = m_item.OwnerID;
@@ -350,22 +368,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
350 //OSSL only may be used if object is in the same group as the parcel 368 //OSSL only may be used if object is in the same group as the parcel
351 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("PARCEL_GROUP_MEMBER")) 369 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("PARCEL_GROUP_MEMBER"))
352 { 370 {
353 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 371 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
354 372
355 if (land.LandData.GroupID == m_item.GroupID && land.LandData.GroupID != UUID.Zero) 373 if (land.LandData.GroupID == m_item.GroupID && land.LandData.GroupID != UUID.Zero)
356 { 374 {
357 return; 375 return String.Empty;
358 } 376 }
359 } 377 }
360 378
361 //Only Parcelowners may use the function 379 //Only Parcelowners may use the function
362 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("PARCEL_OWNER")) 380 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("PARCEL_OWNER"))
363 { 381 {
364 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); 382 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
365 383
366 if (land.LandData.OwnerID == ownerID) 384 if (land.LandData.OwnerID == ownerID)
367 { 385 {
368 return; 386 return String.Empty;
369 } 387 }
370 } 388 }
371 389
@@ -375,7 +393,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
375 //Only Estate Managers may use the function 393 //Only Estate Managers may use the function
376 if (World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(ownerID) && World.RegionInfo.EstateSettings.EstateOwner != ownerID) 394 if (World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(ownerID) && World.RegionInfo.EstateSettings.EstateOwner != ownerID)
377 { 395 {
378 return; 396 return String.Empty;
379 } 397 }
380 } 398 }
381 399
@@ -384,25 +402,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
384 { 402 {
385 if (World.RegionInfo.EstateSettings.EstateOwner == ownerID) 403 if (World.RegionInfo.EstateSettings.EstateOwner == ownerID)
386 { 404 {
387 return; 405 return String.Empty;
388 } 406 }
389 } 407 }
390 408
391 if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID)) 409 if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID))
392 OSSLError( 410 return(
393 String.Format("{0} permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.", 411 String.Format("{0} permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.",
394 function)); 412 function));
395 413
396 if (m_item.CreatorID != ownerID) 414 if (m_item.CreatorID != ownerID)
397 { 415 {
398 if ((m_item.CurrentPermissions & (uint)PermissionMask.Modify) != 0) 416 if ((m_item.CurrentPermissions & (uint)PermissionMask.Modify) != 0)
399 OSSLError( 417 return String.Format("{0} permission denied. Script permissions error.", function);
400 String.Format("{0} permission denied. Script permissions error.",
401 function));
402 418
403 } 419 }
404 } 420 }
405 } 421 }
422 return String.Empty;
406 } 423 }
407 424
408 internal void OSSLDeprecated(string function, string replacement) 425 internal void OSSLDeprecated(string function, string replacement)
@@ -437,7 +454,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
437 { 454 {
438 m_host.AddScriptLPS(1); 455 m_host.AddScriptLPS(1);
439 456
440 if (x > ((int)Constants.RegionSize - 1) || x < 0 || y > ((int)Constants.RegionSize - 1) || y < 0) 457 if (x > (World.RegionInfo.RegionSizeX - 1) || x < 0 || y > (World.RegionInfo.RegionSizeY - 1) || y < 0)
441 OSSLError("osSetTerrainHeight: Coordinate out of bounds"); 458 OSSLError("osSetTerrainHeight: Coordinate out of bounds");
442 459
443 if (World.Permissions.CanTerraformLand(m_host.OwnerID, new Vector3(x, y, 0))) 460 if (World.Permissions.CanTerraformLand(m_host.OwnerID, new Vector3(x, y, 0)))
@@ -467,7 +484,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
467 private LSL_Float GetTerrainHeight(int x, int y) 484 private LSL_Float GetTerrainHeight(int x, int y)
468 { 485 {
469 m_host.AddScriptLPS(1); 486 m_host.AddScriptLPS(1);
470 if (x > ((int)Constants.RegionSize - 1) || x < 0 || y > ((int)Constants.RegionSize - 1) || y < 0) 487 if (x > (World.RegionInfo.RegionSizeX - 1) || x < 0 || y > (World.RegionInfo.RegionSizeY - 1) || y < 0)
471 OSSLError("osGetTerrainHeight: Coordinate out of bounds"); 488 OSSLError("osGetTerrainHeight: Coordinate out of bounds");
472 489
473 return World.Heightmap[x, y]; 490 return World.Heightmap[x, y];
@@ -777,9 +794,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
777 794
778 // We will launch the teleport on a new thread so that when the script threads are terminated 795 // We will launch the teleport on a new thread so that when the script threads are terminated
779 // before teleport in ScriptInstance.GetXMLState(), we don't end up aborting the one doing the teleporting. 796 // before teleport in ScriptInstance.GetXMLState(), we don't end up aborting the one doing the teleporting.
780 Util.FireAndForget(o => World.RequestTeleportLocation( 797 Util.FireAndForget(
781 presence.ControllingClient, regionName, position, 798 o => World.RequestTeleportLocation(
782 lookat, (uint)TPFlags.ViaLocation)); 799 presence.ControllingClient, regionName, position,
800 lookat, (uint)TPFlags.ViaLocation),
801 null, "OSSL_Api.TeleportAgentByRegionCoords");
783 802
784 ScriptSleep(5000); 803 ScriptSleep(5000);
785 804
@@ -801,7 +820,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
801 private void TeleportAgent(string agent, int regionX, int regionY, 820 private void TeleportAgent(string agent, int regionX, int regionY,
802 LSL_Types.Vector3 position, LSL_Types.Vector3 lookat, bool relaxRestrictions) 821 LSL_Types.Vector3 position, LSL_Types.Vector3 lookat, bool relaxRestrictions)
803 { 822 {
804 ulong regionHandle = Util.UIntsToLong(((uint)regionX * (uint)Constants.RegionSize), ((uint)regionY * (uint)Constants.RegionSize)); 823 // ulong regionHandle = Util.UIntsToLong(((uint)regionX * (uint)Constants.RegionSize), ((uint)regionY * (uint)Constants.RegionSize));
824 ulong regionHandle = Util.RegionLocToHandle((uint)regionX, (uint)regionY);
805 825
806 m_host.AddScriptLPS(1); 826 m_host.AddScriptLPS(1);
807 UUID agentId = new UUID(); 827 UUID agentId = new UUID();
@@ -822,9 +842,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
822 842
823 // We will launch the teleport on a new thread so that when the script threads are terminated 843 // We will launch the teleport on a new thread so that when the script threads are terminated
824 // before teleport in ScriptInstance.GetXMLState(), we don't end up aborting the one doing the teleporting. 844 // before teleport in ScriptInstance.GetXMLState(), we don't end up aborting the one doing the teleporting.
825 Util.FireAndForget(o => World.RequestTeleportLocation( 845 Util.FireAndForget(
826 presence.ControllingClient, regionHandle, 846 o => World.RequestTeleportLocation(
827 position, lookat, (uint)TPFlags.ViaLocation)); 847 presence.ControllingClient, regionHandle,
848 position, lookat, (uint)TPFlags.ViaLocation),
849 null, "OSSL_Api.TeleportAgentByRegionName");
828 850
829 ScriptSleep(5000); 851 ScriptSleep(5000);
830 852
@@ -859,6 +881,59 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
859 TeleportAgent(m_host.OwnerID.ToString(), regionX, regionY, position, lookat, true); 881 TeleportAgent(m_host.OwnerID.ToString(), regionX, regionY, position, lookat, true);
860 } 882 }
861 883
884 ///<summary>
885 /// Allows a script IN the target prim to force an avatar to sit on it using normal methods
886 /// as if called by the client.
887 /// Silent fail if agent (or target if overloaded) not found.
888 /// Does work if passed key (or keys if overloaded).
889 /// </summary>
890 /// <param name="avatar"></param>
891 public void osForceOtherSit(string avatar)
892 {
893 CheckThreatLevel(ThreatLevel.VeryHigh, "osForceOtherSit");
894
895 m_host.AddScriptLPS(1);
896
897 ForceSit(avatar, m_host.UUID);
898 }
899
900 /// <summary>
901 /// Overload method of osForceOtherSit(string avatar) to allow a script NOT in the target prim to force
902 /// an avatar to sit on the target prim using normal methods as if called by the client.
903 /// </summary>
904 /// <param name="avatar"></param>
905 /// <param name="target"></param>
906 public void osForceOtherSit(string avatar, string target)
907 {
908 CheckThreatLevel(ThreatLevel.VeryHigh, "osForceOtherSit");
909
910 m_host.AddScriptLPS(1);
911
912 UUID targetID = new UUID(target);
913
914 ForceSit(avatar, targetID);
915 }
916
917 public void ForceSit(string avatar, UUID targetID)
918 {
919 UUID agentID;
920
921 if (!UUID.TryParse(avatar, out agentID))
922 return;
923
924 ScenePresence presence = World.GetScenePresence(agentID);
925
926 SceneObjectPart part = World.GetSceneObjectPart(targetID);
927
928 if (presence != null &&
929 part != null &&
930 part.SitTargetAvatar == UUID.Zero)
931 presence.HandleAgentRequestSit(presence.ControllingClient,
932 agentID,
933 targetID,
934 part.SitTargetPosition);
935 }
936
862 // Functions that get information from the agent itself. 937 // Functions that get information from the agent itself.
863 // 938 //
864 // osGetAgentIP - this is used to determine the IP address of 939 // osGetAgentIP - this is used to determine the IP address of
@@ -1205,12 +1280,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1205 sunHour += 24.0; 1280 sunHour += 24.0;
1206 1281
1207 World.RegionInfo.RegionSettings.UseEstateSun = useEstateSun; 1282 World.RegionInfo.RegionSettings.UseEstateSun = useEstateSun;
1208 World.RegionInfo.RegionSettings.SunPosition = sunHour + 6; // LL Region Sun Hour is 6 to 30 1283 World.RegionInfo.RegionSettings.SunPosition = sunHour + 6; // LL Region Sun Hour is 6 to 30
1209 World.RegionInfo.RegionSettings.FixedSun = sunFixed; 1284 World.RegionInfo.RegionSettings.FixedSun = sunFixed;
1210 World.RegionInfo.RegionSettings.Save(); 1285 World.RegionInfo.RegionSettings.Save();
1211 1286
1212 World.EventManager.TriggerEstateToolsSunUpdate( 1287 World.EventManager.TriggerEstateToolsSunUpdate(World.RegionInfo.RegionHandle);
1213 World.RegionInfo.RegionHandle, sunFixed, useEstateSun, (float)sunHour);
1214 } 1288 }
1215 1289
1216 /// <summary> 1290 /// <summary>
@@ -1233,10 +1307,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1233 World.RegionInfo.EstateSettings.UseGlobalTime = !sunFixed; 1307 World.RegionInfo.EstateSettings.UseGlobalTime = !sunFixed;
1234 World.RegionInfo.EstateSettings.SunPosition = sunHour; 1308 World.RegionInfo.EstateSettings.SunPosition = sunHour;
1235 World.RegionInfo.EstateSettings.FixedSun = sunFixed; 1309 World.RegionInfo.EstateSettings.FixedSun = sunFixed;
1236 World.RegionInfo.EstateSettings.Save(); 1310 World.EstateDataService.StoreEstateSettings(World.RegionInfo.EstateSettings);
1237 1311
1238 World.EventManager.TriggerEstateToolsSunUpdate( 1312 World.EventManager.TriggerEstateToolsSunUpdate(World.RegionInfo.RegionHandle);
1239 World.RegionInfo.RegionHandle, sunFixed, World.RegionInfo.RegionSettings.UseEstateSun, (float)sunHour);
1240 } 1313 }
1241 1314
1242 /// <summary> 1315 /// <summary>
@@ -1492,8 +1565,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1492 1565
1493 m_host.AddScriptLPS(1); 1566 m_host.AddScriptLPS(1);
1494 1567
1495 ILandObject land 1568 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
1496 = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
1497 1569
1498 if (land.LandData.OwnerID != m_host.OwnerID) 1570 if (land.LandData.OwnerID != m_host.OwnerID)
1499 return; 1571 return;
@@ -1509,8 +1581,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1509 1581
1510 m_host.AddScriptLPS(1); 1582 m_host.AddScriptLPS(1);
1511 1583
1512 ILandObject land 1584 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
1513 = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
1514 1585
1515 if (land.LandData.OwnerID != m_host.OwnerID) 1586 if (land.LandData.OwnerID != m_host.OwnerID)
1516 { 1587 {
@@ -1560,6 +1631,47 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1560 } 1631 }
1561 } 1632 }
1562 1633
1634 public LSL_Integer osCheckODE()
1635 {
1636 m_host.AddScriptLPS(1);
1637 LSL_Integer ret = 0; // false
1638 if (m_ScriptEngine.World.PhysicsScene != null)
1639 {
1640 string physEngine = m_ScriptEngine.World.PhysicsScene.EngineType;
1641 if (physEngine == "OpenDynamicsEngine")
1642 {
1643 ret = 1; // true
1644 }
1645 }
1646 return ret;
1647 }
1648
1649 public string osGetPhysicsEngineType()
1650 {
1651 // High because it can be used to target attacks to known weaknesses
1652 // This would allow a new class of griefer scripts that don't even
1653 // require their user to know what they are doing (see script
1654 // kiddie)
1655 // Because it would be nice if scripts didn't blow up if the information
1656 // about the physics engine, this function returns an empty string if
1657 // the user does not have permission to see it. This as opposed to
1658 // throwing an exception.
1659 m_host.AddScriptLPS(1);
1660 string ret = String.Empty;
1661 if (String.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.High, "osGetPhysicsEngineType")))
1662 {
1663 if (m_ScriptEngine.World.PhysicsScene != null)
1664 {
1665 ret = m_ScriptEngine.World.PhysicsScene.EngineType;
1666 // An old physics engine might have an uninitialized engine type
1667 if (ret == null)
1668 ret = "unknown";
1669 }
1670 }
1671
1672 return ret;
1673 }
1674
1563 public string osGetSimulatorVersion() 1675 public string osGetSimulatorVersion()
1564 { 1676 {
1565 // High because it can be used to target attacks to known weaknesses 1677 // High because it can be used to target attacks to known weaknesses
@@ -1732,13 +1844,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1732 // Create new asset 1844 // Create new asset
1733 AssetBase asset = new AssetBase(UUID.Random(), name, (sbyte)AssetType.Notecard, m_host.OwnerID.ToString()); 1845 AssetBase asset = new AssetBase(UUID.Random(), name, (sbyte)AssetType.Notecard, m_host.OwnerID.ToString());
1734 asset.Description = description; 1846 asset.Description = description;
1847 byte[] a;
1848 byte[] b;
1849 byte[] c;
1850
1851 b = Util.UTF8.GetBytes(data);
1735 1852
1736 int textLength = data.Length; 1853 a = Util.UTF8.GetBytes(
1737 data 1854 "Linden text version 2\n{\nLLEmbeddedItems version 1\n{\ncount 0\n}\nText length " + b.Length.ToString() + "\n");
1738 = "Linden text version 2\n{\nLLEmbeddedItems version 1\n{\ncount 0\n}\nText length "
1739 + textLength.ToString() + "\n" + data + "}\n";
1740 1855
1741 asset.Data = Util.UTF8.GetBytes(data); 1856 c = Util.UTF8.GetBytes("}");
1857
1858 byte[] d = new byte[a.Length + b.Length + c.Length];
1859 Buffer.BlockCopy(a, 0, d, 0, a.Length);
1860 Buffer.BlockCopy(b, 0, d, a.Length, b.Length);
1861 Buffer.BlockCopy(c, 0, d, a.Length + b.Length, c.Length);
1862
1863 asset.Data = d;
1742 World.AssetService.Store(asset); 1864 World.AssetService.Store(asset);
1743 1865
1744 // Create Task Entry 1866 // Create Task Entry
@@ -1753,8 +1875,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1753 taskItem.InvType = (int)InventoryType.Notecard; 1875 taskItem.InvType = (int)InventoryType.Notecard;
1754 taskItem.OwnerID = m_host.OwnerID; 1876 taskItem.OwnerID = m_host.OwnerID;
1755 taskItem.CreatorID = m_host.OwnerID; 1877 taskItem.CreatorID = m_host.OwnerID;
1756 taskItem.BasePermissions = (uint)PermissionMask.All; 1878 taskItem.BasePermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export;
1757 taskItem.CurrentPermissions = (uint)PermissionMask.All; 1879 taskItem.CurrentPermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export;
1758 taskItem.EveryonePermissions = 0; 1880 taskItem.EveryonePermissions = 0;
1759 taskItem.NextPermissions = (uint)PermissionMask.All; 1881 taskItem.NextPermissions = (uint)PermissionMask.All;
1760 taskItem.GroupID = m_host.GroupID; 1882 taskItem.GroupID = m_host.GroupID;
@@ -1833,8 +1955,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1833 if (a == null) 1955 if (a == null)
1834 return UUID.Zero; 1956 return UUID.Zero;
1835 1957
1836 string data = Encoding.UTF8.GetString(a.Data); 1958 NotecardCache.Cache(assetID, a.Data);
1837 NotecardCache.Cache(assetID, data);
1838 }; 1959 };
1839 1960
1840 return assetID; 1961 return assetID;
@@ -1932,15 +2053,51 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1932 CheckThreatLevel(ThreatLevel.Low, "osAvatarName2Key"); 2053 CheckThreatLevel(ThreatLevel.Low, "osAvatarName2Key");
1933 m_host.AddScriptLPS(1); 2054 m_host.AddScriptLPS(1);
1934 2055
1935 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, firstname, lastname); 2056 IUserManagement userManager = World.RequestModuleInterface<IUserManagement>();
1936 if (null == account) 2057 if (userManager == null)
1937 { 2058 {
1938 return UUID.Zero.ToString(); 2059 OSSLShoutError("osAvatarName2Key: UserManagement module not available");
2060 return string.Empty;
2061 }
2062
2063 // Check if the user is already cached
2064
2065 UUID userID = userManager.GetUserIdByName(firstname, lastname);
2066 if (userID != UUID.Zero)
2067 return userID.ToString();
2068
2069 // Query for the user
2070
2071 String realFirstName; String realLastName; String serverURI;
2072 if (Util.ParseForeignAvatarName(firstname, lastname, out realFirstName, out realLastName, out serverURI))
2073 {
2074 try
2075 {
2076 UserAgentServiceConnector userConnection = new UserAgentServiceConnector(serverURI, true);
2077
2078 if (userConnection != null)
2079 {
2080 userID = userConnection.GetUUID(realFirstName, realLastName);
2081 if (userID != UUID.Zero)
2082 {
2083 userManager.AddUser(userID, realFirstName, realLastName, serverURI);
2084 return userID.ToString();
2085 }
2086 }
2087 }
2088 catch (Exception /*e*/)
2089 {
2090 // m_log.Warn("[osAvatarName2Key] UserAgentServiceConnector - Unable to connect to destination grid ", e);
2091 }
1939 } 2092 }
1940 else 2093 else
1941 { 2094 {
1942 return account.PrincipalID.ToString(); 2095 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, firstname, lastname);
2096 if (account != null)
2097 return account.PrincipalID.ToString();
1943 } 2098 }
2099
2100 return UUID.Zero.ToString();
1944 } 2101 }
1945 2102
1946 public string osKey2Name(string id) 2103 public string osKey2Name(string id)
@@ -1953,19 +2110,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1953 if (UUID.TryParse(id, out key)) 2110 if (UUID.TryParse(id, out key))
1954 { 2111 {
1955 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, key); 2112 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, key);
1956 if (null == account) 2113 if (account != null)
1957 {
1958 return "";
1959 }
1960 else
1961 {
1962 return account.Name; 2114 return account.Name;
2115
2116 if (m_ScriptEngine.World.GridUserService != null)
2117 {
2118 GridUserInfo uInfo = m_ScriptEngine.World.GridUserService.GetGridUserInfo(key.ToString());
2119
2120 if (uInfo != null)
2121 {
2122 UUID userUUID; String gridURL; String firstName; String lastName; String tmp;
2123
2124 if (Util.ParseUniversalUserIdentifier(uInfo.UserID, out userUUID, out gridURL, out firstName, out lastName, out tmp))
2125 {
2126 string grid = new Uri(gridURL).Authority;
2127 return firstName + "." + lastName + " @" + grid;
2128 }
2129 }
1963 } 2130 }
1964 } 2131 }
1965 else 2132
1966 { 2133 return "";
1967 return "";
1968 }
1969 } 2134 }
1970 2135
1971 private enum InfoType 2136 private enum InfoType
@@ -2101,9 +2266,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2101 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI"); 2266 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI");
2102 m_host.AddScriptLPS(1); 2267 m_host.AddScriptLPS(1);
2103 2268
2104 string HomeURI = String.Empty;
2105 IConfigSource config = m_ScriptEngine.ConfigSource; 2269 IConfigSource config = m_ScriptEngine.ConfigSource;
2270 string HomeURI = Util.GetConfigVarFromSections<string>(config, "HomeURI",
2271 new string[] { "Startup", "Hypergrid" }, String.Empty);
2106 2272
2273 if (!string.IsNullOrEmpty(HomeURI))
2274 return HomeURI;
2275
2276 // Legacy. Remove soon!
2107 if (config.Configs["LoginService"] != null) 2277 if (config.Configs["LoginService"] != null)
2108 HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI); 2278 HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI);
2109 2279
@@ -2118,9 +2288,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2118 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridGatekeeperURI"); 2288 CheckThreatLevel(ThreatLevel.Moderate, "osGetGridGatekeeperURI");
2119 m_host.AddScriptLPS(1); 2289 m_host.AddScriptLPS(1);
2120 2290
2121 string gatekeeperURI = String.Empty;
2122 IConfigSource config = m_ScriptEngine.ConfigSource; 2291 IConfigSource config = m_ScriptEngine.ConfigSource;
2292 string gatekeeperURI = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI",
2293 new string[] { "Startup", "Hypergrid" }, String.Empty);
2294
2295 if (!string.IsNullOrEmpty(gatekeeperURI))
2296 return gatekeeperURI;
2123 2297
2298 // Legacy. Remove soon!
2124 if (config.Configs["GridService"] != null) 2299 if (config.Configs["GridService"] != null)
2125 gatekeeperURI = config.Configs["GridService"].GetString("Gatekeeper", gatekeeperURI); 2300 gatekeeperURI = config.Configs["GridService"].GetString("Gatekeeper", gatekeeperURI);
2126 2301
@@ -2144,6 +2319,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2144 return retval; 2319 return retval;
2145 } 2320 }
2146 2321
2322 public string osGetAvatarHomeURI(string uuid)
2323 {
2324 CheckThreatLevel(ThreatLevel.Low, "osGetAvatarHomeURI");
2325 m_host.AddScriptLPS(1);
2326
2327 IUserManagement userManager = m_ScriptEngine.World.RequestModuleInterface<IUserManagement>();
2328 string returnValue = "";
2329
2330 if (userManager != null)
2331 {
2332 returnValue = userManager.GetUserServerURL(new UUID(uuid), "HomeURI");
2333 }
2334
2335 if (returnValue == "")
2336 {
2337 IConfigSource config = m_ScriptEngine.ConfigSource;
2338 returnValue = Util.GetConfigVarFromSections<string>(config, "HomeURI",
2339 new string[] { "Startup", "Hypergrid" }, String.Empty);
2340
2341 if (!string.IsNullOrEmpty(returnValue))
2342 return returnValue;
2343
2344 // Legacy. Remove soon!
2345 if (config.Configs["LoginService"] != null)
2346 returnValue = config.Configs["LoginService"].GetString("SRV_HomeURI", returnValue);
2347
2348 if (String.IsNullOrEmpty(returnValue))
2349 returnValue = GridUserInfo(InfoType.Home);
2350 }
2351
2352 return returnValue;
2353 }
2354
2147 public LSL_String osFormatString(string str, LSL_List strings) 2355 public LSL_String osFormatString(string str, LSL_List strings)
2148 { 2356 {
2149 CheckThreatLevel(ThreatLevel.VeryLow, "osFormatString"); 2357 CheckThreatLevel(ThreatLevel.VeryLow, "osFormatString");
@@ -2265,14 +2473,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2265 // on the ILSL_Api interface. 2473 // on the ILSL_Api interface.
2266 LSL_Api LSL_Api = (LSL_Api)m_LSL_Api; 2474 LSL_Api LSL_Api = (LSL_Api)m_LSL_Api;
2267 LSL_List retVal = new LSL_List(); 2475 LSL_List retVal = new LSL_List();
2268 LSL_List remaining = null; 2476 LSL_List remaining = new LSL_List();
2269 List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber); 2477 List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber);
2270 foreach (SceneObjectPart part in parts) 2478 foreach (SceneObjectPart part in parts)
2271 { 2479 {
2272 remaining = LSL_Api.GetPrimParams(part, rules, ref retVal); 2480 remaining = LSL_Api.GetPrimParams(part, rules, ref retVal);
2273 } 2481 }
2274 2482
2275 while (remaining != null && remaining.Length > 2) 2483 while (remaining.Length > 2)
2276 { 2484 {
2277 linknumber = remaining.GetLSLIntegerItem(0); 2485 linknumber = remaining.GetLSLIntegerItem(0);
2278 rules = remaining.GetSublist(1, -1); 2486 rules = remaining.GetSublist(1, -1);
@@ -2284,6 +2492,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2284 return retVal; 2492 return retVal;
2285 } 2493 }
2286 2494
2495 public void osForceCreateLink(string target, int parent)
2496 {
2497 CheckThreatLevel(ThreatLevel.VeryLow, "osForceCreateLink");
2498
2499 m_host.AddScriptLPS(1);
2500
2501 InitLSL();
2502 ((LSL_Api)m_LSL_Api).CreateLink(target, parent);
2503 }
2504
2505 public void osForceBreakLink(int linknum)
2506 {
2507 CheckThreatLevel(ThreatLevel.VeryLow, "osForceBreakLink");
2508
2509 m_host.AddScriptLPS(1);
2510
2511 InitLSL();
2512 ((LSL_Api)m_LSL_Api).BreakLink(linknum);
2513 }
2514
2515 public void osForceBreakAllLinks()
2516 {
2517 CheckThreatLevel(ThreatLevel.VeryLow, "osForceBreakAllLinks");
2518
2519 m_host.AddScriptLPS(1);
2520
2521 InitLSL();
2522 ((LSL_Api)m_LSL_Api).BreakAllLinks();
2523 }
2524
2287 public LSL_Integer osIsNpc(LSL_Key npc) 2525 public LSL_Integer osIsNpc(LSL_Key npc)
2288 { 2526 {
2289 CheckThreatLevel(ThreatLevel.None, "osIsNpc"); 2527 CheckThreatLevel(ThreatLevel.None, "osIsNpc");
@@ -2469,13 +2707,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2469 ScenePresence sp = World.GetScenePresence(npcId); 2707 ScenePresence sp = World.GetScenePresence(npcId);
2470 2708
2471 if (sp != null) 2709 if (sp != null)
2472 { 2710 return new LSL_Vector(sp.AbsolutePosition);
2473 Vector3 pos = sp.AbsolutePosition;
2474 return new LSL_Vector(pos.X, pos.Y, pos.Z);
2475 }
2476 } 2711 }
2477 2712
2478 return new LSL_Vector(0, 0, 0); 2713 return Vector3.Zero;
2479 } 2714 }
2480 2715
2481 public void osNpcMoveTo(LSL_Key npc, LSL_Vector pos) 2716 public void osNpcMoveTo(LSL_Key npc, LSL_Vector pos)
@@ -2532,21 +2767,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2532 { 2767 {
2533 UUID npcId; 2768 UUID npcId;
2534 if (!UUID.TryParse(npc.m_string, out npcId)) 2769 if (!UUID.TryParse(npc.m_string, out npcId))
2535 return new LSL_Rotation(Quaternion.Identity.X, Quaternion.Identity.Y, Quaternion.Identity.Z, Quaternion.Identity.W); 2770 return new LSL_Rotation(Quaternion.Identity);
2536 2771
2537 if (!npcModule.CheckPermissions(npcId, m_host.OwnerID)) 2772 if (!npcModule.CheckPermissions(npcId, m_host.OwnerID))
2538 return new LSL_Rotation(Quaternion.Identity.X, Quaternion.Identity.Y, Quaternion.Identity.Z, Quaternion.Identity.W); 2773 return new LSL_Rotation(Quaternion.Identity);
2539 2774
2540 ScenePresence sp = World.GetScenePresence(npcId); 2775 ScenePresence sp = World.GetScenePresence(npcId);
2541 2776
2542 if (sp != null) 2777 if (sp != null)
2543 { 2778 return new LSL_Rotation(sp.GetWorldRotation());
2544 Quaternion rot = sp.Rotation;
2545 return new LSL_Rotation(rot.X, rot.Y, rot.Z, rot.W);
2546 }
2547 } 2779 }
2548 2780
2549 return new LSL_Rotation(Quaternion.Identity.X, Quaternion.Identity.Y, Quaternion.Identity.Z, Quaternion.Identity.W); 2781 return Quaternion.Identity;
2550 } 2782 }
2551 2783
2552 public void osNpcSetRot(LSL_Key npc, LSL_Rotation rotation) 2784 public void osNpcSetRot(LSL_Key npc, LSL_Rotation rotation)
@@ -2824,6 +3056,51 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2824 3056
2825 return SaveAppearanceToNotecard(avatarId, notecard); 3057 return SaveAppearanceToNotecard(avatarId, notecard);
2826 } 3058 }
3059
3060 /// <summary>
3061 /// Get the gender as specified in avatar appearance for a given avatar key
3062 /// </summary>
3063 /// <param name="rawAvatarId"></param>
3064 /// <returns>"male" or "female" or "unknown"</returns>
3065 public LSL_String osGetGender(LSL_Key rawAvatarId)
3066 {
3067 CheckThreatLevel(ThreatLevel.None, "osGetGender");
3068 m_host.AddScriptLPS(1);
3069
3070 UUID avatarId;
3071 if (!UUID.TryParse(rawAvatarId, out avatarId))
3072 return new LSL_String("unknown");
3073
3074 ScenePresence sp = World.GetScenePresence(avatarId);
3075
3076 if (sp == null || sp.IsChildAgent || sp.Appearance == null || sp.Appearance.VisualParams == null)
3077 return new LSL_String("unknown");
3078
3079 // find the index of "shape" parameter "male"
3080 int vpShapeMaleIndex = 0;
3081 bool indexFound = false;
3082 VisualParam param = new VisualParam();
3083 foreach(var vpEntry in VisualParams.Params)
3084 {
3085 param = vpEntry.Value;
3086 if (param.Name == "male" && param.Wearable == "shape")
3087 {
3088 indexFound = true;
3089 break;
3090 }
3091
3092 if (param.Group == 0)
3093 vpShapeMaleIndex++;
3094 }
3095
3096 if (!indexFound)
3097 return new LSL_String("unknown");
3098
3099 float vpShapeMale = Utils.ByteToFloat(sp.Appearance.VisualParams[vpShapeMaleIndex], param.MinValue, param.MaxValue);
3100
3101 bool isMale = vpShapeMale > 0.5f;
3102 return new LSL_String(isMale ? "male" : "female");
3103 }
2827 3104
2828 /// <summary> 3105 /// <summary>
2829 /// Get current region's map texture UUID 3106 /// Get current region's map texture UUID
@@ -2887,6 +3164,31 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2887 return ret; 3164 return ret;
2888 } 3165 }
2889 3166
3167 public LSL_Vector osGetRegionSize()
3168 {
3169 CheckThreatLevel(ThreatLevel.None, "osGetRegionSize");
3170 m_host.AddScriptLPS(1);
3171
3172 bool isMegaregion;
3173 IRegionCombinerModule rcMod = World.RequestModuleInterface<IRegionCombinerModule>();
3174 if (rcMod != null)
3175 isMegaregion = rcMod.IsRootForMegaregion(World.RegionInfo.RegionID);
3176 else
3177 isMegaregion = false;
3178
3179 if (isMegaregion)
3180 {
3181 Vector2 size = rcMod.GetSizeOfMegaregion(World.RegionInfo.RegionID);
3182 return new LSL_Vector(size.X, size.Y, Constants.RegionHeight);
3183 }
3184 else
3185 {
3186 Scene scene = m_ScriptEngine.World;
3187 GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID);
3188 return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeX, Constants.RegionHeight);
3189 }
3190 }
3191
2890 public int osGetSimulatorMemory() 3192 public int osGetSimulatorMemory()
2891 { 3193 {
2892 CheckThreatLevel(ThreatLevel.Moderate, "osGetSimulatorMemory"); 3194 CheckThreatLevel(ThreatLevel.Moderate, "osGetSimulatorMemory");
@@ -2925,7 +3227,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2925 sp.ControllingClient.Kick(alert); 3227 sp.ControllingClient.Kick(alert);
2926 3228
2927 // ...and close on our side 3229 // ...and close on our side
2928 sp.Scene.IncomingCloseAgent(sp.UUID, false); 3230 sp.Scene.CloseAgent(sp.UUID, false);
2929 } 3231 }
2930 }); 3232 });
2931 } 3233 }
@@ -2976,20 +3278,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2976 3278
2977 UUID avatarId = new UUID(avatar); 3279 UUID avatarId = new UUID(avatar);
2978 ScenePresence presence = World.GetScenePresence(avatarId); 3280 ScenePresence presence = World.GetScenePresence(avatarId);
2979 Vector3 pos = m_host.GetWorldPosition(); 3281
2980 bool result = World.ScriptDanger(m_host.LocalId, new Vector3((float)pos.X, (float)pos.Y, (float)pos.Z)); 3282 if (presence != null && World.ScriptDanger(m_host.LocalId, m_host.GetWorldPosition()))
2981 if (result)
2982 { 3283 {
2983 if (presence != null) 3284 float health = presence.Health;
2984 { 3285 health += (float)healing;
2985 float health = presence.Health; 3286
2986 health += (float)healing; 3287 if (health >= 100)
2987 if (health >= 100) 3288 health = 100;
2988 { 3289
2989 health = 100; 3290 presence.setHealthWithUpdate(health);
2990 }
2991 presence.setHealthWithUpdate(health);
2992 }
2993 } 3291 }
2994 } 3292 }
2995 3293
@@ -3066,8 +3364,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3066 if (avatar != null && avatar.UUID != m_host.OwnerID) 3364 if (avatar != null && avatar.UUID != m_host.OwnerID)
3067 { 3365 {
3068 result.Add(new LSL_String(avatar.UUID.ToString())); 3366 result.Add(new LSL_String(avatar.UUID.ToString()));
3069 OpenMetaverse.Vector3 ap = avatar.AbsolutePosition; 3367 result.Add(new LSL_Vector(avatar.AbsolutePosition));
3070 result.Add(new LSL_Vector(ap.X, ap.Y, ap.Z));
3071 result.Add(new LSL_String(avatar.Name)); 3368 result.Add(new LSL_String(avatar.Name));
3072 } 3369 }
3073 }); 3370 });
@@ -3263,7 +3560,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3263 3560
3264 public void osForceAttachToOtherAvatarFromInventory(string rawAvatarId, string itemName, int attachmentPoint) 3561 public void osForceAttachToOtherAvatarFromInventory(string rawAvatarId, string itemName, int attachmentPoint)
3265 { 3562 {
3266 CheckThreatLevel(ThreatLevel.Severe, "osForceAttachToOtherAvatarFromInventory"); 3563 CheckThreatLevel(ThreatLevel.VeryHigh, "osForceAttachToOtherAvatarFromInventory");
3267 3564
3268 m_host.AddScriptLPS(1); 3565 m_host.AddScriptLPS(1);
3269 3566
@@ -3307,14 +3604,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3307 if (sp == null) 3604 if (sp == null)
3308 return; 3605 return;
3309 3606
3310 InventoryItemBase newItem = World.MoveTaskInventoryItem(sp.UUID, UUID.Zero, m_host, item.ItemID); 3607 string message;
3608 InventoryItemBase newItem = World.MoveTaskInventoryItem(sp.UUID, UUID.Zero, m_host, item.ItemID, out message);
3311 3609
3312 if (newItem == null) 3610 if (newItem == null)
3313 { 3611 {
3314 m_log.ErrorFormat( 3612 m_log.ErrorFormat(
3315 "[OSSL API]: Could not create user inventory item {0} for {1}, attach point {2} in {3}", 3613 "[OSSL API]: Could not create user inventory item {0} for {1}, attach point {2} in {3}: {4}",
3316 itemName, m_host.Name, attachmentPoint, World.Name); 3614 itemName, m_host.Name, attachmentPoint, World.Name, message);
3317 3615 ((LSL_Api)m_LSL_Api).llSay(0, message);
3318 return; 3616 return;
3319 } 3617 }
3320 3618
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index dd45406..64dc2e2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -353,7 +353,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
353 // Position of a sensor in a child prim attached to an avatar 353 // Position of a sensor in a child prim attached to an avatar
354 // will be still wrong. 354 // will be still wrong.
355 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); 355 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar);
356 q = avatar.Rotation * q; 356
357 // Don't proceed if the avatar for this attachment has since been removed from the scene.
358 if (avatar == null)
359 return sensedEntities;
360
361 q = avatar.GetWorldRotation() * q;
357 } 362 }
358 363
359 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q); 364 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q);
@@ -362,7 +367,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
362 367
363 Vector3 ZeroVector = new Vector3(0, 0, 0); 368 Vector3 ZeroVector = new Vector3(0, 0, 0);
364 369
365 bool nameSearch = (ts.name != null && ts.name != ""); 370 bool nameSearch = !string.IsNullOrEmpty(ts.name);
366 371
367 foreach (EntityBase ent in Entities) 372 foreach (EntityBase ent in Entities)
368 { 373 {
@@ -480,7 +485,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
480 // Position of a sensor in a child prim attached to an avatar 485 // Position of a sensor in a child prim attached to an avatar
481 // will be still wrong. 486 // will be still wrong.
482 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); 487 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar);
483 q = avatar.Rotation * q; 488
489 // Don't proceed if the avatar for this attachment has since been removed from the scene.
490 if (avatar == null)
491 return sensedEntities;
492
493 q = avatar.GetWorldRotation() * q;
484 } 494 }
485 495
486 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q); 496 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q);
@@ -595,7 +605,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
595 return sensedEntities; 605 return sensedEntities;
596 senseEntity(sp); 606 senseEntity(sp);
597 } 607 }
598 else if (ts.name != null && ts.name != "") 608 else if (!string.IsNullOrEmpty(ts.name))
599 { 609 {
600 ScenePresence sp; 610 ScenePresence sp;
601 // Try lookup by name will return if/when found 611 // Try lookup by name will return if/when found
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Properties/AssemblyInfo.cs
index d173db0..215c087 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.8.3.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
index 98f8be7..3d58573 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
@@ -124,6 +124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
124 LSL_String llGetCreator(); 124 LSL_String llGetCreator();
125 LSL_String llGetDate(); 125 LSL_String llGetDate();
126 LSL_Float llGetEnergy(); 126 LSL_Float llGetEnergy();
127 LSL_String llGetEnv(LSL_String name);
127 LSL_Vector llGetForce(); 128 LSL_Vector llGetForce();
128 LSL_Integer llGetFreeMemory(); 129 LSL_Integer llGetFreeMemory();
129 LSL_Integer llGetFreeURLs(); 130 LSL_Integer llGetFreeURLs();
@@ -149,6 +150,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
149 LSL_Vector llGetLocalPos(); 150 LSL_Vector llGetLocalPos();
150 LSL_Rotation llGetLocalRot(); 151 LSL_Rotation llGetLocalRot();
151 LSL_Float llGetMass(); 152 LSL_Float llGetMass();
153 LSL_Float llGetMassMKS();
152 LSL_Integer llGetMemoryLimit(); 154 LSL_Integer llGetMemoryLimit();
153 void llGetNextEmail(string address, string subject); 155 void llGetNextEmail(string address, string subject);
154 LSL_String llGetNotecardLine(string name, int line); 156 LSL_String llGetNotecardLine(string name, int line);
@@ -207,7 +209,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
207 LSL_Float llGetWallclock(); 209 LSL_Float llGetWallclock();
208 void llGiveInventory(string destination, string inventory); 210 void llGiveInventory(string destination, string inventory);
209 void llGiveInventoryList(string destination, string category, LSL_List inventory); 211 void llGiveInventoryList(string destination, string category, LSL_List inventory);
210 LSL_Integer llGiveMoney(string destination, int amount); 212 void llGiveMoney(string destination, int amount);
213 LSL_String llTransferLindenDollars(string destination, int amount);
211 void llGodLikeRezObject(string inventory, LSL_Vector pos); 214 void llGodLikeRezObject(string inventory, LSL_Vector pos);
212 LSL_Float llGround(LSL_Vector offset); 215 LSL_Float llGround(LSL_Vector offset);
213 LSL_Vector llGroundContour(LSL_Vector offset); 216 LSL_Vector llGroundContour(LSL_Vector offset);
@@ -337,9 +340,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
337 void llSetCameraParams(LSL_List rules); 340 void llSetCameraParams(LSL_List rules);
338 void llSetClickAction(int action); 341 void llSetClickAction(int action);
339 void llSetColor(LSL_Vector color, int face); 342 void llSetColor(LSL_Vector color, int face);
343 void llSetContentType(LSL_Key id, LSL_Integer type);
340 void llSetDamage(double damage); 344 void llSetDamage(double damage);
341 void llSetForce(LSL_Vector force, int local); 345 void llSetForce(LSL_Vector force, int local);
342 void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local); 346 void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local);
347 void llSetVelocity(LSL_Vector velocity, int local);
348 void llSetAngularVelocity(LSL_Vector angularVelocity, int local);
343 void llSetHoverHeight(double height, int water, double tau); 349 void llSetHoverHeight(double height, int water, double tau);
344 void llSetInventoryPermMask(string item, int mask, int value); 350 void llSetInventoryPermMask(string item, int mask, int value);
345 void llSetLinkAlpha(int linknumber, double alpha, int face); 351 void llSetLinkAlpha(int linknumber, double alpha, int face);
@@ -426,6 +432,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
426 void print(string str); 432 void print(string str);
427 433
428 void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules, string originFunc); 434 void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules, string originFunc);
435 void llSetKeyframedMotion(LSL_List frames, LSL_List options);
429 LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); 436 LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules);
430 } 437 }
431} 438}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index cdd9ea8..6259b76 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -259,6 +259,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
259 259
260 string osGetScriptEngineName(); 260 string osGetScriptEngineName();
261 string osGetSimulatorVersion(); 261 string osGetSimulatorVersion();
262 LSL_Integer osCheckODE();
263 string osGetPhysicsEngineType();
262 Object osParseJSONNew(string JSON); 264 Object osParseJSONNew(string JSON);
263 Hashtable osParseJSON(string JSON); 265 Hashtable osParseJSON(string JSON);
264 266
@@ -281,6 +283,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
281 string osGetGridGatekeeperURI(); 283 string osGetGridGatekeeperURI();
282 string osGetGridCustom(string key); 284 string osGetGridCustom(string key);
283 285
286 string osGetAvatarHomeURI(string uuid);
287
284 LSL_String osFormatString(string str, LSL_List strings); 288 LSL_String osFormatString(string str, LSL_List strings);
285 LSL_List osMatchString(string src, string pattern, int start); 289 LSL_List osMatchString(string src, string pattern, int start);
286 LSL_String osReplaceString(string src, string pattern, string replace, int count, int start); 290 LSL_String osReplaceString(string src, string pattern, string replace, int count, int start);
@@ -293,6 +297,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
293 LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules); 297 LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules);
294 298
295 /// <summary> 299 /// <summary>
300 /// Identical to llCreateLink() but does not require permission from the owner.
301 /// </summary>
302 /// <param name='target'></param>
303 /// <param name='parent'></param>
304 void osForceCreateLink(string target, int parent);
305
306 /// <summary>
307 /// Identical to llBreakLink() but does not require permission from the owner.
308 /// </summary>
309 /// <param name='linknum'></param>
310 void osForceBreakLink(int linknum);
311
312 /// <summary>
313 /// Identical to llBreakAllLinks() but does not require permission from the owner.
314 /// </summary>
315 void osForceBreakAllLinks();
316
317 /// <summary>
296 /// Check if the given key is an npc 318 /// Check if the given key is an npc
297 /// </summary> 319 /// </summary>
298 /// <param name="npc"></param> 320 /// <param name="npc"></param>
@@ -333,9 +355,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
333 LSL_Key osOwnerSaveAppearance(string notecard); 355 LSL_Key osOwnerSaveAppearance(string notecard);
334 LSL_Key osAgentSaveAppearance(key agentId, string notecard); 356 LSL_Key osAgentSaveAppearance(key agentId, string notecard);
335 357
358 key osGetGender(LSL_Key rawAvatarId);
336 key osGetMapTexture(); 359 key osGetMapTexture();
337 key osGetRegionMapTexture(string regionName); 360 key osGetRegionMapTexture(string regionName);
338 LSL_List osGetRegionStats(); 361 LSL_List osGetRegionStats();
362 vector osGetRegionSize();
339 363
340 int osGetSimulatorMemory(); 364 int osGetSimulatorMemory();
341 void osKickAvatar(string FirstName,string SurName,string alert); 365 void osKickAvatar(string FirstName,string SurName,string alert);
@@ -343,6 +367,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
343 LSL_Float osGetHealth(string avatar); 367 LSL_Float osGetHealth(string avatar);
344 void osCauseHealing(string avatar, double healing); 368 void osCauseHealing(string avatar, double healing);
345 void osCauseDamage(string avatar, double damage); 369 void osCauseDamage(string avatar, double damage);
370 void osForceOtherSit(string avatar);
371 void osForceOtherSit(string avatar, string target);
346 LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules); 372 LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules);
347 void osSetPrimitiveParams(LSL_Key prim, LSL_List rules); 373 void osSetPrimitiveParams(LSL_Key prim, LSL_List rules);
348 void osSetProjectionParams(bool projection, LSL_Key texture, double fov, double focus, double amb); 374 void osSetProjectionParams(bool projection, LSL_Key texture, double fov, double focus, double amb);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
index 9615315..ce17ed0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
@@ -77,6 +77,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
77 touch = 8, 77 touch = 8,
78 touch_end = 536870912, 78 touch_end = 536870912,
79 touch_start = 2097152, 79 touch_start = 2097152,
80 transaction_result = 33554432,
80 object_rez = 4194304 81 object_rez = 4194304
81 } 82 }
82 83
@@ -235,6 +236,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
235 m_eventFlagsMap.Add("touch", scriptEvents.touch); 236 m_eventFlagsMap.Add("touch", scriptEvents.touch);
236 m_eventFlagsMap.Add("touch_end", scriptEvents.touch_end); 237 m_eventFlagsMap.Add("touch_end", scriptEvents.touch_end);
237 m_eventFlagsMap.Add("touch_start", scriptEvents.touch_start); 238 m_eventFlagsMap.Add("touch_start", scriptEvents.touch_start);
239 m_eventFlagsMap.Add("transaction_result", scriptEvents.transaction_result);
238 m_eventFlagsMap.Add("object_rez", scriptEvents.object_rez); 240 m_eventFlagsMap.Add("object_rez", scriptEvents.object_rez);
239 } 241 }
240 } 242 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 9bf1a64..9aecea2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -48,6 +48,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
48 public const int STATUS_DIE_AT_EDGE = 128; 48 public const int STATUS_DIE_AT_EDGE = 128;
49 public const int STATUS_RETURN_AT_EDGE = 256; 49 public const int STATUS_RETURN_AT_EDGE = 256;
50 public const int STATUS_CAST_SHADOWS = 512; 50 public const int STATUS_CAST_SHADOWS = 512;
51 public const int STATUS_BLOCK_GRAB_OBJECT = 1024;
51 52
52 public const int AGENT = 1; 53 public const int AGENT = 1;
53 public const int AGENT_BY_LEGACY_NAME = 1; 54 public const int AGENT_BY_LEGACY_NAME = 1;
@@ -106,6 +107,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
106 public const int PSYS_PART_TARGET_POS_MASK = 64; 107 public const int PSYS_PART_TARGET_POS_MASK = 64;
107 public const int PSYS_PART_TARGET_LINEAR_MASK = 128; 108 public const int PSYS_PART_TARGET_LINEAR_MASK = 128;
108 public const int PSYS_PART_EMISSIVE_MASK = 256; 109 public const int PSYS_PART_EMISSIVE_MASK = 256;
110 public const int PSYS_PART_RIBBON_MASK = 1024;
109 public const int PSYS_PART_FLAGS = 0; 111 public const int PSYS_PART_FLAGS = 0;
110 public const int PSYS_PART_START_COLOR = 1; 112 public const int PSYS_PART_START_COLOR = 1;
111 public const int PSYS_PART_START_ALPHA = 2; 113 public const int PSYS_PART_START_ALPHA = 2;
@@ -129,6 +131,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
129 public const int PSYS_SRC_OMEGA = 21; 131 public const int PSYS_SRC_OMEGA = 21;
130 public const int PSYS_SRC_ANGLE_BEGIN = 22; 132 public const int PSYS_SRC_ANGLE_BEGIN = 22;
131 public const int PSYS_SRC_ANGLE_END = 23; 133 public const int PSYS_SRC_ANGLE_END = 23;
134 public const int PSYS_PART_BLEND_FUNC_SOURCE = 24;
135 public const int PSYS_PART_BLEND_FUNC_DEST = 25;
136 public const int PSYS_PART_START_GLOW = 26;
137 public const int PSYS_PART_END_GLOW = 27;
138 public const int PSYS_PART_BF_ONE = 0;
139 public const int PSYS_PART_BF_ZERO = 1;
140 public const int PSYS_PART_BF_DEST_COLOR = 2;
141 public const int PSYS_PART_BF_SOURCE_COLOR = 3;
142 public const int PSYS_PART_BF_ONE_MINUS_DEST_COLOR = 4;
143 public const int PSYS_PART_BF_ONE_MINUS_SOURCE_COLOR = 5;
144 public const int PSYS_PART_BF_SOURCE_ALPHA = 7;
145 public const int PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA = 9;
132 public const int PSYS_SRC_PATTERN_DROP = 1; 146 public const int PSYS_SRC_PATTERN_DROP = 1;
133 public const int PSYS_SRC_PATTERN_EXPLODE = 2; 147 public const int PSYS_SRC_PATTERN_EXPLODE = 2;
134 public const int PSYS_SRC_PATTERN_ANGLE = 4; 148 public const int PSYS_SRC_PATTERN_ANGLE = 4;
@@ -236,6 +250,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
236 public const int ATTACH_HUD_BOTTOM_LEFT = 36; 250 public const int ATTACH_HUD_BOTTOM_LEFT = 36;
237 public const int ATTACH_HUD_BOTTOM = 37; 251 public const int ATTACH_HUD_BOTTOM = 37;
238 public const int ATTACH_HUD_BOTTOM_RIGHT = 38; 252 public const int ATTACH_HUD_BOTTOM_RIGHT = 38;
253 public const int ATTACH_NECK = 39;
254 public const int ATTACH_AVATAR_CENTER = 40;
239 255
240 #region osMessageAttachments constants 256 #region osMessageAttachments constants
241 257
@@ -355,6 +371,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
355 public const int HTTP_MIMETYPE = 1; 371 public const int HTTP_MIMETYPE = 1;
356 public const int HTTP_BODY_MAXLENGTH = 2; 372 public const int HTTP_BODY_MAXLENGTH = 2;
357 public const int HTTP_VERIFY_CERT = 3; 373 public const int HTTP_VERIFY_CERT = 3;
374 public const int HTTP_VERBOSE_THROTTLE = 4;
375 public const int HTTP_CUSTOM_HEADER = 5;
376 public const int HTTP_PRAGMA_NO_CACHE = 6;
377
378 // llSetContentType
379 public const int CONTENT_TYPE_TEXT = 0; //text/plain
380 public const int CONTENT_TYPE_HTML = 1; //text/html
381 public const int CONTENT_TYPE_XML = 2; //application/xml
382 public const int CONTENT_TYPE_XHTML = 3; //application/xhtml+xml
383 public const int CONTENT_TYPE_ATOM = 4; //application/atom+xml
384 public const int CONTENT_TYPE_JSON = 5; //application/json
385 public const int CONTENT_TYPE_LLSD = 6; //application/llsd+xml
386 public const int CONTENT_TYPE_FORM = 7; //application/x-www-form-urlencoded
387 public const int CONTENT_TYPE_RSS = 8; //application/rss+xml
358 388
359 public const int PRIM_MATERIAL = 2; 389 public const int PRIM_MATERIAL = 2;
360 public const int PRIM_PHYSICS = 3; 390 public const int PRIM_PHYSICS = 3;
@@ -381,6 +411,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
381 public const int PRIM_POS_LOCAL = 33; 411 public const int PRIM_POS_LOCAL = 33;
382 public const int PRIM_LINK_TARGET = 34; 412 public const int PRIM_LINK_TARGET = 34;
383 public const int PRIM_SLICE = 35; 413 public const int PRIM_SLICE = 35;
414 public const int PRIM_SPECULAR = 36;
415 public const int PRIM_NORMAL = 37;
416 public const int PRIM_ALPHA_MODE = 38;
384 public const int PRIM_TEXGEN_DEFAULT = 0; 417 public const int PRIM_TEXGEN_DEFAULT = 0;
385 public const int PRIM_TEXGEN_PLANAR = 1; 418 public const int PRIM_TEXGEN_PLANAR = 1;
386 419
@@ -563,6 +596,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
563 public const int OBJECT_PHYSICS = 21; 596 public const int OBJECT_PHYSICS = 21;
564 public const int OBJECT_PHANTOM = 22; 597 public const int OBJECT_PHANTOM = 22;
565 public const int OBJECT_TEMP_ON_REZ = 23; 598 public const int OBJECT_TEMP_ON_REZ = 23;
599 public const int OBJECT_RENDER_WEIGHT = 24;
600 public const int OBJECT_HOVER_HEIGHT = 25;
601 public const int OBJECT_BODY_SHAPE_TYPE = 26;
602 public const int OBJECT_LAST_OWNER_ID = 27;
566 603
567 // Pathfinding types 604 // Pathfinding types
568 public const int OPT_OTHER = -1; 605 public const int OPT_OTHER = -1;
@@ -635,7 +672,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
635 public const int TOUCH_INVALID_FACE = -1; 672 public const int TOUCH_INVALID_FACE = -1;
636 public static readonly vector TOUCH_INVALID_TEXCOORD = new vector(-1.0, -1.0, 0.0); 673 public static readonly vector TOUCH_INVALID_TEXCOORD = new vector(-1.0, -1.0, 0.0);
637 public static readonly vector TOUCH_INVALID_VECTOR = ZERO_VECTOR; 674 public static readonly vector TOUCH_INVALID_VECTOR = ZERO_VECTOR;
638 675
639 // constants for llGetPrimMediaParams/llSetPrimMediaParams 676 // constants for llGetPrimMediaParams/llSetPrimMediaParams
640 public const int PRIM_MEDIA_ALT_IMAGE_ENABLE = 0; 677 public const int PRIM_MEDIA_ALT_IMAGE_ENABLE = 0;
641 public const int PRIM_MEDIA_CONTROLS = 1; 678 public const int PRIM_MEDIA_CONTROLS = 1;
@@ -652,15 +689,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
652 public const int PRIM_MEDIA_WHITELIST = 12; 689 public const int PRIM_MEDIA_WHITELIST = 12;
653 public const int PRIM_MEDIA_PERMS_INTERACT = 13; 690 public const int PRIM_MEDIA_PERMS_INTERACT = 13;
654 public const int PRIM_MEDIA_PERMS_CONTROL = 14; 691 public const int PRIM_MEDIA_PERMS_CONTROL = 14;
655 692
656 public const int PRIM_MEDIA_CONTROLS_STANDARD = 0; 693 public const int PRIM_MEDIA_CONTROLS_STANDARD = 0;
657 public const int PRIM_MEDIA_CONTROLS_MINI = 1; 694 public const int PRIM_MEDIA_CONTROLS_MINI = 1;
658 695
659 public const int PRIM_MEDIA_PERM_NONE = 0; 696 public const int PRIM_MEDIA_PERM_NONE = 0;
660 public const int PRIM_MEDIA_PERM_OWNER = 1; 697 public const int PRIM_MEDIA_PERM_OWNER = 1;
661 public const int PRIM_MEDIA_PERM_GROUP = 2; 698 public const int PRIM_MEDIA_PERM_GROUP = 2;
662 public const int PRIM_MEDIA_PERM_ANYONE = 4; 699 public const int PRIM_MEDIA_PERM_ANYONE = 4;
663 700
701 public const int PRIM_PHYSICS_SHAPE_TYPE = 30;
702 public const int PRIM_PHYSICS_SHAPE_PRIM = 0;
703 public const int PRIM_PHYSICS_SHAPE_CONVEX = 2;
704 public const int PRIM_PHYSICS_SHAPE_NONE = 1;
705
706 public const int PRIM_PHYSICS_MATERIAL = 31;
707 public const int DENSITY = 1;
708 public const int FRICTION = 2;
709 public const int RESTITUTION = 4;
710 public const int GRAVITY_MULTIPLIER = 8;
711
664 // extra constants for llSetPrimMediaParams 712 // extra constants for llSetPrimMediaParams
665 public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0); 713 public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0);
666 public static readonly LSLInteger LSL_STATUS_MALFORMED_PARAMS = new LSLInteger(1000); 714 public static readonly LSLInteger LSL_STATUS_MALFORMED_PARAMS = new LSLInteger(1000);
@@ -677,7 +725,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
677 public const string TEXTURE_PLYWOOD = "89556747-24cb-43ed-920b-47caed15465f"; 725 public const string TEXTURE_PLYWOOD = "89556747-24cb-43ed-920b-47caed15465f";
678 public const string TEXTURE_TRANSPARENT = "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903"; 726 public const string TEXTURE_TRANSPARENT = "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903";
679 public const string TEXTURE_MEDIA = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361"; 727 public const string TEXTURE_MEDIA = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361";
680 728
681 // Constants for osGetRegionStats 729 // Constants for osGetRegionStats
682 public const int STATS_TIME_DILATION = 0; 730 public const int STATS_TIME_DILATION = 0;
683 public const int STATS_SIM_FPS = 1; 731 public const int STATS_SIM_FPS = 1;
@@ -730,9 +778,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
730 public static readonly LSLInteger RC_GET_ROOT_KEY = 2; 778 public static readonly LSLInteger RC_GET_ROOT_KEY = 2;
731 public static readonly LSLInteger RC_GET_LINK_NUM = 4; 779 public static readonly LSLInteger RC_GET_LINK_NUM = 4;
732 780
733 public static readonly LSLInteger RCERR_UNKNOWN = -1; 781 public static readonly LSLInteger RCERR_UNKNOWN = -1;
734 public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2; 782 public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2;
735 public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3; 783 public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = -3;
784
785 public const int KFM_MODE = 1;
786 public const int KFM_LOOP = 1;
787 public const int KFM_REVERSE = 3;
788 public const int KFM_FORWARD = 0;
789 public const int KFM_PING_PONG = 2;
790 public const int KFM_DATA = 2;
791 public const int KFM_TRANSLATION = 2;
792 public const int KFM_ROTATION = 1;
793 public const int KFM_COMMAND = 0;
794 public const int KFM_CMD_PLAY = 0;
795 public const int KFM_CMD_STOP = 1;
796 public const int KFM_CMD_PAUSE = 2;
736 797
737 /// <summary> 798 /// <summary>
738 /// process name parameter as regex 799 /// process name parameter as regex
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
index 36803a4..35aaf01 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
@@ -464,6 +464,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
464 return m_LSL_Functions.llGetEnergy(); 464 return m_LSL_Functions.llGetEnergy();
465 } 465 }
466 466
467 public LSL_String llGetEnv(LSL_String name)
468 {
469 return m_LSL_Functions.llGetEnv(name);
470 }
471
467 public LSL_Vector llGetForce() 472 public LSL_Vector llGetForce()
468 { 473 {
469 return m_LSL_Functions.llGetForce(); 474 return m_LSL_Functions.llGetForce();
@@ -554,6 +559,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
554 return m_LSL_Functions.llGetLinkNumberOfSides(link); 559 return m_LSL_Functions.llGetLinkNumberOfSides(link);
555 } 560 }
556 561
562 public void llSetKeyframedMotion(LSL_List frames, LSL_List options)
563 {
564 m_LSL_Functions.llSetKeyframedMotion(frames, options);
565 }
566
557 public LSL_Integer llGetListEntryType(LSL_List src, int index) 567 public LSL_Integer llGetListEntryType(LSL_List src, int index)
558 { 568 {
559 return m_LSL_Functions.llGetListEntryType(src, index); 569 return m_LSL_Functions.llGetListEntryType(src, index);
@@ -579,6 +589,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
579 return m_LSL_Functions.llGetMass(); 589 return m_LSL_Functions.llGetMass();
580 } 590 }
581 591
592 public LSL_Float llGetMassMKS()
593 {
594 return m_LSL_Functions.llGetMassMKS();
595 }
596
582 public LSL_Integer llGetMemoryLimit() 597 public LSL_Integer llGetMemoryLimit()
583 { 598 {
584 return m_LSL_Functions.llGetMemoryLimit(); 599 return m_LSL_Functions.llGetMemoryLimit();
@@ -869,9 +884,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
869 m_LSL_Functions.llGiveInventoryList(destination, category, inventory); 884 m_LSL_Functions.llGiveInventoryList(destination, category, inventory);
870 } 885 }
871 886
872 public LSL_Integer llGiveMoney(string destination, int amount) 887 public void llGiveMoney(string destination, int amount)
873 { 888 {
874 return m_LSL_Functions.llGiveMoney(destination, amount); 889 m_LSL_Functions.llGiveMoney(destination, amount);
890 }
891
892 public LSL_String llTransferLindenDollars(string destination, int amount)
893 {
894 return m_LSL_Functions.llTransferLindenDollars(destination, amount);
875 } 895 }
876 896
877 public void llGodLikeRezObject(string inventory, LSL_Vector pos) 897 public void llGodLikeRezObject(string inventory, LSL_Vector pos)
@@ -1518,6 +1538,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1518 m_LSL_Functions.llSetColor(color, face); 1538 m_LSL_Functions.llSetColor(color, face);
1519 } 1539 }
1520 1540
1541 public void llSetContentType(LSL_Key id, LSL_Integer type)
1542 {
1543 m_LSL_Functions.llSetContentType(id, type);
1544 }
1545
1521 public void llSetDamage(double damage) 1546 public void llSetDamage(double damage)
1522 { 1547 {
1523 m_LSL_Functions.llSetDamage(damage); 1548 m_LSL_Functions.llSetDamage(damage);
@@ -1533,6 +1558,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1533 m_LSL_Functions.llSetForceAndTorque(force, torque, local); 1558 m_LSL_Functions.llSetForceAndTorque(force, torque, local);
1534 } 1559 }
1535 1560
1561 public void llSetVelocity(LSL_Vector force, int local)
1562 {
1563 m_LSL_Functions.llSetVelocity(force, local);
1564 }
1565
1566 public void llSetAngularVelocity(LSL_Vector force, int local)
1567 {
1568 m_LSL_Functions.llSetAngularVelocity(force, local);
1569 }
1570
1536 public void llSetHoverHeight(double height, int water, double tau) 1571 public void llSetHoverHeight(double height, int water, double tau)
1537 { 1572 {
1538 m_LSL_Functions.llSetHoverHeight(height, water, tau); 1573 m_LSL_Functions.llSetHoverHeight(height, water, tau);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index afa9ae0..a60f381 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -420,6 +420,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
420 return m_OSSL_Functions.osGetScriptEngineName(); 420 return m_OSSL_Functions.osGetScriptEngineName();
421 } 421 }
422 422
423 public LSL_Integer osCheckODE()
424 {
425 return m_OSSL_Functions.osCheckODE();
426 }
427
428 public string osGetPhysicsEngineType()
429 {
430 return m_OSSL_Functions.osGetPhysicsEngineType();
431 }
432
423 public string osGetSimulatorVersion() 433 public string osGetSimulatorVersion()
424 { 434 {
425 return m_OSSL_Functions.osGetSimulatorVersion(); 435 return m_OSSL_Functions.osGetSimulatorVersion();
@@ -500,6 +510,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
500 return m_OSSL_Functions.osGetGridCustom(key); 510 return m_OSSL_Functions.osGetGridCustom(key);
501 } 511 }
502 512
513 public string osGetAvatarHomeURI(string uuid)
514 {
515 return m_OSSL_Functions.osGetAvatarHomeURI(uuid);
516 }
517
503 public LSL_String osFormatString(string str, LSL_List strings) 518 public LSL_String osFormatString(string str, LSL_List strings)
504 { 519 {
505 return m_OSSL_Functions.osFormatString(str, strings); 520 return m_OSSL_Functions.osFormatString(str, strings);
@@ -537,6 +552,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
537 return m_OSSL_Functions.osGetLinkPrimitiveParams(linknumber, rules); 552 return m_OSSL_Functions.osGetLinkPrimitiveParams(linknumber, rules);
538 } 553 }
539 554
555 public void osForceCreateLink(string target, int parent)
556 {
557 m_OSSL_Functions.osForceCreateLink(target, parent);
558 }
559
560 public void osForceBreakLink(int linknum)
561 {
562 m_OSSL_Functions.osForceBreakLink(linknum);
563 }
564
565 public void osForceBreakAllLinks()
566 {
567 m_OSSL_Functions.osForceBreakAllLinks();
568 }
569
540 public LSL_Integer osIsNpc(LSL_Key npc) 570 public LSL_Integer osIsNpc(LSL_Key npc)
541 { 571 {
542 return m_OSSL_Functions.osIsNpc(npc); 572 return m_OSSL_Functions.osIsNpc(npc);
@@ -708,16 +738,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
708 } 738 }
709 private void Save() 739 private void Save()
710 { 740 {
741 /* Remove temporarily until we have a handle to the region size
711 if (Position.x > ((int)Constants.RegionSize - 1)) 742 if (Position.x > ((int)Constants.RegionSize - 1))
712 Position.x = ((int)Constants.RegionSize - 1); 743 Position.x = ((int)Constants.RegionSize - 1);
713 if (Position.x < 0)
714 Position.x = 0;
715 if (Position.y > ((int)Constants.RegionSize - 1)) 744 if (Position.y > ((int)Constants.RegionSize - 1))
716 Position.y = ((int)Constants.RegionSize - 1); 745 Position.y = ((int)Constants.RegionSize - 1);
746 */
747 if (Position.z > Constants.RegionHeight)
748 Position.z = Constants.RegionHeight;
749 if (Position.x < 0)
750 Position.x = 0;
717 if (Position.y < 0) 751 if (Position.y < 0)
718 Position.y = 0; 752 Position.y = 0;
719 if (Position.z > 768)
720 Position.z = 768;
721 if (Position.z < 0) 753 if (Position.z < 0)
722 Position.z = 0; 754 Position.z = 0;
723 prim.OSSL.llSetPos(Position); 755 prim.OSSL.llSetPos(Position);
@@ -843,6 +875,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
843 } 875 }
844 } 876 }
845 877
878 public string osGetGender(LSL_Key rawAvatarId)
879 {
880 return m_OSSL_Functions.osGetGender(rawAvatarId);
881 }
882
846 public key osGetMapTexture() 883 public key osGetMapTexture()
847 { 884 {
848 return m_OSSL_Functions.osGetMapTexture(); 885 return m_OSSL_Functions.osGetMapTexture();
@@ -858,6 +895,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
858 return m_OSSL_Functions.osGetRegionStats(); 895 return m_OSSL_Functions.osGetRegionStats();
859 } 896 }
860 897
898 public vector osGetRegionSize()
899 {
900 return m_OSSL_Functions.osGetRegionSize();
901 }
902
861 /// <summary> 903 /// <summary>
862 /// Returns the amount of memory in use by the Simulator Daemon. 904 /// Returns the amount of memory in use by the Simulator Daemon.
863 /// Amount in bytes - if >= 4GB, returns 4GB. (LSL is not 64-bit aware) 905 /// Amount in bytes - if >= 4GB, returns 4GB. (LSL is not 64-bit aware)
@@ -892,6 +934,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
892 { 934 {
893 m_OSSL_Functions.osCauseHealing(avatar, healing); 935 m_OSSL_Functions.osCauseHealing(avatar, healing);
894 } 936 }
937
938 public void osForceOtherSit(string avatar)
939 {
940 m_OSSL_Functions.osForceOtherSit(avatar);
941 }
942
943 public void osForceOtherSit(string avatar, string target)
944 {
945 m_OSSL_Functions.osForceOtherSit(avatar, target);
946 }
895 947
896 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules) 948 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules)
897 { 949 {
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Properties/AssemblyInfo.cs
index 573a803..b1825ac 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.7.6.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Atom.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Atom.cs
deleted file mode 100644
index 27ab04e..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Atom.cs
+++ /dev/null
@@ -1,218 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33using System.Text;
34
35namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
36{
37 public class Atom : IUnifiable
38 {
39 private static Dictionary<string, Atom> _atomStore = new Dictionary<string, Atom>();
40 public readonly string _name;
41 public readonly Atom _module;
42
43 /// <summary>
44 /// You should not call this constructor, but use Atom.a instead.
45 /// </summary>
46 /// <param name="name"></param>
47 /// <param name="module"></param>
48 private Atom(string name, Atom module)
49 {
50 _name = name;
51 _module = module;
52 }
53
54 /// <summary>
55 /// Return the unique Atom object for name where module is null. You should use this to create
56 /// an Atom instead of calling the Atom constructor.
57 /// </summary>
58 /// <param name="name"></param>
59 /// <returns></returns>
60 public static Atom a(string name)
61 {
62 Atom atom;
63 if (!_atomStore.TryGetValue(name, out atom))
64 {
65 atom = new Atom(name, null);
66 _atomStore[name] = atom;
67 }
68 return atom;
69 }
70
71 /// <summary>
72 /// Return an Atom object with the name and module. If module is null or Atom.NIL,
73 /// this behaves like Atom.a(name) and returns the unique object where the module is null.
74 /// If module is not null or Atom.NIL, this may or may not be the same object as another Atom
75 /// with the same name and module.
76 /// </summary>
77 /// <param name="name"></param>
78 /// <param name="module"></param>
79 /// <returns></returns>
80 public static Atom a(string name, Atom module)
81 {
82 if (module == null || module == Atom.NIL)
83 return a(name);
84 return new Atom(name, module);
85 }
86
87 /// <summary>
88 /// If Obj is an Atom unify its _module with Module. If the Atom's _module is null, use Atom.NIL.
89 /// </summary>
90 /// <param name="Atom"></param>
91 /// <param name="Module"></param>
92 /// <returns></returns>
93 public static IEnumerable<bool> module(object Obj, object Module)
94 {
95 Obj = YP.getValue(Obj);
96 if (Obj is Atom)
97 {
98 if (((Atom)Obj)._module == null)
99 return YP.unify(Module, Atom.NIL);
100 else
101 return YP.unify(Module, ((Atom)Obj)._module);
102 }
103 return YP.fail();
104 }
105
106 public static readonly Atom NIL = Atom.a("[]");
107 public static readonly Atom DOT = Atom.a(".");
108 public static readonly Atom F = Atom.a("f");
109 public static readonly Atom SLASH = Atom.a("/");
110 public static readonly Atom HAT = Atom.a("^");
111 public static readonly Atom RULE = Atom.a(":-");
112
113 public IEnumerable<bool> unify(object arg)
114 {
115 arg = YP.getValue(arg);
116 if (arg is Atom)
117 return Equals(arg) ? YP.succeed() : YP.fail();
118 else if (arg is Variable)
119 return ((Variable)arg).unify(this);
120 else
121 return YP.fail();
122 }
123
124 public void addUniqueVariables(List<Variable> variableSet)
125 {
126 // Atom does not contain variables.
127 }
128
129 public object makeCopy(Variable.CopyStore copyStore)
130 {
131 // Atom does not contain variables that need to be copied.
132 return this;
133 }
134
135 public bool termEqual(object term)
136 {
137 return Equals(YP.getValue(term));
138 }
139
140 public bool ground()
141 {
142 // Atom is always ground.
143 return true;
144 }
145
146 public override bool Equals(object obj)
147 {
148 if (obj is Atom)
149 {
150 if (_module == null && ((Atom)obj)._module == null)
151 // When _declaringClass is null, we always use an identical object from _atomStore.
152 return this == obj;
153 // Otherwise, ignore _declaringClass and do a normal string compare on the _name.
154 return _name == ((Atom)obj)._name;
155 }
156 return false;
157 }
158
159 public override string ToString()
160 {
161 return _name;
162 }
163
164 public override int GetHashCode()
165 {
166 // Debug: need to check _declaringClass.
167 return _name.GetHashCode();
168 }
169
170 public string toQuotedString()
171 {
172 if (_name.Length == 0)
173 return "''";
174 else if (this == Atom.NIL)
175 return "[]";
176
177 StringBuilder result = new StringBuilder(_name.Length);
178 bool useQuotes = false;
179 foreach (char c in _name)
180 {
181 int cInt = (int)c;
182 if (c == '\'')
183 {
184 result.Append("''");
185 useQuotes = true;
186 }
187 else if (c == '_' || cInt >= (int)'a' && cInt <= (int)'z' ||
188 cInt >= (int)'A' && cInt <= (int)'Z' || cInt >= (int)'0' && cInt <= (int)'9')
189 result.Append(c);
190 else
191 {
192 // Debug: Need to handle non-printable chars.
193 result.Append(c);
194 useQuotes = true;
195 }
196 }
197
198 if (!useQuotes && (int)_name[0] >= (int)'a' && (int)_name[0] <= (int)'z')
199 return result.ToString();
200 else
201 {
202 // Surround in single quotes.
203 result.Append('\'');
204 return "'" + result;
205 }
206 }
207
208 /// <summary>
209 /// Return true if _name is lexicographically less than atom._name.
210 /// </summary>
211 /// <param name="atom"></param>
212 /// <returns></returns>
213 public bool lessThan(Atom atom)
214 {
215 return _name.CompareTo(atom._name) < 0;
216 }
217 }
218}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/BagofAnswers.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/BagofAnswers.cs
deleted file mode 100644
index bbf1a5b..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/BagofAnswers.cs
+++ /dev/null
@@ -1,239 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections;
33using System.Collections.Generic;
34
35namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
36{
37 /// <summary>
38 /// A BagofAnswers holds answers for bagof and setof.
39 /// </summary>
40 public class BagofAnswers
41 {
42 private object _template;
43 private Variable[] _freeVariables;
44 private Dictionary<object[], List<object>> _bagForFreeVariables;
45 private List<object> _findallBagArray;
46 private static TermArrayEqualityComparer _termArrayEqualityComparer =
47 new TermArrayEqualityComparer();
48
49 /// <summary>
50 /// To get the free variables, split off any existential qualifiers from Goal such as the X in
51 /// "X ^ f(Y)", get the set of unbound variables in Goal that are not qualifiers, then remove
52 /// the unbound variables that are qualifiers as well as the unbound variables in Template.
53 /// </summary>
54 /// <param name="Template"></param>
55 /// <param name="Goal"></param>
56 public BagofAnswers(object Template, object Goal)
57 {
58 _template = Template;
59
60 // First get the set of variables that are not free variables.
61 List<Variable> variableSet = new List<Variable>();
62 YP.addUniqueVariables(Template, variableSet);
63 object UnqualifiedGoal = YP.getValue(Goal);
64 while (UnqualifiedGoal is Functor2 && ((Functor2)UnqualifiedGoal)._name == Atom.HAT)
65 {
66 YP.addUniqueVariables(((Functor2)UnqualifiedGoal)._arg1, variableSet);
67 UnqualifiedGoal = YP.getValue(((Functor2)UnqualifiedGoal)._arg2);
68 }
69
70 // Remember how many non-free variables there are so we can find the unique free variables
71 // that are added.
72 int nNonFreeVariables = variableSet.Count;
73 YP.addUniqueVariables(UnqualifiedGoal, variableSet);
74 int nFreeVariables = variableSet.Count - nNonFreeVariables;
75 if (nFreeVariables == 0)
76 {
77 // There were no free variables added, so we won't waste time with _bagForFreeVariables.
78 _freeVariables = null;
79 _findallBagArray = new List<object>();
80 }
81 else
82 {
83 // Copy the free variables.
84 _freeVariables = new Variable[nFreeVariables];
85 for (int i = 0; i < nFreeVariables; ++i)
86 _freeVariables[i] = variableSet[i + nNonFreeVariables];
87
88 _bagForFreeVariables = new Dictionary<object[], List<object>>(_termArrayEqualityComparer);
89 }
90 }
91
92 public void add()
93 {
94 if (_freeVariables == null)
95 // The goal has bound the values in _template but we don't bother with _freeVariables.
96 _findallBagArray.Add(YP.makeCopy(_template, new Variable.CopyStore()));
97 else
98 {
99 // The goal has bound the values in _template and _freeVariables.
100 // Find the entry for this set of _freeVariables values.
101 object[] freeVariableValues = new object[_freeVariables.Length];
102 for (int i = 0; i < _freeVariables.Length; ++i)
103 freeVariableValues[i] = YP.getValue(_freeVariables[i]);
104 List<object> bagArray;
105 if (!_bagForFreeVariables.TryGetValue(freeVariableValues, out bagArray))
106 {
107 bagArray = new List<object>();
108 _bagForFreeVariables[freeVariableValues] = bagArray;
109 }
110
111 // Now copy the template and add to the bag for the freeVariables values.
112 bagArray.Add(YP.makeCopy(_template, new Variable.CopyStore()));
113 }
114 }
115
116 // disable warning on l1, don't see how we can
117 // code this differently
118 #pragma warning disable 0168, 0219
119
120 /// <summary>
121 /// For each result, unify the _freeVariables and unify bagArrayVariable with the associated bag.
122 /// </summary>
123 /// <param name="bagArrayVariable">this is unified with the List<object> of matches for template that
124 /// corresponds to the bindings for freeVariables. Be very careful: this does not unify with a Prolog
125 /// list.</param>
126 /// <returns></returns>
127 public IEnumerable<bool> resultArray(Variable bagArrayVariable)
128 {
129 if (_freeVariables == null)
130 {
131 // No unbound free variables, so we only filled one bag. If empty, bagof fails.
132 if (_findallBagArray.Count > 0)
133 {
134 foreach (bool l1 in bagArrayVariable.unify(_findallBagArray))
135 yield return false;
136 }
137 }
138 else
139 {
140 foreach (KeyValuePair<object[], List<object>> valuesAndBag in _bagForFreeVariables)
141 {
142 foreach (bool l1 in YP.unifyArrays(_freeVariables, valuesAndBag.Key))
143 {
144 foreach (bool l2 in bagArrayVariable.unify(valuesAndBag.Value))
145 yield return false;
146 }
147 // Debug: Should we free memory of the answers already returned?
148 }
149 }
150 }
151
152 /// <summary>
153 /// For each result, unify the _freeVariables and unify Bag with the associated bag.
154 /// </summary>
155 /// <param name="Bag"></param>
156 /// <returns></returns>
157 public IEnumerable<bool> result(object Bag)
158 {
159 Variable bagArrayVariable = new Variable();
160 foreach (bool l1 in resultArray(bagArrayVariable))
161 {
162 foreach (bool l2 in YP.unify(Bag, ListPair.make((List<object>)bagArrayVariable.getValue())))
163 yield return false;
164 }
165 }
166
167 /// <summary>
168 /// For each result, unify the _freeVariables and unify Bag with the associated bag which is sorted
169 /// with duplicates removed, as in setof.
170 /// </summary>
171 /// <param name="Bag"></param>
172 /// <returns></returns>
173 public IEnumerable<bool> resultSet(object Bag)
174 {
175 Variable bagArrayVariable = new Variable();
176 foreach (bool l1 in resultArray(bagArrayVariable))
177 {
178 List<object> bagArray = (List<object>)bagArrayVariable.getValue();
179 YP.sortArray(bagArray);
180 foreach (bool l2 in YP.unify(Bag, ListPair.makeWithoutRepeatedTerms(bagArray)))
181 yield return false;
182 }
183 }
184
185 public static IEnumerable<bool> bagofArray
186 (object Template, object Goal, IEnumerable<bool> goalIterator, Variable bagArrayVariable)
187 {
188 BagofAnswers bagOfAnswers = new BagofAnswers(Template, Goal);
189 foreach (bool l1 in goalIterator)
190 bagOfAnswers.add();
191 return bagOfAnswers.resultArray(bagArrayVariable);
192 }
193
194 public static IEnumerable<bool> bagof
195 (object Template, object Goal, IEnumerable<bool> goalIterator, object Bag)
196 {
197 BagofAnswers bagOfAnswers = new BagofAnswers(Template, Goal);
198 foreach (bool l1 in goalIterator)
199 bagOfAnswers.add();
200 return bagOfAnswers.result(Bag);
201 }
202
203 public static IEnumerable<bool> setof
204 (object Template, object Goal, IEnumerable<bool> goalIterator, object Bag)
205 {
206 BagofAnswers bagOfAnswers = new BagofAnswers(Template, Goal);
207 foreach (bool l1 in goalIterator)
208 bagOfAnswers.add();
209 return bagOfAnswers.resultSet(Bag);
210 }
211 #pragma warning restore 0168, 0219
212
213 /// <summary>
214 /// A TermArrayEqualityComparer implements IEqualityComparer to compare two object arrays using YP.termEqual.
215 /// </summary>
216 private class TermArrayEqualityComparer : IEqualityComparer<object[]>
217 {
218 public bool Equals(object[] array1, object[] array2)
219 {
220 if (array1.Length != array2.Length)
221 return false;
222 for (int i = 0; i < array1.Length; ++i)
223 {
224 if (!YP.termEqual(array1[i], array2[i]))
225 return false;
226 }
227 return true;
228 }
229
230 public int GetHashCode(object[] array)
231 {
232 int hashCode = 0;
233 for (int i = 0; i < array.Length; ++i)
234 hashCode ^= array[i].GetHashCode();
235 return hashCode;
236 }
237 }
238 }
239}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/FindallAnswers.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/FindallAnswers.cs
deleted file mode 100644
index fb9569e..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/FindallAnswers.cs
+++ /dev/null
@@ -1,108 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections;
33using System.Collections.Generic;
34
35namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
36{
37 /// <summary>
38 /// A FindallAnswers holds answers for findall.
39 /// </summary>
40 public class FindallAnswers
41 {
42 private object _template;
43 private List<object> _bagArray;
44
45 public FindallAnswers(object Template)
46 {
47 _template = Template;
48 _bagArray = new List<object>();
49 }
50
51 public void add()
52 {
53 _bagArray.Add(YP.makeCopy(_template, new Variable.CopyStore()));
54 }
55
56 public List<object> resultArray()
57 {
58 return _bagArray;
59 }
60
61 /// <summary>
62 /// Unify Bag with the result. This frees the internal answers, so you can only call this once.
63 /// </summary>
64 /// <param name="Bag"></param>
65 /// <returns></returns>
66 public IEnumerable<bool> result(object Bag)
67 {
68 object result = ListPair.make(_bagArray);
69 // Try to free the memory.
70 _bagArray = null;
71 return YP.unify(Bag, result);
72 }
73
74 // disable warning on l1, don't see how we can
75 // code this differently
76 #pragma warning disable 0168, 0219
77
78 /// <summary>
79 /// This is a simplified findall when the goal is a single call.
80 /// </summary>
81 /// <param name="Template"></param>
82 /// <param name="goal"></param>
83 /// <param name="Bag"></param>
84 /// <returns></returns>
85 public static IEnumerable<bool> findall(object Template, IEnumerable<bool> goal, object Bag)
86 {
87 FindallAnswers findallAnswers = new FindallAnswers(Template);
88 foreach (bool l1 in goal)
89 findallAnswers.add();
90 return findallAnswers.result(Bag);
91 }
92
93 /// <summary>
94 /// Like findall, except return an array of the results.
95 /// </summary>
96 /// <param name="template"></param>
97 /// <param name="goal"></param>
98 /// <returns></returns>
99 public static List<object> findallArray(object Template, IEnumerable<bool> goal)
100 {
101 FindallAnswers findallAnswers = new FindallAnswers(Template);
102 foreach (bool l1 in goal)
103 findallAnswers.add();
104 return findallAnswers.resultArray();
105 }
106 #pragma warning restore 0168, 0219
107 }
108}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor.cs
deleted file mode 100644
index 4d65f5b..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor.cs
+++ /dev/null
@@ -1,196 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
35{
36 public class Functor : IUnifiable
37 {
38 public readonly Atom _name;
39 public readonly object[] _args;
40
41 public Functor(Atom name, object[] args)
42 {
43 if (args.Length <= 3)
44 {
45 if (args.Length == 0)
46 throw new Exception("For arity 0 functor, just use name as an Atom");
47 else if (args.Length == 1)
48 throw new Exception("For arity 1 functor, use Functor1");
49 else if (args.Length == 2)
50 throw new Exception("For arity 2 functor, use Functor2");
51 else if (args.Length == 3)
52 throw new Exception("For arity 3 functor, use Functor3");
53 else
54 // (This shouldn't happen, but include it for completeness.
55 throw new Exception("Cannot create a Functor of arity " + args.Length);
56 }
57
58 _name = name;
59 _args = args;
60 }
61
62 public Functor(string name, object[] args)
63 : this(Atom.a(name), args)
64 {
65 }
66
67 /// <summary>
68 /// Return an Atom, Functor1, Functor2, Functor3 or Functor depending on the
69 /// length of args.
70 /// Note that this is different than the Functor constructor which requires
71 /// the length of args to be greater than 3.
72 /// </summary>
73 /// <param name="name"></param>
74 /// <param name="args"></param>
75 /// <returns></returns>
76 public static object make(Atom name, object[] args)
77 {
78 if (args.Length <= 0)
79 return name;
80 else if (args.Length == 1)
81 return new Functor1(name, args[0]);
82 else if (args.Length == 2)
83 return new Functor2(name, args[0], args[1]);
84 else if (args.Length == 3)
85 return new Functor3(name, args[0], args[1], args[2]);
86 else
87 return new Functor(name, args);
88 }
89
90 /// <summary>
91 /// Call the main make, first converting name to an Atom.
92 /// </summary>
93 /// <param name="name"></param>
94 /// <param name="args"></param>
95 /// <returns></returns>
96 public static object make(string name, object[] args)
97 {
98 return make(Atom.a(name), args);
99 }
100
101 /// <summary>
102 /// If arg is another Functor, then succeed (yield once) if this and arg have the
103 /// same name and all functor args unify, otherwise fail (don't yield).
104 /// If arg is a Variable, then call its unify to unify with this.
105 /// Otherwise fail (don't yield).
106 /// </summary>
107 /// <param name="arg"></param>
108 /// <returns></returns>
109 public IEnumerable<bool> unify(object arg)
110 {
111 arg = YP.getValue(arg);
112 if (arg is Functor)
113 {
114 Functor argFunctor = (Functor)arg;
115 if (_name.Equals(argFunctor._name))
116 return YP.unifyArrays(_args, argFunctor._args);
117 else
118 return YP.fail();
119 }
120 else if (arg is Variable)
121 return ((Variable)arg).unify(this);
122 else
123 return YP.fail();
124 }
125
126 public override string ToString()
127 {
128 string result = _name + "(" + YP.getValue(_args[0]);
129 for (int i = 1; i < _args.Length; ++i)
130 result += ", " + YP.getValue(_args[i]);
131 result += ")";
132 return result;
133 }
134
135 public bool termEqual(object term)
136 {
137 term = YP.getValue(term);
138 if (term is Functor)
139 {
140 Functor termFunctor = (Functor)term;
141 if (_name.Equals(termFunctor._name) && _args.Length == termFunctor._args.Length)
142 {
143 for (int i = 0; i < _args.Length; ++i)
144 {
145 if (!YP.termEqual(_args[i], termFunctor._args[i]))
146 return false;
147 }
148 return true;
149 }
150 }
151 return false;
152 }
153
154 public bool lessThan(Functor functor)
155 {
156 // Do the equal check first since it is faster.
157 if (!_name.Equals(functor._name))
158 return _name.lessThan(functor._name);
159
160 if (_args.Length != functor._args.Length)
161 return _args.Length < functor._args.Length;
162
163 for (int i = 0; i < _args.Length; ++i)
164 {
165 if (!YP.termEqual(_args[i], functor._args[i]))
166 return YP.termLessThan(_args[i], functor._args[i]);
167 }
168
169 return false;
170 }
171
172 public bool ground()
173 {
174 for (int i = 0; i < _args.Length; ++i)
175 {
176 if (!YP.ground(_args[i]))
177 return false;
178 }
179 return true;
180 }
181
182 public void addUniqueVariables(List<Variable> variableSet)
183 {
184 for (int i = 0; i < _args.Length; ++i)
185 YP.addUniqueVariables(_args[i], variableSet);
186 }
187
188 public object makeCopy(Variable.CopyStore copyStore)
189 {
190 object[] argsCopy = new object[_args.Length];
191 for (int i = 0; i < _args.Length; ++i)
192 argsCopy[i] = YP.makeCopy(_args[i], copyStore);
193 return new Functor(_name, argsCopy);
194 }
195 }
196}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor1.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor1.cs
deleted file mode 100644
index 80d98b1..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor1.cs
+++ /dev/null
@@ -1,124 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
35{
36 public class Functor1 : IUnifiable
37 {
38 public readonly Atom _name;
39 public readonly object _arg1;
40
41 public Functor1(Atom name, object arg1)
42 {
43 _name = name;
44 _arg1 = arg1;
45 }
46
47 public Functor1(string name, object arg1)
48 : this(Atom.a(name), arg1)
49 {
50 }
51
52 // disable warning on l1, don't see how we can
53 // code this differently
54 #pragma warning disable 0168, 0219
55 /// <summary>
56 /// If arg is another Functor1, then succeed (yield once) if this and arg have the
57 /// same name and the functor args unify, otherwise fail (don't yield).
58 /// If arg is a Variable, then call its unify to unify with this.
59 /// Otherwise fail (don't yield).
60 /// </summary>
61 /// <param name="arg"></param>
62 /// <returns></returns>
63 public IEnumerable<bool> unify(object arg)
64 {
65 arg = YP.getValue(arg);
66 if (arg is Functor1)
67 {
68 Functor1 argFunctor = (Functor1)arg;
69 if (_name.Equals(argFunctor._name))
70 {
71 foreach (bool l1 in YP.unify(_arg1, argFunctor._arg1))
72 yield return false;
73 }
74 }
75 else if (arg is Variable)
76 {
77 foreach (bool l1 in ((Variable)arg).unify(this))
78 yield return false;
79 }
80 }
81 #pragma warning restore 0168, 0219
82
83
84 public override string ToString()
85 {
86 return _name + "(" + YP.getValue(_arg1) + ")";
87 }
88
89 public bool termEqual(object term)
90 {
91 term = YP.getValue(term);
92 if (term is Functor1)
93 {
94 Functor1 termFunctor = (Functor1)term;
95 return _name.Equals(termFunctor._name) && YP.termEqual(_arg1, termFunctor._arg1);
96 }
97 return false;
98 }
99
100 public bool lessThan(Functor1 functor)
101 {
102 // Do the equal check first since it is faster.
103 if (!_name.Equals(functor._name))
104 return _name.lessThan(functor._name);
105
106 return YP.termLessThan(_arg1, functor._arg1);
107 }
108
109 public bool ground()
110 {
111 return YP.ground(_arg1);
112 }
113
114 public void addUniqueVariables(List<Variable> variableSet)
115 {
116 YP.addUniqueVariables(_arg1, variableSet);
117 }
118
119 public object makeCopy(Variable.CopyStore copyStore)
120 {
121 return new Functor1(_name, YP.makeCopy(_arg1, copyStore));
122 }
123 }
124}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor2.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor2.cs
deleted file mode 100644
index 4c501d6..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor2.cs
+++ /dev/null
@@ -1,163 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
35{
36 public class Functor2 : IUnifiable
37 {
38 public readonly Atom _name;
39 public readonly object _arg1;
40 public readonly object _arg2;
41
42 public Functor2(Atom name, object arg1, object arg2)
43 {
44 _name = name;
45 _arg1 = arg1;
46 _arg2 = arg2;
47 }
48
49 public Functor2(string name, object arg1, object arg2)
50 : this(Atom.a(name), arg1, arg2)
51 {
52 }
53
54 // disable warning on l1, don't see how we can
55 // code this differently
56 #pragma warning disable 0168, 0219
57 /// If arg is another Functor2, then succeed (yield once) if this and arg have the
58 /// same name and all functor args unify, otherwise fail (don't yield).
59 /// If arg is a Variable, then call its unify to unify with this.
60 /// Otherwise fail (don't yield).
61 public IEnumerable<bool> unify(object arg)
62 {
63 arg = YP.getValue(arg);
64 if (arg is Functor2)
65 {
66 Functor2 argFunctor = (Functor2)arg;
67 if (_name.Equals(argFunctor._name))
68 {
69 foreach (bool l1 in YP.unify(_arg1, argFunctor._arg1))
70 {
71 foreach (bool l2 in YP.unify(_arg2, argFunctor._arg2))
72 yield return false;
73 }
74 }
75 }
76 else if (arg is Variable)
77 {
78 foreach (bool l1 in ((Variable)arg).unify(this))
79 yield return false;
80 }
81 }
82 #pragma warning restore 0168, 0219
83
84
85 public override string ToString()
86 {
87 if (_name == Atom.DOT)
88 return listPairToString(this);
89 else
90 return _name + "(" + YP.getValue(_arg1) + ", " + YP.getValue(_arg2) + ")";
91 }
92
93 public bool termEqual(object term)
94 {
95 term = YP.getValue(term);
96 if (term is Functor2)
97 {
98 Functor2 termFunctor = (Functor2)term;
99 return _name.Equals(termFunctor._name) && YP.termEqual(_arg1, termFunctor._arg1)
100 && YP.termEqual(_arg2, termFunctor._arg2);
101 }
102 return false;
103 }
104
105 public bool lessThan(Functor2 functor)
106 {
107 // Do the equal check first since it is faster.
108 if (!_name.Equals(functor._name))
109 return _name.lessThan(functor._name);
110
111 if (!YP.termEqual(_arg1, functor._arg1))
112 return YP.termLessThan(_arg1, functor._arg1);
113
114 return YP.termLessThan(_arg2, functor._arg2);
115 }
116
117 public bool ground()
118 {
119 return YP.ground(_arg1) && YP.ground(_arg2);
120 }
121
122 public void addUniqueVariables(List<Variable> variableSet)
123 {
124 YP.addUniqueVariables(_arg1, variableSet);
125 YP.addUniqueVariables(_arg2, variableSet);
126 }
127
128 public object makeCopy(Variable.CopyStore copyStore)
129 {
130 return new Functor2(_name, YP.makeCopy(_arg1, copyStore),
131 YP.makeCopy(_arg2, copyStore));
132 }
133
134 private static string listPairToString(Functor2 listPair)
135 {
136 string result = "[";
137 while (true)
138 {
139 object head = YP.getValue(listPair._arg1);
140 object tail = YP.getValue(listPair._arg2);
141 if (tail == (object)Atom.NIL)
142 {
143 result += head;
144 break;
145 }
146 else if (tail is Functor2 && ((Functor2)tail)._name == Atom.DOT)
147 {
148 result += head + ", ";
149 listPair = (Functor2)tail;
150 // Loop again.
151 }
152 else
153 {
154 // The list is not terminated with NIL.
155 result += head + "|" + tail;
156 break;
157 }
158 }
159 result += "]";
160 return result;
161 }
162 }
163}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor3.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor3.cs
deleted file mode 100644
index 94e39c4..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Functor3.cs
+++ /dev/null
@@ -1,141 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
35{
36 public class Functor3 : IUnifiable
37 {
38 public readonly Atom _name;
39 public readonly object _arg1;
40 public readonly object _arg2;
41 public readonly object _arg3;
42
43 public Functor3(Atom name, object arg1, object arg2, object arg3)
44 {
45 _name = name;
46 _arg1 = arg1;
47 _arg2 = arg2;
48 _arg3 = arg3;
49 }
50
51 public Functor3(string name, object arg1, object arg2, object arg3)
52 : this(Atom.a(name), arg1, arg2, arg3)
53 {
54 }
55
56 // disable warning on l1, don't see how we can
57 // code this differently
58 #pragma warning disable 0168, 0219
59 /// If arg is another Functor3, then succeed (yield once) if this and arg have the
60 /// same name and all functor args unify, otherwise fail (don't yield).
61 /// If arg is a Variable, then call its unify to unify with this.
62 /// Otherwise fail (don't yield).
63 public IEnumerable<bool> unify(object arg)
64 {
65 arg = YP.getValue(arg);
66 if (arg is Functor3)
67 {
68 Functor3 argFunctor = (Functor3)arg;
69 if (_name.Equals(argFunctor._name))
70 {
71 foreach (bool l1 in YP.unify(_arg1, argFunctor._arg1))
72 {
73 foreach (bool l2 in YP.unify(_arg2, argFunctor._arg2))
74 {
75 foreach (bool l3 in YP.unify(_arg3, argFunctor._arg3))
76 yield return false;
77 }
78 }
79 }
80 }
81 else if (arg is Variable)
82 {
83 foreach (bool l1 in ((Variable)arg).unify(this))
84 yield return false;
85 }
86 }
87 #pragma warning restore 0168, 0219
88
89 public override string ToString()
90 {
91 return _name + "(" + YP.getValue(_arg1) + ", " + YP.getValue(_arg2) + ", " +
92 YP.getValue(_arg3) + ")";
93 }
94
95 public bool termEqual(object term)
96 {
97 term = YP.getValue(term);
98 if (term is Functor3)
99 {
100 Functor3 termFunctor = (Functor3)term;
101 return _name.Equals(termFunctor._name) && YP.termEqual(_arg1, termFunctor._arg1)
102 && YP.termEqual(_arg2, termFunctor._arg2)
103 && YP.termEqual(_arg3, termFunctor._arg3);
104 }
105 return false;
106 }
107
108 public bool lessThan(Functor3 functor)
109 {
110 // Do the equal check first since it is faster.
111 if (!_name.Equals(functor._name))
112 return _name.lessThan(functor._name);
113
114 if (!YP.termEqual(_arg1, functor._arg1))
115 return YP.termLessThan(_arg1, functor._arg1);
116
117 if (!YP.termEqual(_arg2, functor._arg2))
118 return YP.termLessThan(_arg2, functor._arg2);
119
120 return YP.termLessThan(_arg3, functor._arg3);
121 }
122
123 public bool ground()
124 {
125 return YP.ground(_arg1) && YP.ground(_arg2) && YP.ground(_arg3);
126 }
127
128 public void addUniqueVariables(List<Variable> variableSet)
129 {
130 YP.addUniqueVariables(_arg1, variableSet);
131 YP.addUniqueVariables(_arg2, variableSet);
132 YP.addUniqueVariables(_arg3, variableSet);
133 }
134
135 public object makeCopy(Variable.CopyStore copyStore)
136 {
137 return new Functor3(_name, YP.makeCopy(_arg1, copyStore),
138 YP.makeCopy(_arg2, copyStore), YP.makeCopy(_arg3, copyStore));
139 }
140 }
141}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/IndexedAnswers.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/IndexedAnswers.cs
deleted file mode 100644
index 09a9a08..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/IndexedAnswers.cs
+++ /dev/null
@@ -1,385 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections;
33using System.Collections.Generic;
34
35namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
36{
37 /// <summary>
38 /// An IndexedAnswers holds answers to a query based on the values of index arguments.
39 /// </summary>
40 public class IndexedAnswers : YP.IClause
41 {
42 private int _arity;
43 // addAnswer adds the answer here and indexes it later.
44 private List<object[]> _allAnswers = new List<object[]>();
45 // The key has the arity of answers with non-null values for each indexed arg. The value
46 // is a list of the matching answers. The signature is implicit in the pattern on non-null index args.
47 private Dictionary<HashedList, List<object[]>> _indexedAnswers =
48 new Dictionary<HashedList, List<object[]>>();
49 // Keeps track of whether we have started adding entries to _indexedAnswers for the signature.
50 private Dictionary<int, object> _gotAnswersForSignature = new Dictionary<int, object>();
51 private const int MAX_INDEX_ARGS = 31;
52
53 public IndexedAnswers(int arity)
54 {
55 _arity = arity;
56 }
57
58 /// <summary>
59 /// Append the answer to the list and update the indexes, if any.
60 /// Elements of answer must be ground, since arguments with unbound variables make this
61 /// into a dynamic rule which we don't index.
62 /// </summary>
63 /// <param name="answer"></param>
64 public void addAnswer(object[] answer)
65 {
66 addOrPrependAnswer(answer, false);
67 }
68
69 /// <summary>
70 /// Prepend the answer to the list and clear the indexes so that they must be re-computed
71 /// on the next call to match. (Only addAnswer will maintain the indexes while adding answers.)
72 /// Elements of answer must be ground, since arguments with unbound variables make this
73 /// into a dynamic rule which we don't index.
74 /// </summary>
75 /// <param name="answer"></param>
76 public void prependAnswer(object[] answer)
77 {
78 addOrPrependAnswer(answer, true);
79 }
80
81 /// <summary>
82 /// Do the work of addAnswer or prependAnswer.
83 /// </summary>
84 /// <param name="answer"></param>
85 private void addOrPrependAnswer(object[] answer, bool prepend)
86 {
87 if (answer.Length != _arity)
88 return;
89
90 // Store a copy of the answer array.
91 object[] answerCopy = new object[answer.Length];
92 Variable.CopyStore copyStore = new Variable.CopyStore();
93 for (int i = 0; i < answer.Length; ++i)
94 answerCopy[i] = YP.makeCopy(answer[i], copyStore);
95 if (copyStore.getNUniqueVariables() > 0)
96 throw new InvalidOperationException
97 ("Elements of answer must be ground, but found " + copyStore.getNUniqueVariables() +
98 " unbound variables");
99
100 if (prepend)
101 {
102 _allAnswers.Insert(0, answerCopy);
103 clearIndexes();
104 }
105 else
106 {
107 _allAnswers.Add(answerCopy);
108 // If match has already indexed answers for a signature, we need to add
109 // this to the existing indexed answers.
110 foreach (int signature in _gotAnswersForSignature.Keys)
111 indexAnswerForSignature(answerCopy, signature);
112 }
113 }
114
115 private void indexAnswerForSignature(object[] answer, int signature)
116 {
117 // First find out which of the answer values can be used as an index.
118 object[] indexValues = new object[answer.Length];
119 for (int i = 0; i < answer.Length; ++i)
120 {
121 // We limit the number of indexed args in a 32-bit signature.
122 if (i >= MAX_INDEX_ARGS)
123 indexValues[i] = null;
124 else
125 indexValues[i] = getIndexValue(YP.getValue(answer[i]));
126 }
127
128 // We need an entry in indexArgs from indexValues for each 1 bit in signature.
129 HashedList indexArgs = new HashedList(indexValues.Length);
130 for (int i = 0; i < indexValues.Length; ++i)
131 {
132 if ((signature & (1 << i)) == 0)
133 indexArgs.Add(null);
134 else
135 {
136 if (indexValues[i] == null)
137 // The signature wants an index value here, but we don't have one so
138 // we can't add it as an answer for this signature.
139 return;
140 else
141 indexArgs.Add(indexValues[i]);
142 }
143 }
144
145 // Add the answer to the answers list for indexArgs, creating the entry if needed.
146 List<object[]> answers;
147 if (!_indexedAnswers.TryGetValue(indexArgs, out answers))
148 {
149 answers = new List<object[]>();
150 _indexedAnswers[indexArgs] = answers;
151 }
152 answers.Add(answer);
153 }
154
155 public IEnumerable<bool> match(object[] arguments)
156 {
157 if (arguments.Length != _arity)
158 yield break;
159
160 // Set up indexArgs, up to arg position MAX_INDEX_ARGS. The signature has a 1 bit for
161 // each non-null index arg.
162 HashedList indexArgs = new HashedList(arguments.Length);
163 bool gotAllIndexArgs = true;
164 int signature = 0;
165 for (int i = 0; i < arguments.Length; ++i)
166 {
167 object indexValue = null;
168 if (i < MAX_INDEX_ARGS)
169 {
170 // We limit the number of args in a 32-bit signature.
171 indexValue = getIndexValue(YP.getValue(arguments[i]));
172 if (indexValue != null)
173 signature += (1 << i);
174 }
175 if (indexValue == null)
176 gotAllIndexArgs = false;
177 indexArgs.Add(indexValue);
178 }
179
180 List<object[]> answers;
181 if (signature == 0)
182 // No index args, so we have to match from _allAnswers.
183 answers = _allAnswers;
184 else
185 {
186 if (!_gotAnswersForSignature.ContainsKey(signature))
187 {
188 // We need to create the entry in _indexedAnswers.
189 foreach (object[] answer in _allAnswers)
190 indexAnswerForSignature(answer, signature);
191 // Mark that we did this signature.
192 _gotAnswersForSignature[signature] = null;
193 }
194 if (!_indexedAnswers.TryGetValue(indexArgs, out answers))
195 yield break;
196 }
197
198 if (gotAllIndexArgs)
199 {
200 // All the arguments were already bound, so we don't need to do bindings.
201 yield return false;
202 yield break;
203 }
204
205 // Find matches in answers.
206 IEnumerator<bool>[] iterators = new IEnumerator<bool>[arguments.Length];
207 // Debug: If the caller asserts another answer into this same predicate during yield, the iterator
208 // over clauses will be corrupted. Should we take the time to copy answers?
209 foreach (object[] answer in answers)
210 {
211 bool gotMatch = true;
212 int nIterators = 0;
213 // Try to bind all the arguments.
214 for (int i = 0; i < arguments.Length; ++i)
215 {
216 if (indexArgs[i] != null)
217 // We already matched this argument by looking up _indexedAnswers.
218 continue;
219
220 IEnumerator<bool> iterator = YP.unify(arguments[i], answer[i]).GetEnumerator();
221 iterators[nIterators++] = iterator;
222 // MoveNext() is true if YP.unify succeeds.
223 if (!iterator.MoveNext())
224 {
225 gotMatch = false;
226 break;
227 }
228 }
229 int z = 0;
230 try
231 {
232 if (gotMatch)
233 yield return false;
234 }
235 finally
236 {
237 // Manually finalize all the iterators.
238 for (z = 0; z < nIterators; ++z)
239 iterators[z].Dispose();
240 }
241 }
242 }
243
244 public IEnumerable<bool> clause(object Head, object Body)
245 {
246 Head = YP.getValue(Head);
247 if (Head is Variable)
248 throw new PrologException("instantiation_error", "Head is an unbound variable");
249 object[] arguments = YP.getFunctorArgs(Head);
250
251 // We always match Head from _allAnswers, and the Body is Atom.a("true").
252 #pragma warning disable 0168, 0219
253 foreach (bool l1 in YP.unify(Body, Atom.a("true")))
254 {
255 // The caller can assert another answer into this same predicate during yield, so we have to
256 // make a copy of the answers.
257 foreach (object[] answer in _allAnswers.ToArray())
258 {
259 foreach (bool l2 in YP.unifyArrays(arguments, answer))
260 yield return false;
261 }
262 }
263 #pragma warning restore 0168, 0219
264 }
265
266 public IEnumerable<bool> retract(object Head, object Body)
267 {
268 Head = YP.getValue(Head);
269 if (Head is Variable)
270 throw new PrologException("instantiation_error", "Head is an unbound variable");
271 object[] arguments = YP.getFunctorArgs(Head);
272
273 // We always match Head from _allAnswers, and the Body is Atom.a("true").
274 #pragma warning disable 0168, 0219
275 foreach (bool l1 in YP.unify(Body, Atom.a("true")))
276 {
277 // The caller can assert another answer into this same predicate during yield, so we have to
278 // make a copy of the answers.
279 foreach (object[] answer in _allAnswers.ToArray())
280 {
281 foreach (bool l2 in YP.unifyArrays(arguments, answer))
282 {
283 _allAnswers.Remove(answer);
284 clearIndexes();
285 yield return false;
286 }
287 }
288 }
289 #pragma warning restore 0168, 0219
290 }
291
292 /// <summary>
293 /// After retracting or prepending an answer in _allAnswers, the indexes are invalid, so clear them.
294 /// </summary>
295 private void clearIndexes()
296 {
297 _indexedAnswers.Clear();
298 _gotAnswersForSignature.Clear();
299 }
300
301 /// <summary>
302 /// A HashedList extends an ArrayList with methods to get a hash and to check equality
303 /// based on the elements of the list.
304 /// </summary>
305 public class HashedList : ArrayList
306 {
307 private bool _gotHashCode = false;
308 private int _hashCode;
309
310 public HashedList()
311 : base()
312 {
313 }
314
315 public HashedList(int capacity)
316 : base(capacity)
317 {
318 }
319
320 public HashedList(ICollection c)
321 : base(c)
322 {
323 }
324
325 // Debug: Should override all the other methods that change this.
326 public override int Add(object value)
327 {
328 _gotHashCode = false;
329 return base.Add(value);
330 }
331
332 public override int GetHashCode()
333 {
334 if (!_gotHashCode)
335 {
336 int hashCode = 1;
337 foreach (object obj in this)
338 hashCode = 31 * hashCode + (obj == null ? 0 : obj.GetHashCode());
339 _hashCode = hashCode;
340 _gotHashCode = true;
341 }
342 return _hashCode;
343 }
344
345 public override bool Equals(object obj)
346 {
347 if (!(obj is ArrayList))
348 return false;
349
350 ArrayList objList = (ArrayList)obj;
351 if (objList.Count != Count)
352 return false;
353
354 for (int i = 0; i < Count; ++i)
355 {
356 object value = objList[i];
357 if (value == null)
358 {
359 if (this[i] != null)
360 return false;
361 }
362 else
363 {
364 if (!value.Equals(this[i]))
365 return false;
366 }
367 }
368 return true;
369 }
370 }
371
372 /// <summary>
373 /// If we keep an index on value, return the value, or null if we don't index it.
374 /// </summary>
375 /// <param name="value">the term to examine. Assume you already called YP.getValue(value)</param>
376 /// <returns></returns>
377 public static object getIndexValue(object value)
378 {
379 if (value is Atom || value is string || value is Int32 || value is DateTime)
380 return value;
381 else
382 return null;
383 }
384 }
385}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/ListPair.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/ListPair.cs
deleted file mode 100644
index daac0ba..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/ListPair.cs
+++ /dev/null
@@ -1,166 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
35{
36 public class ListPair : Functor2
37 {
38 public ListPair(object head, object tail) : base(Atom.DOT, head, tail)
39 {
40 }
41
42 public static object make(List<object> list)
43 {
44 if (list.Count <= 0)
45 return Atom.NIL;
46
47 object result = Atom.NIL;
48 // Start from the end.
49 for (int i = list.Count - 1; i >= 0; --i)
50 result = new ListPair(list[i], result);
51 return result;
52 }
53
54 public static object make(object[] array)
55 {
56 if (array.Length <= 0)
57 return Atom.NIL;
58
59 object result = Atom.NIL;
60 // Start from the end.
61 for (int i = array.Length - 1; i >= 0; --i)
62 result = new ListPair(array[i], result);
63 return result;
64 }
65
66 /// <summary>
67 /// Return a ListPair version of array, where repeated elements
68 /// (according to YP.termEqual) are removed.
69 /// </summary>
70 /// <param name="array"></param>
71 /// <returns></returns>
72 public static object makeWithoutRepeatedTerms(object[] array)
73 {
74 if (array.Length <= 0)
75 return Atom.NIL;
76
77 // Start from the end.
78 object previousTerm = array[array.Length - 1];
79 object result = new ListPair(previousTerm, Atom.NIL);
80 for (int i = array.Length - 2; i >= 0; --i)
81 {
82 object term = array[i];
83 if (YP.termEqual(term, previousTerm))
84 continue;
85 result = new ListPair(term, result);
86 previousTerm = term;
87 }
88 return result;
89 }
90
91 /// <summary>
92 /// Return a ListPair version of array, where repeated elements
93 /// (according to YP.termEqual) are removed.
94 /// </summary>
95 /// <param name="array"></param>
96 /// <returns></returns>
97 public static object makeWithoutRepeatedTerms(List<object> array)
98 {
99 if (array.Count <= 0)
100 return Atom.NIL;
101
102 // Start from the end.
103 object previousTerm = array[array.Count - 1];
104 object result = new ListPair(previousTerm, Atom.NIL);
105 for (int i = array.Count - 2; i >= 0; --i)
106 {
107 object term = array[i];
108 if (YP.termEqual(term, previousTerm))
109 continue;
110 result = new ListPair(term, result);
111 previousTerm = term;
112 }
113 return result;
114 }
115
116 public static object make(object element1)
117 {
118 return new ListPair(element1, Atom.NIL);
119 }
120
121 public static object make(object element1, object element2)
122 {
123 return new ListPair(element1, new ListPair(element2, Atom.NIL));
124 }
125
126 public static object make(object element1, object element2, object element3)
127 {
128 return new ListPair(element1,
129 new ListPair(element2, new ListPair(element3, Atom.NIL)));
130 }
131
132 /// <summary>
133 /// Return an array of the elements in list or null if it is not
134 /// a proper list. If list is Atom.NIL, return an array of zero elements.
135 /// If the list or one of the tails of the list is Variable, raise an instantiation_error.
136 /// This does not call YP.getValue on each element.
137 /// </summary>
138 /// <param name="list"></param>
139 /// <returns></returns>
140 public static object[] toArray(object list)
141 {
142 list = YP.getValue(list);
143 if (list.Equals(Atom.NIL))
144 return new object[0];
145
146 List<object> result = new List<object>();
147 object element = list;
148 while (true) {
149 if (element == Atom.NIL)
150 break;
151 if (element is Variable)
152 throw new PrologException(Atom.a("instantiation_error"),
153 "List tail is an unbound variable");
154 if (!(element is Functor2 && ((Functor2)element)._name == Atom.DOT))
155 // Not a proper list.
156 return null;
157 result.Add(((Functor2)element)._arg1);
158 element = YP.getValue(((Functor2)element)._arg2);
159 }
160
161 if (result.Count <= 0)
162 return null;
163 return result.ToArray();
164 }
165 }
166}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs
deleted file mode 100644
index 34010e7..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Parser.cs
+++ /dev/null
@@ -1,4575 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections.Generic;
33
34 // disable warning on l1, don't see how we can
35 // code this differently
36 #pragma warning disable 0168, 0219, 0162
37
38namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
39{
40 public class Parser
41 {
42 public static IEnumerable<bool> read_term2(object Term, object Options)
43 {
44 Variable Answer = new Variable();
45 Variable Variables = new Variable();
46 foreach (bool l1 in read_termOptions(Options, Variables))
47 {
48 foreach (bool l2 in portable_read3(Answer, Variables, new Variable()))
49 {
50 foreach (bool l3 in remove_pos(Answer, Term))
51 yield return false;
52 }
53 }
54 }
55
56 public static IEnumerable<bool> read_term3(object Input, object Term, object Options)
57 {
58 Variable SaveInput = new Variable();
59 Variable Answer = new Variable();
60 Variable Variables = new Variable();
61 foreach (bool l1 in read_termOptions(Options, Variables))
62 {
63 foreach (bool l2 in YP.current_input(SaveInput))
64 {
65 try
66 {
67 YP.see(Input);
68 foreach (bool l3 in portable_read3(Answer, Variables, new Variable()))
69 {
70 foreach (bool l4 in remove_pos(Answer, Term))
71 yield return false;
72 }
73 }
74 finally
75 {
76 YP.see(SaveInput);
77 }
78 }
79 }
80 }
81
82 /// <summary>
83 /// For read_term, check if Options has variable_names(Variables).
84 /// Otherwise, ignore Options.
85 /// </summary>
86 /// <param name="Options"></param>
87 /// <param name="Variables"></param>
88 /// <returns></returns>
89 private static IEnumerable<bool> read_termOptions(object Options, object Variables)
90 {
91 Options = YP.getValue(Options);
92 if (Options is Variable)
93 throw new PrologException(Atom.a("instantiation_error"), "Options is an unbound variable");
94 // First try to match Options = [variable_names(Variables)]
95 foreach (bool l1 in YP.unify(Options, ListPair.make(new Functor1("variable_names", Variables))))
96 {
97 yield return false;
98 yield break;
99 }
100 // Default: Ignore Options.
101 yield return false;
102 }
103
104 public static IEnumerable<bool> read1(object Term)
105 {
106 return read_term2(Term, Atom.NIL);
107 }
108
109 public static IEnumerable<bool> read2(object Input, object Term)
110 {
111 return read_term3(Input, Term, Atom.NIL);
112 }
113
114 public static IEnumerable<bool> formatError(object Output, object Format, object Arguments)
115 {
116 // Debug: Simple implementation for now.
117 YP.write(Format);
118 YP.write(Arguments);
119 YP.nl();
120 yield return false;
121 }
122
123
124 // Debug: Hand-modify this central predicate to do tail recursion.
125 public static IEnumerable<bool> read_tokens(object arg1, object arg2, object arg3)
126 {
127 bool repeat = true;
128 while (repeat)
129 {
130 repeat = false;
131 {
132 object C1 = arg1;
133 object Dict = arg2;
134 object Tokens = arg3;
135 Variable C2 = new Variable();
136 if (YP.lessThanOrEqual(C1, new ListPair(32, Atom.NIL)))
137 {
138 if (YP.greaterThanOrEqual(C1, 0))
139 {
140 foreach (bool l4 in YP.get_code(C2))
141 {
142#if false
143 foreach (bool l5 in read_tokens(C2, Dict, Tokens))
144 {
145 yield return false;
146 }
147#endif
148 arg1 = YP.getValue(C2);
149 arg2 = YP.getValue(Dict);
150 arg3 = YP.getValue(Tokens);
151 repeat = true;
152 }
153 }
154 goto cutIf1;
155 }
156 if (YP.greaterThanOrEqual(C1, new ListPair(97, Atom.NIL)))
157 {
158 if (YP.lessThanOrEqual(C1, new ListPair(122, Atom.NIL)))
159 {
160 foreach (bool l4 in read_identifier(C1, Dict, Tokens))
161 {
162 yield return false;
163 }
164 goto cutIf2;
165 }
166 }
167 if (YP.greaterThanOrEqual(C1, new ListPair(65, Atom.NIL)))
168 {
169 if (YP.lessThanOrEqual(C1, new ListPair(90, Atom.NIL)))
170 {
171 foreach (bool l4 in read_variable(C1, Dict, Tokens))
172 {
173 yield return false;
174 }
175 goto cutIf3;
176 }
177 }
178 if (YP.greaterThanOrEqual(C1, new ListPair(48, Atom.NIL)))
179 {
180 if (YP.lessThanOrEqual(C1, new ListPair(57, Atom.NIL)))
181 {
182 foreach (bool l4 in read_number(C1, Dict, Tokens))
183 {
184 yield return false;
185 }
186 goto cutIf4;
187 }
188 }
189 if (YP.lessThan(C1, 127))
190 {
191 foreach (bool l3 in read_special(C1, Dict, Tokens))
192 {
193 yield return false;
194 }
195 goto cutIf5;
196 }
197 if (YP.lessThanOrEqual(C1, 160))
198 {
199 foreach (bool l3 in YP.get_code(C2))
200 {
201#if false
202 foreach (bool l4 in read_tokens(C2, Dict, Tokens))
203 {
204 yield return false;
205 }
206#endif
207 arg1 = YP.getValue(C2);
208 arg2 = YP.getValue(Dict);
209 arg3 = YP.getValue(Tokens);
210 repeat = true;
211 }
212 goto cutIf6;
213 }
214 if (YP.greaterThanOrEqual(C1, 223))
215 {
216 if (YP.notEqual(C1, 247))
217 {
218 foreach (bool l4 in read_identifier(C1, Dict, Tokens))
219 {
220 yield return false;
221 }
222 goto cutIf7;
223 }
224 }
225 if (YP.greaterThanOrEqual(C1, 192))
226 {
227 if (YP.notEqual(C1, 215))
228 {
229 foreach (bool l4 in read_variable(C1, Dict, Tokens))
230 {
231 yield return false;
232 }
233 goto cutIf8;
234 }
235 }
236 if (YP.notEqual(C1, 170))
237 {
238 if (YP.notEqual(C1, 186))
239 {
240 foreach (bool l4 in read_symbol(C1, Dict, Tokens))
241 {
242 yield return false;
243 }
244 goto cutIf9;
245 }
246 }
247 foreach (bool l2 in read_identifier(C1, Dict, Tokens))
248 {
249 yield return false;
250 }
251 cutIf9:
252 cutIf8:
253 cutIf7:
254 cutIf6:
255 cutIf5:
256 cutIf4:
257 cutIf3:
258 cutIf2:
259 cutIf1:
260 { }
261 }
262 }
263 }
264
265 // Compiler output follows.
266
267 class YPInnerClass { }
268 // static Type getDeclaringClass() { return typeof(YPInnerClass).DeclaringType; }
269
270 public static IEnumerable<bool> parseInput(object TermList)
271 {
272 {
273 Variable TermAndVariables = new Variable();
274 FindallAnswers findallAnswers1 = new FindallAnswers(TermAndVariables);
275 foreach (bool l2 in parseInputHelper(TermAndVariables))
276 {
277 findallAnswers1.add();
278 }
279 foreach (bool l2 in findallAnswers1.result(TermList))
280 {
281 yield return false;
282 }
283 }
284 }
285
286 public static IEnumerable<bool> parseInputHelper(object arg1)
287 {
288 {
289 Variable Term = new Variable();
290 Variable Variables = new Variable();
291 Variable Answer = new Variable();
292 Variable x4 = new Variable();
293 foreach (bool l2 in YP.unify(arg1, new Functor2("f", Term, Variables)))
294 {
295 foreach (bool l3 in YP.repeat())
296 {
297 foreach (bool l4 in portable_read3(Answer, Variables, x4))
298 {
299 foreach (bool l5 in remove_pos(Answer, Term))
300 {
301 if (YP.termEqual(Term, Atom.a("end_of_file")))
302 {
303 yield break;
304 goto cutIf1;
305 }
306 yield return false;
307 cutIf1:
308 { }
309 }
310 }
311 }
312 }
313 }
314 }
315
316 public static IEnumerable<bool> clear_errors()
317 {
318 {
319 yield return false;
320 }
321 }
322
323 public static IEnumerable<bool> remove_pos(object arg1, object arg2)
324 {
325 {
326 Variable X = new Variable();
327 foreach (bool l2 in YP.unify(arg1, X))
328 {
329 foreach (bool l3 in YP.unify(arg2, X))
330 {
331 if (YP.var(X))
332 {
333 yield return true;
334 yield break;
335 }
336 }
337 }
338 }
339 {
340 object X = arg2;
341 Variable _Pos = new Variable();
342 Variable _Name = new Variable();
343 foreach (bool l2 in YP.unify(arg1, new Functor3("$VAR", _Pos, _Name, X)))
344 {
345 if (YP.var(X))
346 {
347 yield return true;
348 yield break;
349 }
350 }
351 }
352 {
353 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
354 {
355 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
356 {
357 yield return true;
358 yield break;
359 }
360 }
361 }
362 {
363 Variable H = new Variable();
364 Variable T = new Variable();
365 Variable NH = new Variable();
366 Variable NT = new Variable();
367 foreach (bool l2 in YP.unify(arg1, new ListPair(H, T)))
368 {
369 foreach (bool l3 in YP.unify(arg2, new ListPair(NH, NT)))
370 {
371 foreach (bool l4 in remove_pos(H, NH))
372 {
373 foreach (bool l5 in remove_pos(T, NT))
374 {
375 yield return false;
376 }
377 }
378 yield break;
379 }
380 }
381 }
382 {
383 Variable A = new Variable();
384 Variable B = new Variable();
385 Variable NA = new Variable();
386 Variable NB = new Variable();
387 foreach (bool l2 in YP.unify(arg1, new Functor2(",", A, B)))
388 {
389 foreach (bool l3 in YP.unify(arg2, new Functor2(",", NA, NB)))
390 {
391 foreach (bool l4 in remove_pos(A, NA))
392 {
393 foreach (bool l5 in remove_pos(B, NB))
394 {
395 yield return false;
396 }
397 }
398 yield break;
399 }
400 }
401 }
402 {
403 Variable Atom_1 = new Variable();
404 Variable _F = new Variable();
405 foreach (bool l2 in YP.unify(arg1, Atom_1))
406 {
407 foreach (bool l3 in YP.unify(arg2, Atom_1))
408 {
409 foreach (bool l4 in YP.functor(Atom_1, _F, 0))
410 {
411 yield return false;
412 }
413 }
414 }
415 }
416 {
417 object Term = arg1;
418 object NewTerm = arg2;
419 Variable Func = new Variable();
420 Variable _Pos = new Variable();
421 Variable Args = new Variable();
422 Variable NArgs = new Variable();
423 if (YP.nonvar(Term))
424 {
425 foreach (bool l3 in YP.univ(Term, new ListPair(Func, new ListPair(_Pos, Args))))
426 {
427 foreach (bool l4 in remove_pos(Args, NArgs))
428 {
429 foreach (bool l5 in YP.univ(NewTerm, new ListPair(Func, NArgs)))
430 {
431 yield return false;
432 }
433 }
434 }
435 }
436 }
437 }
438
439 public static IEnumerable<bool> portable_read_position(object Term, object PosTerm, object Syntax)
440 {
441 {
442 foreach (bool l2 in portable_read(PosTerm, Syntax))
443 {
444 foreach (bool l3 in remove_pos(PosTerm, Term))
445 {
446 yield return false;
447 }
448 }
449 }
450 }
451
452 public static IEnumerable<bool> portable_read(object Answer, object Syntax)
453 {
454 {
455 Variable Tokens = new Variable();
456 Variable ParseTokens = new Variable();
457 foreach (bool l2 in read_tokens1(Tokens))
458 {
459 foreach (bool l3 in remove_comments(Tokens, ParseTokens, Syntax))
460 {
461 foreach (bool l4 in parse2(ParseTokens, Answer))
462 {
463 yield return false;
464 }
465 }
466 }
467 }
468 }
469
470 public static IEnumerable<bool> portable_read3(object Answer, object Variables, object Syntax)
471 {
472 {
473 Variable Tokens = new Variable();
474 Variable ParseTokens = new Variable();
475 foreach (bool l2 in read_tokens2(Tokens, Variables))
476 {
477 foreach (bool l3 in remove_comments(Tokens, ParseTokens, Syntax))
478 {
479 foreach (bool l4 in parse2(ParseTokens, Answer))
480 {
481 yield return false;
482 }
483 }
484 }
485 }
486 }
487
488 public static IEnumerable<bool> remove_comments(object arg1, object arg2, object arg3)
489 {
490 {
491 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
492 {
493 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
494 {
495 foreach (bool l4 in YP.unify(arg3, Atom.NIL))
496 {
497 yield return false;
498 }
499 }
500 }
501 }
502 {
503 object Ys = arg2;
504 Variable S = new Variable();
505 Variable E = new Variable();
506 Variable Xs = new Variable();
507 Variable Zs = new Variable();
508 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("comment", S, E), Xs)))
509 {
510 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("comment", S, E), Zs)))
511 {
512 foreach (bool l4 in remove_comments(Xs, Ys, Zs))
513 {
514 yield return false;
515 }
516 yield break;
517 }
518 }
519 }
520 {
521 Variable Pos = new Variable();
522 Variable Xs = new Variable();
523 Variable Ys = new Variable();
524 Variable Pos2 = new Variable();
525 Variable Zs = new Variable();
526 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("/", Atom.a("["), Pos), Xs)))
527 {
528 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("["), Ys)))
529 {
530 foreach (bool l4 in YP.unify(arg3, new ListPair(new Functor2("list", Pos, Pos2), Zs)))
531 {
532 foreach (bool l5 in YP.unify(Pos2, YP.add(Pos, 1)))
533 {
534 foreach (bool l6 in remove_comments(Xs, Ys, Zs))
535 {
536 yield return false;
537 }
538 }
539 yield break;
540 }
541 }
542 }
543 }
544 {
545 Variable Pos = new Variable();
546 Variable Xs = new Variable();
547 Variable Ys = new Variable();
548 Variable Pos2 = new Variable();
549 Variable Zs = new Variable();
550 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("/", Atom.a("]"), Pos), Xs)))
551 {
552 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("]"), Ys)))
553 {
554 foreach (bool l4 in YP.unify(arg3, new ListPair(new Functor2("list", Pos, Pos2), Zs)))
555 {
556 foreach (bool l5 in YP.unify(Pos2, YP.add(Pos, 1)))
557 {
558 foreach (bool l6 in remove_comments(Xs, Ys, Zs))
559 {
560 yield return false;
561 }
562 }
563 yield break;
564 }
565 }
566 }
567 }
568 {
569 object Zs = arg3;
570 Variable Token = new Variable();
571 Variable Xs = new Variable();
572 Variable Ys = new Variable();
573 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, Xs)))
574 {
575 foreach (bool l3 in YP.unify(arg2, new ListPair(Token, Ys)))
576 {
577 foreach (bool l4 in remove_comments(Xs, Ys, Zs))
578 {
579 yield return false;
580 }
581 }
582 }
583 }
584 }
585
586 public static IEnumerable<bool> expect(object Token, object arg2, object arg3)
587 {
588 {
589 object Rest = arg3;
590 foreach (bool l2 in YP.unify(arg2, new ListPair(Token, Rest)))
591 {
592 yield return true;
593 yield break;
594 }
595 }
596 {
597 object S0 = arg2;
598 object x3 = arg3;
599 foreach (bool l2 in syntax_error(ListPair.make(new object[] { Token, Atom.a("or"), Atom.a("operator"), Atom.a("expected") }), S0))
600 {
601 yield return false;
602 }
603 }
604 }
605
606 public static IEnumerable<bool> parse2(object Tokens, object Answer)
607 {
608 {
609 Variable Term = new Variable();
610 Variable LeftOver = new Variable();
611 foreach (bool l2 in clear_errors())
612 {
613 foreach (bool l3 in parse(Tokens, 1200, Term, LeftOver))
614 {
615 foreach (bool l4 in all_read(LeftOver))
616 {
617 foreach (bool l5 in YP.unify(Answer, Term))
618 {
619 yield return false;
620 }
621 yield break;
622 }
623 }
624 foreach (bool l3 in syntax_error(Tokens))
625 {
626 yield return false;
627 }
628 }
629 }
630 }
631
632 public static IEnumerable<bool> all_read(object arg1)
633 {
634 {
635 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
636 {
637 yield return false;
638 }
639 }
640 {
641 Variable Token = new Variable();
642 Variable S = new Variable();
643 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, S)))
644 {
645 foreach (bool l3 in syntax_error(ListPair.make(new object[] { Atom.a("operator"), Atom.a("expected"), Atom.a("after"), Atom.a("expression") }), new ListPair(Token, S)))
646 {
647 yield return false;
648 }
649 }
650 }
651 }
652
653 public static IEnumerable<bool> parse(object arg1, object arg2, object arg3, object arg4)
654 {
655 {
656 object x1 = arg2;
657 object x2 = arg3;
658 object x3 = arg4;
659 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
660 {
661 foreach (bool l3 in syntax_error(new ListPair(Atom.a("expression"), new ListPair(Atom.a("expected"), Atom.NIL)), Atom.NIL))
662 {
663 yield return false;
664 }
665 }
666 }
667 {
668 object Precedence = arg2;
669 object Term = arg3;
670 object LeftOver = arg4;
671 Variable Token = new Variable();
672 Variable RestTokens = new Variable();
673 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, RestTokens)))
674 {
675 foreach (bool l3 in parse5(Token, RestTokens, Precedence, Term, LeftOver))
676 {
677 yield return false;
678 }
679 }
680 }
681 }
682
683 public static IEnumerable<bool> parse5(object arg1, object arg2, object arg3, object arg4, object arg5)
684 {
685 {
686 object S0 = arg2;
687 object x2 = arg3;
688 object x3 = arg4;
689 object x4 = arg5;
690 foreach (bool l2 in YP.unify(arg1, Atom.a("}")))
691 {
692 foreach (bool l3 in cannot_start(Atom.a("}"), S0))
693 {
694 yield return false;
695 }
696 }
697 }
698 {
699 object S0 = arg2;
700 object x2 = arg3;
701 object x3 = arg4;
702 object x4 = arg5;
703 foreach (bool l2 in YP.unify(arg1, Atom.a("]")))
704 {
705 foreach (bool l3 in cannot_start(Atom.a("]"), S0))
706 {
707 yield return false;
708 }
709 }
710 }
711 {
712 object S0 = arg2;
713 object x2 = arg3;
714 object x3 = arg4;
715 object x4 = arg5;
716 foreach (bool l2 in YP.unify(arg1, Atom.a(")")))
717 {
718 foreach (bool l3 in cannot_start(Atom.a(")"), S0))
719 {
720 yield return false;
721 }
722 }
723 }
724 {
725 object S0 = arg2;
726 object x2 = arg3;
727 object x3 = arg4;
728 object x4 = arg5;
729 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
730 {
731 foreach (bool l3 in cannot_start(Atom.a(","), S0))
732 {
733 yield return false;
734 }
735 }
736 }
737 {
738 object S0 = arg2;
739 object x2 = arg3;
740 object x3 = arg4;
741 object x4 = arg5;
742 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
743 {
744 foreach (bool l3 in cannot_start(Atom.a("|"), S0))
745 {
746 yield return false;
747 }
748 }
749 }
750 {
751 object S0 = arg2;
752 object Precedence = arg3;
753 object Answer = arg4;
754 object S = arg5;
755 Variable Codes = new Variable();
756 Variable Term = new Variable();
757 Variable A = new Variable();
758 foreach (bool l2 in YP.unify(arg1, new Functor1("string", Codes)))
759 {
760 foreach (bool l3 in YP.current_prolog_flag(Atom.a("double_quotes"), Atom.a("atom")))
761 {
762 foreach (bool l4 in YP.atom_codes(Term, Codes))
763 {
764 foreach (bool l5 in exprtl0(S0, Term, Precedence, Answer, S))
765 {
766 yield return false;
767 }
768 }
769 goto cutIf1;
770 }
771 foreach (bool l3 in YP.current_prolog_flag(Atom.a("double_quotes"), Atom.a("chars")))
772 {
773 foreach (bool l4 in YP.atom_codes(A, Codes))
774 {
775 foreach (bool l5 in YP.atom_chars(A, Term))
776 {
777 foreach (bool l6 in exprtl0(S0, Term, Precedence, Answer, S))
778 {
779 yield return false;
780 }
781 }
782 }
783 goto cutIf2;
784 }
785 foreach (bool l3 in YP.unify(Term, Codes))
786 {
787 foreach (bool l4 in exprtl0(S0, Term, Precedence, Answer, S))
788 {
789 yield return false;
790 }
791 }
792 cutIf2:
793 cutIf1:
794 { }
795 }
796 }
797 {
798 object S0 = arg2;
799 object Precedence = arg3;
800 object Answer = arg4;
801 object S = arg5;
802 Variable Number = new Variable();
803 foreach (bool l2 in YP.unify(arg1, new Functor1("number", Number)))
804 {
805 foreach (bool l3 in exprtl0(S0, Number, Precedence, Answer, S))
806 {
807 yield return false;
808 }
809 }
810 }
811 {
812 object Precedence = arg3;
813 object Answer = arg4;
814 object S = arg5;
815 Variable S1 = new Variable();
816 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
817 {
818 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("]"), S1)))
819 {
820 foreach (bool l4 in read_atom(new Functor2("/", Atom.NIL, 0), S1, Precedence, Answer, S))
821 {
822 yield return false;
823 }
824 yield break;
825 }
826 }
827 }
828 {
829 object S1 = arg2;
830 object Precedence = arg3;
831 object Answer = arg4;
832 object S = arg5;
833 Variable Arg1 = new Variable();
834 Variable S2 = new Variable();
835 Variable RestArgs = new Variable();
836 Variable S3 = new Variable();
837 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
838 {
839 foreach (bool l3 in parse(S1, 999, Arg1, S2))
840 {
841 foreach (bool l4 in read_list(S2, RestArgs, S3))
842 {
843 foreach (bool l5 in exprtl0(S3, new ListPair(Arg1, RestArgs), Precedence, Answer, S))
844 {
845 yield return false;
846 }
847 yield break;
848 }
849 }
850 }
851 }
852 {
853 object S1 = arg2;
854 object Precedence = arg3;
855 object Answer = arg4;
856 object S = arg5;
857 Variable Term = new Variable();
858 Variable S2 = new Variable();
859 Variable S3 = new Variable();
860 foreach (bool l2 in YP.unify(arg1, Atom.a("(")))
861 {
862 foreach (bool l3 in parse(S1, 1200, Term, S2))
863 {
864 foreach (bool l4 in expect(Atom.a(")"), S2, S3))
865 {
866 foreach (bool l5 in exprtl0(S3, Term, Precedence, Answer, S))
867 {
868 yield return false;
869 }
870 yield break;
871 }
872 }
873 }
874 }
875 {
876 object S1 = arg2;
877 object Precedence = arg3;
878 object Answer = arg4;
879 object S = arg5;
880 Variable Term = new Variable();
881 Variable S2 = new Variable();
882 Variable S3 = new Variable();
883 foreach (bool l2 in YP.unify(arg1, Atom.a(" (")))
884 {
885 foreach (bool l3 in parse(S1, 1200, Term, S2))
886 {
887 foreach (bool l4 in expect(Atom.a(")"), S2, S3))
888 {
889 foreach (bool l5 in exprtl0(S3, Term, Precedence, Answer, S))
890 {
891 yield return false;
892 }
893 yield break;
894 }
895 }
896 }
897 }
898 {
899 object Precedence = arg3;
900 object Answer = arg4;
901 object S = arg5;
902 Variable _Pos = new Variable();
903 Variable S1 = new Variable();
904 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Atom.a("{"), _Pos)))
905 {
906 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("}"), S1)))
907 {
908 foreach (bool l4 in read_atom(Atom.a("{}"), S1, Precedence, Answer, S))
909 {
910 yield return false;
911 }
912 yield break;
913 }
914 }
915 }
916 {
917 object S1 = arg2;
918 object Precedence = arg3;
919 object Answer = arg4;
920 object S = arg5;
921 Variable Pos = new Variable();
922 Variable Term = new Variable();
923 Variable S2 = new Variable();
924 Variable S3 = new Variable();
925 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Atom.a("{"), Pos)))
926 {
927 foreach (bool l3 in parse(S1, 1200, Term, S2))
928 {
929 foreach (bool l4 in expect(Atom.a("}"), S2, S3))
930 {
931 foreach (bool l5 in exprtl0(S3, new Functor2("{}", Pos, Term), Precedence, Answer, S))
932 {
933 yield return false;
934 }
935 yield break;
936 }
937 }
938 }
939 }
940 {
941 object Precedence = arg3;
942 object Answer = arg4;
943 object S = arg5;
944 Variable Variable_1 = new Variable();
945 Variable Name = new Variable();
946 Variable Pos = new Variable();
947 Variable S1 = new Variable();
948 Variable Arg1 = new Variable();
949 Variable S2 = new Variable();
950 Variable RestArgs = new Variable();
951 Variable S3 = new Variable();
952 Variable Term = new Variable();
953 foreach (bool l2 in YP.unify(arg1, new Functor3("var", Variable_1, Name, Pos)))
954 {
955 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("("), S1)))
956 {
957 foreach (bool l4 in parse(S1, 999, Arg1, S2))
958 {
959 foreach (bool l5 in read_args(S2, RestArgs, S3))
960 {
961 foreach (bool l6 in YP.univ(Term, new ListPair(Atom.a("call"), new ListPair(new Functor3("$VAR", Pos, Name, Variable_1), new ListPair(Arg1, RestArgs)))))
962 {
963 foreach (bool l7 in exprtl0(S3, Term, Precedence, Answer, S))
964 {
965 yield return false;
966 }
967 }
968 yield break;
969 }
970 }
971 yield break;
972 }
973 }
974 }
975 {
976 object S0 = arg2;
977 object Precedence = arg3;
978 object Answer = arg4;
979 object S = arg5;
980 Variable Variable_1 = new Variable();
981 Variable Name = new Variable();
982 Variable Pos = new Variable();
983 foreach (bool l2 in YP.unify(arg1, new Functor3("var", Variable_1, Name, Pos)))
984 {
985 foreach (bool l3 in exprtl0(S0, new Functor3("$VAR", Pos, Name, Variable_1), Precedence, Answer, S))
986 {
987 yield return false;
988 }
989 }
990 }
991 {
992 object S0 = arg2;
993 object Precedence = arg3;
994 object Answer = arg4;
995 object S = arg5;
996 Variable Atom_1 = new Variable();
997 Variable P = new Variable();
998 foreach (bool l2 in YP.unify(arg1, new Functor2("atom", Atom_1, P)))
999 {
1000 foreach (bool l3 in read_atom(new Functor2("/", Atom_1, P), S0, Precedence, Answer, S))
1001 {
1002 yield return false;
1003 }
1004 }
1005 }
1006 }
1007
1008 public static IEnumerable<bool> read_atom(object arg1, object arg2, object Precedence, object Answer, object S)
1009 {
1010 {
1011 Variable _Pos = new Variable();
1012 Variable Number = new Variable();
1013 Variable S1 = new Variable();
1014 Variable Negative = new Variable();
1015 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Atom.a("-"), _Pos)))
1016 {
1017 foreach (bool l3 in YP.unify(arg2, new ListPair(new Functor1("number", Number), S1)))
1018 {
1019 foreach (bool l4 in YP.unify(Negative, YP.negate(Number)))
1020 {
1021 foreach (bool l5 in exprtl0(S1, Negative, Precedence, Answer, S))
1022 {
1023 yield return false;
1024 }
1025 }
1026 yield break;
1027 }
1028 }
1029 }
1030 {
1031 Variable Functor_1 = new Variable();
1032 Variable Pos = new Variable();
1033 Variable S1 = new Variable();
1034 Variable Arg1 = new Variable();
1035 Variable S2 = new Variable();
1036 Variable RestArgs = new Variable();
1037 Variable S3 = new Variable();
1038 Variable Term = new Variable();
1039 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Functor_1, Pos)))
1040 {
1041 foreach (bool l3 in YP.unify(arg2, new ListPair(Atom.a("("), S1)))
1042 {
1043 foreach (bool l4 in parse(S1, 999, Arg1, S2))
1044 {
1045 foreach (bool l5 in read_args(S2, RestArgs, S3))
1046 {
1047 foreach (bool l6 in YP.univ(Term, new ListPair(Functor_1, new ListPair(Pos, new ListPair(Arg1, RestArgs)))))
1048 {
1049 foreach (bool l7 in exprtl0(S3, Term, Precedence, Answer, S))
1050 {
1051 yield return false;
1052 }
1053 }
1054 yield break;
1055 }
1056 }
1057 yield break;
1058 }
1059 }
1060 }
1061 {
1062 object S0 = arg2;
1063 Variable Op = new Variable();
1064 Variable Pos = new Variable();
1065 Variable Oprec = new Variable();
1066 Variable Aprec = new Variable();
1067 Variable Flag = new Variable();
1068 Variable Term = new Variable();
1069 Variable Arg = new Variable();
1070 Variable S1 = new Variable();
1071 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Op, Pos)))
1072 {
1073 foreach (bool l3 in prefixop(Op, Oprec, Aprec))
1074 {
1075 foreach (bool l4 in possible_right_operand(S0, Flag))
1076 {
1077 if (YP.lessThan(Flag, 0))
1078 {
1079 foreach (bool l6 in YP.univ(Term, new ListPair(Op, new ListPair(Pos, Atom.NIL))))
1080 {
1081 foreach (bool l7 in exprtl0(S0, Term, Precedence, Answer, S))
1082 {
1083 yield return false;
1084 }
1085 }
1086 goto cutIf1;
1087 }
1088 if (YP.greaterThan(Oprec, Precedence))
1089 {
1090 foreach (bool l6 in syntax_error(ListPair.make(new object[] { Atom.a("prefix"), Atom.a("operator"), Op, Atom.a("in"), Atom.a("context"), Atom.a("with"), Atom.a("precedence"), Precedence }), S0))
1091 {
1092 yield return false;
1093 }
1094 goto cutIf2;
1095 }
1096 if (YP.greaterThan(Flag, 0))
1097 {
1098 foreach (bool l6 in parse(S0, Aprec, Arg, S1))
1099 {
1100 foreach (bool l7 in YP.univ(Term, ListPair.make(new object[] { Op, Pos, Arg })))
1101 {
1102 foreach (bool l8 in exprtl(S1, Oprec, Term, Precedence, Answer, S))
1103 {
1104 yield return false;
1105 }
1106 }
1107 yield break;
1108 }
1109 goto cutIf3;
1110 }
1111 foreach (bool l5 in peepop(S0, S1))
1112 {
1113 foreach (bool l6 in prefix_is_atom(S1, Oprec))
1114 {
1115 foreach (bool l7 in exprtl(S1, Oprec, new Functor2("/", Op, Pos), Precedence, Answer, S))
1116 {
1117 yield return false;
1118 }
1119 }
1120 }
1121 foreach (bool l5 in parse(S0, Aprec, Arg, S1))
1122 {
1123 foreach (bool l6 in YP.univ(Term, ListPair.make(new object[] { Op, Pos, Arg })))
1124 {
1125 foreach (bool l7 in exprtl(S1, Oprec, Term, Precedence, Answer, S))
1126 {
1127 yield return false;
1128 }
1129 }
1130 yield break;
1131 }
1132 cutIf3:
1133 cutIf2:
1134 cutIf1:
1135 { }
1136 }
1137 yield break;
1138 }
1139 }
1140 }
1141 {
1142 object S0 = arg2;
1143 Variable Atom_1 = new Variable();
1144 Variable Pos = new Variable();
1145 Variable Term = new Variable();
1146 foreach (bool l2 in YP.unify(arg1, new Functor2("/", Atom_1, Pos)))
1147 {
1148 foreach (bool l3 in YP.univ(Term, new ListPair(Atom_1, new ListPair(Pos, Atom.NIL))))
1149 {
1150 foreach (bool l4 in exprtl0(S0, Term, Precedence, Answer, S))
1151 {
1152 yield return false;
1153 }
1154 }
1155 }
1156 }
1157 }
1158
1159 public static IEnumerable<bool> cannot_start(object Token, object S0)
1160 {
1161 {
1162 foreach (bool l2 in syntax_error(ListPair.make(new object[] { Token, Atom.a("cannot"), Atom.a("start"), Atom.a("an"), Atom.a("expression") }), S0))
1163 {
1164 yield return false;
1165 }
1166 }
1167 }
1168
1169 public static IEnumerable<bool> read_args(object arg1, object arg2, object arg3)
1170 {
1171 {
1172 object S = arg3;
1173 Variable S1 = new Variable();
1174 Variable Term = new Variable();
1175 Variable Rest = new Variable();
1176 Variable S2 = new Variable();
1177 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a(","), S1)))
1178 {
1179 foreach (bool l3 in YP.unify(arg2, new ListPair(Term, Rest)))
1180 {
1181 foreach (bool l4 in parse(S1, 999, Term, S2))
1182 {
1183 foreach (bool l5 in read_args(S2, Rest, S))
1184 {
1185 yield return false;
1186 }
1187 yield break;
1188 }
1189 yield break;
1190 }
1191 }
1192 }
1193 {
1194 object S = arg3;
1195 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a(")"), S)))
1196 {
1197 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
1198 {
1199 yield return true;
1200 yield break;
1201 }
1202 }
1203 }
1204 {
1205 object S = arg1;
1206 object x2 = arg2;
1207 object x3 = arg3;
1208 foreach (bool l2 in syntax_error(ListPair.make(new object[] { Atom.a(", or )"), Atom.a("expected"), Atom.a("in"), Atom.a("arguments") }), S))
1209 {
1210 yield return false;
1211 }
1212 }
1213 }
1214
1215 public static IEnumerable<bool> read_list(object arg1, object arg2, object arg3)
1216 {
1217 {
1218 object x1 = arg2;
1219 object x2 = arg3;
1220 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1221 {
1222 foreach (bool l3 in syntax_error(ListPair.make(new object[] { Atom.a(", | or ]"), Atom.a("expected"), Atom.a("in"), Atom.a("list") }), Atom.NIL))
1223 {
1224 yield return false;
1225 }
1226 }
1227 }
1228 {
1229 object Rest = arg2;
1230 object S = arg3;
1231 Variable Token = new Variable();
1232 Variable S1 = new Variable();
1233 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, S1)))
1234 {
1235 foreach (bool l3 in read_list4(Token, S1, Rest, S))
1236 {
1237 yield return false;
1238 }
1239 }
1240 }
1241 }
1242
1243 public static IEnumerable<bool> read_list4(object arg1, object arg2, object arg3, object arg4)
1244 {
1245 {
1246 object S1 = arg2;
1247 object S = arg4;
1248 Variable Term = new Variable();
1249 Variable Rest = new Variable();
1250 Variable S2 = new Variable();
1251 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
1252 {
1253 foreach (bool l3 in YP.unify(arg3, new ListPair(Term, Rest)))
1254 {
1255 foreach (bool l4 in parse(S1, 999, Term, S2))
1256 {
1257 foreach (bool l5 in read_list(S2, Rest, S))
1258 {
1259 yield return false;
1260 }
1261 yield break;
1262 }
1263 yield break;
1264 }
1265 }
1266 }
1267 {
1268 object S1 = arg2;
1269 object Rest = arg3;
1270 object S = arg4;
1271 Variable S2 = new Variable();
1272 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
1273 {
1274 foreach (bool l3 in parse(S1, 999, Rest, S2))
1275 {
1276 foreach (bool l4 in expect(Atom.a("]"), S2, S))
1277 {
1278 yield return false;
1279 }
1280 yield break;
1281 }
1282 yield break;
1283 }
1284 }
1285 {
1286 Variable S1 = new Variable();
1287 foreach (bool l2 in YP.unify(arg1, Atom.a("]")))
1288 {
1289 foreach (bool l3 in YP.unify(arg2, S1))
1290 {
1291 foreach (bool l4 in YP.unify(arg3, Atom.NIL))
1292 {
1293 foreach (bool l5 in YP.unify(arg4, S1))
1294 {
1295 yield return true;
1296 yield break;
1297 }
1298 }
1299 }
1300 }
1301 }
1302 {
1303 object Token = arg1;
1304 object S1 = arg2;
1305 object x3 = arg3;
1306 object x4 = arg4;
1307 foreach (bool l2 in syntax_error(ListPair.make(new object[] { Atom.a(", | or ]"), Atom.a("expected"), Atom.a("in"), Atom.a("list") }), new ListPair(Token, S1)))
1308 {
1309 yield return false;
1310 }
1311 }
1312 }
1313
1314 public static IEnumerable<bool> possible_right_operand(object arg1, object arg2)
1315 {
1316 {
1317 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1318 {
1319 foreach (bool l3 in YP.unify(arg2, -1))
1320 {
1321 yield return false;
1322 }
1323 }
1324 }
1325 {
1326 object Flag = arg2;
1327 Variable H = new Variable();
1328 Variable T = new Variable();
1329 foreach (bool l2 in YP.unify(arg1, new ListPair(H, T)))
1330 {
1331 foreach (bool l3 in possible_right_operand3(H, Flag, T))
1332 {
1333 yield return false;
1334 }
1335 }
1336 }
1337 }
1338
1339 public static IEnumerable<bool> possible_right_operand3(object arg1, object arg2, object arg3)
1340 {
1341 {
1342 object x4 = arg3;
1343 Variable x1 = new Variable();
1344 Variable x2 = new Variable();
1345 Variable x3 = new Variable();
1346 foreach (bool l2 in YP.unify(arg1, new Functor3("var", x1, x2, x3)))
1347 {
1348 foreach (bool l3 in YP.unify(arg2, 1))
1349 {
1350 yield return false;
1351 }
1352 }
1353 }
1354 {
1355 object x2 = arg3;
1356 Variable x1 = new Variable();
1357 foreach (bool l2 in YP.unify(arg1, new Functor1("number", x1)))
1358 {
1359 foreach (bool l3 in YP.unify(arg2, 1))
1360 {
1361 yield return false;
1362 }
1363 }
1364 }
1365 {
1366 object x2 = arg3;
1367 Variable x1 = new Variable();
1368 foreach (bool l2 in YP.unify(arg1, new Functor1("string", x1)))
1369 {
1370 foreach (bool l3 in YP.unify(arg2, 1))
1371 {
1372 yield return false;
1373 }
1374 }
1375 }
1376 {
1377 object x1 = arg3;
1378 foreach (bool l2 in YP.unify(arg1, Atom.a(" (")))
1379 {
1380 foreach (bool l3 in YP.unify(arg2, 1))
1381 {
1382 yield return false;
1383 }
1384 }
1385 }
1386 {
1387 object x1 = arg3;
1388 foreach (bool l2 in YP.unify(arg1, Atom.a("(")))
1389 {
1390 foreach (bool l3 in YP.unify(arg2, 0))
1391 {
1392 yield return false;
1393 }
1394 }
1395 }
1396 {
1397 object x1 = arg3;
1398 foreach (bool l2 in YP.unify(arg1, Atom.a(")")))
1399 {
1400 foreach (bool l3 in YP.unify(arg2, -1))
1401 {
1402 yield return false;
1403 }
1404 }
1405 }
1406 {
1407 Variable x1 = new Variable();
1408 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
1409 {
1410 foreach (bool l3 in YP.unify(arg2, 0))
1411 {
1412 foreach (bool l4 in YP.unify(arg3, new ListPair(Atom.a("]"), x1)))
1413 {
1414 yield return true;
1415 yield break;
1416 }
1417 }
1418 }
1419 }
1420 {
1421 object x1 = arg3;
1422 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
1423 {
1424 foreach (bool l3 in YP.unify(arg2, 1))
1425 {
1426 yield return false;
1427 }
1428 }
1429 }
1430 {
1431 object x1 = arg3;
1432 foreach (bool l2 in YP.unify(arg1, Atom.a("]")))
1433 {
1434 foreach (bool l3 in YP.unify(arg2, -1))
1435 {
1436 yield return false;
1437 }
1438 }
1439 }
1440 {
1441 Variable x1 = new Variable();
1442 foreach (bool l2 in YP.unify(arg1, Atom.a("{")))
1443 {
1444 foreach (bool l3 in YP.unify(arg2, 0))
1445 {
1446 foreach (bool l4 in YP.unify(arg3, new ListPair(Atom.a("}"), x1)))
1447 {
1448 yield return true;
1449 yield break;
1450 }
1451 }
1452 }
1453 }
1454 {
1455 object x1 = arg3;
1456 foreach (bool l2 in YP.unify(arg1, Atom.a("{")))
1457 {
1458 foreach (bool l3 in YP.unify(arg2, 1))
1459 {
1460 yield return false;
1461 }
1462 }
1463 }
1464 {
1465 object x1 = arg3;
1466 foreach (bool l2 in YP.unify(arg1, Atom.a("}")))
1467 {
1468 foreach (bool l3 in YP.unify(arg2, -1))
1469 {
1470 yield return false;
1471 }
1472 }
1473 }
1474 {
1475 object x1 = arg3;
1476 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
1477 {
1478 foreach (bool l3 in YP.unify(arg2, -1))
1479 {
1480 yield return false;
1481 }
1482 }
1483 }
1484 {
1485 object x1 = arg3;
1486 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
1487 {
1488 foreach (bool l3 in YP.unify(arg2, -1))
1489 {
1490 yield return false;
1491 }
1492 }
1493 }
1494 {
1495 object x3 = arg3;
1496 Variable x1 = new Variable();
1497 Variable x2 = new Variable();
1498 foreach (bool l2 in YP.unify(arg1, new Functor2("atom", x1, x2)))
1499 {
1500 foreach (bool l3 in YP.unify(arg2, 0))
1501 {
1502 yield return false;
1503 }
1504 }
1505 }
1506 }
1507
1508 public static IEnumerable<bool> peepop(object arg1, object arg2)
1509 {
1510 {
1511 Variable F = new Variable();
1512 Variable Pos = new Variable();
1513 Variable S1 = new Variable();
1514 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("atom", F, Pos), new ListPair(Atom.a("("), S1))))
1515 {
1516 foreach (bool l3 in YP.unify(arg2, new ListPair(new Functor2("atom", F, Pos), new ListPair(Atom.a("("), S1))))
1517 {
1518 yield return true;
1519 yield break;
1520 }
1521 }
1522 }
1523 {
1524 Variable F = new Variable();
1525 Variable Pos = new Variable();
1526 Variable S1 = new Variable();
1527 Variable L = new Variable();
1528 Variable P = new Variable();
1529 Variable R = new Variable();
1530 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("atom", F, Pos), S1)))
1531 {
1532 foreach (bool l3 in YP.unify(arg2, new ListPair(new Functor(Atom.a("infixop", Atom.a("")), new object[] { new Functor2("/", F, Pos), L, P, R }), S1)))
1533 {
1534 foreach (bool l4 in infixop(F, L, P, R))
1535 {
1536 yield return false;
1537 }
1538 }
1539 }
1540 }
1541 {
1542 Variable F = new Variable();
1543 Variable Pos = new Variable();
1544 Variable S1 = new Variable();
1545 Variable L = new Variable();
1546 Variable P = new Variable();
1547 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("atom", F, Pos), S1)))
1548 {
1549 foreach (bool l3 in YP.unify(arg2, new ListPair(new Functor3(Atom.a("postfixop", Atom.a("")), new Functor2("/", F, Pos), L, P), S1)))
1550 {
1551 foreach (bool l4 in postfixop(F, L, P))
1552 {
1553 yield return false;
1554 }
1555 }
1556 }
1557 }
1558 {
1559 Variable S0 = new Variable();
1560 foreach (bool l2 in YP.unify(arg1, S0))
1561 {
1562 foreach (bool l3 in YP.unify(arg2, S0))
1563 {
1564 yield return false;
1565 }
1566 }
1567 }
1568 }
1569
1570 public static IEnumerable<bool> prefix_is_atom(object arg1, object arg2)
1571 {
1572 {
1573 object Precedence = arg2;
1574 Variable Token = new Variable();
1575 Variable x2 = new Variable();
1576 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, x2)))
1577 {
1578 foreach (bool l3 in prefix_is_atom(Token, Precedence))
1579 {
1580 yield return false;
1581 }
1582 }
1583 }
1584 {
1585 object P = arg2;
1586 Variable x1 = new Variable();
1587 Variable L = new Variable();
1588 Variable x3 = new Variable();
1589 Variable x4 = new Variable();
1590 foreach (bool l2 in YP.unify(arg1, new Functor(Atom.a("infixop", Atom.a("")), new object[] { x1, L, x3, x4 })))
1591 {
1592 if (YP.greaterThanOrEqual(L, P))
1593 {
1594 yield return false;
1595 }
1596 }
1597 }
1598 {
1599 object P = arg2;
1600 Variable x1 = new Variable();
1601 Variable L = new Variable();
1602 Variable x3 = new Variable();
1603 foreach (bool l2 in YP.unify(arg1, new Functor3(Atom.a("postfixop", Atom.a("")), x1, L, x3)))
1604 {
1605 if (YP.greaterThanOrEqual(L, P))
1606 {
1607 yield return false;
1608 }
1609 }
1610 }
1611 {
1612 object x1 = arg2;
1613 foreach (bool l2 in YP.unify(arg1, Atom.a(")")))
1614 {
1615 yield return false;
1616 }
1617 }
1618 {
1619 object x1 = arg2;
1620 foreach (bool l2 in YP.unify(arg1, Atom.a("]")))
1621 {
1622 yield return false;
1623 }
1624 }
1625 {
1626 object x1 = arg2;
1627 foreach (bool l2 in YP.unify(arg1, Atom.a("}")))
1628 {
1629 yield return false;
1630 }
1631 }
1632 {
1633 object P = arg2;
1634 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
1635 {
1636 if (YP.greaterThanOrEqual(1100, P))
1637 {
1638 yield return false;
1639 }
1640 }
1641 }
1642 {
1643 object P = arg2;
1644 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
1645 {
1646 if (YP.greaterThanOrEqual(1000, P))
1647 {
1648 yield return false;
1649 }
1650 }
1651 }
1652 {
1653 object x1 = arg2;
1654 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1655 {
1656 yield return false;
1657 }
1658 }
1659 }
1660
1661 public static IEnumerable<bool> exprtl0(object arg1, object arg2, object arg3, object arg4, object arg5)
1662 {
1663 {
1664 object x2 = arg3;
1665 Variable Term = new Variable();
1666 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1667 {
1668 foreach (bool l3 in YP.unify(arg2, Term))
1669 {
1670 foreach (bool l4 in YP.unify(arg4, Term))
1671 {
1672 foreach (bool l5 in YP.unify(arg5, Atom.NIL))
1673 {
1674 yield return false;
1675 }
1676 }
1677 }
1678 }
1679 }
1680 {
1681 object Term = arg2;
1682 object Precedence = arg3;
1683 object Answer = arg4;
1684 object S = arg5;
1685 Variable Token = new Variable();
1686 Variable S1 = new Variable();
1687 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, S1)))
1688 {
1689 foreach (bool l3 in exprtl0_6(Token, Term, Precedence, Answer, S, S1))
1690 {
1691 yield return false;
1692 }
1693 }
1694 }
1695 }
1696
1697 public static IEnumerable<bool> exprtl0_6(object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
1698 {
1699 {
1700 object x2 = arg3;
1701 object S1 = arg6;
1702 Variable Term = new Variable();
1703 foreach (bool l2 in YP.unify(arg1, Atom.a("}")))
1704 {
1705 foreach (bool l3 in YP.unify(arg2, Term))
1706 {
1707 foreach (bool l4 in YP.unify(arg4, Term))
1708 {
1709 foreach (bool l5 in YP.unify(arg5, new ListPair(Atom.a("}"), S1)))
1710 {
1711 yield return false;
1712 }
1713 }
1714 }
1715 }
1716 }
1717 {
1718 object x2 = arg3;
1719 object S1 = arg6;
1720 Variable Term = new Variable();
1721 foreach (bool l2 in YP.unify(arg1, Atom.a("]")))
1722 {
1723 foreach (bool l3 in YP.unify(arg2, Term))
1724 {
1725 foreach (bool l4 in YP.unify(arg4, Term))
1726 {
1727 foreach (bool l5 in YP.unify(arg5, new ListPair(Atom.a("]"), S1)))
1728 {
1729 yield return false;
1730 }
1731 }
1732 }
1733 }
1734 }
1735 {
1736 object x2 = arg3;
1737 object S1 = arg6;
1738 Variable Term = new Variable();
1739 foreach (bool l2 in YP.unify(arg1, Atom.a(")")))
1740 {
1741 foreach (bool l3 in YP.unify(arg2, Term))
1742 {
1743 foreach (bool l4 in YP.unify(arg4, Term))
1744 {
1745 foreach (bool l5 in YP.unify(arg5, new ListPair(Atom.a(")"), S1)))
1746 {
1747 yield return false;
1748 }
1749 }
1750 }
1751 }
1752 }
1753 {
1754 object Term = arg2;
1755 object Precedence = arg3;
1756 object Answer = arg4;
1757 object S = arg5;
1758 object S1 = arg6;
1759 Variable Next = new Variable();
1760 Variable S2 = new Variable();
1761 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
1762 {
1763 if (YP.greaterThanOrEqual(Precedence, 1000))
1764 {
1765 foreach (bool l4 in parse(S1, 1000, Next, S2))
1766 {
1767 foreach (bool l5 in exprtl(S2, 1000, new Functor2(",", Term, Next), Precedence, Answer, S))
1768 {
1769 yield return false;
1770 }
1771 yield break;
1772 }
1773 goto cutIf1;
1774 }
1775 foreach (bool l3 in YP.unify(Answer, Term))
1776 {
1777 foreach (bool l4 in YP.unify(S, new ListPair(Atom.a(","), S1)))
1778 {
1779 yield return false;
1780 }
1781 }
1782 cutIf1:
1783 { }
1784 }
1785 }
1786 {
1787 object Term = arg2;
1788 object Precedence = arg3;
1789 object Answer = arg4;
1790 object S = arg5;
1791 object S1 = arg6;
1792 Variable Next = new Variable();
1793 Variable S2 = new Variable();
1794 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
1795 {
1796 if (YP.greaterThanOrEqual(Precedence, 1100))
1797 {
1798 foreach (bool l4 in parse(S1, 1100, Next, S2))
1799 {
1800 foreach (bool l5 in exprtl(S2, 1100, new Functor2(";", Term, Next), Precedence, Answer, S))
1801 {
1802 yield return false;
1803 }
1804 yield break;
1805 }
1806 goto cutIf2;
1807 }
1808 foreach (bool l3 in YP.unify(Answer, Term))
1809 {
1810 foreach (bool l4 in YP.unify(S, new ListPair(Atom.a("|"), S1)))
1811 {
1812 yield return false;
1813 }
1814 }
1815 cutIf2:
1816 { }
1817 }
1818 }
1819 {
1820 object x2 = arg2;
1821 object x3 = arg3;
1822 object x4 = arg4;
1823 object x5 = arg5;
1824 object S1 = arg6;
1825 Variable S = new Variable();
1826 foreach (bool l2 in YP.unify(arg1, new Functor1("string", S)))
1827 {
1828 foreach (bool l3 in cannot_follow(Atom.a("chars"), new Functor1("string", S), S1))
1829 {
1830 yield return false;
1831 }
1832 }
1833 }
1834 {
1835 object x2 = arg2;
1836 object x3 = arg3;
1837 object x4 = arg4;
1838 object x5 = arg5;
1839 object S1 = arg6;
1840 Variable N = new Variable();
1841 foreach (bool l2 in YP.unify(arg1, new Functor1("number", N)))
1842 {
1843 foreach (bool l3 in cannot_follow(Atom.a("number"), new Functor1("number", N), S1))
1844 {
1845 yield return false;
1846 }
1847 }
1848 }
1849 {
1850 object Term = arg2;
1851 object Precedence = arg3;
1852 object Answer = arg4;
1853 object S = arg5;
1854 Variable S1 = new Variable();
1855 foreach (bool l2 in YP.unify(arg1, Atom.a("{")))
1856 {
1857 foreach (bool l3 in YP.unify(arg6, new ListPair(Atom.a("}"), S1)))
1858 {
1859 foreach (bool l4 in exprtl0_atom(Atom.a("{}"), Term, Precedence, Answer, S, S1))
1860 {
1861 yield return false;
1862 }
1863 yield break;
1864 }
1865 }
1866 }
1867 {
1868 object x1 = arg2;
1869 object x2 = arg3;
1870 object x3 = arg4;
1871 object x4 = arg5;
1872 object S1 = arg6;
1873 foreach (bool l2 in YP.unify(arg1, Atom.a("{")))
1874 {
1875 foreach (bool l3 in cannot_follow(Atom.a("brace"), Atom.a("{"), S1))
1876 {
1877 yield return false;
1878 }
1879 }
1880 }
1881 {
1882 object Term = arg2;
1883 object Precedence = arg3;
1884 object Answer = arg4;
1885 object S = arg5;
1886 Variable S1 = new Variable();
1887 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
1888 {
1889 foreach (bool l3 in YP.unify(arg6, new ListPair(Atom.a("]"), S1)))
1890 {
1891 foreach (bool l4 in exprtl0_atom(Atom.NIL, Term, Precedence, Answer, S, S1))
1892 {
1893 yield return false;
1894 }
1895 yield break;
1896 }
1897 }
1898 }
1899 {
1900 object x1 = arg2;
1901 object x2 = arg3;
1902 object x3 = arg4;
1903 object x4 = arg5;
1904 object S1 = arg6;
1905 foreach (bool l2 in YP.unify(arg1, Atom.a("[")))
1906 {
1907 foreach (bool l3 in cannot_follow(Atom.a("bracket"), Atom.a("["), S1))
1908 {
1909 yield return false;
1910 }
1911 }
1912 }
1913 {
1914 object x1 = arg2;
1915 object x2 = arg3;
1916 object x3 = arg4;
1917 object x4 = arg5;
1918 object S1 = arg6;
1919 foreach (bool l2 in YP.unify(arg1, Atom.a("(")))
1920 {
1921 foreach (bool l3 in cannot_follow(Atom.a("parenthesis"), Atom.a("("), S1))
1922 {
1923 yield return false;
1924 }
1925 }
1926 }
1927 {
1928 object x1 = arg2;
1929 object x2 = arg3;
1930 object x3 = arg4;
1931 object x4 = arg5;
1932 object S1 = arg6;
1933 foreach (bool l2 in YP.unify(arg1, Atom.a(" (")))
1934 {
1935 foreach (bool l3 in cannot_follow(Atom.a("parenthesis"), Atom.a("("), S1))
1936 {
1937 yield return false;
1938 }
1939 }
1940 }
1941 {
1942 object x4 = arg2;
1943 object x5 = arg3;
1944 object x6 = arg4;
1945 object x7 = arg5;
1946 object S1 = arg6;
1947 Variable A = new Variable();
1948 Variable B = new Variable();
1949 Variable P = new Variable();
1950 foreach (bool l2 in YP.unify(arg1, new Functor3("var", A, B, P)))
1951 {
1952 foreach (bool l3 in cannot_follow(Atom.a("variable"), new Functor3("var", A, B, P), S1))
1953 {
1954 yield return false;
1955 }
1956 }
1957 }
1958 {
1959 object Term = arg2;
1960 object Precedence = arg3;
1961 object Answer = arg4;
1962 object S = arg5;
1963 object S1 = arg6;
1964 Variable F = new Variable();
1965 Variable P = new Variable();
1966 foreach (bool l2 in YP.unify(arg1, new Functor2("atom", F, P)))
1967 {
1968 foreach (bool l3 in exprtl0_atom(new Functor2("/", F, P), Term, Precedence, Answer, S, S1))
1969 {
1970 yield return false;
1971 }
1972 }
1973 }
1974 }
1975
1976 public static IEnumerable<bool> exprtl0_atom(object arg1, object arg2, object arg3, object arg4, object arg5, object S1)
1977 {
1978 {
1979 object Term = arg2;
1980 object Precedence = arg3;
1981 object Answer = arg4;
1982 object S = arg5;
1983 Variable F = new Variable();
1984 Variable Pos = new Variable();
1985 Variable L1 = new Variable();
1986 Variable O1 = new Variable();
1987 Variable R1 = new Variable();
1988 Variable L2 = new Variable();
1989 Variable O2 = new Variable();
1990 foreach (bool l2 in YP.unify(arg1, new Functor2("/", F, Pos)))
1991 {
1992 foreach (bool l3 in ambigop(F, Precedence, L1, O1, R1, L2, O2))
1993 {
1994 foreach (bool l4 in prefix_is_atom(S1, Precedence))
1995 {
1996 foreach (bool l5 in exprtl(new ListPair(new Functor3(Atom.a("postfixop", Atom.a("")), new Functor2("/", F, Pos), L2, O2), S1), 0, Term, Precedence, Answer, S))
1997 {
1998 yield return false;
1999 }
2000 yield break;
2001 }
2002 foreach (bool l4 in exprtl(new ListPair(new Functor(Atom.a("infixop", Atom.a("")), new object[] { new Functor2("/", F, Pos), L1, O1, R1 }), S1), 0, Term, Precedence, Answer, S))
2003 {
2004 yield return false;
2005 }
2006 foreach (bool l4 in exprtl(new ListPair(new Functor3(Atom.a("postfixop", Atom.a("")), new Functor2("/", F, Pos), L2, O2), S1), 0, Term, Precedence, Answer, S))
2007 {
2008 yield return false;
2009 }
2010 yield break;
2011 }
2012 }
2013 }
2014 {
2015 object Term = arg2;
2016 object Precedence = arg3;
2017 object Answer = arg4;
2018 object S = arg5;
2019 Variable F = new Variable();
2020 Variable Pos = new Variable();
2021 Variable L1 = new Variable();
2022 Variable O1 = new Variable();
2023 Variable R1 = new Variable();
2024 foreach (bool l2 in YP.unify(arg1, new Functor2("/", F, Pos)))
2025 {
2026 foreach (bool l3 in infixop(F, L1, O1, R1))
2027 {
2028 foreach (bool l4 in exprtl(new ListPair(new Functor(Atom.a("infixop", Atom.a("")), new object[] { new Functor2("/", F, Pos), L1, O1, R1 }), S1), 0, Term, Precedence, Answer, S))
2029 {
2030 yield return false;
2031 }
2032 yield break;
2033 }
2034 }
2035 }
2036 {
2037 object Term = arg2;
2038 object Precedence = arg3;
2039 object Answer = arg4;
2040 object S = arg5;
2041 Variable F = new Variable();
2042 Variable Pos = new Variable();
2043 Variable L2 = new Variable();
2044 Variable O2 = new Variable();
2045 foreach (bool l2 in YP.unify(arg1, new Functor2("/", F, Pos)))
2046 {
2047 foreach (bool l3 in postfixop(F, L2, O2))
2048 {
2049 foreach (bool l4 in exprtl(new ListPair(new Functor3(Atom.a("postfixop", Atom.a("")), new Functor2("/", F, Pos), L2, O2), S1), 0, Term, Precedence, Answer, S))
2050 {
2051 yield return false;
2052 }
2053 yield break;
2054 }
2055 }
2056 }
2057 {
2058 object X = arg1;
2059 object x2 = arg2;
2060 object x3 = arg3;
2061 object x4 = arg4;
2062 object x5 = arg5;
2063 Variable x7 = new Variable();
2064 foreach (bool l2 in syntax_error(ListPair.make(new object[] { new Functor2("-", Atom.a("non"), Atom.a("operator")), X, Atom.a("follows"), Atom.a("expression") }), new ListPair(new Functor2("atom", X, x7), S1)))
2065 {
2066 yield return false;
2067 }
2068 yield break;
2069 }
2070 }
2071
2072 public static IEnumerable<bool> cannot_follow(object Type, object Token, object Tokens)
2073 {
2074 {
2075 foreach (bool l2 in syntax_error(ListPair.make(new object[] { Type, Atom.a("follows"), Atom.a("expression") }), new ListPair(Token, Tokens)))
2076 {
2077 yield return false;
2078 }
2079 }
2080 }
2081
2082 public static IEnumerable<bool> exprtl(object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
2083 {
2084 {
2085 object x1 = arg2;
2086 object x3 = arg4;
2087 Variable Term = new Variable();
2088 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
2089 {
2090 foreach (bool l3 in YP.unify(arg3, Term))
2091 {
2092 foreach (bool l4 in YP.unify(arg5, Term))
2093 {
2094 foreach (bool l5 in YP.unify(arg6, Atom.NIL))
2095 {
2096 yield return false;
2097 }
2098 }
2099 }
2100 }
2101 }
2102 {
2103 object C = arg2;
2104 object Term = arg3;
2105 object Precedence = arg4;
2106 object Answer = arg5;
2107 object S = arg6;
2108 Variable Token = new Variable();
2109 Variable Tokens = new Variable();
2110 foreach (bool l2 in YP.unify(arg1, new ListPair(Token, Tokens)))
2111 {
2112 foreach (bool l3 in exprtl_7(Token, C, Term, Precedence, Answer, S, Tokens))
2113 {
2114 yield return false;
2115 }
2116 }
2117 }
2118 }
2119
2120 public static IEnumerable<bool> exprtl_7(object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)
2121 {
2122 {
2123 object C = arg2;
2124 object Term = arg3;
2125 object Precedence = arg4;
2126 object Answer = arg5;
2127 object S = arg6;
2128 object S1 = arg7;
2129 Variable F = new Variable();
2130 Variable Pos = new Variable();
2131 Variable L = new Variable();
2132 Variable O = new Variable();
2133 Variable R = new Variable();
2134 Variable Other = new Variable();
2135 Variable S2 = new Variable();
2136 Variable Expr = new Variable();
2137 foreach (bool l2 in YP.unify(arg1, new Functor(Atom.a("infixop", Atom.a("")), new object[] { new Functor2("/", F, Pos), L, O, R })))
2138 {
2139 if (YP.greaterThanOrEqual(Precedence, O))
2140 {
2141 if (YP.lessThanOrEqual(C, L))
2142 {
2143 foreach (bool l5 in parse(S1, R, Other, S2))
2144 {
2145 foreach (bool l6 in YP.univ(Expr, ListPair.make(new object[] { F, Pos, Term, Other })))
2146 {
2147 foreach (bool l7 in exprtl(S2, O, Expr, Precedence, Answer, S))
2148 {
2149 yield return false;
2150 }
2151 }
2152 }
2153 yield break;
2154 }
2155 }
2156 }
2157 }
2158 {
2159 object C = arg2;
2160 object Term = arg3;
2161 object Precedence = arg4;
2162 object Answer = arg5;
2163 object S = arg6;
2164 object S1 = arg7;
2165 Variable F = new Variable();
2166 Variable Pos = new Variable();
2167 Variable L = new Variable();
2168 Variable O = new Variable();
2169 Variable Expr = new Variable();
2170 Variable S2 = new Variable();
2171 foreach (bool l2 in YP.unify(arg1, new Functor3(Atom.a("postfixop", Atom.a("")), new Functor2("/", F, Pos), L, O)))
2172 {
2173 if (YP.greaterThanOrEqual(Precedence, O))
2174 {
2175 if (YP.lessThanOrEqual(C, L))
2176 {
2177 foreach (bool l5 in YP.univ(Expr, ListPair.make(new object[] { F, Pos, Term })))
2178 {
2179 foreach (bool l6 in peepop(S1, S2))
2180 {
2181 foreach (bool l7 in exprtl(S2, O, Expr, Precedence, Answer, S))
2182 {
2183 yield return false;
2184 }
2185 }
2186 }
2187 yield break;
2188 }
2189 }
2190 }
2191 }
2192 {
2193 object C = arg2;
2194 object Term = arg3;
2195 object Precedence = arg4;
2196 object Answer = arg5;
2197 object S = arg6;
2198 object S1 = arg7;
2199 Variable Next = new Variable();
2200 Variable S2 = new Variable();
2201 foreach (bool l2 in YP.unify(arg1, Atom.a(",")))
2202 {
2203 if (YP.greaterThanOrEqual(Precedence, 1000))
2204 {
2205 if (YP.lessThan(C, 1000))
2206 {
2207 foreach (bool l5 in parse(S1, 1000, Next, S2))
2208 {
2209 foreach (bool l6 in exprtl(S2, 1000, new Functor2(",", Term, Next), Precedence, Answer, S))
2210 {
2211 yield return false;
2212 }
2213 }
2214 yield break;
2215 }
2216 }
2217 }
2218 }
2219 {
2220 object C = arg2;
2221 object Term = arg3;
2222 object Precedence = arg4;
2223 object Answer = arg5;
2224 object S = arg6;
2225 object S1 = arg7;
2226 Variable Next = new Variable();
2227 Variable S2 = new Variable();
2228 foreach (bool l2 in YP.unify(arg1, Atom.a("|")))
2229 {
2230 if (YP.greaterThanOrEqual(Precedence, 1100))
2231 {
2232 if (YP.lessThan(C, 1100))
2233 {
2234 foreach (bool l5 in parse(S1, 1100, Next, S2))
2235 {
2236 foreach (bool l6 in exprtl(S2, 1100, new Functor2(";", Term, Next), Precedence, Answer, S))
2237 {
2238 yield return false;
2239 }
2240 }
2241 yield break;
2242 }
2243 }
2244 }
2245 }
2246 {
2247 object Token = arg1;
2248 object x2 = arg2;
2249 object x4 = arg4;
2250 object Tokens = arg7;
2251 Variable Term = new Variable();
2252 foreach (bool l2 in YP.unify(arg3, Term))
2253 {
2254 foreach (bool l3 in YP.unify(arg5, Term))
2255 {
2256 foreach (bool l4 in YP.unify(arg6, new ListPair(Token, Tokens)))
2257 {
2258 yield return false;
2259 }
2260 }
2261 }
2262 }
2263 }
2264
2265 public static IEnumerable<bool> syntax_error(object _Message, object _List)
2266 {
2267 {
2268 yield break;
2269 }
2270 foreach (bool l1 in YP.fail())
2271 {
2272 yield return false;
2273 }
2274 }
2275
2276 public static IEnumerable<bool> syntax_error(object _List)
2277 {
2278 {
2279 yield break;
2280 }
2281 foreach (bool l1 in YP.fail())
2282 {
2283 yield return false;
2284 }
2285 }
2286
2287 public static IEnumerable<bool> prefixop(object F, object O, object Q)
2288 {
2289 {
2290 foreach (bool l2 in YP.current_op(O, Atom.a("fx"), F))
2291 {
2292 foreach (bool l3 in YP.unify(Q, YP.subtract(O, 1)))
2293 {
2294 yield return false;
2295 }
2296 goto cutIf1;
2297 }
2298 foreach (bool l2 in YP.current_op(O, Atom.a("fy"), F))
2299 {
2300 foreach (bool l3 in YP.unify(Q, O))
2301 {
2302 yield return false;
2303 }
2304 goto cutIf2;
2305 }
2306 cutIf2:
2307 cutIf1:
2308 { }
2309 }
2310 }
2311
2312 public static IEnumerable<bool> postfixop(object F, object P, object O)
2313 {
2314 {
2315 foreach (bool l2 in YP.current_op(O, Atom.a("xf"), F))
2316 {
2317 foreach (bool l3 in YP.unify(P, YP.subtract(O, 1)))
2318 {
2319 yield return false;
2320 }
2321 goto cutIf1;
2322 }
2323 foreach (bool l2 in YP.current_op(O, Atom.a("yf"), F))
2324 {
2325 foreach (bool l3 in YP.unify(P, O))
2326 {
2327 yield return false;
2328 }
2329 goto cutIf2;
2330 }
2331 cutIf2:
2332 cutIf1:
2333 { }
2334 }
2335 }
2336
2337 public static IEnumerable<bool> infixop(object F, object P, object O, object Q)
2338 {
2339 {
2340 foreach (bool l2 in YP.current_op(O, Atom.a("xfy"), F))
2341 {
2342 foreach (bool l3 in YP.unify(P, YP.subtract(O, 1)))
2343 {
2344 foreach (bool l4 in YP.unify(Q, O))
2345 {
2346 yield return false;
2347 }
2348 }
2349 goto cutIf1;
2350 }
2351 foreach (bool l2 in YP.current_op(O, Atom.a("xfx"), F))
2352 {
2353 foreach (bool l3 in YP.unify(P, YP.subtract(O, 1)))
2354 {
2355 foreach (bool l4 in YP.unify(Q, P))
2356 {
2357 yield return false;
2358 }
2359 }
2360 goto cutIf2;
2361 }
2362 foreach (bool l2 in YP.current_op(O, Atom.a("yfx"), F))
2363 {
2364 foreach (bool l3 in YP.unify(Q, YP.subtract(O, 1)))
2365 {
2366 foreach (bool l4 in YP.unify(P, O))
2367 {
2368 yield return false;
2369 }
2370 }
2371 goto cutIf3;
2372 }
2373 cutIf3:
2374 cutIf2:
2375 cutIf1:
2376 { }
2377 }
2378 }
2379
2380 public static IEnumerable<bool> ambigop(object F, object Precedence, object L1, object O1, object R1, object L2, object O2)
2381 {
2382 {
2383 foreach (bool l2 in postfixop(F, L2, O2))
2384 {
2385 if (YP.lessThanOrEqual(O2, Precedence))
2386 {
2387 foreach (bool l4 in infixop(F, L1, O1, R1))
2388 {
2389 if (YP.lessThanOrEqual(O1, Precedence))
2390 {
2391 yield return false;
2392 }
2393 }
2394 }
2395 }
2396 }
2397 }
2398
2399 public static IEnumerable<bool> read_tokens1(object arg1)
2400 {
2401 {
2402 object TokenList = arg1;
2403 Variable C1 = new Variable();
2404 Variable _X = new Variable();
2405 Variable ListOfTokens = new Variable();
2406 foreach (bool l2 in YP.get_code(C1))
2407 {
2408 foreach (bool l3 in read_tokens(C1, _X, ListOfTokens))
2409 {
2410 foreach (bool l4 in YP.unify(TokenList, ListOfTokens))
2411 {
2412 yield return false;
2413 }
2414 yield break;
2415 }
2416 }
2417 }
2418 {
2419 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("atom", Atom.a("end_of_file"), 0), Atom.NIL)))
2420 {
2421 yield return false;
2422 }
2423 }
2424 }
2425
2426 public static IEnumerable<bool> read_tokens2(object arg1, object arg2)
2427 {
2428 {
2429 object TokenList = arg1;
2430 object Dictionary = arg2;
2431 Variable C1 = new Variable();
2432 Variable Dict = new Variable();
2433 Variable ListOfTokens = new Variable();
2434 foreach (bool l2 in YP.get_code(C1))
2435 {
2436 foreach (bool l3 in read_tokens(C1, Dict, ListOfTokens))
2437 {
2438 foreach (bool l4 in terminate_list(Dict))
2439 {
2440 foreach (bool l5 in YP.unify(Dictionary, Dict))
2441 {
2442 foreach (bool l6 in YP.unify(TokenList, ListOfTokens))
2443 {
2444 yield return false;
2445 }
2446 }
2447 yield break;
2448 }
2449 }
2450 }
2451 }
2452 {
2453 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("atom", Atom.a("end_of_file"), 0), Atom.NIL)))
2454 {
2455 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
2456 {
2457 yield return false;
2458 }
2459 }
2460 }
2461 }
2462
2463 public static IEnumerable<bool> terminate_list(object arg1)
2464 {
2465 {
2466 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
2467 {
2468 yield return false;
2469 }
2470 }
2471 {
2472 Variable x1 = new Variable();
2473 Variable Tail = new Variable();
2474 foreach (bool l2 in YP.unify(arg1, new ListPair(x1, Tail)))
2475 {
2476 foreach (bool l3 in terminate_list(Tail))
2477 {
2478 yield return false;
2479 }
2480 }
2481 }
2482 }
2483
2484 public static IEnumerable<bool> read_special(object arg1, object Dict, object arg3)
2485 {
2486 {
2487 object Tokens = arg3;
2488 foreach (bool l2 in YP.unify(arg1, 95))
2489 {
2490 foreach (bool l3 in read_variable(95, Dict, Tokens))
2491 {
2492 yield return false;
2493 }
2494 }
2495 }
2496 {
2497 object Tokens = arg3;
2498 foreach (bool l2 in YP.unify(arg1, 247))
2499 {
2500 foreach (bool l3 in read_symbol(247, Dict, Tokens))
2501 {
2502 yield return false;
2503 }
2504 }
2505 }
2506 {
2507 object Tokens = arg3;
2508 foreach (bool l2 in YP.unify(arg1, 215))
2509 {
2510 foreach (bool l3 in read_symbol(215, Dict, Tokens))
2511 {
2512 yield return false;
2513 }
2514 }
2515 }
2516 {
2517 Variable StartPos = new Variable();
2518 Variable EndPos = new Variable();
2519 Variable Tokens = new Variable();
2520 Variable Ch = new Variable();
2521 Variable NextCh = new Variable();
2522 foreach (bool l2 in YP.unify(arg1, 37))
2523 {
2524 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("comment", StartPos, EndPos), Tokens)))
2525 {
2526 foreach (bool l4 in get_current_position(StartPos))
2527 {
2528 foreach (bool l5 in YP.repeat())
2529 {
2530 foreach (bool l6 in YP.get_code(Ch))
2531 {
2532 if (YP.lessThan(Ch, new ListPair(32, Atom.NIL)))
2533 {
2534 if (YP.notEqual(Ch, 9))
2535 {
2536 if (YP.termNotEqual(Ch, -1))
2537 {
2538 foreach (bool l10 in get_current_position(EndPos))
2539 {
2540 foreach (bool l11 in YP.get_code(NextCh))
2541 {
2542 foreach (bool l12 in read_tokens(NextCh, Dict, Tokens))
2543 {
2544 yield return false;
2545 }
2546 }
2547 }
2548 }
2549 yield break;
2550 }
2551 }
2552 }
2553 }
2554 }
2555 }
2556 }
2557 }
2558 {
2559 object T = arg3;
2560 Variable C2 = new Variable();
2561 Variable StartPos = new Variable();
2562 Variable EndPos = new Variable();
2563 Variable Tokens = new Variable();
2564 Variable StartPos1 = new Variable();
2565 Variable NextCh = new Variable();
2566 Variable Chars = new Variable();
2567 foreach (bool l2 in YP.unify(arg1, 47))
2568 {
2569 foreach (bool l3 in YP.get_code(C2))
2570 {
2571 if (YP.equal(C2, new ListPair(42, Atom.NIL)))
2572 {
2573 foreach (bool l5 in YP.unify(T, new ListPair(new Functor2("comment", StartPos, EndPos), Tokens)))
2574 {
2575 foreach (bool l6 in get_current_position(StartPos1))
2576 {
2577 foreach (bool l7 in YP.unify(StartPos, YP.subtract(StartPos1, 1)))
2578 {
2579 foreach (bool l8 in read_solidus(32, NextCh))
2580 {
2581 foreach (bool l9 in get_current_position(EndPos))
2582 {
2583 foreach (bool l10 in read_tokens(NextCh, Dict, Tokens))
2584 {
2585 yield return false;
2586 }
2587 }
2588 }
2589 }
2590 }
2591 }
2592 goto cutIf1;
2593 }
2594 foreach (bool l4 in YP.unify(T, Tokens))
2595 {
2596 foreach (bool l5 in rest_symbol(C2, Chars, NextCh))
2597 {
2598 foreach (bool l6 in read_after_atom4(NextCh, Dict, Tokens, new ListPair(47, Chars)))
2599 {
2600 yield return false;
2601 }
2602 }
2603 }
2604 cutIf1:
2605 { }
2606 }
2607 }
2608 }
2609 {
2610 Variable Pos = new Variable();
2611 Variable Tokens = new Variable();
2612 Variable NextCh = new Variable();
2613 foreach (bool l2 in YP.unify(arg1, 33))
2614 {
2615 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("atom", Atom.a("!"), Pos), Tokens)))
2616 {
2617 foreach (bool l4 in get_current_position(Pos))
2618 {
2619 foreach (bool l5 in YP.get_code(NextCh))
2620 {
2621 foreach (bool l6 in read_after_atom(NextCh, Dict, Tokens))
2622 {
2623 yield return false;
2624 }
2625 }
2626 }
2627 }
2628 }
2629 }
2630 {
2631 Variable Tokens = new Variable();
2632 Variable NextCh = new Variable();
2633 foreach (bool l2 in YP.unify(arg1, 40))
2634 {
2635 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a(" ("), Tokens)))
2636 {
2637 foreach (bool l4 in YP.get_code(NextCh))
2638 {
2639 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
2640 {
2641 yield return false;
2642 }
2643 }
2644 }
2645 }
2646 }
2647 {
2648 Variable Tokens = new Variable();
2649 Variable NextCh = new Variable();
2650 foreach (bool l2 in YP.unify(arg1, 41))
2651 {
2652 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a(")"), Tokens)))
2653 {
2654 foreach (bool l4 in YP.get_code(NextCh))
2655 {
2656 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
2657 {
2658 yield return false;
2659 }
2660 }
2661 }
2662 }
2663 }
2664 {
2665 Variable Tokens = new Variable();
2666 Variable NextCh = new Variable();
2667 foreach (bool l2 in YP.unify(arg1, 44))
2668 {
2669 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a(","), Tokens)))
2670 {
2671 foreach (bool l4 in YP.get_code(NextCh))
2672 {
2673 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
2674 {
2675 yield return false;
2676 }
2677 }
2678 }
2679 }
2680 }
2681 {
2682 Variable Pos = new Variable();
2683 Variable Tokens = new Variable();
2684 Variable NextCh = new Variable();
2685 foreach (bool l2 in YP.unify(arg1, 59))
2686 {
2687 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("atom", Atom.a(";"), Pos), Tokens)))
2688 {
2689 foreach (bool l4 in get_current_position(Pos))
2690 {
2691 foreach (bool l5 in YP.get_code(NextCh))
2692 {
2693 foreach (bool l6 in read_after_atom(NextCh, Dict, Tokens))
2694 {
2695 yield return false;
2696 }
2697 }
2698 }
2699 }
2700 }
2701 }
2702 {
2703 Variable Pos = new Variable();
2704 Variable Tokens = new Variable();
2705 Variable NextCh = new Variable();
2706 foreach (bool l2 in YP.unify(arg1, 91))
2707 {
2708 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("/", Atom.a("["), Pos), Tokens)))
2709 {
2710 foreach (bool l4 in get_current_position(Pos))
2711 {
2712 foreach (bool l5 in YP.get_code(NextCh))
2713 {
2714 foreach (bool l6 in read_tokens(NextCh, Dict, Tokens))
2715 {
2716 yield return false;
2717 }
2718 }
2719 }
2720 }
2721 }
2722 }
2723 {
2724 Variable Pos = new Variable();
2725 Variable Tokens = new Variable();
2726 Variable NextCh = new Variable();
2727 foreach (bool l2 in YP.unify(arg1, 93))
2728 {
2729 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("/", Atom.a("]"), Pos), Tokens)))
2730 {
2731 foreach (bool l4 in get_current_position(Pos))
2732 {
2733 foreach (bool l5 in YP.get_code(NextCh))
2734 {
2735 foreach (bool l6 in read_after_atom(NextCh, Dict, Tokens))
2736 {
2737 yield return false;
2738 }
2739 }
2740 }
2741 }
2742 }
2743 }
2744 {
2745 Variable Pos = new Variable();
2746 Variable Tokens = new Variable();
2747 Variable NextCh = new Variable();
2748 foreach (bool l2 in YP.unify(arg1, 123))
2749 {
2750 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("/", Atom.a("{"), Pos), Tokens)))
2751 {
2752 foreach (bool l4 in get_current_position(Pos))
2753 {
2754 foreach (bool l5 in YP.get_code(NextCh))
2755 {
2756 foreach (bool l6 in read_tokens(NextCh, Dict, Tokens))
2757 {
2758 yield return false;
2759 }
2760 }
2761 }
2762 }
2763 }
2764 }
2765 {
2766 Variable Tokens = new Variable();
2767 Variable NextCh = new Variable();
2768 foreach (bool l2 in YP.unify(arg1, 124))
2769 {
2770 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("|"), Tokens)))
2771 {
2772 foreach (bool l4 in YP.get_code(NextCh))
2773 {
2774 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
2775 {
2776 yield return false;
2777 }
2778 }
2779 }
2780 }
2781 }
2782 {
2783 Variable Tokens = new Variable();
2784 Variable NextCh = new Variable();
2785 foreach (bool l2 in YP.unify(arg1, 125))
2786 {
2787 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("}"), Tokens)))
2788 {
2789 foreach (bool l4 in YP.get_code(NextCh))
2790 {
2791 foreach (bool l5 in read_after_atom(NextCh, Dict, Tokens))
2792 {
2793 yield return false;
2794 }
2795 }
2796 }
2797 }
2798 }
2799 {
2800 object Tokens = arg3;
2801 Variable NextCh = new Variable();
2802 foreach (bool l2 in YP.unify(arg1, 46))
2803 {
2804 foreach (bool l3 in YP.get_code(NextCh))
2805 {
2806 foreach (bool l4 in read_fullstop(NextCh, Dict, Tokens))
2807 {
2808 yield return false;
2809 }
2810 }
2811 }
2812 }
2813 {
2814 Variable Chars = new Variable();
2815 Variable Tokens = new Variable();
2816 Variable NextCh = new Variable();
2817 foreach (bool l2 in YP.unify(arg1, 34))
2818 {
2819 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor1("string", Chars), Tokens)))
2820 {
2821 foreach (bool l4 in read_string(Chars, 34, NextCh))
2822 {
2823 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
2824 {
2825 yield return false;
2826 }
2827 }
2828 }
2829 }
2830 }
2831 {
2832 object Tokens = arg3;
2833 Variable Chars = new Variable();
2834 Variable NextCh = new Variable();
2835 foreach (bool l2 in YP.unify(arg1, 39))
2836 {
2837 foreach (bool l3 in read_string(Chars, 39, NextCh))
2838 {
2839 foreach (bool l4 in read_after_atom4(NextCh, Dict, Tokens, Chars))
2840 {
2841 yield return false;
2842 }
2843 }
2844 }
2845 }
2846 {
2847 object Tokens = arg3;
2848 foreach (bool l2 in YP.unify(arg1, 35))
2849 {
2850 foreach (bool l3 in read_symbol(35, Dict, Tokens))
2851 {
2852 yield return false;
2853 }
2854 }
2855 }
2856 {
2857 object Tokens = arg3;
2858 foreach (bool l2 in YP.unify(arg1, 36))
2859 {
2860 foreach (bool l3 in read_symbol(36, Dict, Tokens))
2861 {
2862 yield return false;
2863 }
2864 }
2865 }
2866 {
2867 object Tokens = arg3;
2868 foreach (bool l2 in YP.unify(arg1, 38))
2869 {
2870 foreach (bool l3 in read_symbol(38, Dict, Tokens))
2871 {
2872 yield return false;
2873 }
2874 }
2875 }
2876 {
2877 object Tokens = arg3;
2878 foreach (bool l2 in YP.unify(arg1, 42))
2879 {
2880 foreach (bool l3 in read_symbol(42, Dict, Tokens))
2881 {
2882 yield return false;
2883 }
2884 }
2885 }
2886 {
2887 object Tokens = arg3;
2888 foreach (bool l2 in YP.unify(arg1, 43))
2889 {
2890 foreach (bool l3 in read_symbol(43, Dict, Tokens))
2891 {
2892 yield return false;
2893 }
2894 }
2895 }
2896 {
2897 object Tokens = arg3;
2898 foreach (bool l2 in YP.unify(arg1, 45))
2899 {
2900 foreach (bool l3 in read_symbol(45, Dict, Tokens))
2901 {
2902 yield return false;
2903 }
2904 }
2905 }
2906 {
2907 object Tokens = arg3;
2908 foreach (bool l2 in YP.unify(arg1, 58))
2909 {
2910 foreach (bool l3 in read_symbol(58, Dict, Tokens))
2911 {
2912 yield return false;
2913 }
2914 }
2915 }
2916 {
2917 object Tokens = arg3;
2918 foreach (bool l2 in YP.unify(arg1, 60))
2919 {
2920 foreach (bool l3 in read_symbol(60, Dict, Tokens))
2921 {
2922 yield return false;
2923 }
2924 }
2925 }
2926 {
2927 object Tokens = arg3;
2928 foreach (bool l2 in YP.unify(arg1, 61))
2929 {
2930 foreach (bool l3 in read_symbol(61, Dict, Tokens))
2931 {
2932 yield return false;
2933 }
2934 }
2935 }
2936 {
2937 object Tokens = arg3;
2938 foreach (bool l2 in YP.unify(arg1, 62))
2939 {
2940 foreach (bool l3 in read_symbol(62, Dict, Tokens))
2941 {
2942 yield return false;
2943 }
2944 }
2945 }
2946 {
2947 object Tokens = arg3;
2948 foreach (bool l2 in YP.unify(arg1, 63))
2949 {
2950 foreach (bool l3 in read_symbol(63, Dict, Tokens))
2951 {
2952 yield return false;
2953 }
2954 }
2955 }
2956 {
2957 object Tokens = arg3;
2958 foreach (bool l2 in YP.unify(arg1, 64))
2959 {
2960 foreach (bool l3 in read_symbol(64, Dict, Tokens))
2961 {
2962 yield return false;
2963 }
2964 }
2965 }
2966 {
2967 object Tokens = arg3;
2968 foreach (bool l2 in YP.unify(arg1, 92))
2969 {
2970 foreach (bool l3 in read_symbol(92, Dict, Tokens))
2971 {
2972 yield return false;
2973 }
2974 }
2975 }
2976 {
2977 object Tokens = arg3;
2978 foreach (bool l2 in YP.unify(arg1, 94))
2979 {
2980 foreach (bool l3 in read_symbol(94, Dict, Tokens))
2981 {
2982 yield return false;
2983 }
2984 }
2985 }
2986 {
2987 object Tokens = arg3;
2988 foreach (bool l2 in YP.unify(arg1, 96))
2989 {
2990 foreach (bool l3 in read_symbol(96, Dict, Tokens))
2991 {
2992 yield return false;
2993 }
2994 }
2995 }
2996 {
2997 object Tokens = arg3;
2998 foreach (bool l2 in YP.unify(arg1, 126))
2999 {
3000 foreach (bool l3 in read_symbol(126, Dict, Tokens))
3001 {
3002 yield return false;
3003 }
3004 }
3005 }
3006 }
3007
3008 public static IEnumerable<bool> read_symbol(object C1, object Dict, object Tokens)
3009 {
3010 {
3011 Variable C2 = new Variable();
3012 Variable Chars = new Variable();
3013 Variable NextCh = new Variable();
3014 foreach (bool l2 in YP.get_code(C2))
3015 {
3016 foreach (bool l3 in rest_symbol(C2, Chars, NextCh))
3017 {
3018 foreach (bool l4 in read_after_atom4(NextCh, Dict, Tokens, new ListPair(C1, Chars)))
3019 {
3020 yield return false;
3021 }
3022 }
3023 }
3024 }
3025 }
3026
3027 public static IEnumerable<bool> rest_symbol(object arg1, object arg2, object arg3)
3028 {
3029 {
3030 object C2 = arg1;
3031 object LastCh = arg3;
3032 Variable Chars = new Variable();
3033 Variable NextCh = new Variable();
3034 foreach (bool l2 in YP.unify(arg2, new ListPair(C2, Chars)))
3035 {
3036 if (YP.greaterThan(C2, 160))
3037 {
3038 if (YP.lessThan(C2, 192))
3039 {
3040 if (YP.notEqual(C2, 186))
3041 {
3042 if (YP.notEqual(C2, 170))
3043 {
3044 foreach (bool l7 in YP.get_code(NextCh))
3045 {
3046 foreach (bool l8 in rest_symbol(NextCh, Chars, LastCh))
3047 {
3048 yield return false;
3049 }
3050 }
3051 yield break;
3052 }
3053 }
3054 }
3055 goto cutIf1;
3056 }
3057 foreach (bool l3 in symbol_char(C2))
3058 {
3059 foreach (bool l4 in YP.get_code(NextCh))
3060 {
3061 foreach (bool l5 in rest_symbol(NextCh, Chars, LastCh))
3062 {
3063 yield return false;
3064 }
3065 }
3066 yield break;
3067 }
3068 cutIf1:
3069 { }
3070 }
3071 }
3072 {
3073 Variable C2 = new Variable();
3074 foreach (bool l2 in YP.unify(arg1, C2))
3075 {
3076 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
3077 {
3078 foreach (bool l4 in YP.unify(arg3, C2))
3079 {
3080 yield return false;
3081 }
3082 }
3083 }
3084 }
3085 }
3086
3087 public static IEnumerable<bool> symbol_char(object arg1)
3088 {
3089 {
3090 foreach (bool l2 in YP.unify(arg1, 35))
3091 {
3092 yield return false;
3093 }
3094 }
3095 {
3096 foreach (bool l2 in YP.unify(arg1, 36))
3097 {
3098 yield return false;
3099 }
3100 }
3101 {
3102 foreach (bool l2 in YP.unify(arg1, 38))
3103 {
3104 yield return false;
3105 }
3106 }
3107 {
3108 foreach (bool l2 in YP.unify(arg1, 42))
3109 {
3110 yield return false;
3111 }
3112 }
3113 {
3114 foreach (bool l2 in YP.unify(arg1, 43))
3115 {
3116 yield return false;
3117 }
3118 }
3119 {
3120 foreach (bool l2 in YP.unify(arg1, 45))
3121 {
3122 yield return false;
3123 }
3124 }
3125 {
3126 foreach (bool l2 in YP.unify(arg1, 46))
3127 {
3128 yield return false;
3129 }
3130 }
3131 {
3132 foreach (bool l2 in YP.unify(arg1, 47))
3133 {
3134 yield return false;
3135 }
3136 }
3137 {
3138 foreach (bool l2 in YP.unify(arg1, 58))
3139 {
3140 yield return false;
3141 }
3142 }
3143 {
3144 foreach (bool l2 in YP.unify(arg1, 60))
3145 {
3146 yield return false;
3147 }
3148 }
3149 {
3150 foreach (bool l2 in YP.unify(arg1, 61))
3151 {
3152 yield return false;
3153 }
3154 }
3155 {
3156 foreach (bool l2 in YP.unify(arg1, 62))
3157 {
3158 yield return false;
3159 }
3160 }
3161 {
3162 foreach (bool l2 in YP.unify(arg1, 63))
3163 {
3164 yield return false;
3165 }
3166 }
3167 {
3168 foreach (bool l2 in YP.unify(arg1, 64))
3169 {
3170 yield return false;
3171 }
3172 }
3173 {
3174 foreach (bool l2 in YP.unify(arg1, 92))
3175 {
3176 yield return false;
3177 }
3178 }
3179 {
3180 foreach (bool l2 in YP.unify(arg1, 94))
3181 {
3182 yield return false;
3183 }
3184 }
3185 {
3186 foreach (bool l2 in YP.unify(arg1, 96))
3187 {
3188 yield return false;
3189 }
3190 }
3191 {
3192 foreach (bool l2 in YP.unify(arg1, 126))
3193 {
3194 yield return false;
3195 }
3196 }
3197 }
3198
3199 public static IEnumerable<bool> get_current_position(object Pos)
3200 {
3201 {
3202 foreach (bool l2 in YP.unify(Pos, 0))
3203 {
3204 yield return false;
3205 }
3206 }
3207 }
3208
3209 public static IEnumerable<bool> read_after_atom4(object Ch, object Dict, object arg3, object Chars)
3210 {
3211 {
3212 Variable Atom_1 = new Variable();
3213 Variable Pos = new Variable();
3214 Variable Tokens = new Variable();
3215 foreach (bool l2 in YP.unify(arg3, new ListPair(new Functor2("atom", Atom_1, Pos), Tokens)))
3216 {
3217 foreach (bool l3 in YP.unify(Pos, 0))
3218 {
3219 foreach (bool l4 in YP.atom_codes(Atom_1, Chars))
3220 {
3221 foreach (bool l5 in read_after_atom(Ch, Dict, Tokens))
3222 {
3223 yield return false;
3224 }
3225 }
3226 }
3227 }
3228 }
3229 }
3230
3231 public static IEnumerable<bool> read_after_atom(object arg1, object Dict, object arg3)
3232 {
3233 {
3234 Variable Tokens = new Variable();
3235 Variable NextCh = new Variable();
3236 foreach (bool l2 in YP.unify(arg1, 40))
3237 {
3238 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("("), Tokens)))
3239 {
3240 foreach (bool l4 in YP.get_code(NextCh))
3241 {
3242 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
3243 {
3244 yield return false;
3245 }
3246 }
3247 yield break;
3248 }
3249 }
3250 }
3251 {
3252 object Ch = arg1;
3253 object Tokens = arg3;
3254 foreach (bool l2 in read_tokens(Ch, Dict, Tokens))
3255 {
3256 yield return false;
3257 }
3258 }
3259 }
3260
3261 public static IEnumerable<bool> read_string(object Chars, object Quote, object NextCh)
3262 {
3263 {
3264 Variable Ch = new Variable();
3265 Variable Char = new Variable();
3266 Variable Next = new Variable();
3267 foreach (bool l2 in YP.get_code(Ch))
3268 {
3269 foreach (bool l3 in read_char(Ch, Quote, Char, Next))
3270 {
3271 foreach (bool l4 in rest_string5(Char, Next, Chars, Quote, NextCh))
3272 {
3273 yield return false;
3274 }
3275 }
3276 }
3277 }
3278 }
3279
3280 public static IEnumerable<bool> rest_string5(object arg1, object arg2, object arg3, object arg4, object arg5)
3281 {
3282 {
3283 object _X = arg4;
3284 Variable NextCh = new Variable();
3285 foreach (bool l2 in YP.unify(arg1, -1))
3286 {
3287 foreach (bool l3 in YP.unify(arg2, NextCh))
3288 {
3289 foreach (bool l4 in YP.unify(arg3, Atom.NIL))
3290 {
3291 foreach (bool l5 in YP.unify(arg5, NextCh))
3292 {
3293 yield return true;
3294 yield break;
3295 }
3296 }
3297 }
3298 }
3299 }
3300 {
3301 object Char = arg1;
3302 object Next = arg2;
3303 object Quote = arg4;
3304 object NextCh = arg5;
3305 Variable Chars = new Variable();
3306 Variable Char2 = new Variable();
3307 Variable Next2 = new Variable();
3308 foreach (bool l2 in YP.unify(arg3, new ListPair(Char, Chars)))
3309 {
3310 foreach (bool l3 in read_char(Next, Quote, Char2, Next2))
3311 {
3312 foreach (bool l4 in rest_string5(Char2, Next2, Chars, Quote, NextCh))
3313 {
3314 yield return false;
3315 }
3316 }
3317 }
3318 }
3319 }
3320
3321 public static IEnumerable<bool> escape_char(object arg1, object arg2)
3322 {
3323 {
3324 foreach (bool l2 in YP.unify(arg1, 110))
3325 {
3326 foreach (bool l3 in YP.unify(arg2, 10))
3327 {
3328 yield return false;
3329 }
3330 }
3331 }
3332 {
3333 foreach (bool l2 in YP.unify(arg1, 78))
3334 {
3335 foreach (bool l3 in YP.unify(arg2, 10))
3336 {
3337 yield return false;
3338 }
3339 }
3340 }
3341 {
3342 foreach (bool l2 in YP.unify(arg1, 116))
3343 {
3344 foreach (bool l3 in YP.unify(arg2, 9))
3345 {
3346 yield return false;
3347 }
3348 }
3349 }
3350 {
3351 foreach (bool l2 in YP.unify(arg1, 84))
3352 {
3353 foreach (bool l3 in YP.unify(arg2, 9))
3354 {
3355 yield return false;
3356 }
3357 }
3358 }
3359 {
3360 foreach (bool l2 in YP.unify(arg1, 114))
3361 {
3362 foreach (bool l3 in YP.unify(arg2, 13))
3363 {
3364 yield return false;
3365 }
3366 }
3367 }
3368 {
3369 foreach (bool l2 in YP.unify(arg1, 82))
3370 {
3371 foreach (bool l3 in YP.unify(arg2, 13))
3372 {
3373 yield return false;
3374 }
3375 }
3376 }
3377 {
3378 foreach (bool l2 in YP.unify(arg1, 118))
3379 {
3380 foreach (bool l3 in YP.unify(arg2, 11))
3381 {
3382 yield return false;
3383 }
3384 }
3385 }
3386 {
3387 foreach (bool l2 in YP.unify(arg1, 86))
3388 {
3389 foreach (bool l3 in YP.unify(arg2, 11))
3390 {
3391 yield return false;
3392 }
3393 }
3394 }
3395 {
3396 foreach (bool l2 in YP.unify(arg1, 98))
3397 {
3398 foreach (bool l3 in YP.unify(arg2, 8))
3399 {
3400 yield return false;
3401 }
3402 }
3403 }
3404 {
3405 foreach (bool l2 in YP.unify(arg1, 66))
3406 {
3407 foreach (bool l3 in YP.unify(arg2, 8))
3408 {
3409 yield return false;
3410 }
3411 }
3412 }
3413 {
3414 foreach (bool l2 in YP.unify(arg1, 102))
3415 {
3416 foreach (bool l3 in YP.unify(arg2, 12))
3417 {
3418 yield return false;
3419 }
3420 }
3421 }
3422 {
3423 foreach (bool l2 in YP.unify(arg1, 70))
3424 {
3425 foreach (bool l3 in YP.unify(arg2, 12))
3426 {
3427 yield return false;
3428 }
3429 }
3430 }
3431 {
3432 foreach (bool l2 in YP.unify(arg1, 101))
3433 {
3434 foreach (bool l3 in YP.unify(arg2, 27))
3435 {
3436 yield return false;
3437 }
3438 }
3439 }
3440 {
3441 foreach (bool l2 in YP.unify(arg1, 69))
3442 {
3443 foreach (bool l3 in YP.unify(arg2, 27))
3444 {
3445 yield return false;
3446 }
3447 }
3448 }
3449 {
3450 foreach (bool l2 in YP.unify(arg1, 100))
3451 {
3452 foreach (bool l3 in YP.unify(arg2, 127))
3453 {
3454 yield return false;
3455 }
3456 }
3457 }
3458 {
3459 foreach (bool l2 in YP.unify(arg1, 68))
3460 {
3461 foreach (bool l3 in YP.unify(arg2, 127))
3462 {
3463 yield return false;
3464 }
3465 }
3466 }
3467 {
3468 foreach (bool l2 in YP.unify(arg1, 115))
3469 {
3470 foreach (bool l3 in YP.unify(arg2, 32))
3471 {
3472 yield return false;
3473 }
3474 }
3475 }
3476 {
3477 foreach (bool l2 in YP.unify(arg1, 83))
3478 {
3479 foreach (bool l3 in YP.unify(arg2, 32))
3480 {
3481 yield return false;
3482 }
3483 }
3484 }
3485 {
3486 foreach (bool l2 in YP.unify(arg1, 122))
3487 {
3488 foreach (bool l3 in YP.unify(arg2, -1))
3489 {
3490 yield return false;
3491 }
3492 }
3493 }
3494 {
3495 foreach (bool l2 in YP.unify(arg1, 90))
3496 {
3497 foreach (bool l3 in YP.unify(arg2, -1))
3498 {
3499 yield return false;
3500 }
3501 }
3502 }
3503 }
3504
3505 public static IEnumerable<bool> read_variable(object C1, object Dict, object arg3)
3506 {
3507 {
3508 Variable Var = new Variable();
3509 Variable Name = new Variable();
3510 Variable StartPos = new Variable();
3511 Variable Tokens = new Variable();
3512 Variable Chars = new Variable();
3513 Variable NextCh = new Variable();
3514 foreach (bool l2 in YP.unify(arg3, new ListPair(new Functor3("var", Var, Name, StartPos), Tokens)))
3515 {
3516 foreach (bool l3 in get_current_position(StartPos))
3517 {
3518 foreach (bool l4 in read_name(C1, Chars, NextCh))
3519 {
3520 foreach (bool l5 in YP.atom_codes(Name, Chars))
3521 {
3522 if (YP.termEqual(Name, Atom.a("_")))
3523 {
3524 foreach (bool l7 in read_after_atom(NextCh, Dict, Tokens))
3525 {
3526 yield return false;
3527 }
3528 goto cutIf1;
3529 }
3530 foreach (bool l6 in read_lookup(Dict, Name, Var))
3531 {
3532 foreach (bool l7 in read_after_atom(NextCh, Dict, Tokens))
3533 {
3534 yield return false;
3535 }
3536 }
3537 cutIf1:
3538 { }
3539 }
3540 }
3541 }
3542 }
3543 }
3544 }
3545
3546 public static IEnumerable<bool> read_lookup(object arg1, object Name, object Var)
3547 {
3548 {
3549 Variable N = new Variable();
3550 Variable V = new Variable();
3551 Variable L = new Variable();
3552 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("=", N, V), L)))
3553 {
3554 foreach (bool l3 in YP.unify(N, Name))
3555 {
3556 foreach (bool l4 in YP.unify(V, Var))
3557 {
3558 yield return false;
3559 }
3560 goto cutIf1;
3561 }
3562 foreach (bool l3 in read_lookup(L, Name, Var))
3563 {
3564 yield return false;
3565 }
3566 cutIf1:
3567 { }
3568 }
3569 }
3570 }
3571
3572 public static IEnumerable<bool> read_solidus(object Ch, object LastCh)
3573 {
3574 {
3575 Variable NextCh = new Variable();
3576 if (YP.equal(Ch, 42))
3577 {
3578 foreach (bool l3 in YP.get_code(NextCh))
3579 {
3580 if (YP.equal(NextCh, 47))
3581 {
3582 foreach (bool l5 in YP.get_code(LastCh))
3583 {
3584 yield return false;
3585 }
3586 goto cutIf2;
3587 }
3588 foreach (bool l4 in read_solidus(NextCh, LastCh))
3589 {
3590 yield return false;
3591 }
3592 cutIf2:
3593 { }
3594 }
3595 goto cutIf1;
3596 }
3597 if (YP.notEqual(Ch, -1))
3598 {
3599 foreach (bool l3 in YP.get_code(NextCh))
3600 {
3601 foreach (bool l4 in read_solidus(NextCh, LastCh))
3602 {
3603 yield return false;
3604 }
3605 }
3606 goto cutIf3;
3607 }
3608 foreach (bool l2 in YP.unify(LastCh, Ch))
3609 {
3610 foreach (bool l3 in formatError(Atom.a("user_error"), Atom.a("~N** end of file in /*comment~n"), Atom.NIL))
3611 {
3612 yield return false;
3613 }
3614 }
3615 cutIf3:
3616 cutIf1:
3617 { }
3618 }
3619 }
3620
3621 public static IEnumerable<bool> read_identifier(object C1, object Dict, object Tokens)
3622 {
3623 {
3624 Variable Chars = new Variable();
3625 Variable NextCh = new Variable();
3626 foreach (bool l2 in read_name(C1, Chars, NextCh))
3627 {
3628 foreach (bool l3 in read_after_atom4(NextCh, Dict, Tokens, Chars))
3629 {
3630 yield return false;
3631 }
3632 }
3633 }
3634 }
3635
3636 public static IEnumerable<bool> read_name(object C1, object arg2, object LastCh)
3637 {
3638 {
3639 Variable Chars = new Variable();
3640 Variable C2 = new Variable();
3641 foreach (bool l2 in YP.unify(arg2, new ListPair(C1, Chars)))
3642 {
3643 foreach (bool l3 in YP.get_code(C2))
3644 {
3645 if (YP.greaterThanOrEqual(C2, new ListPair(97, Atom.NIL)))
3646 {
3647 if (YP.lessThanOrEqual(C2, new ListPair(122, Atom.NIL)))
3648 {
3649 foreach (bool l6 in read_name(C2, Chars, LastCh))
3650 {
3651 yield return false;
3652 }
3653 goto cutIf2;
3654 }
3655 if (YP.lessThan(C2, 192))
3656 {
3657 if (YP.notEqual(YP.bitwiseOr(C2, 16), 186))
3658 {
3659 foreach (bool l7 in YP.unify(Chars, Atom.NIL))
3660 {
3661 foreach (bool l8 in YP.unify(LastCh, C2))
3662 {
3663 yield return false;
3664 }
3665 }
3666 goto cutIf3;
3667 }
3668 }
3669 if (YP.equal(YP.bitwiseOr(C2, 32), 247))
3670 {
3671 foreach (bool l6 in YP.unify(Chars, Atom.NIL))
3672 {
3673 foreach (bool l7 in YP.unify(LastCh, C2))
3674 {
3675 yield return false;
3676 }
3677 }
3678 goto cutIf4;
3679 }
3680 foreach (bool l5 in read_name(C2, Chars, LastCh))
3681 {
3682 yield return false;
3683 }
3684 cutIf4:
3685 cutIf3:
3686 cutIf2:
3687 goto cutIf1;
3688 }
3689 if (YP.greaterThanOrEqual(C2, new ListPair(65, Atom.NIL)))
3690 {
3691 if (YP.greaterThan(C2, new ListPair(90, Atom.NIL)))
3692 {
3693 if (YP.notEqual(C2, new ListPair(95, Atom.NIL)))
3694 {
3695 foreach (bool l7 in YP.unify(Chars, Atom.NIL))
3696 {
3697 foreach (bool l8 in YP.unify(LastCh, C2))
3698 {
3699 yield return false;
3700 }
3701 }
3702 goto cutIf6;
3703 }
3704 }
3705 foreach (bool l5 in read_name(C2, Chars, LastCh))
3706 {
3707 yield return false;
3708 }
3709 cutIf6:
3710 goto cutIf5;
3711 }
3712 if (YP.greaterThanOrEqual(C2, new ListPair(48, Atom.NIL)))
3713 {
3714 if (YP.lessThanOrEqual(C2, new ListPair(57, Atom.NIL)))
3715 {
3716 foreach (bool l6 in read_name(C2, Chars, LastCh))
3717 {
3718 yield return false;
3719 }
3720 goto cutIf7;
3721 }
3722 }
3723 foreach (bool l4 in YP.unify(Chars, Atom.NIL))
3724 {
3725 foreach (bool l5 in YP.unify(LastCh, C2))
3726 {
3727 yield return false;
3728 }
3729 }
3730 cutIf7:
3731 cutIf5:
3732 cutIf1:
3733 { }
3734 }
3735 }
3736 }
3737 }
3738
3739 public static IEnumerable<bool> read_fullstop(object Ch, object Dict, object Tokens)
3740 {
3741 {
3742 Variable Number = new Variable();
3743 Variable Tokens1 = new Variable();
3744 Variable Chars = new Variable();
3745 Variable NextCh = new Variable();
3746 if (YP.lessThanOrEqual(Ch, new ListPair(57, Atom.NIL)))
3747 {
3748 if (YP.greaterThanOrEqual(Ch, new ListPair(48, Atom.NIL)))
3749 {
3750 foreach (bool l4 in YP.unify(Tokens, new ListPair(new Functor1("number", Number), Tokens1)))
3751 {
3752 foreach (bool l5 in read_float(Number, Dict, Tokens1, new ListPair(48, Atom.NIL), Ch))
3753 {
3754 yield return false;
3755 }
3756 }
3757 goto cutIf1;
3758 }
3759 }
3760 if (YP.greaterThan(Ch, new ListPair(32, Atom.NIL)))
3761 {
3762 foreach (bool l3 in rest_symbol(Ch, Chars, NextCh))
3763 {
3764 foreach (bool l4 in read_after_atom4(NextCh, Dict, Tokens, new ListPair(46, Chars)))
3765 {
3766 yield return false;
3767 }
3768 }
3769 goto cutIf2;
3770 }
3771 if (YP.greaterThanOrEqual(Ch, 0))
3772 {
3773 foreach (bool l3 in YP.unify(Tokens, Atom.NIL))
3774 {
3775 yield return false;
3776 }
3777 goto cutIf3;
3778 }
3779 foreach (bool l2 in formatError(Atom.a("user_error"), Atom.a("~N** end of file just after full stop~n"), Atom.NIL))
3780 {
3781 }
3782 cutIf3:
3783 cutIf2:
3784 cutIf1:
3785 { }
3786 }
3787 }
3788
3789 public static IEnumerable<bool> read_float(object Number, object Dict, object Tokens, object Digits, object Digit)
3790 {
3791 {
3792 Variable Chars = new Variable();
3793 Variable Rest = new Variable();
3794 Variable NextCh = new Variable();
3795 foreach (bool l2 in prepend(Digits, Chars, Rest))
3796 {
3797 foreach (bool l3 in read_float4(Digit, Rest, NextCh, Chars))
3798 {
3799 foreach (bool l4 in YP.number_codes(Number, Chars))
3800 {
3801 foreach (bool l5 in read_tokens(NextCh, Dict, Tokens))
3802 {
3803 yield return false;
3804 }
3805 }
3806 }
3807 }
3808 }
3809 }
3810
3811 public static IEnumerable<bool> prepend(object arg1, object arg2, object arg3)
3812 {
3813 {
3814 object X = arg3;
3815 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
3816 {
3817 foreach (bool l3 in YP.unify(arg2, new ListPair(46, X)))
3818 {
3819 yield return false;
3820 }
3821 }
3822 }
3823 {
3824 object Y = arg3;
3825 Variable C = new Variable();
3826 Variable Cs = new Variable();
3827 Variable X = new Variable();
3828 foreach (bool l2 in YP.unify(arg1, new ListPair(C, Cs)))
3829 {
3830 foreach (bool l3 in YP.unify(arg2, new ListPair(C, X)))
3831 {
3832 foreach (bool l4 in prepend(Cs, X, Y))
3833 {
3834 yield return false;
3835 }
3836 }
3837 }
3838 }
3839 }
3840
3841 public static IEnumerable<bool> read_float4(object C1, object arg2, object NextCh, object Total)
3842 {
3843 {
3844 Variable Chars = new Variable();
3845 Variable C2 = new Variable();
3846 Variable C3 = new Variable();
3847 Variable C4 = new Variable();
3848 Variable More = new Variable();
3849 foreach (bool l2 in YP.unify(arg2, new ListPair(C1, Chars)))
3850 {
3851 foreach (bool l3 in YP.get_code(C2))
3852 {
3853 if (YP.greaterThanOrEqual(C2, new ListPair(48, Atom.NIL)))
3854 {
3855 if (YP.lessThanOrEqual(C2, new ListPair(57, Atom.NIL)))
3856 {
3857 foreach (bool l6 in read_float4(C2, Chars, NextCh, Total))
3858 {
3859 yield return false;
3860 }
3861 goto cutIf1;
3862 }
3863 }
3864 if (YP.equal(YP.bitwiseOr(C2, 32), new ListPair(101, Atom.NIL)))
3865 {
3866 foreach (bool l5 in YP.get_code(C3))
3867 {
3868 if (YP.equal(C3, new ListPair(45, Atom.NIL)))
3869 {
3870 foreach (bool l7 in YP.get_code(C4))
3871 {
3872 foreach (bool l8 in YP.unify(Chars, new ListPair(C2, new ListPair(45, More))))
3873 {
3874 if (YP.greaterThanOrEqual(C4, new ListPair(48, Atom.NIL)))
3875 {
3876 if (YP.lessThanOrEqual(C4, new ListPair(57, Atom.NIL)))
3877 {
3878 foreach (bool l11 in read_exponent(C4, More, NextCh))
3879 {
3880 yield return false;
3881 }
3882 goto cutIf4;
3883 }
3884 }
3885 foreach (bool l9 in YP.unify(More, Atom.NIL))
3886 {
3887 foreach (bool l10 in formatError(Atom.a("user_error"), Atom.a("~N** Missing exponent in ~s~n"), new ListPair(Total, Atom.NIL)))
3888 {
3889 }
3890 }
3891 foreach (bool l9 in YP.unify(More, new ListPair(48, Atom.NIL)))
3892 {
3893 foreach (bool l10 in YP.unify(NextCh, C4))
3894 {
3895 yield return false;
3896 }
3897 }
3898 cutIf4:
3899 { }
3900 }
3901 }
3902 goto cutIf3;
3903 }
3904 if (YP.equal(C3, new ListPair(43, Atom.NIL)))
3905 {
3906 foreach (bool l7 in YP.get_code(C4))
3907 {
3908 foreach (bool l8 in YP.unify(Chars, new ListPair(C2, More)))
3909 {
3910 if (YP.greaterThanOrEqual(C4, new ListPair(48, Atom.NIL)))
3911 {
3912 if (YP.lessThanOrEqual(C4, new ListPair(57, Atom.NIL)))
3913 {
3914 foreach (bool l11 in read_exponent(C4, More, NextCh))
3915 {
3916 yield return false;
3917 }
3918 goto cutIf6;
3919 }
3920 }
3921 foreach (bool l9 in YP.unify(More, Atom.NIL))
3922 {
3923 foreach (bool l10 in formatError(Atom.a("user_error"), Atom.a("~N** Missing exponent in ~s~n"), new ListPair(Total, Atom.NIL)))
3924 {
3925 }
3926 }
3927 foreach (bool l9 in YP.unify(More, new ListPair(48, Atom.NIL)))
3928 {
3929 foreach (bool l10 in YP.unify(NextCh, C4))
3930 {
3931 yield return false;
3932 }
3933 }
3934 cutIf6:
3935 { }
3936 }
3937 }
3938 goto cutIf5;
3939 }
3940 foreach (bool l6 in YP.unify(C4, C3))
3941 {
3942 foreach (bool l7 in YP.unify(Chars, new ListPair(C2, More)))
3943 {
3944 if (YP.greaterThanOrEqual(C4, new ListPair(48, Atom.NIL)))
3945 {
3946 if (YP.lessThanOrEqual(C4, new ListPair(57, Atom.NIL)))
3947 {
3948 foreach (bool l10 in read_exponent(C4, More, NextCh))
3949 {
3950 yield return false;
3951 }
3952 goto cutIf7;
3953 }
3954 }
3955 foreach (bool l8 in YP.unify(More, Atom.NIL))
3956 {
3957 foreach (bool l9 in formatError(Atom.a("user_error"), Atom.a("~N** Missing exponent in ~s~n"), new ListPair(Total, Atom.NIL)))
3958 {
3959 }
3960 }
3961 foreach (bool l8 in YP.unify(More, new ListPair(48, Atom.NIL)))
3962 {
3963 foreach (bool l9 in YP.unify(NextCh, C4))
3964 {
3965 yield return false;
3966 }
3967 }
3968 cutIf7:
3969 { }
3970 }
3971 }
3972 cutIf5:
3973 cutIf3:
3974 { }
3975 }
3976 goto cutIf2;
3977 }
3978 foreach (bool l4 in YP.unify(Chars, Atom.NIL))
3979 {
3980 foreach (bool l5 in YP.unify(NextCh, C2))
3981 {
3982 yield return false;
3983 }
3984 }
3985 cutIf2:
3986 cutIf1:
3987 { }
3988 }
3989 }
3990 }
3991 }
3992
3993 public static IEnumerable<bool> read_exponent(object C1, object arg2, object NextCh)
3994 {
3995 {
3996 Variable Chars = new Variable();
3997 Variable C2 = new Variable();
3998 foreach (bool l2 in YP.unify(arg2, new ListPair(C1, Chars)))
3999 {
4000 foreach (bool l3 in YP.get_code(C2))
4001 {
4002 if (YP.greaterThanOrEqual(C2, new ListPair(48, Atom.NIL)))
4003 {
4004 if (YP.lessThanOrEqual(C2, new ListPair(57, Atom.NIL)))
4005 {
4006 foreach (bool l6 in read_exponent(C2, Chars, NextCh))
4007 {
4008 yield return false;
4009 }
4010 goto cutIf1;
4011 }
4012 }
4013 foreach (bool l4 in YP.unify(Chars, Atom.NIL))
4014 {
4015 foreach (bool l5 in YP.unify(NextCh, C2))
4016 {
4017 yield return false;
4018 }
4019 }
4020 cutIf1:
4021 { }
4022 }
4023 }
4024 }
4025 }
4026
4027 public static IEnumerable<bool> read_number(object C1, object Dict, object arg3)
4028 {
4029 {
4030 Variable Number = new Variable();
4031 Variable Tokens = new Variable();
4032 Variable C2 = new Variable();
4033 Variable N = new Variable();
4034 Variable C = new Variable();
4035 Variable C3 = new Variable();
4036 Variable Digits = new Variable();
4037 foreach (bool l2 in YP.unify(arg3, new ListPair(new Functor1("number", Number), Tokens)))
4038 {
4039 foreach (bool l3 in read_number4(C1, C2, 0, N))
4040 {
4041 if (YP.equal(C2, 39))
4042 {
4043 if (YP.greaterThanOrEqual(N, 2))
4044 {
4045 if (YP.lessThanOrEqual(N, 36))
4046 {
4047 foreach (bool l7 in read_based(N, 0, Number, C))
4048 {
4049 foreach (bool l8 in read_tokens(C, Dict, Tokens))
4050 {
4051 yield return false;
4052 }
4053 }
4054 goto cutIf2;
4055 }
4056 }
4057 if (YP.equal(N, 0))
4058 {
4059 foreach (bool l6 in YP.get_code(C3))
4060 {
4061 foreach (bool l7 in read_char(C3, -1, Number, C))
4062 {
4063 foreach (bool l8 in read_tokens(C, Dict, Tokens))
4064 {
4065 yield return false;
4066 }
4067 }
4068 }
4069 goto cutIf3;
4070 }
4071 foreach (bool l5 in formatError(Atom.a("user_error"), Atom.a("~N** ~d' read as ~d '~n"), new ListPair(N, new ListPair(N, Atom.NIL))))
4072 {
4073 foreach (bool l6 in YP.unify(Number, N))
4074 {
4075 foreach (bool l7 in YP.unify(C, C2))
4076 {
4077 foreach (bool l8 in read_tokens(C, Dict, Tokens))
4078 {
4079 yield return false;
4080 }
4081 }
4082 }
4083 }
4084 cutIf3:
4085 cutIf2:
4086 goto cutIf1;
4087 }
4088 if (YP.equal(C2, 46))
4089 {
4090 foreach (bool l5 in YP.get_code(C3))
4091 {
4092 if (YP.greaterThanOrEqual(C3, new ListPair(48, Atom.NIL)))
4093 {
4094 if (YP.lessThanOrEqual(C3, new ListPair(57, Atom.NIL)))
4095 {
4096 foreach (bool l8 in YP.number_codes(N, Digits))
4097 {
4098 foreach (bool l9 in read_float(Number, Dict, Tokens, Digits, C3))
4099 {
4100 yield return false;
4101 }
4102 }
4103 goto cutIf5;
4104 }
4105 }
4106 foreach (bool l6 in YP.unify(Number, N))
4107 {
4108 foreach (bool l7 in read_fullstop(C3, Dict, Tokens))
4109 {
4110 yield return false;
4111 }
4112 }
4113 cutIf5:
4114 { }
4115 }
4116 goto cutIf4;
4117 }
4118 foreach (bool l4 in YP.unify(Number, N))
4119 {
4120 foreach (bool l5 in read_tokens(C2, Dict, Tokens))
4121 {
4122 yield return false;
4123 }
4124 }
4125 cutIf4:
4126 cutIf1:
4127 { }
4128 }
4129 }
4130 }
4131 }
4132
4133 public static IEnumerable<bool> read_number4(object C0, object C, object N0, object N)
4134 {
4135 {
4136 Variable N1 = new Variable();
4137 Variable C1 = new Variable();
4138 if (YP.greaterThanOrEqual(C0, new ListPair(48, Atom.NIL)))
4139 {
4140 if (YP.lessThanOrEqual(C0, new ListPair(57, Atom.NIL)))
4141 {
4142 foreach (bool l4 in YP.unify(N1, YP.add(YP.subtract(YP.multiply(N0, 10), new ListPair(48, Atom.NIL)), C0)))
4143 {
4144 foreach (bool l5 in YP.get_code(C1))
4145 {
4146 foreach (bool l6 in read_number4(C1, C, N1, N))
4147 {
4148 yield return false;
4149 }
4150 }
4151 }
4152 goto cutIf1;
4153 }
4154 }
4155 if (YP.equal(C0, 95))
4156 {
4157 foreach (bool l3 in YP.get_code(C1))
4158 {
4159 foreach (bool l4 in read_number4(C1, C, N0, N))
4160 {
4161 yield return false;
4162 }
4163 }
4164 goto cutIf2;
4165 }
4166 foreach (bool l2 in YP.unify(C, C0))
4167 {
4168 foreach (bool l3 in YP.unify(N, N0))
4169 {
4170 yield return false;
4171 }
4172 }
4173 cutIf2:
4174 cutIf1:
4175 { }
4176 }
4177 }
4178
4179 public static IEnumerable<bool> read_based(object Base, object N0, object N, object C)
4180 {
4181 {
4182 Variable C1 = new Variable();
4183 Variable Digit = new Variable();
4184 Variable N1 = new Variable();
4185 foreach (bool l2 in YP.get_code(C1))
4186 {
4187 if (YP.greaterThanOrEqual(C1, new ListPair(48, Atom.NIL)))
4188 {
4189 if (YP.lessThanOrEqual(C1, new ListPair(57, Atom.NIL)))
4190 {
4191 foreach (bool l5 in YP.unify(Digit, YP.subtract(C1, new ListPair(48, Atom.NIL))))
4192 {
4193 if (YP.lessThan(Digit, Base))
4194 {
4195 foreach (bool l7 in YP.unify(N1, YP.add(YP.multiply(N0, Base), Digit)))
4196 {
4197 foreach (bool l8 in read_based(Base, N1, N, C))
4198 {
4199 yield return false;
4200 }
4201 }
4202 goto cutIf2;
4203 }
4204 if (YP.equal(C1, new ListPair(95, Atom.NIL)))
4205 {
4206 foreach (bool l7 in read_based(Base, N0, N, C))
4207 {
4208 yield return false;
4209 }
4210 goto cutIf3;
4211 }
4212 foreach (bool l6 in YP.unify(N, N0))
4213 {
4214 foreach (bool l7 in YP.unify(C, C1))
4215 {
4216 yield return false;
4217 }
4218 }
4219 cutIf3:
4220 cutIf2:
4221 { }
4222 }
4223 goto cutIf1;
4224 }
4225 }
4226 if (YP.greaterThanOrEqual(C1, new ListPair(65, Atom.NIL)))
4227 {
4228 if (YP.lessThanOrEqual(C1, new ListPair(90, Atom.NIL)))
4229 {
4230 foreach (bool l5 in YP.unify(Digit, YP.subtract(C1, YP.subtract(new ListPair(65, Atom.NIL), 10))))
4231 {
4232 if (YP.lessThan(Digit, Base))
4233 {
4234 foreach (bool l7 in YP.unify(N1, YP.add(YP.multiply(N0, Base), Digit)))
4235 {
4236 foreach (bool l8 in read_based(Base, N1, N, C))
4237 {
4238 yield return false;
4239 }
4240 }
4241 goto cutIf5;
4242 }
4243 if (YP.equal(C1, new ListPair(95, Atom.NIL)))
4244 {
4245 foreach (bool l7 in read_based(Base, N0, N, C))
4246 {
4247 yield return false;
4248 }
4249 goto cutIf6;
4250 }
4251 foreach (bool l6 in YP.unify(N, N0))
4252 {
4253 foreach (bool l7 in YP.unify(C, C1))
4254 {
4255 yield return false;
4256 }
4257 }
4258 cutIf6:
4259 cutIf5:
4260 { }
4261 }
4262 goto cutIf4;
4263 }
4264 }
4265 if (YP.greaterThanOrEqual(C1, new ListPair(97, Atom.NIL)))
4266 {
4267 if (YP.lessThanOrEqual(C1, new ListPair(122, Atom.NIL)))
4268 {
4269 foreach (bool l5 in YP.unify(Digit, YP.subtract(C1, YP.subtract(new ListPair(97, Atom.NIL), 10))))
4270 {
4271 if (YP.lessThan(Digit, Base))
4272 {
4273 foreach (bool l7 in YP.unify(N1, YP.add(YP.multiply(N0, Base), Digit)))
4274 {
4275 foreach (bool l8 in read_based(Base, N1, N, C))
4276 {
4277 yield return false;
4278 }
4279 }
4280 goto cutIf8;
4281 }
4282 if (YP.equal(C1, new ListPair(95, Atom.NIL)))
4283 {
4284 foreach (bool l7 in read_based(Base, N0, N, C))
4285 {
4286 yield return false;
4287 }
4288 goto cutIf9;
4289 }
4290 foreach (bool l6 in YP.unify(N, N0))
4291 {
4292 foreach (bool l7 in YP.unify(C, C1))
4293 {
4294 yield return false;
4295 }
4296 }
4297 cutIf9:
4298 cutIf8:
4299 { }
4300 }
4301 goto cutIf7;
4302 }
4303 }
4304 foreach (bool l3 in YP.unify(Digit, 99))
4305 {
4306 if (YP.lessThan(Digit, Base))
4307 {
4308 foreach (bool l5 in YP.unify(N1, YP.add(YP.multiply(N0, Base), Digit)))
4309 {
4310 foreach (bool l6 in read_based(Base, N1, N, C))
4311 {
4312 yield return false;
4313 }
4314 }
4315 goto cutIf10;
4316 }
4317 if (YP.equal(C1, new ListPair(95, Atom.NIL)))
4318 {
4319 foreach (bool l5 in read_based(Base, N0, N, C))
4320 {
4321 yield return false;
4322 }
4323 goto cutIf11;
4324 }
4325 foreach (bool l4 in YP.unify(N, N0))
4326 {
4327 foreach (bool l5 in YP.unify(C, C1))
4328 {
4329 yield return false;
4330 }
4331 }
4332 cutIf11:
4333 cutIf10:
4334 { }
4335 }
4336 cutIf7:
4337 cutIf4:
4338 cutIf1:
4339 { }
4340 }
4341 }
4342 }
4343
4344 public static IEnumerable<bool> read_char(object Char, object Quote, object Result, object Next)
4345 {
4346 {
4347 Variable C1 = new Variable();
4348 Variable C2 = new Variable();
4349 Variable C3 = new Variable();
4350 Variable Ch = new Variable();
4351 if (YP.equal(Char, 92))
4352 {
4353 foreach (bool l3 in YP.get_code(C1))
4354 {
4355 if (YP.lessThan(C1, 0))
4356 {
4357 foreach (bool l5 in formatError(Atom.a("user_error"), Atom.a("~N** end of file in ~cquoted~c~n"), new ListPair(Quote, new ListPair(Quote, Atom.NIL))))
4358 {
4359 foreach (bool l6 in YP.unify(Result, -1))
4360 {
4361 foreach (bool l7 in YP.unify(Next, C1))
4362 {
4363 yield return false;
4364 }
4365 }
4366 }
4367 goto cutIf2;
4368 }
4369 if (YP.lessThanOrEqual(C1, new ListPair(32, Atom.NIL)))
4370 {
4371 foreach (bool l5 in YP.get_code(C2))
4372 {
4373 foreach (bool l6 in read_char(C2, Quote, Result, Next))
4374 {
4375 yield return false;
4376 }
4377 }
4378 goto cutIf3;
4379 }
4380 if (YP.equal(YP.bitwiseOr(C1, 32), new ListPair(99, Atom.NIL)))
4381 {
4382 foreach (bool l5 in YP.get_code(C2))
4383 {
4384 foreach (bool l6 in read_char(C2, Quote, Result, Next))
4385 {
4386 yield return false;
4387 }
4388 }
4389 goto cutIf4;
4390 }
4391 if (YP.lessThanOrEqual(C1, new ListPair(55, Atom.NIL)))
4392 {
4393 if (YP.greaterThanOrEqual(C1, new ListPair(48, Atom.NIL)))
4394 {
4395 foreach (bool l6 in YP.get_code(C2))
4396 {
4397 if (YP.lessThanOrEqual(C2, new ListPair(55, Atom.NIL)))
4398 {
4399 if (YP.greaterThanOrEqual(C2, new ListPair(48, Atom.NIL)))
4400 {
4401 foreach (bool l9 in YP.get_code(C3))
4402 {
4403 if (YP.lessThanOrEqual(C3, new ListPair(55, Atom.NIL)))
4404 {
4405 if (YP.greaterThanOrEqual(C3, new ListPair(48, Atom.NIL)))
4406 {
4407 foreach (bool l12 in YP.get_code(Next))
4408 {
4409 foreach (bool l13 in YP.unify(Result, YP.subtract(YP.add(YP.multiply(YP.add(YP.multiply(C1, 8), C2), 8), C3), YP.multiply(73, new ListPair(48, Atom.NIL)))))
4410 {
4411 yield return false;
4412 }
4413 }
4414 goto cutIf7;
4415 }
4416 }
4417 foreach (bool l10 in YP.unify(Next, C3))
4418 {
4419 foreach (bool l11 in YP.unify(Result, YP.subtract(YP.add(YP.multiply(C1, 8), C2), YP.multiply(9, new ListPair(48, Atom.NIL)))))
4420 {
4421 yield return false;
4422 }
4423 }
4424 cutIf7:
4425 { }
4426 }
4427 goto cutIf6;
4428 }
4429 }
4430 foreach (bool l7 in YP.unify(Next, C2))
4431 {
4432 foreach (bool l8 in YP.unify(Result, YP.subtract(C1, new ListPair(48, Atom.NIL))))
4433 {
4434 yield return false;
4435 }
4436 }
4437 cutIf6:
4438 { }
4439 }
4440 goto cutIf5;
4441 }
4442 }
4443 if (YP.equal(C1, new ListPair(94, Atom.NIL)))
4444 {
4445 foreach (bool l5 in YP.get_code(C2))
4446 {
4447 if (YP.lessThan(C2, 0))
4448 {
4449 foreach (bool l7 in formatError(Atom.a("user_error"), Atom.a("~N** end of file in ~c..~c^..~c~n"), ListPair.make(new object[] { Quote, 92, Quote })))
4450 {
4451 foreach (bool l8 in YP.unify(Result, -1))
4452 {
4453 foreach (bool l9 in YP.unify(Next, C2))
4454 {
4455 yield return false;
4456 }
4457 }
4458 }
4459 goto cutIf9;
4460 }
4461 if (YP.equal(C2, new ListPair(63, Atom.NIL)))
4462 {
4463 foreach (bool l7 in YP.unify(Result, 127))
4464 {
4465 foreach (bool l8 in YP.get_code(Next))
4466 {
4467 yield return false;
4468 }
4469 }
4470 goto cutIf10;
4471 }
4472 foreach (bool l6 in YP.unify(Result, YP.bitwiseAnd(C2, 31)))
4473 {
4474 foreach (bool l7 in YP.get_code(Next))
4475 {
4476 yield return false;
4477 }
4478 }
4479 cutIf10:
4480 cutIf9:
4481 { }
4482 }
4483 goto cutIf8;
4484 }
4485 foreach (bool l4 in escape_char(C1, Result))
4486 {
4487 foreach (bool l5 in YP.get_code(Next))
4488 {
4489 yield return false;
4490 }
4491 goto cutIf11;
4492 }
4493 foreach (bool l4 in YP.unify(Result, C1))
4494 {
4495 foreach (bool l5 in YP.get_code(Next))
4496 {
4497 yield return false;
4498 }
4499 }
4500 cutIf11:
4501 cutIf8:
4502 cutIf5:
4503 cutIf4:
4504 cutIf3:
4505 cutIf2:
4506 { }
4507 }
4508 goto cutIf1;
4509 }
4510 if (YP.equal(Char, Quote))
4511 {
4512 foreach (bool l3 in YP.get_code(Ch))
4513 {
4514 if (YP.equal(Ch, Quote))
4515 {
4516 foreach (bool l5 in YP.unify(Result, Quote))
4517 {
4518 foreach (bool l6 in YP.get_code(Next))
4519 {
4520 yield return false;
4521 }
4522 }
4523 goto cutIf13;
4524 }
4525 foreach (bool l4 in YP.unify(Result, -1))
4526 {
4527 foreach (bool l5 in YP.unify(Next, Ch))
4528 {
4529 yield return false;
4530 }
4531 }
4532 cutIf13:
4533 { }
4534 }
4535 goto cutIf12;
4536 }
4537 if (YP.lessThan(Char, new ListPair(32, Atom.NIL)))
4538 {
4539 if (YP.notEqual(Char, 9))
4540 {
4541 if (YP.notEqual(Char, 10))
4542 {
4543 if (YP.notEqual(Char, 13))
4544 {
4545 foreach (bool l6 in YP.unify(Result, -1))
4546 {
4547 foreach (bool l7 in YP.unify(Next, Char))
4548 {
4549 foreach (bool l8 in formatError(Atom.a("user_error"), Atom.a("~N** Strange character ~d ends ~ctoken~c~n"), ListPair.make(new object[] { Char, Quote, Quote })))
4550 {
4551 yield return false;
4552 }
4553 }
4554 }
4555 goto cutIf14;
4556 }
4557 }
4558 }
4559 }
4560 foreach (bool l2 in YP.unify(Result, Char))
4561 {
4562 foreach (bool l3 in YP.get_code(Next))
4563 {
4564 yield return false;
4565 }
4566 }
4567 cutIf14:
4568 cutIf12:
4569 cutIf1:
4570 { }
4571 }
4572 }
4573 #pragma warning restore 0168, 0219, 0162
4574 }
4575}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/PrologException.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/PrologException.cs
deleted file mode 100644
index 9f5ae3d..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/PrologException.cs
+++ /dev/null
@@ -1,159 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32
33namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
34{
35 /// <summary>
36 /// A PrologException is used as the exception thrown by YP.throw(Term).
37 /// </summary>
38 public class PrologException : Exception
39 {
40 public readonly object _term;
41
42 /// <summary>
43 /// Create a PrologException with the given Term. The printable exception message is the full Term.
44 /// </summary>
45 /// <param name="Term">the term of the exception</param>
46 public PrologException(object Term)
47 : base(YP.getValue(Term).ToString())
48 {
49 _term = YP.makeCopy(Term, new Variable.CopyStore());
50 }
51
52 /// <summary>
53 /// Create a PrologException where the Term is error(ErrorTerm, Message).
54 /// This uses YP.makeCopy to copy the ErrorTerm and Message so that they are valid after unbinding.
55 /// </summary>
56 /// <param name="ErrorTerm">the error term of the error</param>
57 /// <param name="Messsage">the message term of the error. If this is a string, it is converted to an
58 /// Atom so it can be used by Prolog code.
59 /// Message, converted to a string, is use as the printable exception message.
60 /// </param>
61 public PrologException(object ErrorTerm, object Message)
62 : base(YP.getValue(Message).ToString())
63 {
64 if (Message is string)
65 Message = Atom.a((string)Message);
66 _term = YP.makeCopy(new Functor2(Atom.a("error"), ErrorTerm, Message), new Variable.CopyStore());
67 }
68
69 public class TypeErrorInfo
70 {
71 public readonly Atom _Type;
72 public readonly object _Culprit;
73 public readonly object _Message;
74
75 public TypeErrorInfo(Atom Type, object Culprit, object Message)
76 {
77 _Type = Type;
78 _Culprit = Culprit;
79 _Message = Message;
80 }
81 }
82 /// <summary>
83 /// Return the TypeErrorInfo for this exception, or null if _term does not match
84 /// error(type_error(Type, Culprit), Message).
85 /// </summary>
86 /// <returns></returns>
87 public TypeErrorInfo getTypeErrorInfo()
88 {
89 if (!(_term is Functor2 && ((Functor2)_term)._name._name == "error"))
90 return null;
91 object errorTerm = ((Functor2)_term)._arg1;
92 if (!(errorTerm is Functor2 && ((Functor2)errorTerm)._name._name == "type_error"))
93 return null;
94 if (!(((Functor2)errorTerm)._arg1 is Atom))
95 return null;
96 return new TypeErrorInfo
97 ((Atom)((Functor2)errorTerm)._arg1, ((Functor2)errorTerm)._arg2, ((Functor2)_term)._arg2);
98 }
99
100 public class ExistenceErrorInfo
101 {
102 public readonly Atom _Type;
103 public readonly object _Culprit;
104 public readonly object _Message;
105
106 public ExistenceErrorInfo(Atom Type, object Culprit, object Message)
107 {
108 _Type = Type;
109 _Culprit = Culprit;
110 _Message = Message;
111 }
112
113 /// <summary>
114 /// If _Type is procedure and _Culprit is name/artity, return the name. Otherwise return null.
115 /// </summary>
116 /// <returns></returns>
117 public object getProcedureName()
118 {
119 if (!(_Type._name == "procedure" &&
120 _Culprit is Functor2 && ((Functor2)_Culprit)._name == Atom.SLASH))
121 return null;
122 return ((Functor2)_Culprit)._arg1;
123 }
124
125 /// <summary>
126 /// If _Type is procedure and _Culprit is name/arity and arity is an integer, return the arity.
127 /// Otherwise return -1.
128 /// </summary>
129 /// <returns></returns>
130 public int getProcedureArity()
131 {
132 if (!(_Type._name == "procedure" &&
133 _Culprit is Functor2 && ((Functor2)_Culprit)._name == Atom.SLASH))
134 return -1;
135 if (!(((Functor2)_Culprit)._arg2 is int))
136 return -1;
137 return (int)((Functor2)_Culprit)._arg2;
138 }
139 }
140 /// <summary>
141 /// Return the ExistenceErrorInfo for this exception, or null if _term does not match
142 /// error(existence_error(Type, Culprit), Message). If the returned ExistenceErrorInfo _Culprit is
143 /// procedure, you can use its getProcedureName and getProcedureArity.
144 /// </summary>
145 /// <returns></returns>
146 public ExistenceErrorInfo getExistenceErrorInfo()
147 {
148 if (!(_term is Functor2 && ((Functor2)_term)._name._name == "error"))
149 return null;
150 object errorTerm = ((Functor2)_term)._arg1;
151 if (!(errorTerm is Functor2 && ((Functor2)errorTerm)._name._name == "existence_error"))
152 return null;
153 if (!(((Functor2)errorTerm)._arg1 is Atom))
154 return null;
155 return new ExistenceErrorInfo
156 ((Atom)((Functor2)errorTerm)._arg1, ((Functor2)errorTerm)._arg2, ((Functor2)_term)._arg2);
157 }
158 }
159}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Properties/AssemblyInfo.cs
deleted file mode 100644
index f6d5d41..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,33 +0,0 @@
1using System.Reflection;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5// General Information about an assembly is controlled through the following
6// set of attributes. Change these attribute values to modify the information
7// associated with an assembly.
8[assembly: AssemblyTitle("OpenSim.Region.ScriptEngine.Shared.YieldProlog")]
9[assembly: AssemblyDescription("")]
10[assembly: AssemblyConfiguration("")]
11[assembly: AssemblyCompany("http://opensimulator.org")]
12[assembly: AssemblyProduct("OpenSim")]
13[assembly: AssemblyCopyright("OpenSimulator developers")]
14[assembly: AssemblyTrademark("")]
15[assembly: AssemblyCulture("")]
16
17// Setting ComVisible to false makes the types in this assembly not visible
18// to COM components. If you need to access a type in this assembly from
19// COM, set the ComVisible attribute to true on that type.
20[assembly: ComVisible(false)]
21
22// The following GUID is for the ID of the typelib if this project is exposed to COM
23[assembly: Guid("8df98e6b-0425-44d6-8d91-2b3b4c56acdf")]
24
25// Version information for an assembly consists of the following four values:
26//
27// Major Version
28// Minor Version
29// Build Number
30// Revision
31//
32[assembly: AssemblyVersion("0.7.5.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/UndefinedPredicateException.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/UndefinedPredicateException.cs
deleted file mode 100644
index 4b6112f..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/UndefinedPredicateException.cs
+++ /dev/null
@@ -1,62 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32
33namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
34{
35 /// <summary>
36 /// An UndefinedPredicateException extends PrologException to create an existence_error exception.
37 /// </summary>
38 public class UndefinedPredicateException : PrologException
39 {
40 private Atom _predicateName;
41 private int _arity;
42
43 public UndefinedPredicateException(object message, Atom predicateName, int arity)
44 : base(new Functor2
45 (Atom.a("existence_error"), Atom.a("procedure"), new Functor2(Atom.a("/"), predicateName, arity)),
46 message)
47 {
48 _predicateName = predicateName;
49 _arity = arity;
50 }
51
52 public Atom PredicateName
53 {
54 get { return _predicateName; }
55 }
56
57 public int Arity
58 {
59 get { return _arity; }
60 }
61 }
62}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Variable.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Variable.cs
deleted file mode 100644
index ea5b7a6..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/Variable.cs
+++ /dev/null
@@ -1,222 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections;
33using System.Collections.Generic;
34
35namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
36{
37 public interface IUnifiable
38 {
39 IEnumerable<bool> unify(object arg);
40 void addUniqueVariables(List<Variable> variableSet);
41 object makeCopy(Variable.CopyStore copyStore);
42 bool termEqual(object term);
43 bool ground();
44 }
45
46 /// <summary>
47 /// A Variable is passed to a function so that it can be unified with
48 /// value or another Variable. See getValue and unify for details.
49 /// </summary>
50 public class Variable : IUnifiable
51 {
52 // Use _isBound separate from _value so that it can be bound to any value,
53 // including null.
54 private bool _isBound = false;
55 private object _value;
56
57 /// <summary>
58 /// If this Variable is unbound, then just return this Variable.
59 /// Otherwise, if this has been bound to a value with unify, return the value.
60 /// If the bound value is another Variable, this follows the "variable chain"
61 /// to the end and returns the final value, or the final Variable if it is unbound.
62 /// For more details, see http://yieldprolog.sourceforge.net/tutorial1.html
63 /// </summary>
64 /// <returns></returns>
65 public object getValue()
66 {
67 if (!_isBound)
68 return this;
69
70 object result = _value;
71 while (result is Variable)
72 {
73 if (!((Variable)result)._isBound)
74 return result;
75
76 // Keep following the Variable chain.
77 result = ((Variable)result)._value;
78 }
79
80 return result;
81 }
82
83 /// <summary>
84 /// If this Variable is bound, then just call YP.unify to unify this with arg.
85 /// (Note that if arg is an unbound Variable, then YP.unify will bind it to
86 /// this Variable's value.)
87 /// Otherwise, bind this Variable to YP.getValue(arg) and yield once. After the
88 /// yield, return this Variable to the unbound state.
89 /// For more details, see http://yieldprolog.sourceforge.net/tutorial1.html
90 /// </summary>
91 /// <param name="arg"></param>
92 /// <returns></returns>
93 public IEnumerable<bool> unify(object arg)
94 {
95 if (!_isBound)
96 {
97 _value = YP.getValue(arg);
98 if (_value == this)
99 // We are unifying this unbound variable with itself, so leave it unbound.
100 yield return false;
101 else
102 {
103 _isBound = true;
104 try
105 {
106 yield return false;
107 }
108 finally
109 {
110 // Remove the binding.
111 _isBound = false;
112 }
113 }
114 }
115 else
116 {
117 // disable warning on l1, don't see how we can
118 // code this differently
119 #pragma warning disable 0168, 0219
120 foreach (bool l1 in YP.unify(this, arg))
121 yield return false;
122 #pragma warning restore 0168, 0219
123 }
124 }
125
126 public override string ToString()
127 {
128 object value = getValue();
129 if (value == this)
130 return "_Variable";
131 else
132 return getValue().ToString();
133 }
134
135 /// <summary>
136 /// If bound, call YP.addUniqueVariables on the value. Otherwise, if this unbound
137 /// variable is not already in variableSet, add it.
138 /// </summary>
139 /// <param name="variableSet"></param>
140 public void addUniqueVariables(List<Variable> variableSet)
141 {
142 if (_isBound)
143 YP.addUniqueVariables(getValue(), variableSet);
144 else
145 {
146 if (variableSet.IndexOf(this) < 0)
147 variableSet.Add(this);
148 }
149 }
150
151 /// <summary>
152 /// If bound, return YP.makeCopy for the value, else return copyStore.getCopy(this).
153 /// However, if copyStore is null, just return this.
154 /// </summary>
155 /// <param name="copyStore"></param>
156 /// <returns></returns>
157 public object makeCopy(Variable.CopyStore copyStore)
158 {
159 if (_isBound)
160 return YP.makeCopy(getValue(), copyStore);
161 else
162 return copyStore == null ? this : copyStore.getCopy(this);
163 }
164
165 public bool termEqual(object term)
166 {
167 if (_isBound)
168 return YP.termEqual(getValue(), term);
169 else
170 return this == YP.getValue(term);
171 }
172
173 public bool ground()
174 {
175 if (_isBound)
176 // This is usually called by YP.ground which already did getValue, so this
177 // should never be reached, but check anyway.
178 return YP.ground(getValue());
179 else
180 return false;
181 }
182
183 /// <summary>
184 /// A CopyStore is used by makeCopy to track which Variable objects have
185 /// been copied.
186 /// </summary>
187 public class CopyStore
188 {
189 private List<Variable> _inVariableSet = new List<Variable>();
190 private List<Variable> _outVariableSet = new List<Variable>();
191
192 /// <summary>
193 /// If inVariable has already been copied, return its copy. Otherwise,
194 /// return a fresh Variable associated with inVariable.
195 /// </summary>
196 /// <param name="inVariable"></param>
197 /// <returns></returns>
198 public Variable getCopy(Variable inVariable)
199 {
200 int index = _inVariableSet.IndexOf(inVariable);
201 if (index >= 0)
202 return _outVariableSet[index];
203 else
204 {
205 Variable outVariable = new Variable();
206 _inVariableSet.Add(inVariable);
207 _outVariableSet.Add(outVariable);
208 return outVariable;
209 }
210 }
211
212 /// <summary>
213 /// Return the number of unique variables that have been copied.
214 /// </summary>
215 /// <returns></returns>
216 public int getNUniqueVariables()
217 {
218 return _inVariableSet.Count;
219 }
220 }
221 }
222}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
deleted file mode 100644
index f2171dd..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
+++ /dev/null
@@ -1,2701 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.Collections;
33using System.Collections.Generic;
34using System.IO;
35using System.Reflection;
36using System.Net.Sockets;
37using System.Text;
38using System.Text.RegularExpressions;
39using log4net;
40
41namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
42{
43 /// <summary>
44 /// YP has static methods for general functions in Yield Prolog such as <see cref="getValue"/>
45 /// and <see cref="unify"/>.
46 /// </summary>
47 public class YP
48 {
49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
50 private static Fail _fail = new Fail();
51 private static Repeat _repeat = new Repeat();
52 private static Dictionary<NameArity, List<IClause>> _predicatesStore =
53 new Dictionary<NameArity, List<IClause>>();
54 private static TextWriter _outputStream = System.Console.Out;
55 private static TextReader _inputStream = System.Console.In;
56 private static IndexedAnswers _operatorTable = null;
57 private static Dictionary<string, object> _prologFlags = new Dictionary<string, object>();
58 public const int MAX_ARITY = 255;
59
60 /// <summary>
61 /// An IClause is used so that dynamic predicates can call match.
62 /// </summary>
63 public interface IClause
64 {
65 IEnumerable<bool> match(object[] args);
66 IEnumerable<bool> clause(object Head, object Body);
67 }
68
69 /// <summary>
70 /// If value is a Variable, then return its getValue. Otherwise, just
71 /// return value. You should call YP.getValue on any object that
72 /// may be a Variable to get the value to pass to other functions in
73 /// your system that are not part of Yield Prolog, such as math functions
74 /// or file I/O.
75 /// For more details, see http://yieldprolog.sourceforge.net/tutorial1.html
76 /// </summary>
77 /// <param name="value"></param>
78 /// <returns></returns>
79 public static object getValue(object value)
80 {
81 if (value is Variable)
82 return ((Variable)value).getValue();
83 else
84 return value;
85 }
86
87 /// <summary>
88 /// If arg1 or arg2 is an object with a unify method (such as Variable or
89 /// Functor) then just call its unify with the other argument. The object's
90 /// unify method will bind the values or check for equals as needed.
91 /// Otherwise, both arguments are "normal" (atomic) values so if they
92 /// are equal then succeed (yield once), else fail (don't yield).
93 /// For more details, see http://yieldprolog.sourceforge.net/tutorial1.html
94 /// </summary>
95 /// <param name="arg1"></param>
96 /// <param name="arg2"></param>
97 /// <returns></returns>
98 public static IEnumerable<bool> unify(object arg1, object arg2)
99 {
100 arg1 = getValue(arg1);
101 arg2 = getValue(arg2);
102 if (arg1 is IUnifiable)
103 return ((IUnifiable)arg1).unify(arg2);
104 else if (arg2 is IUnifiable)
105 return ((IUnifiable)arg2).unify(arg1);
106 else
107 {
108 // Arguments are "normal" types.
109 if (arg1.Equals(arg2))
110 return new Succeed();
111 else
112 return _fail;
113 }
114 }
115
116 /// <summary>
117 /// This is used for the lookup key in _factStore.
118 /// </summary>
119 public struct NameArity
120 {
121 public readonly Atom _name;
122 public readonly int _arity;
123
124 public NameArity(Atom name, int arity)
125 {
126 _name = name;
127 _arity = arity;
128 }
129
130 public override bool Equals(object obj)
131 {
132 if (obj is NameArity)
133 {
134 NameArity nameArity = (NameArity)obj;
135 return nameArity._name.Equals(_name) && nameArity._arity.Equals(_arity);
136 }
137 else
138 {
139 return false;
140 }
141 }
142
143 public override int GetHashCode()
144 {
145 return _name.GetHashCode() ^ _arity.GetHashCode();
146 }
147 }
148
149 /// <summary>
150 /// Convert term to an int.
151 /// If term is a single-element List, use its first element
152 /// (to handle the char types like "a").
153 /// If can't convert, throw a PrologException for type_error evaluable (because this is only
154 /// called from arithmetic functions).
155 /// </summary>
156 /// <param name="term"></param>
157 /// <returns></returns>
158 public static int convertInt(object term)
159 {
160 term = YP.getValue(term);
161 if (term is Functor2 && ((Functor2)term)._name == Atom.DOT &&
162 YP.getValue(((Functor2)term)._arg2) == Atom.NIL)
163 // Assume it is a char type like "a".
164 term = YP.getValue(((Functor2)term)._arg1);
165 if (term is Variable)
166 throw new PrologException(Atom.a("instantiation_error"),
167 "Expected a number but the argument is an unbound variable");
168
169 try
170 {
171 return (int)term;
172 }
173 catch (InvalidCastException)
174 {
175 throw new PrologException
176 (new Functor2
177 ("type_error", Atom.a("evaluable"),
178 new Functor2(Atom.SLASH, getFunctorName(term), getFunctorArgs(term).Length)),
179 "Term must be an integer");
180 }
181 }
182
183 /// <summary>
184 /// Convert term to a double. This may convert an int to a double, etc.
185 /// If term is a single-element List, use its first element
186 /// (to handle the char types like "a").
187 /// If can't convert, throw a PrologException for type_error evaluable (because this is only
188 /// called from arithmetic functions).
189 /// </summary>
190 /// <param name="term"></param>
191 /// <returns></returns>
192 public static double convertDouble(object term)
193 {
194 term = YP.getValue(term);
195 if (term is Functor2 && ((Functor2)term)._name == Atom.DOT &&
196 YP.getValue(((Functor2)term)._arg2) == Atom.NIL)
197 // Assume it is a char type like "a".
198 term = YP.getValue(((Functor2)term)._arg1);
199 if (term is Variable)
200 throw new PrologException(Atom.a("instantiation_error"),
201 "Expected a number but the argument is an unbound variable");
202
203 try
204 {
205 return Convert.ToDouble(term);
206 }
207 catch (InvalidCastException)
208 {
209 throw new PrologException
210 (new Functor2
211 ("type_error", Atom.a("evaluable"),
212 new Functor2(Atom.SLASH, getFunctorName(term), getFunctorArgs(term).Length)),
213 "Term must be an integer");
214 }
215 }
216
217 /// <summary>
218 /// If term is an integer, set intTerm.
219 /// If term is a single-element List, use its first element
220 /// (to handle the char types like "a"). Return true for success, false if can't convert.
221 /// We use a success return value because throwing an exception is inefficient.
222 /// </summary>
223 /// <param name="term"></param>
224 /// <returns></returns>
225 public static bool getInt(object term, out int intTerm)
226 {
227 term = YP.getValue(term);
228 if (term is Functor2 && ((Functor2)term)._name == Atom.DOT &&
229 YP.getValue(((Functor2)term)._arg2) == Atom.NIL)
230 // Assume it is a char type like "a".
231 term = YP.getValue(((Functor2)term)._arg1);
232
233 if (term is int)
234 {
235 intTerm = (int)term;
236 return true;
237 }
238
239 intTerm = 0;
240 return false;
241 }
242
243 public static bool equal(object x, object y)
244 {
245 x = YP.getValue(x);
246 if (x is DateTime)
247 return (DateTime)x == (DateTime)YP.getValue(y);
248 // Assume convertDouble converts an int to a double perfectly.
249 return YP.convertDouble(x) == YP.convertDouble(y);
250 }
251
252 public static bool notEqual(object x, object y)
253 {
254 x = YP.getValue(x);
255 if (x is DateTime)
256 return (DateTime)x != (DateTime)YP.getValue(y);
257 // Assume convertDouble converts an int to a double perfectly.
258 return YP.convertDouble(x) != YP.convertDouble(y);
259 }
260
261 public static bool greaterThan(object x, object y)
262 {
263 x = YP.getValue(x);
264 if (x is DateTime)
265 return (DateTime)x > (DateTime)YP.getValue(y);
266 // Assume convertDouble converts an int to a double perfectly.
267 return YP.convertDouble(x) > YP.convertDouble(y);
268 }
269
270 public static bool lessThan(object x, object y)
271 {
272 x = YP.getValue(x);
273 if (x is DateTime)
274 return (DateTime)x < (DateTime)YP.getValue(y);
275 // Assume convertDouble converts an int to a double perfectly.
276 return YP.convertDouble(x) < YP.convertDouble(y);
277 }
278
279 public static bool greaterThanOrEqual(object x, object y)
280 {
281 x = YP.getValue(x);
282 if (x is DateTime)
283 return (DateTime)x >= (DateTime)YP.getValue(y);
284 // Assume convertDouble converts an int to a double perfectly.
285 return YP.convertDouble(x) >= YP.convertDouble(y);
286 }
287
288 public static bool lessThanOrEqual(object x, object y)
289 {
290 x = YP.getValue(x);
291 if (x is DateTime)
292 return (DateTime)x <= (DateTime)YP.getValue(y);
293 // Assume convertDouble converts an int to a double perfectly.
294 return YP.convertDouble(x) <= YP.convertDouble(y);
295 }
296
297 public static object negate(object x)
298 {
299 int intX;
300 if (getInt(x, out intX))
301 return -intX;
302 return -convertDouble(x);
303 }
304
305 public static object abs(object x)
306 {
307 int intX;
308 if (getInt(x, out intX))
309 return Math.Abs(intX);
310 return Math.Abs(convertDouble(x));
311 }
312
313 public static object sign(object x)
314 {
315 int intX;
316 if (getInt(x, out intX))
317 return Math.Sign(intX);
318 return Math.Sign(convertDouble(x));
319 }
320
321 // Use toFloat instead of float because it is a reserved keyword.
322 public static object toFloat(object x)
323 {
324 return convertDouble(x);
325 }
326
327 /// <summary>
328 /// The ISO standard returns an int.
329 /// </summary>
330 /// <param name="x"></param>
331 /// <returns></returns>
332 public static object floor(object x)
333 {
334 return (int)Math.Floor(convertDouble(x));
335 }
336
337 /// <summary>
338 /// The ISO standard returns an int.
339 /// </summary>
340 /// <param name="x"></param>
341 /// <returns></returns>
342 public static object truncate(object x)
343 {
344 return (int)Math.Truncate(convertDouble(x));
345 }
346
347 /// <summary>
348 /// The ISO standard returns an int.
349 /// </summary>
350 /// <param name="x"></param>
351 /// <returns></returns>
352 public static object round(object x)
353 {
354 return (int)Math.Round(convertDouble(x));
355 }
356
357 /// <summary>
358 /// The ISO standard returns an int.
359 /// </summary>
360 /// <param name="x"></param>
361 /// <returns></returns>
362 public static object ceiling(object x)
363 {
364 return (int)Math.Ceiling(convertDouble(x));
365 }
366
367 public static object sin(object x)
368 {
369 return Math.Sin(YP.convertDouble(x));
370 }
371
372 public static object cos(object x)
373 {
374 return Math.Cos(YP.convertDouble(x));
375 }
376
377 public static object atan(object x)
378 {
379 return Math.Atan(YP.convertDouble(x));
380 }
381
382 public static object exp(object x)
383 {
384 return Math.Exp(YP.convertDouble(x));
385 }
386
387 public static object log(object x)
388 {
389 return Math.Log(YP.convertDouble(x));
390 }
391
392 public static object sqrt(object x)
393 {
394 return Math.Sqrt(convertDouble(x));
395 }
396
397 public static object bitwiseComplement(object x)
398 {
399 return ~YP.convertInt(x);
400 }
401
402 public static object add(object x, object y)
403 {
404 int intX, intY;
405 if (getInt(x, out intX) && getInt(y, out intY))
406 return intX + intY;
407 return convertDouble(x) + convertDouble(y);
408 }
409
410 public static object subtract(object x, object y)
411 {
412 int intX, intY;
413 if (getInt(x, out intX) && getInt(y, out intY))
414 return intX - intY;
415 return convertDouble(x) - convertDouble(y);
416 }
417
418 public static object multiply(object x, object y)
419 {
420 int intX, intY;
421 if (getInt(x, out intX) && getInt(y, out intY))
422 return intX * intY;
423 return convertDouble(x) * convertDouble(y);
424 }
425
426 /// <summary>
427 /// Return floating point, even if both arguments are integer.
428 /// </summary>
429 /// <param name="x"></param>
430 /// <param name="y"></param>
431 /// <returns></returns>
432 public static object divide(object x, object y)
433 {
434 return convertDouble(x) / convertDouble(y);
435 }
436
437 public static object intDivide(object x, object y)
438 {
439 int intX, intY;
440 if (getInt(x, out intX) && getInt(y, out intY))
441 return intX / intY;
442 // Still allow passing a double, but treat as an int.
443 return (int)convertDouble(x) / (int)convertDouble(y);
444 }
445
446 public static object mod(object x, object y)
447 {
448 int intX, intY;
449 if (getInt(x, out intX) && getInt(y, out intY))
450 return intX % intY;
451 // Still allow passing a double, but treat as an int.
452 return (int)convertDouble(x) % (int)convertDouble(y);
453 }
454
455 public static object pow(object x, object y)
456 {
457 return Math.Pow(YP.convertDouble(x), YP.convertDouble(y));
458 }
459
460 public static object bitwiseShiftRight(object x, object y)
461 {
462 return YP.convertInt(x) >> YP.convertInt(y);
463 }
464
465 public static object bitwiseShiftLeft(object x, object y)
466 {
467 return YP.convertInt(x) << YP.convertInt(y);
468 }
469
470 public static object bitwiseAnd(object x, object y)
471 {
472 return YP.convertInt(x) & YP.convertInt(y);
473 }
474
475 public static object bitwiseOr(object x, object y)
476 {
477 return YP.convertInt(x) | YP.convertInt(y);
478 }
479
480 public static object min(object x, object y)
481 {
482 int intX, intY;
483 if (getInt(x, out intX) && getInt(y, out intY))
484 return Math.Min(intX, intY);
485 return Math.Min(convertDouble(x), convertDouble(y));
486 }
487
488 public static object max(object x, object y)
489 {
490 int intX, intY;
491 if (getInt(x, out intX) && getInt(y, out intY))
492 return Math.Max(intX, intY);
493 return Math.Max(convertDouble(x), convertDouble(y));
494 }
495
496 public static IEnumerable<bool> copy_term(object inTerm, object outTerm)
497 {
498 return YP.unify(outTerm, YP.makeCopy(inTerm, new Variable.CopyStore()));
499 }
500
501 public static void addUniqueVariables(object term, List<Variable> variableSet)
502 {
503 term = YP.getValue(term);
504 if (term is IUnifiable)
505 ((IUnifiable)term).addUniqueVariables(variableSet);
506 }
507
508 public static object makeCopy(object term, Variable.CopyStore copyStore)
509 {
510 term = YP.getValue(term);
511 if (term is IUnifiable)
512 return ((IUnifiable)term).makeCopy(copyStore);
513 else
514 // term is a "normal" type. Assume it is ground.
515 return term;
516 }
517
518 /// <summary>
519 /// Sort the array in place according to termLessThan. This does not remove duplicates
520 /// </summary>
521 /// <param name="array"></param>
522 public static void sortArray(object[] array)
523 {
524 Array.Sort(array, YP.compareTerms);
525 }
526
527 /// <summary>
528 /// Sort the array in place according to termLessThan. This does not remove duplicates
529 /// </summary>
530 /// <param name="array"></param>
531 public static void sortArray(List<object> array)
532 {
533 array.Sort(YP.compareTerms);
534 }
535
536 /// <summary>
537 /// Sort List according to termLessThan, remove duplicates and unify with Sorted.
538 /// </summary>
539 /// <param name="List"></param>
540 /// <param name="Sorted"></param>
541 /// <returns></returns>
542 public static IEnumerable<bool> sort(object List, object Sorted)
543 {
544 object[] array = ListPair.toArray(List);
545 if (array == null)
546 return YP.fail();
547 if (array.Length > 1)
548 sortArray(array);
549 return YP.unify(Sorted, ListPair.makeWithoutRepeatedTerms(array));
550 }
551
552 /// <summary>
553 /// Use YP.unify to unify each of the elements of the two arrays, and yield
554 /// once if they all unify.
555 /// </summary>
556 /// <param name="array1"></param>
557 /// <param name="array2"></param>
558 /// <returns></returns>
559 public static IEnumerable<bool> unifyArrays(object[] array1, object[] array2)
560 {
561 if (array1.Length != array2.Length)
562 yield break;
563
564 IEnumerator<bool>[] iterators = new IEnumerator<bool>[array1.Length];
565 bool gotMatch = true;
566 int nIterators = 0;
567 // Try to bind all the arguments.
568 for (int i = 0; i < array1.Length; ++i)
569 {
570 IEnumerator<bool> iterator = YP.unify(array1[i], array2[i]).GetEnumerator();
571 iterators[nIterators++] = iterator;
572 // MoveNext() is true if YP.unify succeeds.
573 if (!iterator.MoveNext())
574 {
575 gotMatch = false;
576 break;
577 }
578 }
579 int z = 0;
580 try
581 {
582 if (gotMatch)
583 yield return false;
584 }
585 finally
586 {
587 // Manually finalize all the iterators.
588 for (z = 0; z < nIterators; ++z)
589 iterators[z].Dispose();
590 }
591 }
592
593 /// <summary>
594 /// Return an iterator (which you can use in a for-in loop) which does
595 /// zero iterations. This returns a pre-existing iterator which is
596 /// more efficient than letting the compiler generate a new one.
597 /// </summary>
598 /// <returns></returns>
599 public static IEnumerable<bool> fail()
600 {
601 return _fail;
602 }
603
604 /// <summary>
605 /// Return an iterator (which you can use in a for-in loop) which does
606 /// one iteration. This returns a pre-existing iterator which is
607 /// more efficient than letting the compiler generate a new one.
608 /// </summary>
609 /// <returns></returns>
610 public static IEnumerable<bool> succeed()
611 {
612 return new Succeed();
613 }
614
615 /// <summary>
616 /// Return an iterator (which you can use in a for-in loop) which repeats
617 /// indefinitely. This returns a pre-existing iterator which is
618 /// more efficient than letting the compiler generate a new one.
619 /// </summary>
620 /// <returns></returns>
621 public static IEnumerable<bool> repeat()
622 {
623 return _repeat;
624 }
625
626 // disable warning on l1, don't see how we can
627 // code this differently
628 #pragma warning disable 0168, 0219
629 public static IEnumerable<bool> univ(object Term, object List)
630 {
631 Term = YP.getValue(Term);
632 List = YP.getValue(List);
633
634 if (nonvar(Term))
635 return YP.unify(new ListPair
636 (getFunctorName(Term), ListPair.make(getFunctorArgs(Term))), List);
637
638 Variable Name = new Variable();
639 Variable ArgList = new Variable();
640 foreach (bool l1 in new ListPair(Name, ArgList).unify(List))
641 {
642 object[] args = ListPair.toArray(ArgList);
643 if (args == null)
644 throw new PrologException
645 (new Functor2("type_error", Atom.a("list"), ArgList),
646 "Expected a list. Got: " + ArgList.getValue());
647 if (args.Length == 0)
648 // Return the Name, even if it is not an Atom.
649 return YP.unify(Term, Name);
650 if (args.Length > MAX_ARITY)
651 throw new PrologException
652 (new Functor1("representation_error", Atom.a("max_arity")),
653 "Functor arity " + args.Length + " may not be greater than " + MAX_ARITY);
654 if (!atom(Name))
655 throw new PrologException
656 (new Functor2("type_error", Atom.a("atom"), Name),
657 "Expected an atom. Got: " + Name.getValue());
658
659 return YP.unify(Term, Functor.make((Atom)YP.getValue(Name), args));
660 }
661
662 return YP.fail();
663 }
664
665 public static IEnumerable<bool> functor(object Term, object FunctorName, object Arity)
666 {
667 Term = YP.getValue(Term);
668 FunctorName = YP.getValue(FunctorName);
669 Arity = YP.getValue(Arity);
670
671 if (Term is Variable)
672 {
673 if (FunctorName is Variable)
674 throw new PrologException(Atom.a("instantiation_error"),
675 "Arg 2 FunctorName is an unbound variable");
676 if (Arity is Variable)
677 throw new PrologException(Atom.a("instantiation_error"),
678 "Arg 3 Arity is an unbound variable");
679 if (!(Arity is int))
680 throw new PrologException
681 (new Functor2("type_error", Atom.a("integer"), Arity), "Arity is not an integer");
682 if (!YP.atomic(FunctorName))
683 throw new PrologException
684 (new Functor2("type_error", Atom.a("atomic"), FunctorName), "FunctorName is not atomic");
685
686 if ((int)Arity < 0)
687 throw new PrologException
688 (new Functor2("domain_error", Atom.a("not_less_than_zero"), Arity),
689 "Arity may not be less than zero");
690 else if ((int)Arity == 0)
691 {
692 // Just unify Term with the atomic FunctorName.
693 foreach (bool l1 in YP.unify(Term, FunctorName))
694 yield return false;
695 }
696 else
697 {
698 if ((int)Arity > MAX_ARITY)
699 throw new PrologException
700 (new Functor1("representation_error", Atom.a("max_arity")),
701 "Functor arity " + Arity + " may not be greater than " + MAX_ARITY);
702 if (!(FunctorName is Atom))
703 throw new PrologException
704 (new Functor2("type_error", Atom.a("atom"), FunctorName), "FunctorName is not an atom");
705 // Construct a functor with unbound variables.
706 object[] args = new object[(int)Arity];
707 for (int i = 0; i < args.Length; ++i)
708 args[i] = new Variable();
709 foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
710 yield return false;
711 }
712 }
713 else
714 {
715 foreach (bool l1 in YP.unify(FunctorName, getFunctorName(Term)))
716 {
717 foreach (bool l2 in YP.unify(Arity, getFunctorArgs(Term).Length))
718 yield return false;
719 }
720 }
721 }
722
723 public static IEnumerable<bool> arg(object ArgNumber, object Term, object Value)
724 {
725 if (var(ArgNumber))
726 throw new PrologException(Atom.a("instantiation_error"), "Arg 1 ArgNumber is an unbound variable");
727 int argNumberInt;
728 if (!getInt(ArgNumber, out argNumberInt))
729 throw new PrologException
730 (new Functor2("type_error", Atom.a("integer"), ArgNumber), "Arg 1 ArgNumber must be integer");
731 if (argNumberInt < 0)
732 throw new PrologException
733 (new Functor2("domain_error", Atom.a("not_less_than_zero"), argNumberInt),
734 "ArgNumber may not be less than zero");
735
736 if (YP.var(Term))
737 throw new PrologException(Atom.a("instantiation_error"),
738 "Arg 2 Term is an unbound variable");
739 if (!YP.compound(Term))
740 throw new PrologException
741 (new Functor2("type_error", Atom.a("compound"), Term), "Arg 2 Term must be compound");
742
743 object[] termArgs = YP.getFunctorArgs(Term);
744 // Silently fail if argNumberInt is out of range.
745 if (argNumberInt >= 1 && argNumberInt <= termArgs.Length)
746 {
747 // The first ArgNumber is at 1, not 0.
748 foreach (bool l1 in YP.unify(Value, termArgs[argNumberInt - 1]))
749 yield return false;
750 }
751 }
752
753 public static bool termEqual(object Term1, object Term2)
754 {
755 Term1 = YP.getValue(Term1);
756 if (Term1 is IUnifiable)
757 return ((IUnifiable)Term1).termEqual(Term2);
758 return Term1.Equals(YP.getValue(Term2));
759 }
760
761 public static bool termNotEqual(object Term1, object Term2)
762 {
763 return !termEqual(Term1, Term2);
764 }
765
766 public static bool termLessThan(object Term1, object Term2)
767 {
768 Term1 = YP.getValue(Term1);
769 Term2 = YP.getValue(Term2);
770 int term1TypeCode = getTypeCode(Term1);
771 int term2TypeCode = getTypeCode(Term2);
772 if (term1TypeCode != term2TypeCode)
773 return term1TypeCode < term2TypeCode;
774
775 // The terms are the same type code.
776 if (term1TypeCode == -2)
777 {
778 // Variable.
779 // We always check for equality first because we want to be sure
780 // that less than returns false if the terms are equal, in
781 // case that the less than check really behaves like less than or equal.
782 if ((Variable)Term1 != (Variable)Term2)
783 // The hash code should be unique to a Variable object.
784 return Term1.GetHashCode() < Term2.GetHashCode();
785 return false;
786 }
787 if (term1TypeCode == 0)
788 return ((Atom)Term1)._name.CompareTo(((Atom)Term2)._name) < 0;
789 if (term1TypeCode == 1)
790 return ((Functor1)Term1).lessThan((Functor1)Term2);
791 if (term1TypeCode == 2)
792 return ((Functor2)Term1).lessThan((Functor2)Term2);
793 if (term1TypeCode == 3)
794 return ((Functor3)Term1).lessThan((Functor3)Term2);
795 if (term1TypeCode == 4)
796 return ((Functor)Term1).lessThan((Functor)Term2);
797
798 // Type code is -1 for general objects. First compare their type names.
799 // Note that this puts Double before Int32 as required by ISO Prolog.
800 string term1TypeName = Term1.GetType().ToString();
801 string term2TypeName = Term2.GetType().ToString();
802 if (term1TypeName != term2TypeName)
803 return term1TypeName.CompareTo(term2TypeName) < 0;
804
805 // The terms are the same type name.
806 if (Term1 is int)
807 return (int)Term1 < (int)Term2;
808 else if (Term1 is double)
809 return (double)Term1 < (double)Term2;
810 else if (Term1 is DateTime)
811 return (DateTime)Term1 < (DateTime)Term2;
812 else if (Term1 is String)
813 return ((String)Term1).CompareTo((String)Term2) < 0;
814 // Debug: Should we try arrays, etc.?
815
816 if (!Term1.Equals(Term2))
817 // Could be equal or greater than.
818 return Term1.GetHashCode() < Term2.GetHashCode();
819 return false;
820 }
821
822 /// <summary>
823 /// Type code is -2 if term is a Variable, 0 if it is an Atom,
824 /// 1 if it is a Functor1, 2 if it is a Functor2, 3 if it is a Functor3,
825 /// 4 if it is Functor.
826 /// Otherwise, type code is -1.
827 /// This does not call YP.getValue(term).
828 /// </summary>
829 /// <param name="term"></param>
830 /// <returns></returns>
831 private static int getTypeCode(object term)
832 {
833 if (term is Variable)
834 return -2;
835 else if (term is Atom)
836 return 0;
837 else if (term is Functor1)
838 return 1;
839 else if (term is Functor2)
840 return 2;
841 else if (term is Functor3)
842 return 3;
843 else if (term is Functor)
844 return 4;
845 else
846 return -1;
847 }
848
849 public static bool termLessThanOrEqual(object Term1, object Term2)
850 {
851 if (YP.termEqual(Term1, Term2))
852 return true;
853 return YP.termLessThan(Term1, Term2);
854 }
855
856 public static bool termGreaterThan(object Term1, object Term2)
857 {
858 return !YP.termLessThanOrEqual(Term1, Term2);
859 }
860
861 public static bool termGreaterThanOrEqual(object Term1, object Term2)
862 {
863 // termLessThan should ensure that it returns false if terms are equal,
864 // so that this would return true.
865 return !YP.termLessThan(Term1, Term2);
866 }
867
868 public static int compareTerms(object Term1, object Term2)
869 {
870 if (YP.termEqual(Term1, Term2))
871 return 0;
872 else if (YP.termLessThan(Term1, Term2))
873 return -1;
874 else
875 return 1;
876 }
877
878 public static bool ground(object Term)
879 {
880 Term = YP.getValue(Term);
881 if (Term is IUnifiable)
882 return ((IUnifiable)Term).ground();
883 return true;
884 }
885
886 public static IEnumerable<bool> current_op
887 (object Priority, object Specifier, object Operator)
888 {
889 if (_operatorTable == null)
890 {
891 // Initialize.
892 _operatorTable = new IndexedAnswers(3);
893 _operatorTable.addAnswer(new object[] { 1200, Atom.a("xfx"), Atom.a(":-") });
894 _operatorTable.addAnswer(new object[] { 1200, Atom.a("xfx"), Atom.a("-->") });
895 _operatorTable.addAnswer(new object[] { 1200, Atom.a("fx"), Atom.a(":-") });
896 _operatorTable.addAnswer(new object[] { 1200, Atom.a("fx"), Atom.a("?-") });
897 _operatorTable.addAnswer(new object[] { 1100, Atom.a("xfy"), Atom.a(";") });
898 _operatorTable.addAnswer(new object[] { 1050, Atom.a("xfy"), Atom.a("->") });
899 _operatorTable.addAnswer(new object[] { 1000, Atom.a("xfy"), Atom.a(",") });
900 _operatorTable.addAnswer(new object[] { 900, Atom.a("fy"), Atom.a("\\+") });
901 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("=") });
902 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("\\=") });
903 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("==") });
904 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("\\==") });
905 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("@<") });
906 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("@=<") });
907 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("@>") });
908 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("@>=") });
909 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("=..") });
910 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("is") });
911 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("=:=") });
912 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("=\\=") });
913 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("<") });
914 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a("=<") });
915 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a(">") });
916 _operatorTable.addAnswer(new object[] { 700, Atom.a("xfx"), Atom.a(">=") });
917 _operatorTable.addAnswer(new object[] { 600, Atom.a("xfy"), Atom.a(":") });
918 _operatorTable.addAnswer(new object[] { 500, Atom.a("yfx"), Atom.a("+") });
919 _operatorTable.addAnswer(new object[] { 500, Atom.a("yfx"), Atom.a("-") });
920 _operatorTable.addAnswer(new object[] { 500, Atom.a("yfx"), Atom.a("/\\") });
921 _operatorTable.addAnswer(new object[] { 500, Atom.a("yfx"), Atom.a("\\/") });
922 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("*") });
923 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("/") });
924 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("//") });
925 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("rem") });
926 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("mod") });
927 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a("<<") });
928 _operatorTable.addAnswer(new object[] { 400, Atom.a("yfx"), Atom.a(">>") });
929 _operatorTable.addAnswer(new object[] { 200, Atom.a("xfx"), Atom.a("**") });
930 _operatorTable.addAnswer(new object[] { 200, Atom.a("xfy"), Atom.a("^") });
931 _operatorTable.addAnswer(new object[] { 200, Atom.a("fy"), Atom.a("-") });
932 _operatorTable.addAnswer(new object[] { 200, Atom.a("fy"), Atom.a("\\") });
933 // Debug: This is hacked in to run the Prolog test suite until we implement op/3.
934 _operatorTable.addAnswer(new object[] { 20, Atom.a("xfx"), Atom.a("<--") });
935 }
936
937 return _operatorTable.match(new object[] { Priority, Specifier, Operator });
938 }
939
940 public static IEnumerable<bool> atom_length(object atom, object Length)
941 {
942 atom = YP.getValue(atom);
943 Length = YP.getValue(Length);
944 if (atom is Variable)
945 throw new PrologException(Atom.a("instantiation_error"),
946 "Expected atom(Arg1) but it is an unbound variable");
947 if (!(atom is Atom))
948 throw new PrologException
949 (new Functor2("type_error", Atom.a("atom"), atom), "Arg 1 Atom is not an atom");
950 if (!(Length is Variable))
951 {
952 if (!(Length is int))
953 throw new PrologException
954 (new Functor2("type_error", Atom.a("integer"), Length), "Length must be var or integer");
955 if ((int)Length < 0)
956 throw new PrologException
957 (new Functor2("domain_error", Atom.a("not_less_than_zero"), Length),
958 "Length must not be less than zero");
959 }
960 return YP.unify(Length, ((Atom)atom)._name.Length);
961 }
962
963 public static IEnumerable<bool> atom_concat(object Start, object End, object Whole)
964 {
965 // Debug: Should we try to preserve the _declaringClass?
966 Start = YP.getValue(Start);
967 End = YP.getValue(End);
968 Whole = YP.getValue(Whole);
969 if (Whole is Variable)
970 {
971 if (Start is Variable)
972 throw new PrologException(Atom.a("instantiation_error"),
973 "Arg 1 Start and arg 3 Whole are both var");
974 if (End is Variable)
975 throw new PrologException(Atom.a("instantiation_error"),
976 "Arg 2 End and arg 3 Whole are both var");
977 if (!(Start is Atom))
978 throw new PrologException
979 (new Functor2("type_error", Atom.a("atom"), Start), "Arg 1 Start is not an atom");
980 if (!(End is Atom))
981 throw new PrologException
982 (new Functor2("type_error", Atom.a("atom"), End), "Arg 2 End is not an atom");
983
984 foreach (bool l1 in YP.unify(Whole, Atom.a(((Atom)Start)._name + ((Atom)End)._name)))
985 yield return false;
986 }
987 else
988 {
989 if (!(Whole is Atom))
990 throw new PrologException
991 (new Functor2("type_error", Atom.a("atom"), Whole), "Arg 3 Whole is not an atom");
992 bool gotStartLength = false;
993 int startLength = 0;
994 if (!(Start is Variable))
995 {
996 if (!(Start is Atom))
997 throw new PrologException
998 (new Functor2("type_error", Atom.a("atom"), Start), "Arg 1 Start is not var or atom");
999 startLength = ((Atom)Start)._name.Length;
1000 gotStartLength = true;
1001 }
1002
1003 bool gotEndLength = false;
1004 int endLength = 0;
1005 if (!(End is Variable))
1006 {
1007 if (!(End is Atom))
1008 throw new PrologException
1009 (new Functor2("type_error", Atom.a("atom"), End), "Arg 2 End is not var or atom");
1010 endLength = ((Atom)End)._name.Length;
1011 gotEndLength = true;
1012 }
1013
1014 // We are doing a search through all possible Start and End which concatenate to Whole.
1015 string wholeString = ((Atom)Whole)._name;
1016 for (int i = 0; i <= wholeString.Length; ++i)
1017 {
1018 // If we got either startLength or endLength, we know the lengths have to match so check
1019 // the lengths instead of constructing an Atom to do it.
1020 if (gotStartLength && startLength != i)
1021 continue;
1022 if (gotEndLength && endLength != wholeString.Length - i)
1023 continue;
1024 foreach (bool l1 in YP.unify(Start, Atom.a(wholeString.Substring(0, i))))
1025 {
1026 foreach (bool l2 in YP.unify(End, Atom.a(wholeString.Substring(i, wholeString.Length - i))))
1027 yield return false;
1028 }
1029 }
1030 }
1031 }
1032
1033 public static IEnumerable<bool> sub_atom
1034 (object atom, object Before, object Length, object After, object Sub_atom)
1035 {
1036 // Debug: Should we try to preserve the _declaringClass?
1037 atom = YP.getValue(atom);
1038 Before = YP.getValue(Before);
1039 Length = YP.getValue(Length);
1040 After = YP.getValue(After);
1041 Sub_atom = YP.getValue(Sub_atom);
1042 if (atom is Variable)
1043 throw new PrologException(Atom.a("instantiation_error"),
1044 "Expected atom(Arg1) but it is an unbound variable");
1045 if (!(atom is Atom))
1046 throw new PrologException
1047 (new Functor2("type_error", Atom.a("atom"), atom), "Arg 1 Atom is not an atom");
1048 if (!(Sub_atom is Variable))
1049 {
1050 if (!(Sub_atom is Atom))
1051 throw new PrologException
1052 (new Functor2("type_error", Atom.a("atom"), Sub_atom), "Sub_atom is not var or atom");
1053 }
1054
1055 bool beforeIsInt = false;
1056 bool lengthIsInt = false;
1057 bool afterIsInt = false;
1058 if (!(Before is Variable))
1059 {
1060 if (!(Before is int))
1061 throw new PrologException
1062 (new Functor2("type_error", Atom.a("integer"), Before), "Before must be var or integer");
1063 beforeIsInt = true;
1064 if ((int)Before < 0)
1065 throw new PrologException
1066 (new Functor2("domain_error", Atom.a("not_less_than_zero"), Before),
1067 "Before must not be less than zero");
1068 }
1069 if (!(Length is Variable))
1070 {
1071 if (!(Length is int))
1072 throw new PrologException
1073 (new Functor2("type_error", Atom.a("integer"), Length), "Length must be var or integer");
1074 lengthIsInt = true;
1075 if ((int)Length < 0)
1076 throw new PrologException
1077 (new Functor2("domain_error", Atom.a("not_less_than_zero"), Length),
1078 "Length must not be less than zero");
1079 }
1080 if (!(After is Variable))
1081 {
1082 if (!(After is int))
1083 throw new PrologException
1084 (new Functor2("type_error", Atom.a("integer"), After), "After must be var or integer");
1085 afterIsInt = true;
1086 if ((int)After < 0)
1087 throw new PrologException
1088 (new Functor2("domain_error", Atom.a("not_less_than_zero"), After),
1089 "After must not be less than zero");
1090 }
1091
1092 Atom atomAtom = (Atom)atom;
1093 int atomLength = atomAtom._name.Length;
1094 if (beforeIsInt && lengthIsInt)
1095 {
1096 // Special case: the caller is just trying to extract a substring, so do it quickly.
1097 int xAfter = atomLength - (int)Before - (int)Length;
1098 if (xAfter >= 0)
1099 {
1100 foreach (bool l1 in YP.unify(After, xAfter))
1101 {
1102 foreach (bool l2 in YP.unify
1103 (Sub_atom, Atom.a(atomAtom._name.Substring((int)Before, (int)Length))))
1104 yield return false;
1105 }
1106 }
1107 }
1108 else if (afterIsInt && lengthIsInt)
1109 {
1110 // Special case: the caller is just trying to extract a substring, so do it quickly.
1111 int xBefore = atomLength - (int)After - (int)Length;
1112 if (xBefore >= 0)
1113 {
1114 foreach (bool l1 in YP.unify(Before, xBefore))
1115 {
1116 foreach (bool l2 in YP.unify
1117 (Sub_atom, Atom.a(atomAtom._name.Substring(xBefore, (int)Length))))
1118 yield return false;
1119 }
1120 }
1121 }
1122 else
1123 {
1124 // We are underconstrained and doing a search, so go through all possibilities.
1125 for (int xBefore = 0; xBefore <= atomLength; ++xBefore)
1126 {
1127 foreach (bool l1 in YP.unify(Before, xBefore))
1128 {
1129 for (int xLength = 0; xLength <= (atomLength - xBefore); ++xLength)
1130 {
1131 foreach (bool l2 in YP.unify(Length, xLength))
1132 {
1133 foreach (bool l3 in YP.unify(After, atomLength - (xBefore + xLength)))
1134 {
1135 foreach (bool l4 in YP.unify
1136 (Sub_atom, Atom.a(atomAtom._name.Substring(xBefore, xLength))))
1137 yield return false;
1138 }
1139 }
1140 }
1141 }
1142 }
1143 }
1144 }
1145
1146 public static IEnumerable<bool> atom_chars(object atom, object List)
1147 {
1148 atom = YP.getValue(atom);
1149 List = YP.getValue(List);
1150
1151 if (atom is Variable)
1152 {
1153 if (List is Variable)
1154 throw new PrologException(Atom.a("instantiation_error"),
1155 "Arg 1 Atom and arg 2 List are both unbound variables");
1156 object[] codeArray = ListPair.toArray(List);
1157 if (codeArray == null)
1158 throw new PrologException
1159 (new Functor2("type_error", Atom.a("list"), List), "Arg 2 List is not a list");
1160
1161 char[] charArray = new char[codeArray.Length];
1162 for (int i = 0; i < codeArray.Length; ++i)
1163 {
1164 object listAtom = YP.getValue(codeArray[i]);
1165 if (listAtom is Variable)
1166 throw new PrologException(Atom.a("instantiation_error"),
1167 "Arg 2 List has an element which is an unbound variable");
1168 if (!(listAtom is Atom && ((Atom)listAtom)._name.Length == 1))
1169 throw new PrologException
1170 (new Functor2("type_error", Atom.a("character"), listAtom),
1171 "Arg 2 List has an element which is not a one character atom");
1172 charArray[i] = ((Atom)listAtom)._name[0];
1173 }
1174 return YP.unify(atom, Atom.a(new String(charArray)));
1175 }
1176 else
1177 {
1178 if (!(atom is Atom))
1179 throw new PrologException
1180 (new Functor2("type_error", Atom.a("atom"), atom), "Arg 1 Atom is not var or atom");
1181
1182 string atomString = ((Atom)atom)._name;
1183 object charList = Atom.NIL;
1184 // Start from the back to make the list.
1185 for (int i = atomString.Length - 1; i >= 0; --i)
1186 charList = new ListPair(Atom.a(atomString.Substring(i, 1)), charList);
1187 return YP.unify(List, charList);
1188 }
1189 }
1190
1191 public static IEnumerable<bool> atom_codes(object atom, object List)
1192 {
1193 atom = YP.getValue(atom);
1194 List = YP.getValue(List);
1195
1196 if (atom is Variable)
1197 {
1198 if (List is Variable)
1199 throw new PrologException(Atom.a("instantiation_error"),
1200 "Arg 1 Atom and arg 2 List are both unbound variables");
1201 object[] codeArray = ListPair.toArray(List);
1202 if (codeArray == null)
1203 throw new PrologException
1204 (new Functor2("type_error", Atom.a("list"), List), "Arg 2 List is not a list");
1205
1206 char[] charArray = new char[codeArray.Length];
1207 for (int i = 0; i < codeArray.Length; ++i)
1208 {
1209 int codeInt;
1210 if (!getInt(codeArray[i], out codeInt) || codeInt < 0)
1211 throw new PrologException
1212 (new Functor1("representation_error", Atom.a("character_code")),
1213 "Element of Arg 2 List is not a character code");
1214 charArray[i] = (char)codeInt;
1215 }
1216 return YP.unify(atom, Atom.a(new String(charArray)));
1217 }
1218 else
1219 {
1220 if (!(atom is Atom))
1221 throw new PrologException
1222 (new Functor2("type_error", Atom.a("atom"), atom), "Arg 1 Atom is not var or atom");
1223
1224 string atomString = ((Atom)atom)._name;
1225 object codeList = Atom.NIL;
1226 // Start from the back to make the list.
1227 for (int i = atomString.Length - 1; i >= 0; --i)
1228 codeList = new ListPair((int)atomString[i], codeList);
1229 return YP.unify(List, codeList);
1230 }
1231 }
1232
1233 public static IEnumerable<bool> number_chars(object Number, object List)
1234 {
1235 Number = YP.getValue(Number);
1236 List = YP.getValue(List);
1237
1238 if (Number is Variable)
1239 {
1240 if (List is Variable)
1241 throw new PrologException(Atom.a("instantiation_error"),
1242 "Arg 1 Number and arg 2 List are both unbound variables");
1243 object[] codeArray = ListPair.toArray(List);
1244 if (codeArray == null)
1245 throw new PrologException
1246 (new Functor2("type_error", Atom.a("list"), List), "Arg 2 List is not a list");
1247
1248 char[] charArray = new char[codeArray.Length];
1249 for (int i = 0; i < codeArray.Length; ++i)
1250 {
1251 object listAtom = YP.getValue(codeArray[i]);
1252 if (listAtom is Variable)
1253 throw new PrologException(Atom.a("instantiation_error"),
1254 "Arg 2 List has an element which is an unbound variable");
1255 if (!(listAtom is Atom && ((Atom)listAtom)._name.Length == 1))
1256 throw new PrologException
1257 (new Functor2("type_error", Atom.a("character"), listAtom),
1258 "Arg 2 List has an element which is not a one character atom");
1259 charArray[i] = ((Atom)listAtom)._name[0];
1260 }
1261 return YP.unify(Number, parseNumberString(charArray));
1262 }
1263 else
1264 {
1265 string numberString = null;
1266 // Try converting to an int first.
1267 int intNumber;
1268 if (YP.getInt(Number, out intNumber))
1269 numberString = intNumber.ToString();
1270 else
1271 {
1272 if (!YP.number(Number))
1273 throw new PrologException
1274 (new Functor2("type_error", Atom.a("number"), Number),
1275 "Arg 1 Number is not var or number");
1276 // We just checked, so convertDouble shouldn't throw an exception.
1277 numberString = YP.doubleToString(YP.convertDouble(Number));
1278 }
1279
1280 object charList = Atom.NIL;
1281 // Start from the back to make the list.
1282 for (int i = numberString.Length - 1; i >= 0; --i)
1283 charList = new ListPair(Atom.a(numberString.Substring(i, 1)), charList);
1284 return YP.unify(List, charList);
1285 }
1286 }
1287
1288 public static IEnumerable<bool> number_codes(object Number, object List)
1289 {
1290 Number = YP.getValue(Number);
1291 List = YP.getValue(List);
1292
1293 if (Number is Variable)
1294 {
1295 if (List is Variable)
1296 throw new PrologException(Atom.a("instantiation_error"),
1297 "Arg 1 Number and arg 2 List are both unbound variables");
1298 object[] codeArray = ListPair.toArray(List);
1299 if (codeArray == null)
1300 throw new PrologException
1301 (new Functor2("type_error", Atom.a("list"), List), "Arg 2 List is not a list");
1302
1303 char[] charArray = new char[codeArray.Length];
1304 for (int i = 0; i < codeArray.Length; ++i)
1305 {
1306 int codeInt;
1307 if (!getInt(codeArray[i], out codeInt) || codeInt < 0)
1308 throw new PrologException
1309 (new Functor1("representation_error", Atom.a("character_code")),
1310 "Element of Arg 2 List is not a character code");
1311 charArray[i] = (char)codeInt;
1312 }
1313 return YP.unify(Number, parseNumberString(charArray));
1314 }
1315 else
1316 {
1317 string numberString = null;
1318 // Try converting to an int first.
1319 int intNumber;
1320 if (YP.getInt(Number, out intNumber))
1321 numberString = intNumber.ToString();
1322 else
1323 {
1324 if (!YP.number(Number))
1325 throw new PrologException
1326 (new Functor2("type_error", Atom.a("number"), Number),
1327 "Arg 1 Number is not var or number");
1328 // We just checked, so convertDouble shouldn't throw an exception.
1329 numberString = YP.doubleToString(YP.convertDouble(Number));
1330 }
1331
1332 object codeList = Atom.NIL;
1333 // Start from the back to make the list.
1334 for (int i = numberString.Length - 1; i >= 0; --i)
1335 codeList = new ListPair((int)numberString[i], codeList);
1336 return YP.unify(List, codeList);
1337 }
1338 }
1339
1340 /// <summary>
1341 /// Used by number_chars and number_codes. Return the number in charArray or
1342 /// throw an exception if can't parse.
1343 /// </summary>
1344 /// <param name="numberString"></param>
1345 /// <returns></returns>
1346 private static object parseNumberString(char[] charArray)
1347 {
1348 string numberString = new String(charArray);
1349 if (charArray.Length == 3 && numberString.StartsWith("0'"))
1350 // This is a char code.
1351 return (int)charArray[2];
1352 if (numberString.StartsWith("0x"))
1353 {
1354 try
1355 {
1356 return Int32.Parse
1357 (numberString.Substring(2), System.Globalization.NumberStyles.AllowHexSpecifier);
1358 }
1359 catch (FormatException)
1360 {
1361 throw new PrologException
1362 (new Functor1("syntax_error", Atom.a("number_format: " + numberString)),
1363 "Arg 2 List is not a list for a hexadecimal number");
1364 }
1365 }
1366 // Debug: Is there a way in C# to ask if a string parses as int without throwing an exception?
1367 try
1368 {
1369 // Try an int first.
1370 return Convert.ToInt32(numberString);
1371 }
1372 catch (FormatException) { }
1373 try
1374 {
1375 return Convert.ToDouble(numberString);
1376 }
1377 catch (FormatException)
1378 {
1379 throw new PrologException
1380 (new Functor1("syntax_error", Atom.a("number_format: " + numberString)),
1381 "Arg 2 List is not a list for a number");
1382 }
1383 }
1384
1385 public static IEnumerable<bool> char_code(object Char, object Code)
1386 {
1387 Char = YP.getValue(Char);
1388 Code = YP.getValue(Code);
1389
1390 int codeInt = 0;
1391 if (!(Code is Variable))
1392 {
1393 // Get codeInt now so we type check it whether or not Char is Variable.
1394 if (!getInt(Code, out codeInt))
1395 throw new PrologException
1396 (new Functor2("type_error", Atom.a("integer"), Code),
1397 "Arg 2 Code is not var or a character code");
1398 if (codeInt < 0)
1399 throw new PrologException
1400 (new Functor1("representation_error", Atom.a("character_code")),
1401 "Arg 2 Code is not a character code");
1402 }
1403
1404 if (Char is Variable)
1405 {
1406 if (Code is Variable)
1407 throw new PrologException(Atom.a("instantiation_error"),
1408 "Arg 1 Char and arg 2 Code are both unbound variables");
1409
1410 return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt})));
1411 }
1412 else
1413 {
1414 if (!(Char is Atom) || ((Atom)Char)._name.Length != 1)
1415 throw new PrologException
1416 (new Functor2("type_error", Atom.a("character"), Char),
1417 "Arg 1 Char is not var or one-character atom");
1418
1419 if (Code is Variable)
1420 return YP.unify(Code, (int)((Atom)Char)._name[0]);
1421 else
1422 // Use codeInt to handle whether Code is supplied as, e.g., 97 or 0'a .
1423 return YP.unify(codeInt, (int)((Atom)Char)._name[0]);
1424 }
1425 }
1426
1427 /// <summary>
1428 /// If term is an Atom or functor type, return its name.
1429 /// Otherwise, return term.
1430 /// </summary>
1431 /// <param name="term"></param>
1432 /// <returns></returns>
1433 public static object getFunctorName(object term)
1434 {
1435 term = YP.getValue(term);
1436 if (term is Functor1)
1437 return ((Functor1)term)._name;
1438 else if (term is Functor2)
1439 return ((Functor2)term)._name;
1440 else if (term is Functor3)
1441 return ((Functor3)term)._name;
1442 else if (term is Functor)
1443 return ((Functor)term)._name;
1444 else
1445 return term;
1446 }
1447
1448 /// <summary>
1449 /// If term is an Atom or functor type, return an array of its args.
1450 /// Otherwise, return an empty array.
1451 /// </summary>
1452 /// <param name="term"></param>
1453 /// <returns></returns>
1454 public static object[] getFunctorArgs(object term)
1455 {
1456 term = YP.getValue(term);
1457 if (term is Functor1)
1458 {
1459 Functor1 functor = (Functor1)term;
1460 return new object[] { functor._arg1 };
1461 }
1462 else if (term is Functor2)
1463 {
1464 Functor2 functor = (Functor2)term;
1465 return new object[] { functor._arg1, functor._arg2 };
1466 }
1467 else if (term is Functor3)
1468 {
1469 Functor3 functor = (Functor3)term;
1470 return new object[] { functor._arg1, functor._arg2, functor._arg3 };
1471 }
1472 else if (term is Functor) {
1473 Functor functor = (Functor)term;
1474 return functor._args;
1475 }
1476 else
1477 return new object[0];
1478 }
1479
1480 public static bool var(object Term)
1481 {
1482 return YP.getValue(Term) is Variable;
1483 }
1484
1485 public static bool nonvar(object Term)
1486 {
1487 return !YP.var(Term);
1488 }
1489
1490 public static bool atom(object Term)
1491 {
1492 return YP.getValue(Term) is Atom;
1493 }
1494
1495 public static bool integer(object Term)
1496 {
1497 // Debug: Should exhaustively check for all integer types.
1498 return getValue(Term) is int;
1499 }
1500
1501 // Use isFloat instead of float because it is a reserved keyword.
1502 public static bool isFloat(object Term)
1503 {
1504 // Debug: Should exhaustively check for all float types.
1505 return getValue(Term) is double;
1506 }
1507
1508 public static bool number(object Term)
1509 {
1510 return YP.integer(Term) || YP.isFloat(Term);
1511 }
1512
1513 public static bool atomic(object Term)
1514 {
1515 return YP.atom(Term) || YP.number(Term);
1516 }
1517
1518 public static bool compound(object Term)
1519 {
1520 Term = getValue(Term);
1521 return Term is Functor1 || Term is Functor2 || Term is Functor3 || Term is Functor;
1522 }
1523
1524 /// <summary>
1525 /// If input is a TextReader, use it. If input is an Atom or String, create a StreamReader with the
1526 /// input as the filename. If input is a Prolog list, then read character codes from it.
1527 /// </summary>
1528 /// <param name="input"></param>
1529 public static void see(object input)
1530 {
1531 input = YP.getValue(input);
1532 if (input is Variable)
1533 throw new PrologException(Atom.a("instantiation_error"), "Arg is an unbound variable");
1534
1535 if (input == null)
1536 {
1537 _inputStream = null;
1538 return;
1539 }
1540 if (input is TextReader)
1541 {
1542 _inputStream = (TextReader)input;
1543 return;
1544 }
1545 else if (input is Atom)
1546 {
1547 _inputStream = new StreamReader(((Atom)input)._name);
1548 return;
1549 }
1550 else if (input is String)
1551 {
1552 _inputStream = new StreamReader((String)input);
1553 return;
1554 }
1555 else if (input is Functor2 && ((Functor2)input)._name == Atom.DOT)
1556 {
1557 _inputStream = new CodeListReader(input);
1558 return;
1559 }
1560 else
1561 throw new PrologException
1562 (new Functor2("domain_error", Atom.a("stream_or_alias"), input),
1563 "Input stream specifier not recognized");
1564 }
1565
1566 public static void seen()
1567 {
1568 if (_inputStream == null)
1569 return;
1570 if (_inputStream == Console.In)
1571 return;
1572 _inputStream.Close();
1573 _inputStream = Console.In;
1574 }
1575
1576 public static IEnumerable<bool> current_input(object Stream)
1577 {
1578 return YP.unify(Stream, _inputStream);
1579 }
1580
1581 /// <summary>
1582 /// If output is a TextWriter, use it. If output is an Atom or a String, create a StreamWriter
1583 /// with the input as the filename.
1584 /// </summary>
1585 /// <param name="output"></param>
1586 public static void tell(object output)
1587 {
1588 output = YP.getValue(output);
1589 if (output is Variable)
1590 throw new PrologException(Atom.a("instantiation_error"), "Arg is an unbound variable");
1591
1592 if (output == null)
1593 {
1594 _outputStream = null;
1595 return;
1596 }
1597 if (output is TextWriter)
1598 {
1599 _outputStream = (TextWriter)output;
1600 return;
1601 }
1602 else if (output is Atom)
1603 {
1604 _outputStream = new StreamWriter(((Atom)output)._name);
1605 return;
1606 }
1607 else if (output is String)
1608 {
1609 _outputStream = new StreamWriter((String)output);
1610 return;
1611 }
1612 else
1613 throw new PrologException
1614 (new Functor2("domain_error", Atom.a("stream_or_alias"), output),
1615 "Can't open stream for " + output);
1616 }
1617
1618 public static void told()
1619 {
1620 if (_outputStream == null)
1621 return;
1622 if (_outputStream == Console.Out)
1623 return;
1624 _outputStream.Close();
1625 _outputStream = Console.Out;
1626 }
1627
1628 public static IEnumerable<bool> current_output(object Stream)
1629 {
1630 return YP.unify(Stream, _outputStream);
1631 }
1632
1633 public static void write(object x)
1634 {
1635 if (_outputStream == null)
1636 return;
1637 x = YP.getValue(x);
1638 if (x is double)
1639 _outputStream.Write(doubleToString((double)x));
1640 else
1641 _outputStream.Write(x.ToString());
1642 }
1643
1644 /// <summary>
1645 /// Format x as a string, making sure that it won't parse as an int later. I.e., for 1.0, don't just
1646 /// use "1" which will parse as an int.
1647 /// </summary>
1648 /// <param name="x"></param>
1649 /// <returns></returns>
1650 private static string doubleToString(double x)
1651 {
1652 string xString = x.ToString();
1653 // Debug: Is there a way in C# to ask if a string parses as int without throwing an exception?
1654 try
1655 {
1656 Convert.ToInt32(xString);
1657 // The string will parse as an int, not a double, so re-format so that it does.
1658 // Use float if possible, else exponential if it would be too big.
1659 return x.ToString(x >= 100000.0 ? "E1" : "f1");
1660 }
1661 catch (FormatException)
1662 {
1663 // Assume it will parse as a double.
1664 }
1665 return xString;
1666 }
1667
1668 public static void put_code(object x)
1669 {
1670 if (_outputStream == null)
1671 return;
1672 if (var(x))
1673 throw new PrologException(Atom.a("instantiation_error"), "Arg 1 is an unbound variable");
1674 int xInt;
1675 if (!getInt(x, out xInt))
1676 throw new PrologException
1677 (new Functor2("type_error", Atom.a("integer"), x), "Arg 1 must be integer");
1678 _outputStream.Write((char)xInt);
1679 }
1680
1681 public static void nl()
1682 {
1683 if (_outputStream == null)
1684 return;
1685 _outputStream.WriteLine();
1686 }
1687
1688 public static IEnumerable<bool> get_code(object code)
1689 {
1690 if (_inputStream == null)
1691 return YP.unify(code, -1);
1692 else
1693 return YP.unify(code, _inputStream.Read());
1694 }
1695
1696 public static void asserta(object Term, Type declaringClass)
1697 {
1698 assertDynamic(Term, declaringClass, true);
1699 }
1700
1701 public static void assertz(object Term, Type declaringClass)
1702 {
1703 assertDynamic(Term, declaringClass, false);
1704 }
1705
1706 public static void assertDynamic(object Term, Type declaringClass, bool prepend)
1707 {
1708 Term = getValue(Term);
1709 if (Term is Variable)
1710 throw new PrologException("instantiation_error", "Term to assert is an unbound variable");
1711
1712 Variable.CopyStore copyStore = new Variable.CopyStore();
1713 object TermCopy = makeCopy(Term, copyStore);
1714 object Head, Body;
1715 if (TermCopy is Functor2 && ((Functor2)TermCopy)._name == Atom.RULE)
1716 {
1717 Head = YP.getValue(((Functor2)TermCopy)._arg1);
1718 Body = YP.getValue(((Functor2)TermCopy)._arg2);
1719 if (Head is Variable)
1720 throw new PrologException("instantiation_error", "Head to assert is an unbound variable");
1721 if (Body is Variable)
1722 throw new PrologException("instantiation_error", "Body to assert is an unbound variable");
1723 }
1724 else
1725 {
1726 Head = TermCopy;
1727 Body = Atom.a("true");
1728 }
1729
1730 Atom name = getFunctorName(Head) as Atom;
1731 if (name == null)
1732 // name is a non-Atom, such as a number.
1733 throw new PrologException
1734 (new Functor2("type_error", Atom.a("callable"), Head), "Term to assert is not callable");
1735 object[] args = getFunctorArgs(Head);
1736 if (isSystemPredicate(name, args.Length))
1737 throw new PrologException
1738 (new Functor3("permission_error", Atom.a("modify"), Atom.a("static_procedure"),
1739 new Functor2(Atom.SLASH, name, args.Length)),
1740 "Assert cannot modify static predicate " + name + "/" + args.Length);
1741
1742 if (copyStore.getNUniqueVariables() == 0 && Body == Atom.a("true"))
1743 {
1744 // This is a fact with no unbound variables
1745 // assertFact and prependFact use IndexedAnswers, so don't we don't need to compile.
1746 if (prepend)
1747 prependFact(name, args);
1748 else
1749 assertFact(name, args);
1750
1751 return;
1752 }
1753
1754 IClause clause = YPCompiler.compileAnonymousClause(Head, Body, declaringClass);
1755 // We expect clause to be a ClauseHeadAndBody (from Compiler.compileAnonymousFunction)
1756 // so we can set the Head and Body.
1757 if (clause is ClauseHeadAndBody)
1758 ((ClauseHeadAndBody)clause).setHeadAndBody(Head, Body);
1759
1760 // Add the clause to the entry in _predicatesStore.
1761 NameArity nameArity = new NameArity(name, args.Length);
1762 List<IClause> clauses;
1763 if (!_predicatesStore.TryGetValue(nameArity, out clauses))
1764 // Create an entry for the nameArity.
1765 _predicatesStore[nameArity] = (clauses = new List<IClause>());
1766
1767 if (prepend)
1768 clauses.Insert(0, clause);
1769 else
1770 clauses.Add(clause);
1771 }
1772
1773 private static bool isSystemPredicate(Atom name, int arity)
1774 {
1775 if (arity == 2 && (name == Atom.a(",") || name == Atom.a(";") || name == Atom.DOT))
1776 return true;
1777 // Use the same mapping to static predicates in YP as the compiler.
1778 foreach (bool l1 in YPCompiler.functorCallYPFunctionName(name, arity, new Variable()))
1779 return true;
1780 // Debug: Do we need to check if name._module is null?
1781 return false;
1782 }
1783
1784 /// <summary>
1785 /// Assert values at the end of the set of facts for the predicate with the
1786 /// name and with arity values.Length.
1787 /// </summary>
1788 /// <param name="name">must be an Atom</param>
1789 /// <param name="values">the array of arguments to the fact predicate.
1790 /// It is an error if an value has an unbound variable.</param>
1791 public static void assertFact(Atom name, object[] values)
1792 {
1793 NameArity nameArity = new NameArity(name, values.Length);
1794 List<IClause> clauses;
1795 IndexedAnswers indexedAnswers;
1796 if (!_predicatesStore.TryGetValue(nameArity, out clauses))
1797 {
1798 // Create an IndexedAnswers as the only clause of the predicate.
1799 _predicatesStore[nameArity] = (clauses = new List<IClause>());
1800 clauses.Add(indexedAnswers = new IndexedAnswers(values.Length));
1801 }
1802 else
1803 {
1804 indexedAnswers = null;
1805 if (clauses.Count >= 1)
1806 indexedAnswers = clauses[clauses.Count - 1] as IndexedAnswers;
1807 if (indexedAnswers == null)
1808 // The latest clause is not an IndexedAnswers, so add one.
1809 clauses.Add(indexedAnswers = new IndexedAnswers(values.Length));
1810 }
1811
1812 indexedAnswers.addAnswer(values);
1813 }
1814
1815 /// <summary>
1816 /// Assert values, prepending to the front of the set of facts for the predicate with the
1817 /// name and with arity values.Length.
1818 /// </summary>
1819 /// <param name="name">must be an Atom</param>
1820 /// <param name="values">the array of arguments to the fact predicate.
1821 /// It is an error if an value has an unbound variable.</param>
1822 public static void prependFact(Atom name, object[] values)
1823 {
1824 NameArity nameArity = new NameArity(name, values.Length);
1825 List<IClause> clauses;
1826 IndexedAnswers indexedAnswers;
1827 if (!_predicatesStore.TryGetValue(nameArity, out clauses))
1828 {
1829 // Create an IndexedAnswers as the only clause of the predicate.
1830 _predicatesStore[nameArity] = (clauses = new List<IClause>());
1831 clauses.Add(indexedAnswers = new IndexedAnswers(values.Length));
1832 }
1833 else
1834 {
1835 indexedAnswers = null;
1836 if (clauses.Count >= 1)
1837 indexedAnswers = clauses[0] as IndexedAnswers;
1838 if (indexedAnswers == null)
1839 // The first clause is not an IndexedAnswers, so prepend one.
1840 clauses.Insert(0, indexedAnswers = new IndexedAnswers(values.Length));
1841 }
1842
1843 indexedAnswers.prependAnswer(values);
1844 }
1845
1846 /// <summary>
1847 /// Match all clauses of the dynamic predicate with the name and with arity
1848 /// arguments.Length.
1849 /// If the predicate is not defined, return the result of YP.unknownPredicate.
1850 /// </summary>
1851 /// <param name="name">must be an Atom</param>
1852 /// <param name="arguments">an array of arity number of arguments</param>
1853 /// <returns>an iterator which you can use in foreach</returns>
1854 public static IEnumerable<bool> matchDynamic(Atom name, object[] arguments)
1855 {
1856 List<IClause> clauses;
1857 if (!_predicatesStore.TryGetValue(new NameArity(name, arguments.Length), out clauses))
1858 return unknownPredicate(name, arguments.Length,
1859 "Undefined dynamic predicate: " + name + "/" + arguments.Length);
1860
1861 if (clauses.Count == 1)
1862 // Usually there is only one clause, so return it without needing to wrap it in an iterator.
1863 return clauses[0].match(arguments);
1864 else
1865 return matchAllClauses(clauses, arguments);
1866 }
1867
1868 /// <summary>
1869 /// Call match(arguments) for each IClause in clauses. We make this a separate
1870 /// function so that matchDynamic itself does not need to be an iterator object.
1871 /// </summary>
1872 /// <param name="clauses"></param>
1873 /// <param name="arguments"></param>
1874 /// <returns></returns>
1875 private static IEnumerable<bool> matchAllClauses(List<IClause> clauses, object[] arguments)
1876 {
1877 // Debug: If the caller asserts another clause into this same predicate during yield, the iterator
1878 // over clauses will be corrupted. Should we take the time to copy clauses?
1879 foreach (IClause clause in clauses)
1880 {
1881 foreach (bool lastCall in clause.match(arguments))
1882 {
1883 yield return false;
1884 if (lastCall)
1885 // This happens after a cut in a clause.
1886 yield break;
1887 }
1888 }
1889 }
1890
1891 /// <summary>
1892 /// If _prologFlags["unknown"] is fail then return fail(), else if
1893 /// _prologFlags["unknown"] is warning then write the message to YP.write and
1894 /// return fail(), else throw a PrologException for existence_error. .
1895 /// </summary>
1896 /// <param name="name"></param>
1897 /// <param name="arity"></param>
1898 /// <param name="message"></param>
1899 /// <returns></returns>
1900 public static IEnumerable<bool> unknownPredicate(Atom name, int arity, string message)
1901 {
1902 establishPrologFlags();
1903
1904 if (_prologFlags["unknown"] == Atom.a("fail"))
1905 return fail();
1906 else if (_prologFlags["unknown"] == Atom.a("warning"))
1907 {
1908 write(message);
1909 nl();
1910 return fail();
1911 }
1912 else
1913 throw new PrologException
1914 (new Functor2
1915 (Atom.a("existence_error"), Atom.a("procedure"),
1916 new Functor2(Atom.SLASH, name, arity)), message);
1917 }
1918
1919 /// <summary>
1920 /// This is deprecated and just calls matchDynamic. This matches all clauses,
1921 /// not just the ones defined with assertFact.
1922 /// </summary>
1923 /// <param name="name"></param>
1924 /// <param name="arguments"></param>
1925 /// <returns></returns>
1926 public static IEnumerable<bool> matchFact(Atom name, object[] arguments)
1927 {
1928 return matchDynamic(name, arguments);
1929 }
1930
1931 public static IEnumerable<bool> clause(object Head, object Body)
1932 {
1933 Head = getValue(Head);
1934 Body = getValue(Body);
1935 if (Head is Variable)
1936 throw new PrologException("instantiation_error", "Head is an unbound variable");
1937
1938 Atom name = getFunctorName(Head) as Atom;
1939 if (name == null)
1940 // name is a non-Atom, such as a number.
1941 throw new PrologException
1942 (new Functor2("type_error", Atom.a("callable"), Head), "Head is not callable");
1943 object[] args = getFunctorArgs(Head);
1944 if (isSystemPredicate(name, args.Length))
1945 throw new PrologException
1946 (new Functor3("permission_error", Atom.a("access"), Atom.a("private_procedure"),
1947 new Functor2(Atom.SLASH, name, args.Length)),
1948 "clause cannot access private predicate " + name + "/" + args.Length);
1949 if (!(Body is Variable) && !(YP.getFunctorName(Body) is Atom))
1950 throw new PrologException
1951 (new Functor2("type_error", Atom.a("callable"), Body), "Body is not callable");
1952
1953 List<IClause> clauses;
1954 if (!_predicatesStore.TryGetValue(new NameArity(name, args.Length), out clauses))
1955 yield break;
1956 // The caller can assert another clause into this same predicate during yield, so we have to
1957 // make a copy of the clauses.
1958 foreach (IClause predicateClause in clauses.ToArray())
1959 {
1960 foreach (bool l1 in predicateClause.clause(Head, Body))
1961 yield return false;
1962 }
1963 }
1964
1965 public static IEnumerable<bool> retract(object Term)
1966 {
1967 Term = getValue(Term);
1968 if (Term is Variable)
1969 throw new PrologException("instantiation_error", "Term to retract is an unbound variable");
1970
1971 object Head, Body;
1972 if (Term is Functor2 && ((Functor2)Term)._name == Atom.RULE)
1973 {
1974 Head = YP.getValue(((Functor2)Term)._arg1);
1975 Body = YP.getValue(((Functor2)Term)._arg2);
1976 }
1977 else
1978 {
1979 Head = Term;
1980 Body = Atom.a("true");
1981 }
1982 if (Head is Variable)
1983 throw new PrologException("instantiation_error", "Head is an unbound variable");
1984
1985 Atom name = getFunctorName(Head) as Atom;
1986 if (name == null)
1987 // name is a non-Atom, such as a number.
1988 throw new PrologException
1989 (new Functor2("type_error", Atom.a("callable"), Head), "Head is not callable");
1990 object[] args = getFunctorArgs(Head);
1991 if (isSystemPredicate(name, args.Length))
1992 throw new PrologException
1993 (new Functor3("permission_error", Atom.a("modify"), Atom.a("static_procedure"),
1994 new Functor2(Atom.SLASH, name, args.Length)),
1995 "clause cannot access private predicate " + name + "/" + args.Length);
1996 if (!(Body is Variable) && !(YP.getFunctorName(Body) is Atom))
1997 throw new PrologException
1998 (new Functor2("type_error", Atom.a("callable"), Body), "Body is not callable");
1999
2000 List<IClause> clauses;
2001 if (!_predicatesStore.TryGetValue(new NameArity(name, args.Length), out clauses))
2002 yield break;
2003 // The caller can assert another clause into this same predicate during yield, so we have to
2004 // make a copy of the clauses.
2005 foreach (IClause predicateClause in clauses.ToArray())
2006 {
2007 if (predicateClause is IndexedAnswers)
2008 {
2009 // IndexedAnswers handles its own retract. Even if it removes all of its
2010 // answers, it is OK to leave it empty as one of the elements in clauses.
2011 foreach (bool l1 in ((IndexedAnswers)predicateClause).retract(Head, Body))
2012 yield return false;
2013 }
2014 else
2015 {
2016 foreach (bool l1 in predicateClause.clause(Head, Body))
2017 {
2018 clauses.Remove(predicateClause);
2019 yield return false;
2020 }
2021 }
2022 }
2023 }
2024
2025 /// <summary>
2026 /// This is deprecated for backward compatibility. You should use retractall.
2027 /// </summary>
2028 /// <param name="name">must be an Atom</param>
2029 /// <param name="arguments">an array of arity number of arguments</param>
2030 public static void retractFact(Atom name, object[] arguments)
2031 {
2032 retractall(Functor.make(name, arguments));
2033 }
2034
2035 /// <summary>
2036 /// Retract all dynamic clauses which unify with Head. If this matches all clauses in a predicate,
2037 /// the predicate is still defined. To completely remove the predicate, see abolish.
2038 /// </summary>
2039 /// <param name="Head"></param>
2040 public static void retractall(object Head)
2041 {
2042 object name = YP.getFunctorName(Head);
2043 object[] arguments = getFunctorArgs(Head);
2044 if (!(name is Atom))
2045 return;
2046 NameArity nameArity = new NameArity((Atom)name, arguments.Length);
2047 List<IClause> clauses;
2048 if (!_predicatesStore.TryGetValue(nameArity, out clauses))
2049 // Can't find, so ignore.
2050 return;
2051
2052 foreach (object arg in arguments)
2053 {
2054 if (!YP.var(arg))
2055 throw new InvalidOperationException
2056 ("Until matching retractall is supported, all arguments must be unbound to retract all clauses");
2057 }
2058 // Clear all clauses.
2059 _predicatesStore[nameArity] = new List<IClause>();
2060 }
2061
2062 /// <summary>
2063 /// If NameSlashArity is var, match with all the dynamic predicates using the
2064 /// Name/Artity form.
2065 /// If NameSlashArity is not var, check if the Name/Arity exists as a static or
2066 /// dynamic predicate.
2067 /// </summary>
2068 /// <param name="NameSlashArity"></param>
2069 /// <param name="declaringClass">if not null, used to resolve references to the default
2070 /// module Atom.a("")</param>
2071 /// <returns></returns>
2072 public static IEnumerable<bool> current_predicate(object NameSlashArity, Type declaringClass)
2073 {
2074 NameSlashArity = YP.getValue(NameSlashArity);
2075 // First check if Name and Arity are nonvar so we can do a direct lookup.
2076 if (YP.ground(NameSlashArity))
2077 {
2078 Functor2 NameArityFunctor = NameSlashArity as Functor2;
2079 if (!(NameArityFunctor != null && NameArityFunctor._name == Atom.SLASH))
2080 throw new PrologException
2081 (new Functor2("type_error", Atom.a("predicate_indicator"), NameSlashArity),
2082 "Must be a name/arity predicate indicator");
2083 object name = YP.getValue(NameArityFunctor._arg1);
2084 object arity = YP.getValue(NameArityFunctor._arg2);
2085 if (name is Variable || arity is Variable)
2086 throw new PrologException
2087 ("instantiation_error", "Predicate indicator name or arity is an unbound variable");
2088 if (!(name is Atom && arity is int))
2089 throw new PrologException
2090 (new Functor2("type_error", Atom.a("predicate_indicator"), NameSlashArity),
2091 "Must be a name/arity predicate indicator");
2092 if ((int)arity < 0)
2093 throw new PrologException
2094 (new Functor2("domain_error", Atom.a("not_less_than_zero"), arity),
2095 "Arity may not be less than zero");
2096
2097 if (YPCompiler.isCurrentPredicate((Atom)name, (int)arity, declaringClass))
2098 // The predicate is defined.
2099 yield return false;
2100 }
2101 else
2102 {
2103 foreach (NameArity key in _predicatesStore.Keys)
2104 {
2105 foreach (bool l1 in YP.unify
2106 (new Functor2(Atom.SLASH, key._name, key._arity), NameSlashArity))
2107 yield return false;
2108 }
2109 }
2110 }
2111
2112 /// <summary>
2113 /// Return true if the dynamic predicate store has an entry for the predicate
2114 /// with name and arity.
2115 /// </summary>
2116 /// <param name="name"></param>
2117 /// <param name="arity"></param>
2118 /// <returns></returns>
2119 public static bool isDynamicCurrentPredicate(Atom name, int arity)
2120 {
2121 return _predicatesStore.ContainsKey(new NameArity(name, arity));
2122 }
2123
2124 public static void abolish(object NameSlashArity)
2125 {
2126 NameSlashArity = YP.getValue(NameSlashArity);
2127 if (NameSlashArity is Variable)
2128 throw new PrologException
2129 ("instantiation_error", "Predicate indicator is an unbound variable");
2130 Functor2 NameArityFunctor = NameSlashArity as Functor2;
2131 if (!(NameArityFunctor != null && NameArityFunctor._name == Atom.SLASH))
2132 throw new PrologException
2133 (new Functor2("type_error", Atom.a("predicate_indicator"), NameSlashArity),
2134 "Must be a name/arity predicate indicator");
2135 object name = YP.getValue(NameArityFunctor._arg1);
2136 object arity = YP.getValue(NameArityFunctor._arg2);
2137 if (name is Variable || arity is Variable)
2138 throw new PrologException
2139 ("instantiation_error", "Predicate indicator name or arity is an unbound variable");
2140 if (!(name is Atom))
2141 throw new PrologException
2142 (new Functor2("type_error", Atom.a("atom"), name),
2143 "Predicate indicator name must be an atom");
2144 if (!(arity is int))
2145 throw new PrologException
2146 (new Functor2("type_error", Atom.a("integer"), arity),
2147 "Predicate indicator arity must be an integer");
2148 if ((int)arity < 0)
2149 throw new PrologException
2150 (new Functor2("domain_error", Atom.a("not_less_than_zero"), arity),
2151 "Arity may not be less than zero");
2152 if ((int)arity > MAX_ARITY)
2153 throw new PrologException
2154 (new Functor1("representation_error", Atom.a("max_arity")),
2155 "Arity may not be greater than " + MAX_ARITY);
2156
2157 if (isSystemPredicate((Atom)name, (int)arity))
2158 throw new PrologException
2159 (new Functor3("permission_error", Atom.a("modify"), Atom.a("static_procedure"),
2160 new Functor2(Atom.SLASH, name, arity)),
2161 "Abolish cannot modify static predicate " + name + "/" + arity);
2162 _predicatesStore.Remove(new NameArity((Atom)name, (int)arity));
2163 }
2164
2165 /// <summary>
2166 /// If Goal is a simple predicate, call YP.getFunctorName(Goal) using arguments from
2167 /// YP.getFunctorArgs(Goal). If not found, this throws a PrologException for existence_error.
2168 /// Otherwise, compile the goal as a single clause predicate and invoke it.
2169 /// </summary>
2170 /// <param name="Goal"></param>
2171 /// <param name="declaringClass">if not null, used to resolve references to the default
2172 /// module Atom.a("")</param>
2173 /// <returns></returns>
2174 public static IEnumerable<bool> getIterator(object Goal, Type declaringClass)
2175 {
2176 Atom name;
2177 object[] args;
2178 while (true)
2179 {
2180 Goal = YP.getValue(Goal);
2181 if (Goal is Variable)
2182 throw new PrologException("instantiation_error", "Goal to call is an unbound variable");
2183 name = YP.getFunctorName(Goal) as Atom;
2184 if (name == null)
2185 throw new PrologException
2186 (new Functor2("type_error", Atom.a("callable"), Goal), "Goal to call is not callable");
2187 args = YP.getFunctorArgs(Goal);
2188 if (name == Atom.HAT && args.Length == 2)
2189 // Assume this is called from a bagof operation. Skip the leading qualifiers.
2190 Goal = YP.getValue(((Functor2)Goal)._arg2);
2191 else
2192 break;
2193 }
2194
2195 IEnumerable<bool> simpleIterator = YPCompiler.getSimpleIterator(name, args, declaringClass);
2196 if (simpleIterator != null)
2197 // We don't need to compile since the goal is a simple predicate which we call directly.
2198 return simpleIterator;
2199
2200 // Compile the goal as a clause.
2201 List<Variable> variableSetList = new List<Variable>();
2202 addUniqueVariables(Goal, variableSetList);
2203 Variable[] variableSet = variableSetList.ToArray();
2204
2205 // Use Atom.F since it is ignored.
2206 return YPCompiler.compileAnonymousClause
2207 (Functor.make(Atom.F, variableSet), Goal, declaringClass).match(variableSet);
2208 }
2209
2210 public static void throwException(object Term)
2211 {
2212 throw new PrologException(Term);
2213 }
2214 /// <summary>
2215 /// This must be called by any function that uses YP._prologFlags to make sure
2216 /// the initial defaults are loaded.
2217 /// </summary>
2218 private static void establishPrologFlags()
2219 {
2220 if (_prologFlags.Count > 0)
2221 // Already established.
2222 return;
2223
2224 // List these in the order they appear in the ISO standard.
2225 _prologFlags["bounded"] = Atom.a("true");
2226 _prologFlags["max_integer"] = Int32.MaxValue;
2227 _prologFlags["min_integer"] = Int32.MinValue;
2228 _prologFlags["integer_rounding_function"] = Atom.a("toward_zero");
2229 _prologFlags["char_conversion"] = Atom.a("off");
2230 _prologFlags["debug"] = Atom.a("off");
2231 _prologFlags["max_arity"] = MAX_ARITY;
2232 _prologFlags["unknown"] = Atom.a("error");
2233 _prologFlags["double_quotes"] = Atom.a("codes");
2234 }
2235
2236 public static IEnumerable<bool> current_prolog_flag(object Key, object Value)
2237 {
2238 establishPrologFlags();
2239
2240 Key = YP.getValue(Key);
2241 Value = YP.getValue(Value);
2242
2243 if (Key is Variable)
2244 {
2245 // Bind all key values.
2246 foreach (string key in _prologFlags.Keys)
2247 {
2248 foreach (bool l1 in YP.unify(Key, Atom.a(key)))
2249 {
2250 foreach (bool l2 in YP.unify(Value, _prologFlags[key]))
2251 yield return false;
2252 }
2253 }
2254 }
2255 else
2256 {
2257 if (!(Key is Atom))
2258 throw new PrologException
2259 (new Functor2("type_error", Atom.a("atom"), Key), "Arg 1 Key is not an atom");
2260 if (!_prologFlags.ContainsKey(((Atom)Key)._name))
2261 throw new PrologException
2262 (new Functor2("domain_error", Atom.a("prolog_flag"), Key),
2263 "Arg 1 Key is not a recognized flag");
2264
2265 foreach (bool l1 in YP.unify(Value, _prologFlags[((Atom)Key)._name]))
2266 yield return false;
2267 }
2268 }
2269
2270 public static void set_prolog_flag(object Key, object Value)
2271 {
2272 establishPrologFlags();
2273
2274 Key = YP.getValue(Key);
2275 Value = YP.getValue(Value);
2276
2277 if (Key is Variable)
2278 throw new PrologException(Atom.a("instantiation_error"),
2279 "Arg 1 Key is an unbound variable");
2280 if (Value is Variable)
2281 throw new PrologException(Atom.a("instantiation_error"),
2282 "Arg 1 Key is an unbound variable");
2283 if (!(Key is Atom))
2284 throw new PrologException
2285 (new Functor2("type_error", Atom.a("atom"), Key), "Arg 1 Key is not an atom");
2286
2287 string keyName = ((Atom)Key)._name;
2288 if (!_prologFlags.ContainsKey(keyName))
2289 throw new PrologException
2290 (new Functor2("domain_error", Atom.a("prolog_flag"), Key),
2291 "Arg 1 Key " + Key + " is not a recognized flag");
2292
2293 bool valueIsOK = false;
2294 if (keyName == "char_conversion")
2295 valueIsOK = (Value == _prologFlags[keyName]);
2296 else if (keyName == "debug")
2297 valueIsOK = (Value == _prologFlags[keyName]);
2298 else if (keyName == "unknown")
2299 valueIsOK = (Value == Atom.a("fail") || Value == Atom.a("warning") ||
2300 Value == Atom.a("error"));
2301 else if (keyName == "double_quotes")
2302 valueIsOK = (Value == Atom.a("codes") || Value == Atom.a("chars") ||
2303 Value == Atom.a("atom"));
2304 else
2305 throw new PrologException
2306 (new Functor3("permission_error", Atom.a("modify"), Atom.a("flag"), Key),
2307 "May not modify Prolog flag " + Key);
2308
2309 if (!valueIsOK)
2310 throw new PrologException
2311 (new Functor2("domain_error", Atom.a("flag_value"), new Functor2("+", Key, Value)),
2312 "May not set arg 1 Key " + Key + " to arg 2 Value " + Value);
2313
2314 _prologFlags[keyName] = Value;
2315 }
2316 /// <summary>
2317 /// script_event calls hosting script with events as a callback method.
2318 /// </summary>
2319 /// <param name="script_event"></param>
2320 /// <param name="script_params"></param>
2321 /// <returns></returns>
2322 public static IEnumerable<bool> script_event(object script_event, object script_params)
2323 {
2324 // string function = ((Atom)YP.getValue(script_event))._name;
2325 object[] array = ListPair.toArray(script_params);
2326 if (array == null)
2327 yield return false; // return; // YP.fail();
2328 if (array.Length > 1)
2329 {
2330 //m_CmdManager.m_ScriptEngine.m_EventQueManager.AddToScriptQueue
2331 //(localID, itemID, function, array);
2332 // sortArray(array);
2333 }
2334 //return YP.unify(Sorted, ListPair.makeWithoutRepeatedTerms(array));
2335 yield return false;
2336 }
2337
2338 /* Non-prolog-ish functions for inline coding */
2339 public static string regexString(string inData, string inPattern, string presep,string postsep)
2340 {
2341 //string str=cycMessage;
2342 //string strMatch = @"\. \#\$(.*)\)";
2343 string results = "";
2344 for (Match m = Regex.Match(inData,inPattern); m.Success; m=m.NextMatch())
2345 {
2346 //m_log.Debug(m);
2347 results += presep+ m + postsep;
2348 }
2349 return results;
2350 }
2351
2352 public static string cycComm(object msgobj)
2353 {
2354 string cycInputString = msgobj.ToString();
2355 string cycOutputString="";
2356 TcpClient socketForServer;
2357
2358 try
2359 {
2360 socketForServer = new TcpClient("localHost", 3601);
2361 }
2362 catch
2363 {
2364 m_log.Error("Failed to connect to server at localhost:999");
2365 return "";
2366 }
2367
2368 NetworkStream networkStream = socketForServer.GetStream();
2369
2370 System.IO.StreamReader streamReader = new System.IO.StreamReader(networkStream);
2371
2372 System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(networkStream);
2373
2374 try
2375 {
2376 // read the data from the host and display it
2377
2378 {
2379
2380 streamWriter.WriteLine(cycInputString);
2381 streamWriter.Flush();
2382
2383 cycOutputString = streamReader.ReadLine();
2384 m_log.Debug("Cycoutput:" + cycOutputString);
2385 //streamWriter.WriteLine("Client Message");
2386 //m_log.Debug("Client Message");
2387 streamWriter.Flush();
2388 }
2389
2390 }
2391 catch
2392 {
2393 m_log.Error("Exception reading from Server");
2394 return "";
2395 }
2396 // tidy up
2397 networkStream.Close();
2398 return cycOutputString;
2399
2400 }
2401 //public static void throwException(object Term)
2402 //{
2403 // throw new PrologException(Term);
2404 //}
2405 /// <summary>
2406 /// An enumerator that does zero loops.
2407 /// </summary>
2408 private class Fail : IEnumerator<bool>, IEnumerable<bool>
2409 {
2410 public bool MoveNext()
2411 {
2412 return false;
2413 }
2414
2415 public IEnumerator<bool> GetEnumerator()
2416 {
2417 return (IEnumerator<bool>)this;
2418 }
2419
2420 IEnumerator IEnumerable.GetEnumerator()
2421 {
2422 return GetEnumerator();
2423 }
2424
2425 public bool Current
2426 {
2427 get { return true; }
2428 }
2429
2430 object IEnumerator.Current
2431 {
2432 get { return true; }
2433 }
2434
2435 public void Dispose()
2436 {
2437 }
2438
2439 public void Reset()
2440 {
2441 throw new NotImplementedException();
2442 }
2443 }
2444
2445 /// <summary>
2446 /// An enumerator that does one iteration.
2447 /// </summary>
2448 private class Succeed : IEnumerator<bool>, IEnumerable<bool>
2449 {
2450 private bool _didIteration = false;
2451
2452 public bool MoveNext()
2453 {
2454 if (!_didIteration)
2455 {
2456 _didIteration = true;
2457 return true;
2458 }
2459 else
2460 return false;
2461 }
2462
2463 public IEnumerator<bool> GetEnumerator()
2464 {
2465 return (IEnumerator<bool>)this;
2466 }
2467
2468 IEnumerator IEnumerable.GetEnumerator()
2469 {
2470 return GetEnumerator();
2471 }
2472
2473 public bool Current
2474 {
2475 get { return false; }
2476 }
2477
2478 object IEnumerator.Current
2479 {
2480 get { return false; }
2481 }
2482
2483 public void Dispose()
2484 {
2485 }
2486
2487 public void Reset()
2488 {
2489 throw new NotImplementedException();
2490 }
2491 }
2492
2493 /// <summary>
2494 /// An enumerator that repeats forever.
2495 /// </summary>
2496 private class Repeat : IEnumerator<bool>, IEnumerable<bool>
2497 {
2498 public bool MoveNext()
2499 {
2500 return true;
2501 }
2502
2503 public IEnumerator<bool> GetEnumerator()
2504 {
2505 return (IEnumerator<bool>)this;
2506 }
2507
2508 IEnumerator IEnumerable.GetEnumerator()
2509 {
2510 return GetEnumerator();
2511 }
2512
2513 public bool Current
2514 {
2515 get { return false; }
2516 }
2517
2518 object IEnumerator.Current
2519 {
2520 get { return false; }
2521 }
2522
2523 public void Dispose()
2524 {
2525 }
2526
2527 public void Reset()
2528 {
2529 throw new NotImplementedException();
2530 }
2531 }
2532
2533 /// <summary>
2534 /// An enumerator that wraps another enumerator in order to catch a PrologException.
2535 /// </summary>
2536 public class Catch : IEnumerator<bool>, IEnumerable<bool>
2537 {
2538 private IEnumerator<bool> _enumerator;
2539 private PrologException _exception = null;
2540
2541 /// <summary>
2542 /// Call YP.getIterator(Goal, declaringClass) and save the returned iterator.
2543 /// If getIterator throws an exception, save it the same as MoveNext().
2544 /// </summary>
2545 /// <param name="Goal"></param>
2546 /// <param name="declaringClass"></param>
2547 public Catch(object Goal, Type declaringClass)
2548 {
2549 try
2550 {
2551 _enumerator = getIterator(Goal, declaringClass).GetEnumerator();
2552 }
2553 catch (PrologException exception)
2554 {
2555 // MoveNext() will check this.
2556 _exception = exception;
2557 }
2558 }
2559
2560 /// <summary>
2561 /// Call _enumerator.MoveNext(). If it throws a PrologException, set _exception
2562 /// and return false. After this returns false, call unifyExceptionOrThrow.
2563 /// </summary>
2564 /// <returns></returns>
2565 public bool MoveNext()
2566 {
2567 if (_exception != null)
2568 return false;
2569
2570 try
2571 {
2572 return _enumerator.MoveNext();
2573 }
2574 catch (PrologException exception)
2575 {
2576 _exception = exception;
2577 return false;
2578 }
2579 }
2580
2581 /// <summary>
2582 /// Call this after MoveNext() returns false to check for an exception. If
2583 /// MoveNext did not get a PrologException, don't yield.
2584 /// Otherwise, unify the exception with Catcher and yield so the caller can
2585 /// do the handler code. However, if can't unify with Catcher then throw the exception.
2586 /// </summary>
2587 /// <param name="Catcher"></param>
2588 /// <returns></returns>
2589 public IEnumerable<bool> unifyExceptionOrThrow(object Catcher)
2590 {
2591 if (_exception != null)
2592 {
2593 bool didUnify = false;
2594 foreach (bool l1 in YP.unify(_exception._term, Catcher))
2595 {
2596 didUnify = true;
2597 yield return false;
2598 }
2599 if (!didUnify)
2600 throw _exception;
2601 }
2602 }
2603
2604 public IEnumerator<bool> GetEnumerator()
2605 {
2606 return (IEnumerator<bool>)this;
2607 }
2608
2609 IEnumerator IEnumerable.GetEnumerator()
2610 {
2611 return GetEnumerator();
2612 }
2613
2614 public bool Current
2615 {
2616 get { return _enumerator.Current; }
2617 }
2618
2619 object IEnumerator.Current
2620 {
2621 get { return _enumerator.Current; }
2622 }
2623
2624 public void Dispose()
2625 {
2626 if (_enumerator != null)
2627 _enumerator.Dispose();
2628 }
2629
2630 public void Reset()
2631 {
2632 throw new NotImplementedException();
2633 }
2634 }
2635 #pragma warning restore 0168, 0219
2636 /// <summary>
2637 /// A ClauseHeadAndBody is used in Compiler.compileAnonymousFunction as a base class
2638 /// in order to implement YP.IClause. After creating the object, you must call setHeadAndBody.
2639 /// </summary>
2640 public class ClauseHeadAndBody
2641 {
2642 private object _Head;
2643 private object _Body;
2644
2645 public void setHeadAndBody(object Head, object Body)
2646 {
2647 _Head = Head;
2648 _Body = Body;
2649 }
2650
2651 public IEnumerable<bool> clause(object Head, object Body)
2652 {
2653 if (_Head == null || _Body == null)
2654 yield break;
2655
2656 #pragma warning disable 0168, 0219
2657 foreach (bool l1 in YP.unify(Head, _Head))
2658 {
2659 foreach (bool l2 in YP.unify(Body, _Body))
2660 yield return false;
2661 }
2662 #pragma warning restore 0168, 0219
2663 }
2664 }
2665
2666 /// <summary>
2667 /// CodeListReader extends TextReader and overrides Read to read the next code from
2668 /// the CodeList which is a Prolog list of integer character codes.
2669 /// </summary>
2670 public class CodeListReader : TextReader
2671 {
2672 private object _CodeList;
2673
2674 public CodeListReader(object CodeList)
2675 {
2676 _CodeList = YP.getValue(CodeList);
2677 }
2678
2679 /// <summary>
2680 /// If the head of _CodeList is an integer, return it and advance the list. Otherwise,
2681 /// return -1 for end of file.
2682 /// </summary>
2683 /// <returns></returns>
2684 public override int Read()
2685 {
2686 Functor2 CodeListPair = _CodeList as Functor2;
2687 int code;
2688 if (!(CodeListPair != null && CodeListPair._name == Atom.DOT &&
2689 getInt(CodeListPair._arg1, out code)))
2690 {
2691 _CodeList = Atom.NIL;
2692 return -1;
2693 }
2694
2695 // Advance.
2696 _CodeList = YP.getValue(CodeListPair._arg2);
2697 return code;
2698 }
2699 }
2700 }
2701}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
deleted file mode 100644
index c6a6748..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
+++ /dev/null
@@ -1,6382 +0,0 @@
1/*
2 * Copyright (C) 2007-2008, Jeff Thompson
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of the copyright holder nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31using System;
32using System.IO;
33using System.Collections;
34using System.Collections.Generic;
35using System.Text;
36using System.CodeDom.Compiler;
37using System.Reflection;
38
39namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
40{
41 public class YPCompiler
42 {
43 private class CompilerState
44 {
45 public IndexedAnswers _pred = new IndexedAnswers(4);
46 public Dictionary<YP.NameArity, Atom> _moduleForNameArity = new Dictionary<YP.NameArity, Atom>();
47 public int _gensymCounter;
48 public bool _useFinalCutCode;
49 public Variable _finalCutCode;
50 public bool _codeUsesYield;
51 public Atom _determinism;
52 // a list of '='(Name, Variable)
53 public List<object> _variableNames;
54
55 // Make these static functions that explicitly take the State so Prolog can call it.
56
57 /// <summary>
58 /// Make a new CompilerState and bind it to State.
59 /// </summary>
60 /// <param name="State"></param>
61 /// <returns></returns>
62 public static IEnumerable<bool> make(object State)
63 {
64 return YP.unify(State, new CompilerState());
65 }
66
67 public static void assertPred(object State, object Pred, object Determinism)
68 {
69 State = YP.getValue(State);
70 object functorName = YP.getFunctorName(Pred);
71 object[] functorArgs = YP.getFunctorArgs(Pred);
72 // Debug: Should check if it's already asserted and is the same.
73 ((CompilerState)State)._pred.addAnswer
74 (new object[] { functorName, functorArgs.Length, Pred, YP.getValue(Determinism) });
75 }
76
77 public static void assertModuleForNameArity(object State, object Name, object Arity, object Module)
78 {
79 State = YP.getValue(State);
80 Name = YP.getValue(Name);
81 Arity = YP.getValue(Arity);
82 Module = YP.getValue(Module);
83 // If the Module Atom comes from the parser, it always has null _declaringClass.
84 if (Module is Atom && ((Atom)Module)._module == null && Name is Atom && Arity is int)
85 // Replace a previous entry if it exists.
86 ((CompilerState)State)._moduleForNameArity[new YP.NameArity((Atom)Name, (int)Arity)] =
87 (Atom)Module;
88 }
89
90 public static void startFunction(object State, object Head)
91 {
92 State = YP.getValue(State);
93 ((CompilerState)State)._gensymCounter = 0;
94 ((CompilerState)State)._useFinalCutCode = false;
95 ((CompilerState)State)._finalCutCode = new Variable();
96 ((CompilerState)State)._codeUsesYield = false;
97 if (CompilerState.isDetNoneOut(State, Head))
98 ((CompilerState)State)._determinism = Atom.a("detNoneOut");
99 else if (CompilerState.isSemidetNoneOut(State, Head))
100 ((CompilerState)State)._determinism = Atom.a("semidetNoneOut");
101 else
102 ((CompilerState)State)._determinism = Atom.a("nondet");
103 }
104
105 public static void setCodeUsesYield(object State)
106 {
107 State = YP.getValue(State);
108 ((CompilerState)State)._codeUsesYield = true;
109 }
110
111 public static bool codeUsesYield(object State)
112 {
113 State = YP.getValue(State);
114 return ((CompilerState)State)._codeUsesYield;
115 }
116
117 public static bool determinismEquals(object State, object Term)
118 {
119 State = YP.getValue(State);
120 return YP.termEqual(((CompilerState)State)._determinism, Term);
121 }
122
123 /// <summary>
124 /// Set _variableNames to a new list of (Name = Variable) for each unique variable in rule.
125 /// If the variable is in variableNameSuggestions, use it, otherwise use x1, x2, etc.
126 /// </summary>
127 /// <param name="State"></param>
128 /// <param name="rule"></param>
129 /// <param name="variableNameSuggestions"></param>
130 public static void newVariableNames(object State, object Rule, object VariableNameSuggestions)
131 {
132 State = YP.getValue(State);
133 List<Variable> variablesSet = new List<Variable>();
134 YP.addUniqueVariables(Rule, variablesSet);
135
136 ((CompilerState)State)._variableNames = new List<object>();
137 int xCounter = 0;
138 foreach (Variable variable in variablesSet)
139 ((CompilerState)State)._variableNames.Add
140 (new Functor2(Atom.a("="), makeVariableName(variable, VariableNameSuggestions, ++xCounter),
141 variable));
142 }
143
144 private static object makeVariableName(object variable, object variableNameSuggestions, int xCounter)
145 {
146 // Debug: should require named variables to start with _ or capital. Should
147 // check for duplicates and clashes with keywords.
148 for (object element = YP.getValue(variableNameSuggestions);
149 element is Functor2 && ((Functor2)element)._name == Atom.DOT;
150 element = YP.getValue(((Functor2)element)._arg2))
151 {
152 object suggestionPair = YP.getValue(((Functor2)element)._arg1);
153 if (sameVariable(variable, ((Functor2)suggestionPair)._arg2))
154 {
155 Atom suggestion = (Atom)YP.getValue(((Functor2)suggestionPair)._arg1);
156 if (suggestion.Equals(Atom.a("Atom")))
157 suggestion = Atom.a("Atom_1");
158 if (suggestion.Equals(Atom.a("Variable")))
159 suggestion = Atom.a("Variable_1");
160 if (suggestion.Equals(Atom.a("Functor")))
161 suggestion = Atom.a("Functor_1");
162 return suggestion;
163 }
164 }
165
166 return Atom.a("x" + xCounter);
167 }
168
169 /// <summary>
170 /// Unify Result with the name assigned by CompilerState.newVariableNames in State._variableNames
171 /// for variable.
172 /// </summary>
173 /// <param name="variable">a Variable</param>
174 /// <param name="State"></param>
175 /// <param name="Result">the assigned Name</param>
176 public static IEnumerable<bool> getVariableName(object State, object variable, object Result)
177 {
178 State = YP.getValue(State);
179 foreach (object variableInfo in ((CompilerState)State)._variableNames)
180 {
181 if (variableInfo is Functor2 && ((Functor2)variableInfo)._name.Equals(Atom.a("=")))
182 {
183 if (sameVariable(variable, ((Functor2)variableInfo)._arg2))
184 return YP.unify(Result, ((Functor2)variableInfo)._arg1);
185 }
186 }
187
188 // We set up names for all unique variables, so this should never happen.
189 throw new PrologException(Atom.a("Can't find entry in _variableNames"));
190 }
191
192 public static IEnumerable<bool> variableNamesList(object State, object VariableNamesList)
193 {
194 State = YP.getValue(State);
195 return YP.unify(VariableNamesList, ListPair.make(((CompilerState)State)._variableNames));
196 }
197
198 public static IEnumerable<bool> gensym(object State, object Base, object Symbol)
199 {
200 State = YP.getValue(State);
201 return YP.unify(Symbol, Atom.a(Base.ToString() + ++((CompilerState)State)._gensymCounter));
202 }
203
204 // disable warning on l1, don't see how we can
205 // code this differently
206 #pragma warning disable 0168, 0164, 0162, 0219
207 public static bool isDetNoneOut(object State, object Term)
208 {
209 State = YP.getValue(State);
210 object functorName = YP.getFunctorName(Term);
211 object[] functorArgs = YP.getFunctorArgs(Term);
212
213 Variable pred = new Variable();
214 foreach (bool l1 in ((CompilerState)State)._pred.match
215 (new object[] { functorName, functorArgs.Length, pred, Atom.a("det") }))
216 {
217 if (CompilerState.isNoneOut(YP.getFunctorArgs(pred.getValue())))
218 {
219 return true;
220 }
221 }
222
223 return false;
224 }
225
226 public static bool isSemidetNoneOut(object State, object Term)
227 {
228 State = YP.getValue(State);
229 object functorName = YP.getFunctorName(Term);
230 object[] functorArgs = YP.getFunctorArgs(Term);
231
232 Variable pred = new Variable();
233 foreach (bool l1 in ((CompilerState)State)._pred.match
234 (new object[] { functorName, functorArgs.Length, pred, Atom.a("semidet") }))
235 {
236 if (CompilerState.isNoneOut(YP.getFunctorArgs(pred.getValue())))
237 {
238 return true;
239 }
240 }
241
242 return false;
243 }
244 #pragma warning restore 0168, 0164, 0162, 0219
245
246 /// <summary>
247 /// Return false if any of args is out, otherwise true.
248 /// args is an array of ::(Type,Mode) where Mode is in or out.
249 /// </summary>
250 /// <param name="args"></param>
251 /// <returns></returns>
252 private static bool isNoneOut(object[] args)
253 {
254 foreach (object arg in args)
255 {
256 if (arg is Functor2 && ((Functor2)arg)._name == Atom.a("::") &&
257 ((Functor2)arg)._arg2 == Atom.a("out"))
258 return false;
259 }
260 return true;
261 }
262
263 public static bool nameArityHasModule(object State, object Name, object Arity, object Module)
264 {
265 State = YP.getValue(State);
266 Name = YP.getValue(Name);
267 Arity = YP.getValue(Arity);
268 Module = YP.getValue(Module);
269 if (Name is Atom && Arity is int)
270 {
271 Atom FoundModule;
272 if (!((CompilerState)State)._moduleForNameArity.TryGetValue
273 (new YP.NameArity((Atom)Name, (int)Arity), out FoundModule))
274 return false;
275 return FoundModule == Module;
276 }
277 return false;
278 }
279 }
280
281 // disable warning on l1, don't see how we can
282 // code this differently
283 #pragma warning disable 0168, 0219,0164,0162
284
285 /// <summary>
286 /// Use makeFunctionPseudoCode, convertFunctionCSharp and compileAnonymousFunction
287 /// to return an anonymous YP.IClause for the Head and Body of a rule clause.
288 /// </summary>
289 /// <param name="Head">a prolog term such as new Functor2("test1", X, Y).
290 /// Note that the name of the head is ignored.
291 /// </param>
292 /// <param name="Body">a prolog term such as
293 /// new Functor2(",", new Functor1(Atom.a("test2", Atom.a("")), X),
294 /// new Functor2("=", Y, X)).
295 /// This may not be null. (For a head-only clause, set the Body to Atom.a("true").
296 /// </param>
297 /// <param name="declaringClass">if not null, the code is compiled as a subclass of this class
298 /// to resolve references to the default module Atom.a("")</param>
299 /// <returns>a new YP.IClause object on which you can call match(object[] args) where
300 /// args length is the arity of the Head</returns>
301 public static YP.IClause compileAnonymousClause(object Head, object Body, Type declaringClass)
302 {
303 object[] args = YP.getFunctorArgs(Head);
304 // compileAnonymousFunction wants "function".
305 object Rule = new Functor2(Atom.RULE, Functor.make("function", args), Body);
306 object RuleList = ListPair.make(new Functor2(Atom.F, Rule, Atom.NIL));
307
308 StringWriter functionCode = new StringWriter();
309 Variable SaveOutputStream = new Variable();
310 foreach (bool l1 in YP.current_output(SaveOutputStream))
311 {
312 try
313 {
314 YP.tell(functionCode);
315 Variable PseudoCode = new Variable();
316 foreach (bool l2 in makeFunctionPseudoCode(RuleList, PseudoCode))
317 {
318 if (YP.termEqual(PseudoCode, Atom.a("getDeclaringClass")))
319 // Ignore getDeclaringClass since we have access to the one passed in.
320 continue;
321
322 convertFunctionCSharp(PseudoCode);
323 }
324 YP.told();
325 }
326 finally
327 {
328 // Restore after calling tell.
329 YP.tell(SaveOutputStream.getValue());
330 }
331 }
332 return YPCompiler.compileAnonymousFunction
333 (functionCode.ToString(), args.Length, declaringClass);
334 }
335
336 /// <summary>
337 /// Use CodeDomProvider to compile the functionCode and return a YP.ClauseHeadAndBody
338 /// which implements YP.IClause.
339 /// The function name must be "function" and have nArgs arguments.
340 /// </summary>
341 /// <param name="functionCode">the code for the iterator, such as
342 /// "public static IEnumerable<bool> function() { yield return false; }"
343 /// </param>
344 /// <param name="nArgs">the number of args in the function</param>
345 /// <param name="declaringClass">if not null, then use the functionCode inside a class which
346 /// inherits from contextClass, so that references in functionCode to methods in declaringClass don't
347 /// have to be qualified</param>
348 /// <returns>a new YP.IClause object on which you can call match(object[] args) where
349 /// args length is nArgs</returns>
350 public static YP.IClause compileAnonymousFunction(string functionCode, int nArgs, Type declaringClass)
351 {
352 CompilerParameters parameters = new CompilerParameters();
353 // This gets the location of the System assembly.
354 parameters.ReferencedAssemblies.Add(typeof(System.Int32).Assembly.Location);
355 // This gets the location of this assembly which also has YieldProlog.YP, etc.
356 parameters.ReferencedAssemblies.Add(typeof(YPCompiler).Assembly.Location);
357 if (declaringClass != null)
358 parameters.ReferencedAssemblies.Add(declaringClass.Assembly.Location);
359 parameters.GenerateInMemory = true;
360
361 StringBuilder sourceCode = new StringBuilder();
362 sourceCode.Append(@"
363using System;
364using System.Collections.Generic;
365using OpenSim.Region.ScriptEngine.Shared.YieldProlog;
366
367namespace Temporary {
368 public class Temporary : YP.ClauseHeadAndBody, YP.IClause {");
369 if (declaringClass == null)
370 // We don't extend a class with getDeclaringClass, so define it.
371 sourceCode.Append(@"
372 public class Inner {
373 public static System.Type getDeclaringClass() { return null; }
374");
375 else
376 sourceCode.Append(@"
377 public class Inner : " + declaringClass.FullName + @" {
378");
379 sourceCode.Append(functionCode);
380 // Basically, match applies the args to function.
381 sourceCode.Append(@"
382 }
383 public IEnumerable<bool> match(object[] args) {
384 return Inner.function(");
385 if (nArgs >= 1)
386 sourceCode.Append("args[0]");
387 for (int i = 1; i < nArgs; ++i)
388 sourceCode.Append(", args[" + i + "]");
389 sourceCode.Append(@");
390 }
391 }
392}
393");
394
395 CompilerResults results = CodeDomProvider.CreateProvider
396 ("CSharp").CompileAssemblyFromSource(parameters, sourceCode.ToString());
397 if (results.Errors.Count > 0)
398 throw new Exception("Error evaluating code: " + results.Errors[0]);
399
400 // Return a new Temporary.Temporary object.
401 return (YP.IClause)results.CompiledAssembly.GetType
402 ("Temporary.Temporary").GetConstructor(Type.EmptyTypes).Invoke(null);
403 }
404
405 /// <summary>
406 /// If the functor with name and args can be called directly as determined by
407 /// functorCallFunctionName, then call it and return its iterator. If the predicate is
408 /// dynamic and undefined, or if static and the method cannot be found, return
409 /// the result of YP.unknownPredicate.
410 /// This returns null if the functor has a special form than needs to be compiled
411 /// (including ,/2 and ;/2).
412 /// </summary>
413 /// <param name="name"></param>
414 /// <param name="args"></param>
415 /// <param name="declaringClass">used to resolve references to the default
416 /// module Atom.a(""). If a declaringClass is needed to resolve the reference but it is
417 /// null, this throws a PrologException for existence_error</param>
418 /// <returns></returns>
419 public static IEnumerable<bool> getSimpleIterator(Atom name, object[] args, Type declaringClass)
420 {
421 CompilerState state = new CompilerState();
422 Variable FunctionName = new Variable();
423 foreach (bool l1 in functorCallFunctionName(state, name, args.Length, FunctionName))
424 {
425 Atom functionNameAtom = ((Atom)FunctionName.getValue());
426 if (functionNameAtom == Atom.NIL)
427 // name is for a dynamic predicate.
428 return YP.matchDynamic(name, args);
429
430 string methodName = functionNameAtom._name;
431 // Set the default for the method to call.
432 Type methodClass = declaringClass;
433
434 bool checkMode = false;
435 if (methodName.StartsWith("YP."))
436 {
437 // Assume we only check mode in calls to standard Prolog predicates in YP.
438 checkMode = true;
439
440 // Use the method in class YP.
441 methodName = methodName.Substring(3);
442 methodClass = typeof(YP);
443 }
444 if (methodName.Contains("."))
445 // We don't support calling inner classes, etc.
446 return null;
447
448 if (methodClass == null)
449 return YP.unknownPredicate
450 (name, args.Length,
451 "Cannot find predicate function for: " + name + "/" + args.Length +
452 " because declaringClass is null. Set declaringClass to the class containing " +
453 methodName);
454 try
455 {
456 if (checkMode)
457 {
458 assertYPPred(state);
459 object functor = Functor.make(name, args);
460 if (CompilerState.isDetNoneOut(state, functor))
461 {
462 methodClass.InvokeMember
463 (methodName, BindingFlags.InvokeMethod, null, null, args);
464 return YP.succeed();
465 }
466 if (CompilerState.isSemidetNoneOut(state, functor))
467 {
468 if ((bool)methodClass.InvokeMember
469 (methodName, BindingFlags.InvokeMethod, null, null, args))
470 return YP.succeed();
471 else
472 return YP.fail();
473 }
474
475 }
476 return (IEnumerable<bool>)methodClass.InvokeMember
477 (methodName, BindingFlags.InvokeMethod, null, null, args);
478 }
479 catch (TargetInvocationException exception)
480 {
481 throw exception.InnerException;
482 }
483 catch (MissingMethodException)
484 {
485 return YP.unknownPredicate
486 (name, args.Length,
487 "Cannot find predicate function " + methodName + " for " + name + "/" + args.Length +
488 " in " + methodClass.FullName);
489 }
490 }
491
492 return null;
493 }
494
495 /// <summary>
496 /// Return true if there is a dynamic or static predicate with name and arity.
497 /// This returns false for built-in predicates.
498 /// </summary>
499 /// <param name="name"></param>
500 /// <param name="arity"></param>
501 /// <param name="declaringClass">used to resolve references to the default
502 /// module Atom.a(""). If a declaringClass is needed to resolve the reference but it is
503 /// null, return false</param>
504 /// <returns></returns>
505 public static bool isCurrentPredicate(Atom name, int arity, Type declaringClass)
506 {
507 CompilerState state = new CompilerState();
508 Variable FunctionName = new Variable();
509 foreach (bool l1 in functorCallFunctionName(state, name, arity, FunctionName))
510 {
511 Atom functionNameAtom = ((Atom)FunctionName.getValue());
512 if (functionNameAtom == Atom.NIL)
513 // name is for a dynamic predicate.
514 return YP.isDynamicCurrentPredicate(name, arity);
515
516 string methodName = functionNameAtom._name;
517
518 if (methodName.StartsWith("YP."))
519 // current_predicate/1 should fail for built-ins.
520 return false;
521 if (methodName.Contains("."))
522 // We don't support calling inner classes, etc.
523 return false;
524 if (declaringClass == null)
525 return false;
526
527 foreach (MemberInfo member in declaringClass.GetMember(methodName))
528 {
529 MethodInfo method = member as MethodInfo;
530 if (method == null)
531 continue;
532 if ((method.Attributes | MethodAttributes.Static) == 0)
533 // Not a static method.
534 continue;
535 if (method.GetParameters().Length == arity)
536 return true;
537 }
538 }
539
540 return false;
541 }
542
543 // Compiler output follows.
544
545 public class YPInnerClass { }
546 public static System.Type getDeclaringClass() { return typeof(YPInnerClass).DeclaringType; }
547
548 public static void repeatWrite(object arg1, object N)
549 {
550 {
551 object _Value = arg1;
552 if (YP.termEqual(N, 0))
553 {
554 return;
555 }
556 }
557 {
558 object Value = arg1;
559 Variable NextN = new Variable();
560 YP.write(Value);
561 foreach (bool l2 in YP.unify(NextN, YP.subtract(N, 1)))
562 {
563 repeatWrite(Value, NextN);
564 return;
565 }
566 }
567 }
568
569 public static bool sameVariable(object Variable1, object Variable2)
570 {
571 {
572 if (YP.var(Variable1))
573 {
574 if (YP.var(Variable2))
575 {
576 if (YP.termEqual(Variable1, Variable2))
577 {
578 return true;
579 }
580 }
581 }
582 }
583 return false;
584 }
585
586 public static IEnumerable<bool> makeFunctionPseudoCode(object RuleList, object FunctionCode)
587 {
588 {
589 Variable State = new Variable();
590 foreach (bool l2 in CompilerState.make(State))
591 {
592 assertYPPred(State);
593 processCompilerDirectives(RuleList, State);
594 foreach (bool l3 in YP.unify(FunctionCode, Atom.a("getDeclaringClass")))
595 {
596 yield return false;
597 }
598 foreach (bool l3 in makeFunctionPseudoCode3(RuleList, State, FunctionCode))
599 {
600 yield return false;
601 }
602 }
603 }
604 }
605
606 public static void assertYPPred(object State)
607 {
608 {
609 CompilerState.assertPred(State, Atom.a("nl"), Atom.a("det"));
610 CompilerState.assertPred(State, new Functor1("write", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
611 CompilerState.assertPred(State, new Functor1("put_code", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
612 CompilerState.assertPred(State, new Functor1("see", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
613 CompilerState.assertPred(State, Atom.a("seen"), Atom.a("det"));
614 CompilerState.assertPred(State, new Functor1("tell", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
615 CompilerState.assertPred(State, Atom.a("told"), Atom.a("det"));
616 CompilerState.assertPred(State, new Functor1("throw", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
617 CompilerState.assertPred(State, new Functor1("abolish", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
618 CompilerState.assertPred(State, new Functor1("retractall", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
619 CompilerState.assertPred(State, new Functor2("set_prolog_flag", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("det"));
620 CompilerState.assertPred(State, new Functor1("var", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
621 CompilerState.assertPred(State, new Functor1("nonvar", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
622 CompilerState.assertPred(State, new Functor1("atom", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
623 CompilerState.assertPred(State, new Functor1("integer", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
624 CompilerState.assertPred(State, new Functor1("float", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
625 CompilerState.assertPred(State, new Functor1("number", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
626 CompilerState.assertPred(State, new Functor1("atomic", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
627 CompilerState.assertPred(State, new Functor1("compound", new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
628 CompilerState.assertPred(State, new Functor2("==", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
629 CompilerState.assertPred(State, new Functor2("\\==", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
630 CompilerState.assertPred(State, new Functor2("@<", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
631 CompilerState.assertPred(State, new Functor2("@=<", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
632 CompilerState.assertPred(State, new Functor2("@>", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
633 CompilerState.assertPred(State, new Functor2("@>=", new Functor2("::", Atom.a("univ"), Atom.a("in")), new Functor2("::", Atom.a("univ"), Atom.a("in"))), Atom.a("semidet"));
634 return;
635 }
636 }
637
638 public static void processCompilerDirectives(object arg1, object arg2)
639 {
640 {
641 object _State = arg2;
642 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
643 {
644 return;
645 }
646 }
647 {
648 object State = arg2;
649 Variable Pred = new Variable();
650 Variable Determinism = new Variable();
651 Variable x3 = new Variable();
652 Variable RestRules = new Variable();
653 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", new Functor1(":-", new Functor1("pred", new Functor2("is", Pred, Determinism))), x3), RestRules)))
654 {
655 CompilerState.assertPred(State, Pred, Determinism);
656 processCompilerDirectives(RestRules, State);
657 return;
658 }
659 }
660 {
661 object State = arg2;
662 Variable Module = new Variable();
663 Variable PredicateList = new Variable();
664 Variable x3 = new Variable();
665 Variable RestRules = new Variable();
666 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", new Functor1(":-", new Functor2("import", Module, PredicateList)), x3), RestRules)))
667 {
668 foreach (bool l3 in importPredicateList(State, Module, PredicateList))
669 {
670 processCompilerDirectives(RestRules, State);
671 return;
672 }
673 }
674 }
675 {
676 object State = arg2;
677 Variable x1 = new Variable();
678 Variable x2 = new Variable();
679 Variable RestRules = new Variable();
680 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", new Functor1(":-", x1), x2), RestRules)))
681 {
682 processCompilerDirectives(RestRules, State);
683 return;
684 }
685 }
686 {
687 object State = arg2;
688 Variable Head = new Variable();
689 Variable _Body = new Variable();
690 Variable x3 = new Variable();
691 Variable RestRules = new Variable();
692 Variable Name = new Variable();
693 Variable Arity = new Variable();
694 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", new Functor2(":-", Head, _Body), x3), RestRules)))
695 {
696 foreach (bool l3 in YP.functor(Head, Name, Arity))
697 {
698 CompilerState.assertModuleForNameArity(State, Name, Arity, Atom.a(""));
699 processCompilerDirectives(RestRules, State);
700 return;
701 }
702 }
703 }
704 {
705 object State = arg2;
706 Variable Fact = new Variable();
707 Variable x2 = new Variable();
708 Variable RestRules = new Variable();
709 Variable Name = new Variable();
710 Variable Arity = new Variable();
711 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", Fact, x2), RestRules)))
712 {
713 foreach (bool l3 in YP.functor(Fact, Name, Arity))
714 {
715 CompilerState.assertModuleForNameArity(State, Name, Arity, Atom.a(""));
716 processCompilerDirectives(RestRules, State);
717 return;
718 }
719 }
720 }
721 {
722 object State = arg2;
723 Variable x1 = new Variable();
724 Variable RestRules = new Variable();
725 foreach (bool l2 in YP.unify(arg1, new ListPair(x1, RestRules)))
726 {
727 processCompilerDirectives(RestRules, State);
728 return;
729 }
730 }
731 }
732
733 public static IEnumerable<bool> importPredicateList(object arg1, object arg2, object arg3)
734 {
735 {
736 object _State = arg1;
737 object _Module = arg2;
738 foreach (bool l2 in YP.unify(arg3, Atom.NIL))
739 {
740 yield return true;
741 yield break;
742 }
743 }
744 {
745 object State = arg1;
746 object Module = arg2;
747 Variable Name = new Variable();
748 Variable Arity = new Variable();
749 Variable Rest = new Variable();
750 foreach (bool l2 in YP.unify(arg3, new ListPair(new Functor2("/", Name, Arity), Rest)))
751 {
752 CompilerState.assertModuleForNameArity(State, Name, Arity, Module);
753 foreach (bool l3 in importPredicateList(State, Module, Rest))
754 {
755 yield return true;
756 yield break;
757 }
758 }
759 }
760 {
761 object State = arg1;
762 object Module = arg2;
763 Variable x3 = new Variable();
764 Variable Rest = new Variable();
765 foreach (bool l2 in YP.unify(arg3, new ListPair(x3, Rest)))
766 {
767 foreach (bool l3 in importPredicateList(State, Module, Rest))
768 {
769 yield return true;
770 yield break;
771 }
772 }
773 }
774 }
775
776 public static IEnumerable<bool> makeFunctionPseudoCode3(object RuleList, object State, object FunctionCode)
777 {
778 {
779 Variable SamePredicateRuleList = new Variable();
780 Variable RestRules = new Variable();
781 foreach (bool l2 in samePredicateRuleList(RuleList, SamePredicateRuleList, RestRules))
782 {
783 if (YP.termNotEqual(SamePredicateRuleList, Atom.NIL))
784 {
785 foreach (bool l4 in compileSamePredicateFunction(SamePredicateRuleList, State, FunctionCode))
786 {
787 yield return false;
788 }
789 foreach (bool l4 in makeFunctionPseudoCode3(RestRules, State, FunctionCode))
790 {
791 yield return false;
792 }
793 }
794 }
795 }
796 }
797
798 public static IEnumerable<bool> compileSamePredicateFunction(object SamePredicateRuleList, object State, object FunctionCode)
799 {
800 {
801 Variable FirstRule = new Variable();
802 Variable x5 = new Variable();
803 Variable x6 = new Variable();
804 Variable x7 = new Variable();
805 Variable Head = new Variable();
806 Variable x9 = new Variable();
807 Variable ArgAssignments = new Variable();
808 Variable Calls = new Variable();
809 Variable Rule = new Variable();
810 Variable VariableNameSuggestions = new Variable();
811 Variable ClauseBag = new Variable();
812 Variable Name = new Variable();
813 Variable ArgsList = new Variable();
814 Variable FunctionArgNames = new Variable();
815 Variable MergedArgName = new Variable();
816 Variable ArgName = new Variable();
817 Variable MergedArgNames = new Variable();
818 Variable FunctionArgs = new Variable();
819 Variable BodyCode = new Variable();
820 Variable ReturnType = new Variable();
821 Variable BodyWithReturn = new Variable();
822 foreach (bool l2 in YP.unify(new ListPair(new Functor2("f", FirstRule, x5), x6), SamePredicateRuleList))
823 {
824 foreach (bool l3 in YP.unify(FirstRule, new Functor1(":-", x7)))
825 {
826 goto cutIf1;
827 }
828 foreach (bool l3 in YP.unify(new Functor2(":-", Head, x9), FirstRule))
829 {
830 CompilerState.startFunction(State, Head);
831 FindallAnswers findallAnswers3 = new FindallAnswers(new Functor2("f", ArgAssignments, Calls));
832 foreach (bool l4 in member(new Functor2("f", Rule, VariableNameSuggestions), SamePredicateRuleList))
833 {
834 foreach (bool l5 in compileBodyWithHeadBindings(Rule, VariableNameSuggestions, State, ArgAssignments, Calls))
835 {
836 findallAnswers3.add();
837 }
838 }
839 foreach (bool l4 in findallAnswers3.result(ClauseBag))
840 {
841 foreach (bool l5 in YP.univ(Head, new ListPair(Name, ArgsList)))
842 {
843 foreach (bool l6 in getFunctionArgNames(ArgsList, 1, FunctionArgNames))
844 {
845 FindallAnswers findallAnswers4 = new FindallAnswers(MergedArgName);
846 foreach (bool l7 in member(ArgName, FunctionArgNames))
847 {
848 foreach (bool l8 in argAssignedAll(ArgName, ClauseBag, MergedArgName))
849 {
850 findallAnswers4.add();
851 goto cutIf5;
852 }
853 foreach (bool l8 in YP.unify(MergedArgName, ArgName))
854 {
855 findallAnswers4.add();
856 }
857 cutIf5:
858 { }
859 }
860 foreach (bool l7 in findallAnswers4.result(MergedArgNames))
861 {
862 foreach (bool l8 in maplist_arg(MergedArgNames, FunctionArgs))
863 {
864 foreach (bool l9 in maplist_compileClause(ClauseBag, MergedArgNames, BodyCode))
865 {
866 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
867 {
868 foreach (bool l11 in YP.unify(ReturnType, Atom.a("void")))
869 {
870 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
871 {
872 foreach (bool l13 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
873 {
874 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
875 {
876 yield return false;
877 }
878 }
879 goto cutIf7;
880 }
881 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
882 {
883 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
884 {
885 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
886 {
887 yield return false;
888 }
889 }
890 goto cutIf8;
891 }
892 if (CompilerState.codeUsesYield(State))
893 {
894 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
895 {
896 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
897 {
898 yield return false;
899 }
900 }
901 goto cutIf9;
902 }
903 foreach (bool l12 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
904 {
905 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
906 {
907 yield return false;
908 }
909 }
910 cutIf9:
911 cutIf8:
912 cutIf7:
913 { }
914 }
915 goto cutIf6;
916 }
917 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
918 {
919 foreach (bool l11 in YP.unify(ReturnType, Atom.a("bool")))
920 {
921 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
922 {
923 foreach (bool l13 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
924 {
925 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
926 {
927 yield return false;
928 }
929 }
930 goto cutIf11;
931 }
932 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
933 {
934 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
935 {
936 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
937 {
938 yield return false;
939 }
940 }
941 goto cutIf12;
942 }
943 if (CompilerState.codeUsesYield(State))
944 {
945 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
946 {
947 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
948 {
949 yield return false;
950 }
951 }
952 goto cutIf13;
953 }
954 foreach (bool l12 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
955 {
956 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
957 {
958 yield return false;
959 }
960 }
961 cutIf13:
962 cutIf12:
963 cutIf11:
964 { }
965 }
966 goto cutIf10;
967 }
968 foreach (bool l10 in YP.unify(ReturnType, Atom.a("IEnumerable<bool>")))
969 {
970 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
971 {
972 foreach (bool l12 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
973 {
974 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
975 {
976 yield return false;
977 }
978 }
979 goto cutIf14;
980 }
981 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
982 {
983 foreach (bool l12 in YP.unify(BodyWithReturn, BodyCode))
984 {
985 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
986 {
987 yield return false;
988 }
989 }
990 goto cutIf15;
991 }
992 if (CompilerState.codeUsesYield(State))
993 {
994 foreach (bool l12 in YP.unify(BodyWithReturn, BodyCode))
995 {
996 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
997 {
998 yield return false;
999 }
1000 }
1001 goto cutIf16;
1002 }
1003 foreach (bool l11 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
1004 {
1005 foreach (bool l12 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1006 {
1007 yield return false;
1008 }
1009 }
1010 cutIf16:
1011 cutIf15:
1012 cutIf14:
1013 { }
1014 }
1015 cutIf10:
1016 cutIf6:
1017 { }
1018 }
1019 }
1020 }
1021 }
1022 }
1023 }
1024 goto cutIf2;
1025 }
1026 foreach (bool l3 in YP.unify(Head, FirstRule))
1027 {
1028 CompilerState.startFunction(State, Head);
1029 FindallAnswers findallAnswers17 = new FindallAnswers(new Functor2("f", ArgAssignments, Calls));
1030 foreach (bool l4 in member(new Functor2("f", Rule, VariableNameSuggestions), SamePredicateRuleList))
1031 {
1032 foreach (bool l5 in compileBodyWithHeadBindings(Rule, VariableNameSuggestions, State, ArgAssignments, Calls))
1033 {
1034 findallAnswers17.add();
1035 }
1036 }
1037 foreach (bool l4 in findallAnswers17.result(ClauseBag))
1038 {
1039 foreach (bool l5 in YP.univ(Head, new ListPair(Name, ArgsList)))
1040 {
1041 foreach (bool l6 in getFunctionArgNames(ArgsList, 1, FunctionArgNames))
1042 {
1043 FindallAnswers findallAnswers18 = new FindallAnswers(MergedArgName);
1044 foreach (bool l7 in member(ArgName, FunctionArgNames))
1045 {
1046 foreach (bool l8 in argAssignedAll(ArgName, ClauseBag, MergedArgName))
1047 {
1048 findallAnswers18.add();
1049 goto cutIf19;
1050 }
1051 foreach (bool l8 in YP.unify(MergedArgName, ArgName))
1052 {
1053 findallAnswers18.add();
1054 }
1055 cutIf19:
1056 { }
1057 }
1058 foreach (bool l7 in findallAnswers18.result(MergedArgNames))
1059 {
1060 foreach (bool l8 in maplist_arg(MergedArgNames, FunctionArgs))
1061 {
1062 foreach (bool l9 in maplist_compileClause(ClauseBag, MergedArgNames, BodyCode))
1063 {
1064 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
1065 {
1066 foreach (bool l11 in YP.unify(ReturnType, Atom.a("void")))
1067 {
1068 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
1069 {
1070 foreach (bool l13 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
1071 {
1072 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1073 {
1074 yield return false;
1075 }
1076 }
1077 goto cutIf21;
1078 }
1079 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
1080 {
1081 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
1082 {
1083 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1084 {
1085 yield return false;
1086 }
1087 }
1088 goto cutIf22;
1089 }
1090 if (CompilerState.codeUsesYield(State))
1091 {
1092 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
1093 {
1094 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1095 {
1096 yield return false;
1097 }
1098 }
1099 goto cutIf23;
1100 }
1101 foreach (bool l12 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
1102 {
1103 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1104 {
1105 yield return false;
1106 }
1107 }
1108 cutIf23:
1109 cutIf22:
1110 cutIf21:
1111 { }
1112 }
1113 goto cutIf20;
1114 }
1115 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
1116 {
1117 foreach (bool l11 in YP.unify(ReturnType, Atom.a("bool")))
1118 {
1119 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
1120 {
1121 foreach (bool l13 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
1122 {
1123 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1124 {
1125 yield return false;
1126 }
1127 }
1128 goto cutIf25;
1129 }
1130 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
1131 {
1132 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
1133 {
1134 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1135 {
1136 yield return false;
1137 }
1138 }
1139 goto cutIf26;
1140 }
1141 if (CompilerState.codeUsesYield(State))
1142 {
1143 foreach (bool l13 in YP.unify(BodyWithReturn, BodyCode))
1144 {
1145 foreach (bool l14 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1146 {
1147 yield return false;
1148 }
1149 }
1150 goto cutIf27;
1151 }
1152 foreach (bool l12 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
1153 {
1154 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1155 {
1156 yield return false;
1157 }
1158 }
1159 cutIf27:
1160 cutIf26:
1161 cutIf25:
1162 { }
1163 }
1164 goto cutIf24;
1165 }
1166 foreach (bool l10 in YP.unify(ReturnType, Atom.a("IEnumerable<bool>")))
1167 {
1168 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
1169 {
1170 foreach (bool l12 in append(BodyCode, new ListPair(Atom.a("returnfalse"), Atom.NIL), BodyWithReturn))
1171 {
1172 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1173 {
1174 yield return false;
1175 }
1176 }
1177 goto cutIf28;
1178 }
1179 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
1180 {
1181 foreach (bool l12 in YP.unify(BodyWithReturn, BodyCode))
1182 {
1183 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1184 {
1185 yield return false;
1186 }
1187 }
1188 goto cutIf29;
1189 }
1190 if (CompilerState.codeUsesYield(State))
1191 {
1192 foreach (bool l12 in YP.unify(BodyWithReturn, BodyCode))
1193 {
1194 foreach (bool l13 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1195 {
1196 yield return false;
1197 }
1198 }
1199 goto cutIf30;
1200 }
1201 foreach (bool l11 in append(BodyCode, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.fail"), Atom.NIL), new ListPair(Atom.a("yieldfalse"), Atom.NIL)), Atom.NIL), BodyWithReturn))
1202 {
1203 foreach (bool l12 in YP.unify(FunctionCode, new Functor("function", new object[] { ReturnType, Name, FunctionArgs, BodyWithReturn })))
1204 {
1205 yield return false;
1206 }
1207 }
1208 cutIf30:
1209 cutIf29:
1210 cutIf28:
1211 { }
1212 }
1213 cutIf24:
1214 cutIf20:
1215 { }
1216 }
1217 }
1218 }
1219 }
1220 }
1221 }
1222 }
1223 cutIf2:
1224 cutIf1:
1225 { }
1226 }
1227 }
1228 }
1229
1230 public static IEnumerable<bool> samePredicateRuleList(object arg1, object arg2, object arg3)
1231 {
1232 {
1233 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1234 {
1235 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
1236 {
1237 foreach (bool l4 in YP.unify(arg3, Atom.NIL))
1238 {
1239 yield return true;
1240 yield break;
1241 }
1242 }
1243 }
1244 }
1245 {
1246 Variable First = new Variable();
1247 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Atom.NIL)))
1248 {
1249 foreach (bool l3 in YP.unify(arg2, new ListPair(First, Atom.NIL)))
1250 {
1251 foreach (bool l4 in YP.unify(arg3, Atom.NIL))
1252 {
1253 yield return true;
1254 yield break;
1255 }
1256 }
1257 }
1258 }
1259 {
1260 object SamePredicateRuleList = arg2;
1261 object RestRules = arg3;
1262 Variable First = new Variable();
1263 Variable Rest = new Variable();
1264 Variable FirstRule = new Variable();
1265 Variable x6 = new Variable();
1266 Variable SecondRule = new Variable();
1267 Variable x8 = new Variable();
1268 Variable x9 = new Variable();
1269 Variable FirstHead = new Variable();
1270 Variable x11 = new Variable();
1271 Variable SecondHead = new Variable();
1272 Variable x13 = new Variable();
1273 Variable Name = new Variable();
1274 Variable Arity = new Variable();
1275 Variable RestSamePredicates = new Variable();
1276 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Rest)))
1277 {
1278 foreach (bool l3 in YP.unify(new Functor2("f", FirstRule, x6), First))
1279 {
1280 foreach (bool l4 in YP.unify(new ListPair(new Functor2("f", SecondRule, x8), x9), Rest))
1281 {
1282 foreach (bool l5 in YP.unify(new Functor2(":-", FirstHead, x11), FirstRule))
1283 {
1284 foreach (bool l6 in YP.unify(new Functor2(":-", SecondHead, x13), SecondRule))
1285 {
1286 foreach (bool l7 in YP.functor(FirstHead, Name, Arity))
1287 {
1288 foreach (bool l8 in YP.functor(SecondHead, Name, Arity))
1289 {
1290 foreach (bool l9 in samePredicateRuleList(Rest, RestSamePredicates, RestRules))
1291 {
1292 foreach (bool l10 in YP.unify(SamePredicateRuleList, new ListPair(First, RestSamePredicates)))
1293 {
1294 yield return true;
1295 yield break;
1296 }
1297 }
1298 goto cutIf3;
1299 }
1300 foreach (bool l8 in YP.unify(SamePredicateRuleList, new ListPair(First, Atom.NIL)))
1301 {
1302 foreach (bool l9 in YP.unify(RestRules, Rest))
1303 {
1304 yield return true;
1305 yield break;
1306 }
1307 }
1308 cutIf3:
1309 { }
1310 }
1311 goto cutIf2;
1312 }
1313 foreach (bool l6 in YP.unify(SecondHead, SecondRule))
1314 {
1315 foreach (bool l7 in YP.functor(FirstHead, Name, Arity))
1316 {
1317 foreach (bool l8 in YP.functor(SecondHead, Name, Arity))
1318 {
1319 foreach (bool l9 in samePredicateRuleList(Rest, RestSamePredicates, RestRules))
1320 {
1321 foreach (bool l10 in YP.unify(SamePredicateRuleList, new ListPair(First, RestSamePredicates)))
1322 {
1323 yield return true;
1324 yield break;
1325 }
1326 }
1327 goto cutIf4;
1328 }
1329 foreach (bool l8 in YP.unify(SamePredicateRuleList, new ListPair(First, Atom.NIL)))
1330 {
1331 foreach (bool l9 in YP.unify(RestRules, Rest))
1332 {
1333 yield return true;
1334 yield break;
1335 }
1336 }
1337 cutIf4:
1338 { }
1339 }
1340 }
1341 cutIf2:
1342 goto cutIf1;
1343 }
1344 foreach (bool l5 in YP.unify(FirstHead, FirstRule))
1345 {
1346 foreach (bool l6 in YP.unify(new Functor2(":-", SecondHead, x13), SecondRule))
1347 {
1348 foreach (bool l7 in YP.functor(FirstHead, Name, Arity))
1349 {
1350 foreach (bool l8 in YP.functor(SecondHead, Name, Arity))
1351 {
1352 foreach (bool l9 in samePredicateRuleList(Rest, RestSamePredicates, RestRules))
1353 {
1354 foreach (bool l10 in YP.unify(SamePredicateRuleList, new ListPair(First, RestSamePredicates)))
1355 {
1356 yield return true;
1357 yield break;
1358 }
1359 }
1360 goto cutIf6;
1361 }
1362 foreach (bool l8 in YP.unify(SamePredicateRuleList, new ListPair(First, Atom.NIL)))
1363 {
1364 foreach (bool l9 in YP.unify(RestRules, Rest))
1365 {
1366 yield return true;
1367 yield break;
1368 }
1369 }
1370 cutIf6:
1371 { }
1372 }
1373 goto cutIf5;
1374 }
1375 foreach (bool l6 in YP.unify(SecondHead, SecondRule))
1376 {
1377 foreach (bool l7 in YP.functor(FirstHead, Name, Arity))
1378 {
1379 foreach (bool l8 in YP.functor(SecondHead, Name, Arity))
1380 {
1381 foreach (bool l9 in samePredicateRuleList(Rest, RestSamePredicates, RestRules))
1382 {
1383 foreach (bool l10 in YP.unify(SamePredicateRuleList, new ListPair(First, RestSamePredicates)))
1384 {
1385 yield return true;
1386 yield break;
1387 }
1388 }
1389 goto cutIf7;
1390 }
1391 foreach (bool l8 in YP.unify(SamePredicateRuleList, new ListPair(First, Atom.NIL)))
1392 {
1393 foreach (bool l9 in YP.unify(RestRules, Rest))
1394 {
1395 yield return true;
1396 yield break;
1397 }
1398 }
1399 cutIf7:
1400 { }
1401 }
1402 }
1403 cutIf5:
1404 { }
1405 }
1406 cutIf1:
1407 { }
1408 }
1409 }
1410 }
1411 }
1412 }
1413
1414 public static IEnumerable<bool> maplist_compileClause(object arg1, object arg2, object arg3)
1415 {
1416 {
1417 object _MergedArgNames = arg2;
1418 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1419 {
1420 foreach (bool l3 in YP.unify(arg3, Atom.NIL))
1421 {
1422 yield return true;
1423 yield break;
1424 }
1425 }
1426 }
1427 {
1428 object MergedArgNames = arg2;
1429 Variable ArgAssignments = new Variable();
1430 Variable Calls = new Variable();
1431 Variable Rest = new Variable();
1432 Variable ClauseCode = new Variable();
1433 Variable RestResults = new Variable();
1434 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", ArgAssignments, Calls), Rest)))
1435 {
1436 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor1("blockScope", ClauseCode), RestResults)))
1437 {
1438 foreach (bool l4 in prependArgAssignments(ArgAssignments, Calls, MergedArgNames, ClauseCode))
1439 {
1440 foreach (bool l5 in maplist_compileClause(Rest, MergedArgNames, RestResults))
1441 {
1442 yield return true;
1443 yield break;
1444 }
1445 }
1446 }
1447 }
1448 }
1449 }
1450
1451 public static IEnumerable<bool> prependArgAssignments(object arg1, object arg2, object arg3, object arg4)
1452 {
1453 {
1454 object _MergedArgNames = arg3;
1455 Variable In = new Variable();
1456 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1457 {
1458 foreach (bool l3 in YP.unify(arg2, In))
1459 {
1460 foreach (bool l4 in YP.unify(arg4, In))
1461 {
1462 yield return true;
1463 yield break;
1464 }
1465 }
1466 }
1467 }
1468 {
1469 object In = arg2;
1470 object MergedArgNames = arg3;
1471 object ClauseCode = arg4;
1472 Variable VariableName = new Variable();
1473 Variable ArgName = new Variable();
1474 Variable RestArgAssignments = new Variable();
1475 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("f", VariableName, ArgName), RestArgAssignments)))
1476 {
1477 foreach (bool l3 in member(VariableName, MergedArgNames))
1478 {
1479 foreach (bool l4 in prependArgAssignments(RestArgAssignments, In, MergedArgNames, ClauseCode))
1480 {
1481 yield return true;
1482 yield break;
1483 }
1484 goto cutIf1;
1485 }
1486 foreach (bool l3 in prependArgAssignments(RestArgAssignments, new ListPair(new Functor3("declare", Atom.a("object"), VariableName, new Functor1("var", ArgName)), In), MergedArgNames, ClauseCode))
1487 {
1488 yield return true;
1489 yield break;
1490 }
1491 cutIf1:
1492 { }
1493 }
1494 }
1495 }
1496
1497 public static IEnumerable<bool> argAssignedAll(object arg1, object arg2, object VariableName)
1498 {
1499 {
1500 object _ArgName = arg1;
1501 foreach (bool l2 in YP.unify(arg2, Atom.NIL))
1502 {
1503 if (YP.nonvar(VariableName))
1504 {
1505 yield return true;
1506 yield break;
1507 }
1508 }
1509 }
1510 {
1511 object ArgName = arg1;
1512 Variable ArgAssignments = new Variable();
1513 Variable _Calls = new Variable();
1514 Variable RestClauseBag = new Variable();
1515 foreach (bool l2 in YP.unify(arg2, new ListPair(new Functor2("f", ArgAssignments, _Calls), RestClauseBag)))
1516 {
1517 foreach (bool l3 in member(new Functor2("f", VariableName, ArgName), ArgAssignments))
1518 {
1519 foreach (bool l4 in argAssignedAll(ArgName, RestClauseBag, VariableName))
1520 {
1521 yield return false;
1522 }
1523 }
1524 }
1525 }
1526 }
1527
1528 public static IEnumerable<bool> maplist_arg(object arg1, object arg2)
1529 {
1530 {
1531 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1532 {
1533 foreach (bool l3 in YP.unify(arg2, Atom.NIL))
1534 {
1535 yield return true;
1536 yield break;
1537 }
1538 }
1539 }
1540 {
1541 Variable First = new Variable();
1542 Variable Rest = new Variable();
1543 Variable RestResults = new Variable();
1544 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Rest)))
1545 {
1546 foreach (bool l3 in YP.unify(arg2, new ListPair(new Functor1("arg", First), RestResults)))
1547 {
1548 foreach (bool l4 in maplist_arg(Rest, RestResults))
1549 {
1550 yield return true;
1551 yield break;
1552 }
1553 }
1554 }
1555 }
1556 }
1557
1558 public static IEnumerable<bool> getFunctionArgNames(object arg1, object arg2, object arg3)
1559 {
1560 {
1561 object _StartArgNumber = arg2;
1562 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1563 {
1564 foreach (bool l3 in YP.unify(arg3, Atom.NIL))
1565 {
1566 yield return true;
1567 yield break;
1568 }
1569 }
1570 }
1571 {
1572 object StartArgNumber = arg2;
1573 Variable x1 = new Variable();
1574 Variable Rest = new Variable();
1575 Variable ArgName = new Variable();
1576 Variable RestFunctionArgs = new Variable();
1577 Variable NumberCodes = new Variable();
1578 Variable NumberAtom = new Variable();
1579 Variable NextArgNumber = new Variable();
1580 foreach (bool l2 in YP.unify(arg1, new ListPair(x1, Rest)))
1581 {
1582 foreach (bool l3 in YP.unify(arg3, new ListPair(ArgName, RestFunctionArgs)))
1583 {
1584 foreach (bool l4 in YP.number_codes(StartArgNumber, NumberCodes))
1585 {
1586 foreach (bool l5 in YP.atom_codes(NumberAtom, NumberCodes))
1587 {
1588 foreach (bool l6 in YP.atom_concat(Atom.a("arg"), NumberAtom, ArgName))
1589 {
1590 foreach (bool l7 in YP.unify(NextArgNumber, YP.add(StartArgNumber, 1)))
1591 {
1592 foreach (bool l8 in getFunctionArgNames(Rest, NextArgNumber, RestFunctionArgs))
1593 {
1594 yield return true;
1595 yield break;
1596 }
1597 }
1598 }
1599 }
1600 }
1601 }
1602 }
1603 }
1604 }
1605
1606 public static IEnumerable<bool> compileBodyWithHeadBindings(object Rule, object VariableNameSuggestions, object State, object ArgAssignments, object Calls)
1607 {
1608 {
1609 Variable Head = new Variable();
1610 Variable Body = new Variable();
1611 Variable x8 = new Variable();
1612 Variable HeadArgs = new Variable();
1613 Variable CompiledHeadArgs = new Variable();
1614 Variable BodyCode = new Variable();
1615 Variable VariableNamesList = new Variable();
1616 Variable ArgUnifications = new Variable();
1617 foreach (bool l2 in YP.unify(new Functor2(":-", Head, Body), Rule))
1618 {
1619 CompilerState.newVariableNames(State, Rule, VariableNameSuggestions);
1620 foreach (bool l3 in YP.univ(Head, new ListPair(x8, HeadArgs)))
1621 {
1622 foreach (bool l4 in maplist_compileTerm(HeadArgs, State, CompiledHeadArgs))
1623 {
1624 foreach (bool l5 in compileRuleBody(Body, State, BodyCode))
1625 {
1626 foreach (bool l6 in CompilerState.variableNamesList(State, VariableNamesList))
1627 {
1628 foreach (bool l7 in compileArgUnifications(HeadArgs, CompiledHeadArgs, 1, HeadArgs, BodyCode, ArgUnifications))
1629 {
1630 foreach (bool l8 in compileDeclarations(VariableNamesList, HeadArgs, Atom.NIL, ArgAssignments, ArgUnifications, Calls))
1631 {
1632 yield return true;
1633 yield break;
1634 }
1635 }
1636 }
1637 }
1638 }
1639 }
1640 }
1641 }
1642 {
1643 foreach (bool l2 in compileBodyWithHeadBindings(new Functor2(":-", Rule, Atom.a("true")), VariableNameSuggestions, State, ArgAssignments, Calls))
1644 {
1645 yield return true;
1646 yield break;
1647 }
1648 }
1649 }
1650
1651 public static IEnumerable<bool> compileArgUnifications(object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
1652 {
1653 {
1654 object x1 = arg2;
1655 object x2 = arg3;
1656 object x3 = arg4;
1657 Variable BodyCode = new Variable();
1658 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1659 {
1660 foreach (bool l3 in YP.unify(arg5, BodyCode))
1661 {
1662 foreach (bool l4 in YP.unify(arg6, BodyCode))
1663 {
1664 yield return true;
1665 yield break;
1666 }
1667 }
1668 }
1669 }
1670 {
1671 object Index = arg3;
1672 object AllHeadArgs = arg4;
1673 object BodyCode = arg5;
1674 object ArgUnifications = arg6;
1675 Variable HeadArg = new Variable();
1676 Variable RestHeadArgs = new Variable();
1677 Variable x3 = new Variable();
1678 Variable RestCompiledHeadArgs = new Variable();
1679 Variable _ArgIndex1 = new Variable();
1680 Variable NextIndex = new Variable();
1681 foreach (bool l2 in YP.unify(arg1, new ListPair(HeadArg, RestHeadArgs)))
1682 {
1683 foreach (bool l3 in YP.unify(arg2, new ListPair(x3, RestCompiledHeadArgs)))
1684 {
1685 foreach (bool l4 in getVariableArgIndex1(HeadArg, AllHeadArgs, _ArgIndex1))
1686 {
1687 foreach (bool l5 in YP.unify(NextIndex, YP.add(Index, 1)))
1688 {
1689 foreach (bool l6 in compileArgUnifications(RestHeadArgs, RestCompiledHeadArgs, NextIndex, AllHeadArgs, BodyCode, ArgUnifications))
1690 {
1691 yield return true;
1692 yield break;
1693 }
1694 }
1695 }
1696 }
1697 }
1698 }
1699 {
1700 object Index = arg3;
1701 object AllHeadArgs = arg4;
1702 object BodyCode = arg5;
1703 Variable _HeadArg = new Variable();
1704 Variable RestHeadArgs = new Variable();
1705 Variable CompiledHeadArg = new Variable();
1706 Variable RestCompiledHeadArgs = new Variable();
1707 Variable ArgName = new Variable();
1708 Variable RestArgUnifications = new Variable();
1709 Variable NumberCodes = new Variable();
1710 Variable NumberAtom = new Variable();
1711 Variable NextIndex = new Variable();
1712 foreach (bool l2 in YP.unify(arg1, new ListPair(_HeadArg, RestHeadArgs)))
1713 {
1714 foreach (bool l3 in YP.unify(arg2, new ListPair(CompiledHeadArg, RestCompiledHeadArgs)))
1715 {
1716 foreach (bool l4 in YP.unify(arg6, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.unify"), new ListPair(new Functor1("var", ArgName), new ListPair(CompiledHeadArg, Atom.NIL))), RestArgUnifications), Atom.NIL)))
1717 {
1718 foreach (bool l5 in YP.number_codes(Index, NumberCodes))
1719 {
1720 foreach (bool l6 in YP.atom_codes(NumberAtom, NumberCodes))
1721 {
1722 foreach (bool l7 in YP.atom_concat(Atom.a("arg"), NumberAtom, ArgName))
1723 {
1724 foreach (bool l8 in YP.unify(NextIndex, YP.add(Index, 1)))
1725 {
1726 foreach (bool l9 in compileArgUnifications(RestHeadArgs, RestCompiledHeadArgs, NextIndex, AllHeadArgs, BodyCode, RestArgUnifications))
1727 {
1728 yield return true;
1729 yield break;
1730 }
1731 }
1732 }
1733 }
1734 }
1735 }
1736 }
1737 }
1738 }
1739 }
1740
1741 public static IEnumerable<bool> compileDeclarations(object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
1742 {
1743 {
1744 object _HeadArgs = arg2;
1745 Variable ArgAssignmentsIn = new Variable();
1746 Variable DeclarationsIn = new Variable();
1747 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
1748 {
1749 foreach (bool l3 in YP.unify(arg3, ArgAssignmentsIn))
1750 {
1751 foreach (bool l4 in YP.unify(arg4, ArgAssignmentsIn))
1752 {
1753 foreach (bool l5 in YP.unify(arg5, DeclarationsIn))
1754 {
1755 foreach (bool l6 in YP.unify(arg6, DeclarationsIn))
1756 {
1757 yield return true;
1758 yield break;
1759 }
1760 }
1761 }
1762 }
1763 }
1764 }
1765 {
1766 object HeadArgs = arg2;
1767 object ArgAssignmentsIn = arg3;
1768 object ArgAssignmentsOut = arg4;
1769 object DeclarationsIn = arg5;
1770 object DeclarationsOut = arg6;
1771 Variable VariableName = new Variable();
1772 Variable Var = new Variable();
1773 Variable RestVariableNames = new Variable();
1774 Variable ArgIndex1 = new Variable();
1775 Variable NumberCodes = new Variable();
1776 Variable NumberAtom = new Variable();
1777 Variable ArgName = new Variable();
1778 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("=", VariableName, Var), RestVariableNames)))
1779 {
1780 foreach (bool l3 in getVariableArgIndex1(Var, HeadArgs, ArgIndex1))
1781 {
1782 foreach (bool l4 in YP.number_codes(ArgIndex1, NumberCodes))
1783 {
1784 foreach (bool l5 in YP.atom_codes(NumberAtom, NumberCodes))
1785 {
1786 foreach (bool l6 in YP.atom_concat(Atom.a("arg"), NumberAtom, ArgName))
1787 {
1788 foreach (bool l7 in compileDeclarations(RestVariableNames, HeadArgs, new ListPair(new Functor2("f", VariableName, ArgName), ArgAssignmentsIn), ArgAssignmentsOut, DeclarationsIn, DeclarationsOut))
1789 {
1790 yield return true;
1791 yield break;
1792 }
1793 }
1794 }
1795 }
1796 }
1797 }
1798 }
1799 {
1800 object HeadArgs = arg2;
1801 object ArgAssignmentsIn = arg3;
1802 object ArgAssignmentsOut = arg4;
1803 object DeclarationsIn = arg5;
1804 Variable VariableName = new Variable();
1805 Variable _Var = new Variable();
1806 Variable RestVariableNames = new Variable();
1807 Variable DeclarationsOut = new Variable();
1808 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("=", VariableName, _Var), RestVariableNames)))
1809 {
1810 foreach (bool l3 in YP.unify(arg6, new ListPair(new Functor3("declare", Atom.a("Variable"), VariableName, new Functor2("new", Atom.a("Variable"), Atom.NIL)), DeclarationsOut)))
1811 {
1812 foreach (bool l4 in compileDeclarations(RestVariableNames, HeadArgs, ArgAssignmentsIn, ArgAssignmentsOut, DeclarationsIn, DeclarationsOut))
1813 {
1814 yield return true;
1815 yield break;
1816 }
1817 }
1818 }
1819 }
1820 }
1821
1822 public static IEnumerable<bool> getVariableArgIndex1(object Var, object arg2, object arg3)
1823 {
1824 {
1825 Variable FirstHeadArgs = new Variable();
1826 Variable RestHeadArgs = new Variable();
1827 Variable x4 = new Variable();
1828 foreach (bool l2 in YP.unify(arg2, new ListPair(FirstHeadArgs, RestHeadArgs)))
1829 {
1830 foreach (bool l3 in YP.unify(arg3, 1))
1831 {
1832 if (sameVariable(Var, FirstHeadArgs))
1833 {
1834 foreach (bool l5 in getVariableArgIndex1(Var, RestHeadArgs, x4))
1835 {
1836 goto cutIf1;
1837 }
1838 yield return false;
1839 cutIf1:
1840 yield break;
1841 }
1842 }
1843 }
1844 }
1845 {
1846 object Index = arg3;
1847 Variable x2 = new Variable();
1848 Variable RestHeadArgs = new Variable();
1849 Variable RestIndex = new Variable();
1850 foreach (bool l2 in YP.unify(arg2, new ListPair(x2, RestHeadArgs)))
1851 {
1852 foreach (bool l3 in getVariableArgIndex1(Var, RestHeadArgs, RestIndex))
1853 {
1854 foreach (bool l4 in YP.unify(Index, YP.add(1, RestIndex)))
1855 {
1856 yield return true;
1857 yield break;
1858 }
1859 }
1860 }
1861 }
1862 }
1863
1864 public static IEnumerable<bool> compileRuleBody(object arg1, object arg2, object arg3)
1865 {
1866 {
1867 object A = arg1;
1868 object State = arg2;
1869 object PseudoCode = arg3;
1870 if (YP.var(A))
1871 {
1872 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor1("call", A), Atom.a("true")), State, PseudoCode))
1873 {
1874 yield return true;
1875 yield break;
1876 }
1877 }
1878 }
1879 {
1880 object State = arg2;
1881 object PseudoCode = arg3;
1882 Variable A = new Variable();
1883 Variable B = new Variable();
1884 foreach (bool l2 in YP.unify(arg1, new Functor2(",", A, B)))
1885 {
1886 if (YP.var(A))
1887 {
1888 foreach (bool l4 in compileRuleBody(new Functor2(",", new Functor1("call", A), B), State, PseudoCode))
1889 {
1890 yield return true;
1891 yield break;
1892 }
1893 }
1894 }
1895 }
1896 {
1897 object State = arg2;
1898 object PseudoCode = arg3;
1899 Variable A = new Variable();
1900 Variable B = new Variable();
1901 Variable ACode = new Variable();
1902 Variable BCode = new Variable();
1903 foreach (bool l2 in YP.unify(arg1, new Functor2(",", A, B)))
1904 {
1905 foreach (bool l3 in compileFunctorCall(A, State, ACode))
1906 {
1907 if (CompilerState.isDetNoneOut(State, A))
1908 {
1909 foreach (bool l5 in compileRuleBody(B, State, BCode))
1910 {
1911 foreach (bool l6 in YP.unify(PseudoCode, new ListPair(ACode, BCode)))
1912 {
1913 yield return true;
1914 yield break;
1915 }
1916 }
1917 }
1918 if (CompilerState.isSemidetNoneOut(State, A))
1919 {
1920 foreach (bool l5 in compileRuleBody(B, State, BCode))
1921 {
1922 foreach (bool l6 in YP.unify(PseudoCode, new ListPair(new Functor2("if", ACode, BCode), Atom.NIL)))
1923 {
1924 yield return true;
1925 yield break;
1926 }
1927 }
1928 }
1929 foreach (bool l4 in compileRuleBody(B, State, BCode))
1930 {
1931 foreach (bool l5 in YP.unify(PseudoCode, new ListPair(new Functor2("foreach", ACode, BCode), Atom.NIL)))
1932 {
1933 yield return true;
1934 yield break;
1935 }
1936 }
1937 }
1938 }
1939 }
1940 {
1941 object State = arg2;
1942 object PseudoCode = arg3;
1943 Variable A = new Variable();
1944 Variable T = new Variable();
1945 Variable B = new Variable();
1946 Variable C = new Variable();
1947 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2(";", new Functor2("->", A, T), B), C)))
1948 {
1949 foreach (bool l3 in compileRuleBody(new Functor2(";", new Functor2("->", A, new Functor2(",", T, C)), new Functor2(",", B, C)), State, PseudoCode))
1950 {
1951 yield return true;
1952 yield break;
1953 }
1954 }
1955 }
1956 {
1957 object State = arg2;
1958 object PseudoCode = arg3;
1959 Variable A = new Variable();
1960 Variable B = new Variable();
1961 Variable C = new Variable();
1962 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2(";", A, B), C)))
1963 {
1964 foreach (bool l3 in compileRuleBody(new Functor2(";", new Functor2(",", A, C), new Functor2(",", B, C)), State, PseudoCode))
1965 {
1966 yield return true;
1967 yield break;
1968 }
1969 }
1970 }
1971 {
1972 object State = arg2;
1973 Variable A = new Variable();
1974 Variable B = new Variable();
1975 Variable ACode = new Variable();
1976 Variable BCode = new Variable();
1977 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("\\+", A), B)))
1978 {
1979 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("if", new Functor1("not", ACode), BCode), Atom.NIL)))
1980 {
1981 if (CompilerState.isSemidetNoneOut(State, A))
1982 {
1983 foreach (bool l5 in compileFunctorCall(A, State, ACode))
1984 {
1985 foreach (bool l6 in compileRuleBody(B, State, BCode))
1986 {
1987 yield return true;
1988 yield break;
1989 }
1990 }
1991 }
1992 }
1993 }
1994 }
1995 {
1996 object State = arg2;
1997 object PseudoCode = arg3;
1998 Variable A = new Variable();
1999 Variable B = new Variable();
2000 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("\\+", A), B)))
2001 {
2002 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor2(";", new Functor2("->", A, Atom.a("fail")), Atom.a("true")), B), State, PseudoCode))
2003 {
2004 yield return true;
2005 yield break;
2006 }
2007 }
2008 }
2009 {
2010 object State = arg2;
2011 object PseudoCode = arg3;
2012 Variable A = new Variable();
2013 Variable B = new Variable();
2014 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("once", A), B)))
2015 {
2016 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor2(";", new Functor2("->", A, Atom.a("true")), Atom.a("fail")), B), State, PseudoCode))
2017 {
2018 yield return true;
2019 yield break;
2020 }
2021 }
2022 }
2023 {
2024 object State = arg2;
2025 object PseudoCode = arg3;
2026 Variable A = new Variable();
2027 Variable T = new Variable();
2028 Variable B = new Variable();
2029 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2("->", A, T), B)))
2030 {
2031 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor2(";", new Functor2("->", A, T), Atom.a("fail")), B), State, PseudoCode))
2032 {
2033 yield return true;
2034 yield break;
2035 }
2036 }
2037 }
2038 {
2039 object State = arg2;
2040 object PseudoCode = arg3;
2041 Variable A = new Variable();
2042 Variable B = new Variable();
2043 Variable C = new Variable();
2044 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2("\\=", A, B), C)))
2045 {
2046 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor1("\\+", new Functor2("=", A, B)), C), State, PseudoCode))
2047 {
2048 yield return true;
2049 yield break;
2050 }
2051 }
2052 }
2053 {
2054 object State = arg2;
2055 object PseudoCode = arg3;
2056 Variable A = new Variable();
2057 Variable ACode = new Variable();
2058 foreach (bool l2 in YP.unify(arg1, new Functor2(",", Atom.a("!"), A)))
2059 {
2060 foreach (bool l3 in compileRuleBody(A, State, ACode))
2061 {
2062 foreach (bool l4 in append(ACode, new ListPair(Atom.a("yieldbreak"), Atom.NIL), PseudoCode))
2063 {
2064 yield return true;
2065 yield break;
2066 }
2067 }
2068 }
2069 }
2070 {
2071 object State = arg2;
2072 object PseudoCode = arg3;
2073 Variable Name = new Variable();
2074 Variable A = new Variable();
2075 Variable ACode = new Variable();
2076 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("$CUTIF", Name), A)))
2077 {
2078 foreach (bool l3 in compileRuleBody(A, State, ACode))
2079 {
2080 foreach (bool l4 in append(ACode, new ListPair(new Functor1("breakBlock", Name), Atom.NIL), PseudoCode))
2081 {
2082 yield return true;
2083 yield break;
2084 }
2085 }
2086 }
2087 }
2088 {
2089 object _State = arg2;
2090 Variable x1 = new Variable();
2091 foreach (bool l2 in YP.unify(arg1, new Functor2(",", Atom.a("fail"), x1)))
2092 {
2093 foreach (bool l3 in YP.unify(arg3, Atom.NIL))
2094 {
2095 yield return true;
2096 yield break;
2097 }
2098 }
2099 }
2100 {
2101 object State = arg2;
2102 object PseudoCode = arg3;
2103 Variable A = new Variable();
2104 foreach (bool l2 in YP.unify(arg1, new Functor2(",", Atom.a("true"), A)))
2105 {
2106 foreach (bool l3 in compileRuleBody(A, State, PseudoCode))
2107 {
2108 yield return true;
2109 yield break;
2110 }
2111 }
2112 }
2113 {
2114 object State = arg2;
2115 Variable A = new Variable();
2116 Variable Term = new Variable();
2117 Variable B = new Variable();
2118 Variable ACode = new Variable();
2119 Variable TermCode = new Variable();
2120 Variable BCode = new Variable();
2121 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2("is", A, Term), B)))
2122 {
2123 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.unify"), new ListPair(ACode, new ListPair(TermCode, Atom.NIL))), BCode), Atom.NIL)))
2124 {
2125 foreach (bool l4 in compileTerm(A, State, ACode))
2126 {
2127 foreach (bool l5 in compileExpression(Term, State, TermCode))
2128 {
2129 foreach (bool l6 in compileRuleBody(B, State, BCode))
2130 {
2131 yield return true;
2132 yield break;
2133 }
2134 }
2135 }
2136 }
2137 }
2138 }
2139 {
2140 object State = arg2;
2141 Variable ACode = new Variable();
2142 Variable B = new Variable();
2143 Variable BCode = new Variable();
2144 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("$DET_NONE_OUT", ACode), B)))
2145 {
2146 foreach (bool l3 in YP.unify(arg3, new ListPair(ACode, BCode)))
2147 {
2148 foreach (bool l4 in compileRuleBody(B, State, BCode))
2149 {
2150 yield return true;
2151 yield break;
2152 }
2153 }
2154 }
2155 }
2156 {
2157 object State = arg2;
2158 Variable A = new Variable();
2159 Variable B = new Variable();
2160 Variable FunctionName = new Variable();
2161 Variable X1Code = new Variable();
2162 Variable X2Code = new Variable();
2163 Variable BCode = new Variable();
2164 Variable Name = new Variable();
2165 Variable X1 = new Variable();
2166 Variable X2 = new Variable();
2167 foreach (bool l2 in YP.unify(arg1, new Functor2(",", A, B)))
2168 {
2169 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("if", new Functor2("call", FunctionName, new ListPair(X1Code, new ListPair(X2Code, Atom.NIL))), BCode), Atom.NIL)))
2170 {
2171 foreach (bool l4 in YP.univ(A, ListPair.make(new object[] { Name, X1, X2 })))
2172 {
2173 foreach (bool l5 in binaryExpressionConditional(Name, FunctionName))
2174 {
2175 foreach (bool l6 in compileExpression(X1, State, X1Code))
2176 {
2177 foreach (bool l7 in compileExpression(X2, State, X2Code))
2178 {
2179 foreach (bool l8 in compileRuleBody(B, State, BCode))
2180 {
2181 yield return true;
2182 yield break;
2183 }
2184 }
2185 }
2186 }
2187 }
2188 }
2189 }
2190 }
2191 {
2192 object State = arg2;
2193 object PseudoCode = arg3;
2194 Variable Template = new Variable();
2195 Variable Goal = new Variable();
2196 Variable Bag = new Variable();
2197 Variable B = new Variable();
2198 Variable TemplateCode = new Variable();
2199 Variable FindallAnswers = new Variable();
2200 Variable GoalAndAddCode = new Variable();
2201 Variable BagCode = new Variable();
2202 Variable BCode = new Variable();
2203 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor3("findall", Template, Goal, Bag), B)))
2204 {
2205 foreach (bool l3 in compileTerm(Template, State, TemplateCode))
2206 {
2207 foreach (bool l4 in CompilerState.gensym(State, Atom.a("findallAnswers"), FindallAnswers))
2208 {
2209 foreach (bool l5 in compileRuleBody(new Functor2(",", Goal, new Functor2(",", new Functor1("$DET_NONE_OUT", new Functor3("callMember", new Functor1("var", FindallAnswers), Atom.a("add"), Atom.NIL)), Atom.a("fail"))), State, GoalAndAddCode))
2210 {
2211 foreach (bool l6 in compileTerm(Bag, State, BagCode))
2212 {
2213 foreach (bool l7 in compileRuleBody(B, State, BCode))
2214 {
2215 foreach (bool l8 in append(new ListPair(new Functor3("declare", Atom.a("FindallAnswers"), FindallAnswers, new Functor2("new", Atom.a("FindallAnswers"), new ListPair(TemplateCode, Atom.NIL))), GoalAndAddCode), new ListPair(new Functor2("foreach", new Functor3("callMember", new Functor1("var", FindallAnswers), Atom.a("result"), new ListPair(BagCode, Atom.NIL)), BCode), Atom.NIL), PseudoCode))
2216 {
2217 yield return true;
2218 yield break;
2219 }
2220 }
2221 }
2222 }
2223 }
2224 }
2225 }
2226 }
2227 {
2228 object State = arg2;
2229 object PseudoCode = arg3;
2230 Variable Template = new Variable();
2231 Variable Goal = new Variable();
2232 Variable Bag = new Variable();
2233 Variable B = new Variable();
2234 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor3("bagof", Template, Goal, Bag), B)))
2235 {
2236 foreach (bool l3 in compileBagof(Atom.a("result"), Template, Goal, Bag, B, State, PseudoCode))
2237 {
2238 yield return true;
2239 yield break;
2240 }
2241 }
2242 }
2243 {
2244 object State = arg2;
2245 object PseudoCode = arg3;
2246 Variable Template = new Variable();
2247 Variable Goal = new Variable();
2248 Variable Bag = new Variable();
2249 Variable B = new Variable();
2250 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor3("setof", Template, Goal, Bag), B)))
2251 {
2252 foreach (bool l3 in compileBagof(Atom.a("resultSet"), Template, Goal, Bag, B, State, PseudoCode))
2253 {
2254 yield return true;
2255 yield break;
2256 }
2257 }
2258 }
2259 {
2260 object State = arg2;
2261 Variable A = new Variable();
2262 Variable B = new Variable();
2263 Variable ATermCode = new Variable();
2264 Variable BCode = new Variable();
2265 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("call", A), B)))
2266 {
2267 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.getIterator"), new ListPair(ATermCode, new ListPair(new Functor2("call", Atom.a("getDeclaringClass"), Atom.NIL), Atom.NIL))), BCode), Atom.NIL)))
2268 {
2269 foreach (bool l4 in compileTerm(A, State, ATermCode))
2270 {
2271 foreach (bool l5 in compileRuleBody(B, State, BCode))
2272 {
2273 yield return true;
2274 yield break;
2275 }
2276 }
2277 }
2278 }
2279 }
2280 {
2281 object State = arg2;
2282 Variable A = new Variable();
2283 Variable B = new Variable();
2284 Variable ATermCode = new Variable();
2285 Variable BCode = new Variable();
2286 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("current_predicate", A), B)))
2287 {
2288 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("foreach", new Functor2("call", Atom.a("YP.current_predicate"), new ListPair(ATermCode, new ListPair(new Functor2("call", Atom.a("getDeclaringClass"), Atom.NIL), Atom.NIL))), BCode), Atom.NIL)))
2289 {
2290 foreach (bool l4 in compileTerm(A, State, ATermCode))
2291 {
2292 foreach (bool l5 in compileRuleBody(B, State, BCode))
2293 {
2294 yield return true;
2295 yield break;
2296 }
2297 }
2298 }
2299 }
2300 }
2301 {
2302 object State = arg2;
2303 Variable A = new Variable();
2304 Variable B = new Variable();
2305 Variable ATermCode = new Variable();
2306 Variable BCode = new Variable();
2307 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("asserta", A), B)))
2308 {
2309 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("call", Atom.a("YP.asserta"), new ListPair(ATermCode, new ListPair(new Functor2("call", Atom.a("getDeclaringClass"), Atom.NIL), Atom.NIL))), BCode)))
2310 {
2311 foreach (bool l4 in compileTerm(A, State, ATermCode))
2312 {
2313 foreach (bool l5 in compileRuleBody(B, State, BCode))
2314 {
2315 yield return true;
2316 yield break;
2317 }
2318 }
2319 }
2320 }
2321 }
2322 {
2323 object State = arg2;
2324 Variable A = new Variable();
2325 Variable B = new Variable();
2326 Variable ATermCode = new Variable();
2327 Variable BCode = new Variable();
2328 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("assertz", A), B)))
2329 {
2330 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("call", Atom.a("YP.assertz"), new ListPair(ATermCode, new ListPair(new Functor2("call", Atom.a("getDeclaringClass"), Atom.NIL), Atom.NIL))), BCode)))
2331 {
2332 foreach (bool l4 in compileTerm(A, State, ATermCode))
2333 {
2334 foreach (bool l5 in compileRuleBody(B, State, BCode))
2335 {
2336 yield return true;
2337 yield break;
2338 }
2339 }
2340 }
2341 }
2342 }
2343 {
2344 object State = arg2;
2345 object PseudoCode = arg3;
2346 Variable A = new Variable();
2347 Variable B = new Variable();
2348 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor1("assert", A), B)))
2349 {
2350 foreach (bool l3 in compileRuleBody(new Functor2(",", new Functor1("assertz", A), B), State, PseudoCode))
2351 {
2352 yield return true;
2353 yield break;
2354 }
2355 }
2356 }
2357 {
2358 object State = arg2;
2359 Variable Goal = new Variable();
2360 Variable Catcher = new Variable();
2361 Variable Handler = new Variable();
2362 Variable B = new Variable();
2363 Variable CatchGoal = new Variable();
2364 Variable GoalTermCode = new Variable();
2365 Variable BCode = new Variable();
2366 Variable CatcherTermCode = new Variable();
2367 Variable HandlerAndBCode = new Variable();
2368 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor3("catch", Goal, Catcher, Handler), B)))
2369 {
2370 foreach (bool l3 in YP.unify(arg3, ListPair.make(new object[] { new Functor3("declare", Atom.a("YP.Catch"), CatchGoal, new Functor2("new", Atom.a("YP.Catch"), new ListPair(GoalTermCode, new ListPair(new Functor2("call", Atom.a("getDeclaringClass"), Atom.NIL), Atom.NIL)))), new Functor2("foreach", new Functor1("var", CatchGoal), BCode), new Functor2("foreach", new Functor3("callMember", new Functor1("var", CatchGoal), Atom.a("unifyExceptionOrThrow"), new ListPair(CatcherTermCode, Atom.NIL)), HandlerAndBCode) })))
2371 {
2372 foreach (bool l4 in CompilerState.gensym(State, Atom.a("catchGoal"), CatchGoal))
2373 {
2374 foreach (bool l5 in compileTerm(Goal, State, GoalTermCode))
2375 {
2376 foreach (bool l6 in compileTerm(Catcher, State, CatcherTermCode))
2377 {
2378 foreach (bool l7 in compileRuleBody(B, State, BCode))
2379 {
2380 foreach (bool l8 in compileRuleBody(new Functor2(",", Handler, B), State, HandlerAndBCode))
2381 {
2382 yield return true;
2383 yield break;
2384 }
2385 }
2386 }
2387 }
2388 }
2389 }
2390 }
2391 }
2392 {
2393 object State = arg2;
2394 object PseudoCode = arg3;
2395 Variable A = new Variable();
2396 Variable B = new Variable();
2397 Variable C = new Variable();
2398 foreach (bool l2 in YP.unify(arg1, new Functor2(",", new Functor2(",", A, B), C)))
2399 {
2400 foreach (bool l3 in compileRuleBody(new Functor2(",", A, new Functor2(",", B, C)), State, PseudoCode))
2401 {
2402 yield return true;
2403 yield break;
2404 }
2405 }
2406 }
2407 {
2408 object State = arg2;
2409 object PseudoCode = arg3;
2410 Variable A = new Variable();
2411 Variable B = new Variable();
2412 foreach (bool l2 in YP.unify(arg1, new Functor2(";", A, B)))
2413 {
2414 if (YP.var(A))
2415 {
2416 foreach (bool l4 in compileRuleBody(new Functor2(";", new Functor1("call", A), B), State, PseudoCode))
2417 {
2418 yield return true;
2419 yield break;
2420 }
2421 }
2422 }
2423 }
2424 {
2425 object State = arg2;
2426 Variable A = new Variable();
2427 Variable T = new Variable();
2428 Variable B = new Variable();
2429 Variable CutIfLabel = new Variable();
2430 Variable Code = new Variable();
2431 foreach (bool l2 in YP.unify(arg1, new Functor2(";", new Functor2("->", A, T), B)))
2432 {
2433 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor2("breakableBlock", CutIfLabel, Code), Atom.NIL)))
2434 {
2435 foreach (bool l4 in CompilerState.gensym(State, Atom.a("cutIf"), CutIfLabel))
2436 {
2437 foreach (bool l5 in compileRuleBody(new Functor2(";", new Functor2(",", A, new Functor2(",", new Functor1("$CUTIF", CutIfLabel), T)), B), State, Code))
2438 {
2439 yield return true;
2440 yield break;
2441 }
2442 }
2443 }
2444 }
2445 }
2446 {
2447 object State = arg2;
2448 object PseudoCode = arg3;
2449 Variable _B = new Variable();
2450 foreach (bool l2 in YP.unify(arg1, new Functor2(";", Atom.a("!"), _B)))
2451 {
2452 foreach (bool l3 in compileRuleBody(Atom.a("!"), State, PseudoCode))
2453 {
2454 yield return true;
2455 yield break;
2456 }
2457 }
2458 }
2459 {
2460 object State = arg2;
2461 object PseudoCode = arg3;
2462 Variable A = new Variable();
2463 Variable B = new Variable();
2464 Variable ACode = new Variable();
2465 Variable BCode = new Variable();
2466 foreach (bool l2 in YP.unify(arg1, new Functor2(";", A, B)))
2467 {
2468 foreach (bool l3 in compileRuleBody(A, State, ACode))
2469 {
2470 foreach (bool l4 in compileRuleBody(B, State, BCode))
2471 {
2472 foreach (bool l5 in append(ACode, BCode, PseudoCode))
2473 {
2474 yield return true;
2475 yield break;
2476 }
2477 }
2478 }
2479 }
2480 }
2481 {
2482 object State = arg2;
2483 foreach (bool l2 in YP.unify(arg1, Atom.a("!")))
2484 {
2485 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("return"), Atom.NIL)))
2486 {
2487 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
2488 {
2489 yield return true;
2490 yield break;
2491 }
2492 }
2493 }
2494 }
2495 {
2496 object State = arg2;
2497 foreach (bool l2 in YP.unify(arg1, Atom.a("!")))
2498 {
2499 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("returntrue"), Atom.NIL)))
2500 {
2501 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
2502 {
2503 yield return true;
2504 yield break;
2505 }
2506 }
2507 }
2508 }
2509 {
2510 object State = arg2;
2511 foreach (bool l2 in YP.unify(arg1, Atom.a("!")))
2512 {
2513 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("yieldtrue"), new ListPair(Atom.a("yieldbreak"), Atom.NIL))))
2514 {
2515 CompilerState.setCodeUsesYield(State);
2516 yield return true;
2517 yield break;
2518 }
2519 }
2520 }
2521 {
2522 object _State = arg2;
2523 Variable Name = new Variable();
2524 foreach (bool l2 in YP.unify(arg1, new Functor1("$CUTIF", Name)))
2525 {
2526 foreach (bool l3 in YP.unify(arg3, new ListPair(new Functor1("breakBlock", Name), Atom.NIL)))
2527 {
2528 yield return true;
2529 yield break;
2530 }
2531 }
2532 }
2533 {
2534 object State = arg2;
2535 foreach (bool l2 in YP.unify(arg1, Atom.a("true")))
2536 {
2537 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("return"), Atom.NIL)))
2538 {
2539 if (CompilerState.determinismEquals(State, Atom.a("detNoneOut")))
2540 {
2541 yield return true;
2542 yield break;
2543 }
2544 }
2545 }
2546 }
2547 {
2548 object State = arg2;
2549 foreach (bool l2 in YP.unify(arg1, Atom.a("true")))
2550 {
2551 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("returntrue"), Atom.NIL)))
2552 {
2553 if (CompilerState.determinismEquals(State, Atom.a("semidetNoneOut")))
2554 {
2555 yield return true;
2556 yield break;
2557 }
2558 }
2559 }
2560 }
2561 {
2562 object State = arg2;
2563 foreach (bool l2 in YP.unify(arg1, Atom.a("true")))
2564 {
2565 foreach (bool l3 in YP.unify(arg3, new ListPair(Atom.a("yieldfalse"), Atom.NIL)))
2566 {
2567 CompilerState.setCodeUsesYield(State);
2568 yield return true;
2569 yield break;
2570 }
2571 }
2572 }
2573 {
2574 object A = arg1;
2575 object State = arg2;
2576 object PseudoCode = arg3;
2577 foreach (bool l2 in compileRuleBody(new Functor2(",", A, Atom.a("true")), State, PseudoCode))
2578 {
2579 yield return true;
2580 yield break;
2581 }
2582 }
2583 }
2584
2585 public static IEnumerable<bool> compileBagof(object ResultMethod, object Template, object Goal, object Bag, object B, object State, object PseudoCode)
2586 {
2587 {
2588 Variable TemplateCode = new Variable();
2589 Variable GoalTermCode = new Variable();
2590 Variable UnqualifiedGoal = new Variable();
2591 Variable BagofAnswers = new Variable();
2592 Variable GoalAndAddCode = new Variable();
2593 Variable BagCode = new Variable();
2594 Variable BCode = new Variable();
2595 foreach (bool l2 in compileTerm(Template, State, TemplateCode))
2596 {
2597 foreach (bool l3 in compileTerm(Goal, State, GoalTermCode))
2598 {
2599 foreach (bool l4 in unqualifiedGoal(Goal, UnqualifiedGoal))
2600 {
2601 foreach (bool l5 in CompilerState.gensym(State, Atom.a("bagofAnswers"), BagofAnswers))
2602 {
2603 foreach (bool l6 in compileRuleBody(new Functor2(",", UnqualifiedGoal, new Functor2(",", new Functor1("$DET_NONE_OUT", new Functor3("callMember", new Functor1("var", BagofAnswers), Atom.a("add"), Atom.NIL)), Atom.a("fail"))), State, GoalAndAddCode))
2604 {
2605 foreach (bool l7 in compileTerm(Bag, State, BagCode))
2606 {
2607 foreach (bool l8 in compileRuleBody(B, State, BCode))
2608 {
2609 foreach (bool l9 in append(new ListPair(new Functor3("declare", Atom.a("BagofAnswers"), BagofAnswers, new Functor2("new", Atom.a("BagofAnswers"), new ListPair(TemplateCode, new ListPair(GoalTermCode, Atom.NIL)))), GoalAndAddCode), new ListPair(new Functor2("foreach", new Functor3("callMember", new Functor1("var", BagofAnswers), ResultMethod, new ListPair(BagCode, Atom.NIL)), BCode), Atom.NIL), PseudoCode))
2610 {
2611 yield return true;
2612 yield break;
2613 }
2614 }
2615 }
2616 }
2617 }
2618 }
2619 }
2620 }
2621 }
2622 }
2623
2624 public static IEnumerable<bool> unqualifiedGoal(object arg1, object arg2)
2625 {
2626 {
2627 object Goal = arg1;
2628 foreach (bool l2 in YP.unify(arg2, new Functor1("call", Goal)))
2629 {
2630 if (YP.var(Goal))
2631 {
2632 yield return true;
2633 yield break;
2634 }
2635 }
2636 }
2637 {
2638 object UnqualifiedGoal = arg2;
2639 Variable x1 = new Variable();
2640 Variable Goal = new Variable();
2641 foreach (bool l2 in YP.unify(arg1, new Functor2("^", x1, Goal)))
2642 {
2643 foreach (bool l3 in unqualifiedGoal(Goal, UnqualifiedGoal))
2644 {
2645 yield return true;
2646 yield break;
2647 }
2648 }
2649 }
2650 {
2651 Variable UnqualifiedGoal = new Variable();
2652 foreach (bool l2 in YP.unify(arg1, UnqualifiedGoal))
2653 {
2654 foreach (bool l3 in YP.unify(arg2, UnqualifiedGoal))
2655 {
2656 yield return true;
2657 yield break;
2658 }
2659 }
2660 }
2661 }
2662
2663 public static IEnumerable<bool> binaryExpressionConditional(object arg1, object arg2)
2664 {
2665 {
2666 foreach (bool l2 in YP.unify(arg1, Atom.a("=:=")))
2667 {
2668 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.equal")))
2669 {
2670 yield return true;
2671 yield break;
2672 }
2673 }
2674 }
2675 {
2676 foreach (bool l2 in YP.unify(arg1, Atom.a("=\\=")))
2677 {
2678 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.notEqual")))
2679 {
2680 yield return true;
2681 yield break;
2682 }
2683 }
2684 }
2685 {
2686 foreach (bool l2 in YP.unify(arg1, Atom.a(">")))
2687 {
2688 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.greaterThan")))
2689 {
2690 yield return true;
2691 yield break;
2692 }
2693 }
2694 }
2695 {
2696 foreach (bool l2 in YP.unify(arg1, Atom.a("<")))
2697 {
2698 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.lessThan")))
2699 {
2700 yield return true;
2701 yield break;
2702 }
2703 }
2704 }
2705 {
2706 foreach (bool l2 in YP.unify(arg1, Atom.a(">=")))
2707 {
2708 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.greaterThanOrEqual")))
2709 {
2710 yield return true;
2711 yield break;
2712 }
2713 }
2714 }
2715 {
2716 foreach (bool l2 in YP.unify(arg1, Atom.a("=<")))
2717 {
2718 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.lessThanOrEqual")))
2719 {
2720 yield return true;
2721 yield break;
2722 }
2723 }
2724 }
2725 }
2726
2727 public static IEnumerable<bool> compileFunctorCall(object Functor_1, object State, object PseudoCode)
2728 {
2729 {
2730 Variable FunctorName = new Variable();
2731 Variable FunctorArgs = new Variable();
2732 Variable x6 = new Variable();
2733 Variable Arity = new Variable();
2734 Variable FunctionName = new Variable();
2735 Variable CompiledArgs = new Variable();
2736 foreach (bool l2 in YP.univ(Functor_1, new ListPair(FunctorName, FunctorArgs)))
2737 {
2738 foreach (bool l3 in YP.functor(Functor_1, x6, Arity))
2739 {
2740 foreach (bool l4 in functorCallFunctionName(State, FunctorName, Arity, FunctionName))
2741 {
2742 foreach (bool l5 in maplist_compileTerm(FunctorArgs, State, CompiledArgs))
2743 {
2744 if (YP.termEqual(FunctionName, Atom.NIL))
2745 {
2746 foreach (bool l7 in YP.unify(PseudoCode, new Functor2("call", Atom.a("YP.matchDynamic"), new ListPair(new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", FunctorName), Atom.NIL)), new ListPair(new Functor1("objectArray", CompiledArgs), Atom.NIL)))))
2747 {
2748 yield return true;
2749 yield break;
2750 }
2751 goto cutIf1;
2752 }
2753 foreach (bool l6 in YP.unify(PseudoCode, new Functor3("functorCall", FunctionName, FunctorArgs, CompiledArgs)))
2754 {
2755 yield return true;
2756 yield break;
2757 }
2758 cutIf1:
2759 { }
2760 }
2761 }
2762 }
2763 }
2764 }
2765 }
2766
2767 public static IEnumerable<bool> functorCallFunctionName(object arg1, object arg2, object arg3, object arg4)
2768 {
2769 {
2770 object _State = arg1;
2771 object Name = arg2;
2772 object Arity = arg3;
2773 object x4 = arg4;
2774 if (functorCallIsSpecialForm(Name, Arity))
2775 {
2776 yield break;
2777 }
2778 }
2779 {
2780 object x1 = arg1;
2781 object Name = arg2;
2782 object Arity = arg3;
2783 object FunctionName = arg4;
2784 foreach (bool l2 in functorCallYPFunctionName(Name, Arity, FunctionName))
2785 {
2786 yield return true;
2787 yield break;
2788 }
2789 }
2790 {
2791 object State = arg1;
2792 object Arity = arg3;
2793 Variable Name = new Variable();
2794 foreach (bool l2 in YP.unify(arg2, Name))
2795 {
2796 foreach (bool l3 in YP.unify(arg4, Name))
2797 {
2798 if (CompilerState.nameArityHasModule(State, Name, Arity, Atom.a("")))
2799 {
2800 yield return true;
2801 yield break;
2802 }
2803 }
2804 }
2805 }
2806 {
2807 object _State = arg1;
2808 object _Arity = arg3;
2809 Variable Name = new Variable();
2810 foreach (bool l2 in YP.unify(arg2, Name))
2811 {
2812 foreach (bool l3 in YP.unify(arg4, Name))
2813 {
2814 foreach (bool l4 in Atom.module(Name, Atom.a("")))
2815 {
2816 yield return true;
2817 yield break;
2818 }
2819 }
2820 }
2821 }
2822 {
2823 object _State = arg1;
2824 object Name = arg2;
2825 object _Arity = arg3;
2826 foreach (bool l2 in YP.unify(arg4, Atom.NIL))
2827 {
2828 foreach (bool l3 in Atom.module(Name, Atom.NIL))
2829 {
2830 yield return true;
2831 yield break;
2832 }
2833 }
2834 }
2835 {
2836 object _State = arg1;
2837 object Name = arg2;
2838 object Arity = arg3;
2839 object x4 = arg4;
2840 Variable Module = new Variable();
2841 Variable Message = new Variable();
2842 foreach (bool l2 in Atom.module(Name, Module))
2843 {
2844 foreach (bool l3 in YP.atom_concat(Atom.a("Not supporting calls to external module: "), Module, Message))
2845 {
2846 YP.throwException(new Functor2("error", new Functor2("type_error", Atom.a("callable"), new Functor2("/", Name, Arity)), Message));
2847 yield return true;
2848 yield break;
2849 }
2850 }
2851 }
2852 {
2853 object _State = arg1;
2854 object Name = arg2;
2855 object _Arity = arg3;
2856 object x4 = arg4;
2857 YP.throwException(new Functor2("error", new Functor2("type_error", Atom.a("callable"), Name), Atom.a("Term is not callable")));
2858 yield return true;
2859 yield break;
2860 }
2861 }
2862
2863 public static bool functorCallIsSpecialForm(object Name, object Arity)
2864 {
2865 {
2866 Variable x3 = new Variable();
2867 if (YP.termEqual(Arity, 0))
2868 {
2869 if (YP.termEqual(Name, Atom.a("!")))
2870 {
2871 return true;
2872 }
2873 if (YP.termEqual(Name, Atom.a("fail")))
2874 {
2875 return true;
2876 }
2877 if (YP.termEqual(Name, Atom.a("true")))
2878 {
2879 return true;
2880 }
2881 }
2882 if (YP.termEqual(Arity, 1))
2883 {
2884 if (YP.termEqual(Name, Atom.a("\\+")))
2885 {
2886 return true;
2887 }
2888 if (YP.termEqual(Name, Atom.a("once")))
2889 {
2890 return true;
2891 }
2892 if (YP.termEqual(Name, Atom.a("$CUTIF")))
2893 {
2894 return true;
2895 }
2896 if (YP.termEqual(Name, Atom.a("$DET_NONE_OUT")))
2897 {
2898 return true;
2899 }
2900 if (YP.termEqual(Name, Atom.a("call")))
2901 {
2902 return true;
2903 }
2904 if (YP.termEqual(Name, Atom.a("current_predicate")))
2905 {
2906 return true;
2907 }
2908 if (YP.termEqual(Name, Atom.a("asserta")))
2909 {
2910 return true;
2911 }
2912 if (YP.termEqual(Name, Atom.a("assertz")))
2913 {
2914 return true;
2915 }
2916 if (YP.termEqual(Name, Atom.a("assert")))
2917 {
2918 return true;
2919 }
2920 }
2921 if (YP.termEqual(Arity, 2))
2922 {
2923 if (YP.termEqual(Name, Atom.a(";")))
2924 {
2925 return true;
2926 }
2927 if (YP.termEqual(Name, Atom.a(",")))
2928 {
2929 return true;
2930 }
2931 if (YP.termEqual(Name, Atom.a("->")))
2932 {
2933 return true;
2934 }
2935 if (YP.termEqual(Name, Atom.a("\\=")))
2936 {
2937 return true;
2938 }
2939 if (YP.termEqual(Name, Atom.a("is")))
2940 {
2941 return true;
2942 }
2943 foreach (bool l3 in binaryExpressionConditional(Name, x3))
2944 {
2945 return true;
2946 }
2947 }
2948 if (YP.termEqual(Arity, 3))
2949 {
2950 if (YP.termEqual(Name, Atom.a("findall")))
2951 {
2952 return true;
2953 }
2954 if (YP.termEqual(Name, Atom.a("bagof")))
2955 {
2956 return true;
2957 }
2958 if (YP.termEqual(Name, Atom.a("setof")))
2959 {
2960 return true;
2961 }
2962 if (YP.termEqual(Name, Atom.a("catch")))
2963 {
2964 return true;
2965 }
2966 }
2967 }
2968 return false;
2969 }
2970
2971 public static IEnumerable<bool> functorCallYPFunctionName(object arg1, object arg2, object arg3)
2972 {
2973 {
2974 foreach (bool l2 in YP.unify(arg1, Atom.a("=")))
2975 {
2976 foreach (bool l3 in YP.unify(arg2, 2))
2977 {
2978 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.unify")))
2979 {
2980 yield return true;
2981 yield break;
2982 }
2983 }
2984 }
2985 }
2986 {
2987 foreach (bool l2 in YP.unify(arg1, Atom.a("=..")))
2988 {
2989 foreach (bool l3 in YP.unify(arg2, 2))
2990 {
2991 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.univ")))
2992 {
2993 yield return true;
2994 yield break;
2995 }
2996 }
2997 }
2998 }
2999 {
3000 foreach (bool l2 in YP.unify(arg1, Atom.a("var")))
3001 {
3002 foreach (bool l3 in YP.unify(arg2, 1))
3003 {
3004 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.var")))
3005 {
3006 yield return true;
3007 yield break;
3008 }
3009 }
3010 }
3011 }
3012 {
3013 foreach (bool l2 in YP.unify(arg1, Atom.a("nonvar")))
3014 {
3015 foreach (bool l3 in YP.unify(arg2, 1))
3016 {
3017 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.nonvar")))
3018 {
3019 yield return true;
3020 yield break;
3021 }
3022 }
3023 }
3024 }
3025 {
3026 foreach (bool l2 in YP.unify(arg1, Atom.a("arg")))
3027 {
3028 foreach (bool l3 in YP.unify(arg2, 3))
3029 {
3030 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.arg")))
3031 {
3032 yield return true;
3033 yield break;
3034 }
3035 }
3036 }
3037 }
3038 {
3039 foreach (bool l2 in YP.unify(arg1, Atom.a("functor")))
3040 {
3041 foreach (bool l3 in YP.unify(arg2, 3))
3042 {
3043 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.functor")))
3044 {
3045 yield return true;
3046 yield break;
3047 }
3048 }
3049 }
3050 }
3051 {
3052 foreach (bool l2 in YP.unify(arg1, Atom.a("repeat")))
3053 {
3054 foreach (bool l3 in YP.unify(arg2, 0))
3055 {
3056 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.repeat")))
3057 {
3058 yield return true;
3059 yield break;
3060 }
3061 }
3062 }
3063 }
3064 {
3065 foreach (bool l2 in YP.unify(arg1, Atom.a("get_code")))
3066 {
3067 foreach (bool l3 in YP.unify(arg2, 1))
3068 {
3069 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.get_code")))
3070 {
3071 yield return true;
3072 yield break;
3073 }
3074 }
3075 }
3076 }
3077 {
3078 foreach (bool l2 in YP.unify(arg1, Atom.a("current_op")))
3079 {
3080 foreach (bool l3 in YP.unify(arg2, 3))
3081 {
3082 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.current_op")))
3083 {
3084 yield return true;
3085 yield break;
3086 }
3087 }
3088 }
3089 }
3090 {
3091 foreach (bool l2 in YP.unify(arg1, Atom.a("atom_length")))
3092 {
3093 foreach (bool l3 in YP.unify(arg2, 2))
3094 {
3095 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atom_length")))
3096 {
3097 yield return true;
3098 yield break;
3099 }
3100 }
3101 }
3102 }
3103 {
3104 foreach (bool l2 in YP.unify(arg1, Atom.a("atom_concat")))
3105 {
3106 foreach (bool l3 in YP.unify(arg2, 3))
3107 {
3108 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atom_concat")))
3109 {
3110 yield return true;
3111 yield break;
3112 }
3113 }
3114 }
3115 }
3116 {
3117 foreach (bool l2 in YP.unify(arg1, Atom.a("sub_atom")))
3118 {
3119 foreach (bool l3 in YP.unify(arg2, 5))
3120 {
3121 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.sub_atom")))
3122 {
3123 yield return true;
3124 yield break;
3125 }
3126 }
3127 }
3128 }
3129 {
3130 foreach (bool l2 in YP.unify(arg1, Atom.a("atom_chars")))
3131 {
3132 foreach (bool l3 in YP.unify(arg2, 2))
3133 {
3134 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atom_chars")))
3135 {
3136 yield return true;
3137 yield break;
3138 }
3139 }
3140 }
3141 }
3142 {
3143 foreach (bool l2 in YP.unify(arg1, Atom.a("atom_codes")))
3144 {
3145 foreach (bool l3 in YP.unify(arg2, 2))
3146 {
3147 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atom_codes")))
3148 {
3149 yield return true;
3150 yield break;
3151 }
3152 }
3153 }
3154 }
3155 {
3156 foreach (bool l2 in YP.unify(arg1, Atom.a("char_code")))
3157 {
3158 foreach (bool l3 in YP.unify(arg2, 2))
3159 {
3160 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.char_code")))
3161 {
3162 yield return true;
3163 yield break;
3164 }
3165 }
3166 }
3167 }
3168 {
3169 foreach (bool l2 in YP.unify(arg1, Atom.a("number_chars")))
3170 {
3171 foreach (bool l3 in YP.unify(arg2, 2))
3172 {
3173 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.number_chars")))
3174 {
3175 yield return true;
3176 yield break;
3177 }
3178 }
3179 }
3180 }
3181 {
3182 foreach (bool l2 in YP.unify(arg1, Atom.a("number_codes")))
3183 {
3184 foreach (bool l3 in YP.unify(arg2, 2))
3185 {
3186 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.number_codes")))
3187 {
3188 yield return true;
3189 yield break;
3190 }
3191 }
3192 }
3193 }
3194 {
3195 foreach (bool l2 in YP.unify(arg1, Atom.a("copy_term")))
3196 {
3197 foreach (bool l3 in YP.unify(arg2, 2))
3198 {
3199 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.copy_term")))
3200 {
3201 yield return true;
3202 yield break;
3203 }
3204 }
3205 }
3206 }
3207 {
3208 foreach (bool l2 in YP.unify(arg1, Atom.a("sort")))
3209 {
3210 foreach (bool l3 in YP.unify(arg2, 2))
3211 {
3212 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.sort")))
3213 {
3214 yield return true;
3215 yield break;
3216 }
3217 }
3218 }
3219 }
3220 {
3221 // Manually included : script_event for callback to LSL/C#
3222
3223 //object x1 = arg1;
3224 foreach (bool l2 in YP.unify(arg1, Atom.a(@"script_event")))
3225 {
3226 foreach (bool l3 in YP.unify(arg2, 2))
3227 {
3228 foreach (bool l4 in YP.unify(arg3, Atom.a(@"YP.script_event")))
3229 {
3230 yield return true;
3231 yield break;
3232 }
3233 }
3234 }
3235 }
3236 {
3237 foreach (bool l2 in YP.unify(arg1, Atom.a("nl")))
3238 {
3239 foreach (bool l3 in YP.unify(arg2, 0))
3240 {
3241 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.nl")))
3242 {
3243 yield return true;
3244 yield break;
3245 }
3246 }
3247 }
3248 }
3249 {
3250 foreach (bool l2 in YP.unify(arg1, Atom.a("write")))
3251 {
3252 foreach (bool l3 in YP.unify(arg2, 1))
3253 {
3254 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.write")))
3255 {
3256 yield return true;
3257 yield break;
3258 }
3259 }
3260 }
3261 }
3262 {
3263 foreach (bool l2 in YP.unify(arg1, Atom.a("put_code")))
3264 {
3265 foreach (bool l3 in YP.unify(arg2, 1))
3266 {
3267 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.put_code")))
3268 {
3269 yield return true;
3270 yield break;
3271 }
3272 }
3273 }
3274 }
3275 {
3276 foreach (bool l2 in YP.unify(arg1, Atom.a("see")))
3277 {
3278 foreach (bool l3 in YP.unify(arg2, 1))
3279 {
3280 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.see")))
3281 {
3282 yield return true;
3283 yield break;
3284 }
3285 }
3286 }
3287 }
3288 {
3289 foreach (bool l2 in YP.unify(arg1, Atom.a("seen")))
3290 {
3291 foreach (bool l3 in YP.unify(arg2, 0))
3292 {
3293 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.seen")))
3294 {
3295 yield return true;
3296 yield break;
3297 }
3298 }
3299 }
3300 }
3301 {
3302 foreach (bool l2 in YP.unify(arg1, Atom.a("tell")))
3303 {
3304 foreach (bool l3 in YP.unify(arg2, 1))
3305 {
3306 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.tell")))
3307 {
3308 yield return true;
3309 yield break;
3310 }
3311 }
3312 }
3313 }
3314 {
3315 foreach (bool l2 in YP.unify(arg1, Atom.a("told")))
3316 {
3317 foreach (bool l3 in YP.unify(arg2, 0))
3318 {
3319 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.told")))
3320 {
3321 yield return true;
3322 yield break;
3323 }
3324 }
3325 }
3326 }
3327 {
3328 foreach (bool l2 in YP.unify(arg1, Atom.a("clause")))
3329 {
3330 foreach (bool l3 in YP.unify(arg2, 2))
3331 {
3332 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.clause")))
3333 {
3334 yield return true;
3335 yield break;
3336 }
3337 }
3338 }
3339 }
3340 {
3341 foreach (bool l2 in YP.unify(arg1, Atom.a("retract")))
3342 {
3343 foreach (bool l3 in YP.unify(arg2, 1))
3344 {
3345 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.retract")))
3346 {
3347 yield return true;
3348 yield break;
3349 }
3350 }
3351 }
3352 }
3353 {
3354 foreach (bool l2 in YP.unify(arg1, Atom.a("abolish")))
3355 {
3356 foreach (bool l3 in YP.unify(arg2, 1))
3357 {
3358 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.abolish")))
3359 {
3360 yield return true;
3361 yield break;
3362 }
3363 }
3364 }
3365 }
3366 {
3367 foreach (bool l2 in YP.unify(arg1, Atom.a("retractall")))
3368 {
3369 foreach (bool l3 in YP.unify(arg2, 1))
3370 {
3371 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.retractall")))
3372 {
3373 yield return true;
3374 yield break;
3375 }
3376 }
3377 }
3378 }
3379 {
3380 foreach (bool l2 in YP.unify(arg1, Atom.a("atom")))
3381 {
3382 foreach (bool l3 in YP.unify(arg2, 1))
3383 {
3384 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atom")))
3385 {
3386 yield return true;
3387 yield break;
3388 }
3389 }
3390 }
3391 }
3392 {
3393 foreach (bool l2 in YP.unify(arg1, Atom.a("integer")))
3394 {
3395 foreach (bool l3 in YP.unify(arg2, 1))
3396 {
3397 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.integer")))
3398 {
3399 yield return true;
3400 yield break;
3401 }
3402 }
3403 }
3404 }
3405 {
3406 foreach (bool l2 in YP.unify(arg1, Atom.a("float")))
3407 {
3408 foreach (bool l3 in YP.unify(arg2, 1))
3409 {
3410 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.isFloat")))
3411 {
3412 yield return true;
3413 yield break;
3414 }
3415 }
3416 }
3417 }
3418 {
3419 foreach (bool l2 in YP.unify(arg1, Atom.a("number")))
3420 {
3421 foreach (bool l3 in YP.unify(arg2, 1))
3422 {
3423 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.number")))
3424 {
3425 yield return true;
3426 yield break;
3427 }
3428 }
3429 }
3430 }
3431 {
3432 foreach (bool l2 in YP.unify(arg1, Atom.a("atomic")))
3433 {
3434 foreach (bool l3 in YP.unify(arg2, 1))
3435 {
3436 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.atomic")))
3437 {
3438 yield return true;
3439 yield break;
3440 }
3441 }
3442 }
3443 }
3444 {
3445 foreach (bool l2 in YP.unify(arg1, Atom.a("compound")))
3446 {
3447 foreach (bool l3 in YP.unify(arg2, 1))
3448 {
3449 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.compound")))
3450 {
3451 yield return true;
3452 yield break;
3453 }
3454 }
3455 }
3456 }
3457 {
3458 foreach (bool l2 in YP.unify(arg1, Atom.a("==")))
3459 {
3460 foreach (bool l3 in YP.unify(arg2, 2))
3461 {
3462 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termEqual")))
3463 {
3464 yield return true;
3465 yield break;
3466 }
3467 }
3468 }
3469 }
3470 {
3471 foreach (bool l2 in YP.unify(arg1, Atom.a("\\==")))
3472 {
3473 foreach (bool l3 in YP.unify(arg2, 2))
3474 {
3475 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termNotEqual")))
3476 {
3477 yield return true;
3478 yield break;
3479 }
3480 }
3481 }
3482 }
3483 {
3484 foreach (bool l2 in YP.unify(arg1, Atom.a("@<")))
3485 {
3486 foreach (bool l3 in YP.unify(arg2, 2))
3487 {
3488 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termLessThan")))
3489 {
3490 yield return true;
3491 yield break;
3492 }
3493 }
3494 }
3495 }
3496 {
3497 foreach (bool l2 in YP.unify(arg1, Atom.a("@=<")))
3498 {
3499 foreach (bool l3 in YP.unify(arg2, 2))
3500 {
3501 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termLessThanOrEqual")))
3502 {
3503 yield return true;
3504 yield break;
3505 }
3506 }
3507 }
3508 }
3509 {
3510 foreach (bool l2 in YP.unify(arg1, Atom.a("@>")))
3511 {
3512 foreach (bool l3 in YP.unify(arg2, 2))
3513 {
3514 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termGreaterThan")))
3515 {
3516 yield return true;
3517 yield break;
3518 }
3519 }
3520 }
3521 }
3522 {
3523 foreach (bool l2 in YP.unify(arg1, Atom.a("@>=")))
3524 {
3525 foreach (bool l3 in YP.unify(arg2, 2))
3526 {
3527 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.termGreaterThanOrEqual")))
3528 {
3529 yield return true;
3530 yield break;
3531 }
3532 }
3533 }
3534 }
3535 {
3536 foreach (bool l2 in YP.unify(arg1, Atom.a("throw")))
3537 {
3538 foreach (bool l3 in YP.unify(arg2, 1))
3539 {
3540 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.throwException")))
3541 {
3542 yield return true;
3543 yield break;
3544 }
3545 }
3546 }
3547 }
3548 {
3549 foreach (bool l2 in YP.unify(arg1, Atom.a("current_prolog_flag")))
3550 {
3551 foreach (bool l3 in YP.unify(arg2, 2))
3552 {
3553 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.current_prolog_flag")))
3554 {
3555 yield return true;
3556 yield break;
3557 }
3558 }
3559 }
3560 }
3561 {
3562 foreach (bool l2 in YP.unify(arg1, Atom.a("set_prolog_flag")))
3563 {
3564 foreach (bool l3 in YP.unify(arg2, 2))
3565 {
3566 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.set_prolog_flag")))
3567 {
3568 yield return true;
3569 yield break;
3570 }
3571 }
3572 }
3573 }
3574 {
3575 foreach (bool l2 in YP.unify(arg1, Atom.a("current_input")))
3576 {
3577 foreach (bool l3 in YP.unify(arg2, 1))
3578 {
3579 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.current_input")))
3580 {
3581 yield return true;
3582 yield break;
3583 }
3584 }
3585 }
3586 }
3587 {
3588 foreach (bool l2 in YP.unify(arg1, Atom.a("current_output")))
3589 {
3590 foreach (bool l3 in YP.unify(arg2, 1))
3591 {
3592 foreach (bool l4 in YP.unify(arg3, Atom.a("YP.current_output")))
3593 {
3594 yield return true;
3595 yield break;
3596 }
3597 }
3598 }
3599 }
3600 {
3601 foreach (bool l2 in YP.unify(arg1, Atom.a("read_term")))
3602 {
3603 foreach (bool l3 in YP.unify(arg2, 2))
3604 {
3605 foreach (bool l4 in YP.unify(arg3, Atom.a("Parser.read_term2")))
3606 {
3607 yield return true;
3608 yield break;
3609 }
3610 }
3611 }
3612 }
3613 {
3614 foreach (bool l2 in YP.unify(arg1, Atom.a("read_term")))
3615 {
3616 foreach (bool l3 in YP.unify(arg2, 3))
3617 {
3618 foreach (bool l4 in YP.unify(arg3, Atom.a("Parser.read_term3")))
3619 {
3620 yield return true;
3621 yield break;
3622 }
3623 }
3624 }
3625 }
3626 {
3627 foreach (bool l2 in YP.unify(arg1, Atom.a("read")))
3628 {
3629 foreach (bool l3 in YP.unify(arg2, 1))
3630 {
3631 foreach (bool l4 in YP.unify(arg3, Atom.a("Parser.read1")))
3632 {
3633 yield return true;
3634 yield break;
3635 }
3636 }
3637 }
3638 }
3639 {
3640 foreach (bool l2 in YP.unify(arg1, Atom.a("read")))
3641 {
3642 foreach (bool l3 in YP.unify(arg2, 2))
3643 {
3644 foreach (bool l4 in YP.unify(arg3, Atom.a("Parser.read2")))
3645 {
3646 yield return true;
3647 yield break;
3648 }
3649 }
3650 }
3651 }
3652 }
3653
3654 public static IEnumerable<bool> compileTerm(object arg1, object arg2, object arg3)
3655 {
3656 {
3657 object Term = arg1;
3658 object State = arg2;
3659 Variable VariableName = new Variable();
3660 foreach (bool l2 in YP.unify(arg3, new Functor1("var", VariableName)))
3661 {
3662 if (YP.var(Term))
3663 {
3664 foreach (bool l4 in CompilerState.getVariableName(State, Term, VariableName))
3665 {
3666 yield return true;
3667 yield break;
3668 }
3669 }
3670 }
3671 }
3672 {
3673 object _State = arg2;
3674 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
3675 {
3676 foreach (bool l3 in YP.unify(arg3, new Functor1("var", Atom.a("Atom.NIL"))))
3677 {
3678 yield return true;
3679 yield break;
3680 }
3681 }
3682 }
3683 {
3684 object Term = arg1;
3685 object State = arg2;
3686 object Code = arg3;
3687 Variable ModuleCode = new Variable();
3688 if (YP.atom(Term))
3689 {
3690 foreach (bool l3 in compileAtomModule(Term, 0, State, ModuleCode))
3691 {
3692 foreach (bool l4 in YP.unify(Code, new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", Term), new ListPair(ModuleCode, Atom.NIL)))))
3693 {
3694 yield return true;
3695 yield break;
3696 }
3697 goto cutIf1;
3698 }
3699 foreach (bool l3 in YP.unify(Code, new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", Term), Atom.NIL))))
3700 {
3701 yield return true;
3702 yield break;
3703 }
3704 cutIf1:
3705 { }
3706 }
3707 }
3708 {
3709 object State = arg2;
3710 Variable First = new Variable();
3711 Variable Rest = new Variable();
3712 Variable CompiledList = new Variable();
3713 Variable x5 = new Variable();
3714 Variable Rest2 = new Variable();
3715 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Rest)))
3716 {
3717 foreach (bool l3 in YP.unify(arg3, new Functor2("call", Atom.a("ListPair.make"), new ListPair(new Functor1("objectArray", CompiledList), Atom.NIL))))
3718 {
3719 if (YP.nonvar(Rest))
3720 {
3721 foreach (bool l5 in YP.unify(Rest, new ListPair(x5, Rest2)))
3722 {
3723 if (YP.termNotEqual(Rest2, Atom.NIL))
3724 {
3725 foreach (bool l7 in maplist_compileTerm(new ListPair(First, Rest), State, CompiledList))
3726 {
3727 yield return true;
3728 yield break;
3729 }
3730 }
3731 }
3732 }
3733 }
3734 }
3735 }
3736 {
3737 object State = arg2;
3738 Variable First = new Variable();
3739 Variable Rest = new Variable();
3740 Variable Arg1 = new Variable();
3741 Variable Arg2 = new Variable();
3742 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Rest)))
3743 {
3744 foreach (bool l3 in YP.unify(arg3, new Functor2("new", Atom.a("ListPair"), new ListPair(Arg1, new ListPair(Arg2, Atom.NIL)))))
3745 {
3746 foreach (bool l4 in compileTerm(First, State, Arg1))
3747 {
3748 foreach (bool l5 in compileTerm(Rest, State, Arg2))
3749 {
3750 yield return true;
3751 yield break;
3752 }
3753 }
3754 }
3755 }
3756 }
3757 {
3758 object Term = arg1;
3759 object State = arg2;
3760 object Result = arg3;
3761 Variable Name = new Variable();
3762 Variable TermArgs = new Variable();
3763 Variable x6 = new Variable();
3764 Variable Arity = new Variable();
3765 Variable ModuleCode = new Variable();
3766 Variable NameCode = new Variable();
3767 Variable X1 = new Variable();
3768 Variable Arg1 = new Variable();
3769 Variable X2 = new Variable();
3770 Variable Arg2 = new Variable();
3771 Variable X3 = new Variable();
3772 Variable Arg3 = new Variable();
3773 Variable Args = new Variable();
3774 foreach (bool l2 in YP.univ(Term, new ListPair(Name, TermArgs)))
3775 {
3776 if (YP.termEqual(TermArgs, Atom.NIL))
3777 {
3778 foreach (bool l4 in YP.unify(Result, new Functor1("object", Name)))
3779 {
3780 yield return true;
3781 yield break;
3782 }
3783 goto cutIf2;
3784 }
3785 foreach (bool l3 in YP.functor(Term, x6, Arity))
3786 {
3787 foreach (bool l4 in compileAtomModule(Name, Arity, State, ModuleCode))
3788 {
3789 foreach (bool l5 in YP.unify(NameCode, new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", Name), new ListPair(ModuleCode, Atom.NIL)))))
3790 {
3791 foreach (bool l6 in YP.unify(TermArgs, new ListPair(X1, Atom.NIL)))
3792 {
3793 foreach (bool l7 in compileTerm(X1, State, Arg1))
3794 {
3795 foreach (bool l8 in YP.unify(Result, new Functor2("new", Atom.a("Functor1"), new ListPair(NameCode, new ListPair(Arg1, Atom.NIL)))))
3796 {
3797 yield return true;
3798 yield break;
3799 }
3800 }
3801 goto cutIf4;
3802 }
3803 foreach (bool l6 in YP.unify(TermArgs, new ListPair(X1, new ListPair(X2, Atom.NIL))))
3804 {
3805 foreach (bool l7 in compileTerm(X1, State, Arg1))
3806 {
3807 foreach (bool l8 in compileTerm(X2, State, Arg2))
3808 {
3809 foreach (bool l9 in YP.unify(Result, new Functor2("new", Atom.a("Functor2"), ListPair.make(new object[] { NameCode, Arg1, Arg2 }))))
3810 {
3811 yield return true;
3812 yield break;
3813 }
3814 }
3815 }
3816 goto cutIf5;
3817 }
3818 foreach (bool l6 in YP.unify(TermArgs, ListPair.make(new object[] { X1, X2, X3 })))
3819 {
3820 foreach (bool l7 in compileTerm(X1, State, Arg1))
3821 {
3822 foreach (bool l8 in compileTerm(X2, State, Arg2))
3823 {
3824 foreach (bool l9 in compileTerm(X3, State, Arg3))
3825 {
3826 foreach (bool l10 in YP.unify(Result, new Functor2("new", Atom.a("Functor3"), ListPair.make(new object[] { NameCode, Arg1, Arg2, Arg3 }))))
3827 {
3828 yield return true;
3829 yield break;
3830 }
3831 }
3832 }
3833 }
3834 }
3835 foreach (bool l6 in maplist_compileTerm(TermArgs, State, Args))
3836 {
3837 foreach (bool l7 in YP.unify(Result, new Functor2("new", Atom.a("Functor"), new ListPair(NameCode, new ListPair(new Functor1("objectArray", Args), Atom.NIL)))))
3838 {
3839 yield return true;
3840 yield break;
3841 }
3842 }
3843 cutIf5:
3844 cutIf4:
3845 { }
3846 }
3847 goto cutIf3;
3848 }
3849 foreach (bool l4 in YP.unify(NameCode, new Functor1("object", Name)))
3850 {
3851 foreach (bool l5 in YP.unify(TermArgs, new ListPair(X1, Atom.NIL)))
3852 {
3853 foreach (bool l6 in compileTerm(X1, State, Arg1))
3854 {
3855 foreach (bool l7 in YP.unify(Result, new Functor2("new", Atom.a("Functor1"), new ListPair(NameCode, new ListPair(Arg1, Atom.NIL)))))
3856 {
3857 yield return true;
3858 yield break;
3859 }
3860 }
3861 goto cutIf6;
3862 }
3863 foreach (bool l5 in YP.unify(TermArgs, new ListPair(X1, new ListPair(X2, Atom.NIL))))
3864 {
3865 foreach (bool l6 in compileTerm(X1, State, Arg1))
3866 {
3867 foreach (bool l7 in compileTerm(X2, State, Arg2))
3868 {
3869 foreach (bool l8 in YP.unify(Result, new Functor2("new", Atom.a("Functor2"), ListPair.make(new object[] { NameCode, Arg1, Arg2 }))))
3870 {
3871 yield return true;
3872 yield break;
3873 }
3874 }
3875 }
3876 goto cutIf7;
3877 }
3878 foreach (bool l5 in YP.unify(TermArgs, ListPair.make(new object[] { X1, X2, X3 })))
3879 {
3880 foreach (bool l6 in compileTerm(X1, State, Arg1))
3881 {
3882 foreach (bool l7 in compileTerm(X2, State, Arg2))
3883 {
3884 foreach (bool l8 in compileTerm(X3, State, Arg3))
3885 {
3886 foreach (bool l9 in YP.unify(Result, new Functor2("new", Atom.a("Functor3"), ListPair.make(new object[] { NameCode, Arg1, Arg2, Arg3 }))))
3887 {
3888 yield return true;
3889 yield break;
3890 }
3891 }
3892 }
3893 }
3894 }
3895 foreach (bool l5 in maplist_compileTerm(TermArgs, State, Args))
3896 {
3897 foreach (bool l6 in YP.unify(Result, new Functor2("new", Atom.a("Functor"), new ListPair(NameCode, new ListPair(new Functor1("objectArray", Args), Atom.NIL)))))
3898 {
3899 yield return true;
3900 yield break;
3901 }
3902 }
3903 cutIf7:
3904 cutIf6:
3905 { }
3906 }
3907 cutIf3:
3908 { }
3909 }
3910 cutIf2:
3911 { }
3912 }
3913 }
3914 }
3915
3916 public static IEnumerable<bool> compileAtomModule(object Name, object arg2, object arg3, object ModuleCode)
3917 {
3918 {
3919 object Arity = arg2;
3920 object State = arg3;
3921 if (CompilerState.nameArityHasModule(State, Name, Arity, Atom.a("")))
3922 {
3923 foreach (bool l3 in YP.unify(ModuleCode, new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", Atom.a("")), Atom.NIL))))
3924 {
3925 yield return true;
3926 yield break;
3927 }
3928 }
3929 }
3930 {
3931 object _Arity = arg2;
3932 object _State = arg3;
3933 Variable Module = new Variable();
3934 foreach (bool l2 in Atom.module(Name, Module))
3935 {
3936 if (YP.termNotEqual(Module, Atom.NIL))
3937 {
3938 foreach (bool l4 in YP.unify(ModuleCode, new Functor2("call", Atom.a("Atom.a"), new ListPair(new Functor1("object", Module), Atom.NIL))))
3939 {
3940 yield return true;
3941 yield break;
3942 }
3943 }
3944 }
3945 }
3946 }
3947
3948 public static IEnumerable<bool> maplist_compileTerm(object arg1, object arg2, object arg3)
3949 {
3950 {
3951 object _State = arg2;
3952 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
3953 {
3954 foreach (bool l3 in YP.unify(arg3, Atom.NIL))
3955 {
3956 yield return true;
3957 yield break;
3958 }
3959 }
3960 }
3961 {
3962 object State = arg2;
3963 Variable First = new Variable();
3964 Variable Rest = new Variable();
3965 Variable FirstResult = new Variable();
3966 Variable RestResults = new Variable();
3967 foreach (bool l2 in YP.unify(arg1, new ListPair(First, Rest)))
3968 {
3969 foreach (bool l3 in YP.unify(arg3, new ListPair(FirstResult, RestResults)))
3970 {
3971 if (YP.nonvar(Rest))
3972 {
3973 foreach (bool l5 in compileTerm(First, State, FirstResult))
3974 {
3975 foreach (bool l6 in maplist_compileTerm(Rest, State, RestResults))
3976 {
3977 yield return true;
3978 yield break;
3979 }
3980 }
3981 }
3982 }
3983 }
3984 }
3985 }
3986
3987 public static IEnumerable<bool> compileExpression(object Term, object State, object Result)
3988 {
3989 {
3990 Variable Name = new Variable();
3991 Variable TermArgs = new Variable();
3992 Variable X1 = new Variable();
3993 Variable FunctionName = new Variable();
3994 Variable Arg1 = new Variable();
3995 Variable x9 = new Variable();
3996 Variable X2 = new Variable();
3997 Variable Arg2 = new Variable();
3998 Variable x12 = new Variable();
3999 Variable Arity = new Variable();
4000 if (YP.nonvar(Term))
4001 {
4002 foreach (bool l3 in YP.univ(Term, new ListPair(Name, TermArgs)))
4003 {
4004 if (YP.atom(Name))
4005 {
4006 foreach (bool l5 in YP.unify(TermArgs, new ListPair(X1, Atom.NIL)))
4007 {
4008 foreach (bool l6 in unaryFunction(Name, FunctionName))
4009 {
4010 foreach (bool l7 in compileExpression(X1, State, Arg1))
4011 {
4012 foreach (bool l8 in YP.unify(Result, new Functor2("call", FunctionName, new ListPair(Arg1, Atom.NIL))))
4013 {
4014 yield return true;
4015 yield break;
4016 }
4017 }
4018 goto cutIf1;
4019 }
4020 }
4021 foreach (bool l5 in YP.unify(Term, new ListPair(x9, Atom.NIL)))
4022 {
4023 foreach (bool l6 in compileTerm(Term, State, Result))
4024 {
4025 yield return true;
4026 yield break;
4027 }
4028 goto cutIf2;
4029 }
4030 foreach (bool l5 in YP.unify(TermArgs, new ListPair(X1, new ListPair(X2, Atom.NIL))))
4031 {
4032 foreach (bool l6 in binaryFunction(Name, FunctionName))
4033 {
4034 foreach (bool l7 in compileExpression(X1, State, Arg1))
4035 {
4036 foreach (bool l8 in compileExpression(X2, State, Arg2))
4037 {
4038 foreach (bool l9 in YP.unify(Result, new Functor2("call", FunctionName, new ListPair(Arg1, new ListPair(Arg2, Atom.NIL)))))
4039 {
4040 yield return true;
4041 yield break;
4042 }
4043 }
4044 }
4045 goto cutIf3;
4046 }
4047 }
4048 foreach (bool l5 in YP.functor(Term, x12, Arity))
4049 {
4050 YP.throwException(new Functor2("error", new Functor2("type_error", Atom.a("evaluable"), new Functor2("/", Name, Arity)), Atom.a("Not an expression function")));
4051 yield return false;
4052 }
4053 cutIf3:
4054 cutIf2:
4055 cutIf1:
4056 { }
4057 }
4058 }
4059 }
4060 }
4061 {
4062 foreach (bool l2 in compileTerm(Term, State, Result))
4063 {
4064 yield return true;
4065 yield break;
4066 }
4067 }
4068 }
4069
4070 public static IEnumerable<bool> unaryFunction(object arg1, object arg2)
4071 {
4072 {
4073 foreach (bool l2 in YP.unify(arg1, Atom.a("-")))
4074 {
4075 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.negate")))
4076 {
4077 yield return true;
4078 yield break;
4079 }
4080 }
4081 }
4082 {
4083 foreach (bool l2 in YP.unify(arg1, Atom.a("abs")))
4084 {
4085 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.abs")))
4086 {
4087 yield return true;
4088 yield break;
4089 }
4090 }
4091 }
4092 {
4093 foreach (bool l2 in YP.unify(arg1, Atom.a("sign")))
4094 {
4095 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.sign")))
4096 {
4097 yield return true;
4098 yield break;
4099 }
4100 }
4101 }
4102 {
4103 foreach (bool l2 in YP.unify(arg1, Atom.a("float")))
4104 {
4105 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.toFloat")))
4106 {
4107 yield return true;
4108 yield break;
4109 }
4110 }
4111 }
4112 {
4113 foreach (bool l2 in YP.unify(arg1, Atom.a("floor")))
4114 {
4115 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.floor")))
4116 {
4117 yield return true;
4118 yield break;
4119 }
4120 }
4121 }
4122 {
4123 foreach (bool l2 in YP.unify(arg1, Atom.a("truncate")))
4124 {
4125 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.truncate")))
4126 {
4127 yield return true;
4128 yield break;
4129 }
4130 }
4131 }
4132 {
4133 foreach (bool l2 in YP.unify(arg1, Atom.a("round")))
4134 {
4135 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.round")))
4136 {
4137 yield return true;
4138 yield break;
4139 }
4140 }
4141 }
4142 {
4143 foreach (bool l2 in YP.unify(arg1, Atom.a("ceiling")))
4144 {
4145 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.ceiling")))
4146 {
4147 yield return true;
4148 yield break;
4149 }
4150 }
4151 }
4152 {
4153 foreach (bool l2 in YP.unify(arg1, Atom.a("sin")))
4154 {
4155 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.sin")))
4156 {
4157 yield return true;
4158 yield break;
4159 }
4160 }
4161 }
4162 {
4163 foreach (bool l2 in YP.unify(arg1, Atom.a("cos")))
4164 {
4165 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.cos")))
4166 {
4167 yield return true;
4168 yield break;
4169 }
4170 }
4171 }
4172 {
4173 foreach (bool l2 in YP.unify(arg1, Atom.a("atan")))
4174 {
4175 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.atan")))
4176 {
4177 yield return true;
4178 yield break;
4179 }
4180 }
4181 }
4182 {
4183 foreach (bool l2 in YP.unify(arg1, Atom.a("exp")))
4184 {
4185 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.exp")))
4186 {
4187 yield return true;
4188 yield break;
4189 }
4190 }
4191 }
4192 {
4193 foreach (bool l2 in YP.unify(arg1, Atom.a("log")))
4194 {
4195 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.log")))
4196 {
4197 yield return true;
4198 yield break;
4199 }
4200 }
4201 }
4202 {
4203 foreach (bool l2 in YP.unify(arg1, Atom.a("sqrt")))
4204 {
4205 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.sqrt")))
4206 {
4207 yield return true;
4208 yield break;
4209 }
4210 }
4211 }
4212 {
4213 foreach (bool l2 in YP.unify(arg1, Atom.a("\\")))
4214 {
4215 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.bitwiseComplement")))
4216 {
4217 yield return true;
4218 yield break;
4219 }
4220 }
4221 }
4222 }
4223
4224 public static IEnumerable<bool> binaryFunction(object arg1, object arg2)
4225 {
4226 {
4227 foreach (bool l2 in YP.unify(arg1, Atom.a("+")))
4228 {
4229 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.add")))
4230 {
4231 yield return true;
4232 yield break;
4233 }
4234 }
4235 }
4236 {
4237 foreach (bool l2 in YP.unify(arg1, Atom.a("-")))
4238 {
4239 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.subtract")))
4240 {
4241 yield return true;
4242 yield break;
4243 }
4244 }
4245 }
4246 {
4247 foreach (bool l2 in YP.unify(arg1, Atom.a("*")))
4248 {
4249 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.multiply")))
4250 {
4251 yield return true;
4252 yield break;
4253 }
4254 }
4255 }
4256 {
4257 foreach (bool l2 in YP.unify(arg1, Atom.a("/")))
4258 {
4259 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.divide")))
4260 {
4261 yield return true;
4262 yield break;
4263 }
4264 }
4265 }
4266 {
4267 foreach (bool l2 in YP.unify(arg1, Atom.a("//")))
4268 {
4269 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.intDivide")))
4270 {
4271 yield return true;
4272 yield break;
4273 }
4274 }
4275 }
4276 {
4277 foreach (bool l2 in YP.unify(arg1, Atom.a("mod")))
4278 {
4279 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.mod")))
4280 {
4281 yield return true;
4282 yield break;
4283 }
4284 }
4285 }
4286 {
4287 foreach (bool l2 in YP.unify(arg1, Atom.a("**")))
4288 {
4289 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.pow")))
4290 {
4291 yield return true;
4292 yield break;
4293 }
4294 }
4295 }
4296 {
4297 foreach (bool l2 in YP.unify(arg1, Atom.a(">>")))
4298 {
4299 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.bitwiseShiftRight")))
4300 {
4301 yield return true;
4302 yield break;
4303 }
4304 }
4305 }
4306 {
4307 foreach (bool l2 in YP.unify(arg1, Atom.a("<<")))
4308 {
4309 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.bitwiseShiftLeft")))
4310 {
4311 yield return true;
4312 yield break;
4313 }
4314 }
4315 }
4316 {
4317 foreach (bool l2 in YP.unify(arg1, Atom.a("/\\")))
4318 {
4319 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.bitwiseAnd")))
4320 {
4321 yield return true;
4322 yield break;
4323 }
4324 }
4325 }
4326 {
4327 foreach (bool l2 in YP.unify(arg1, Atom.a("\\/")))
4328 {
4329 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.bitwiseOr")))
4330 {
4331 yield return true;
4332 yield break;
4333 }
4334 }
4335 }
4336 {
4337 foreach (bool l2 in YP.unify(arg1, Atom.a("min")))
4338 {
4339 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.min")))
4340 {
4341 yield return true;
4342 yield break;
4343 }
4344 }
4345 }
4346 {
4347 foreach (bool l2 in YP.unify(arg1, Atom.a("max")))
4348 {
4349 foreach (bool l3 in YP.unify(arg2, Atom.a("YP.max")))
4350 {
4351 yield return true;
4352 yield break;
4353 }
4354 }
4355 }
4356 }
4357
4358 public static void convertFunctionCSharp(object arg1)
4359 {
4360 {
4361 foreach (bool l2 in YP.unify(arg1, Atom.a("getDeclaringClass")))
4362 {
4363 YP.write(Atom.a("public class YPInnerClass {}"));
4364 YP.nl();
4365 YP.write(Atom.a("public static System.Type getDeclaringClass() { return typeof(YPInnerClass).DeclaringType; }"));
4366 YP.nl();
4367 YP.nl();
4368 return;
4369 }
4370 }
4371 {
4372 Variable ReturnType = new Variable();
4373 Variable Name = new Variable();
4374 Variable ArgList = new Variable();
4375 Variable Body = new Variable();
4376 Variable Level = new Variable();
4377 foreach (bool l2 in YP.unify(arg1, new Functor("function", new object[] { ReturnType, Name, ArgList, Body })))
4378 {
4379 YP.write(Atom.a("public static "));
4380 YP.write(ReturnType);
4381 YP.write(Atom.a(" "));
4382 YP.write(Name);
4383 YP.write(Atom.a("("));
4384 convertArgListCSharp(ArgList);
4385 YP.write(Atom.a(") {"));
4386 YP.nl();
4387 foreach (bool l3 in YP.unify(Level, 1))
4388 {
4389 convertStatementListCSharp(Body, Level);
4390 YP.write(Atom.a("}"));
4391 YP.nl();
4392 YP.nl();
4393 return;
4394 }
4395 }
4396 }
4397 }
4398
4399 public static IEnumerable<bool> convertStatementListCSharp(object arg1, object x1, object x2)
4400 {
4401 {
4402 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
4403 {
4404 yield return true;
4405 yield break;
4406 }
4407 }
4408 }
4409
4410 public static void convertStatementListCSharp(object arg1, object Level)
4411 {
4412 {
4413 Variable Name = new Variable();
4414 Variable Body = new Variable();
4415 Variable RestStatements = new Variable();
4416 Variable NewStatements = new Variable();
4417 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("breakableBlock", Name, Body), RestStatements)))
4418 {
4419 foreach (bool l3 in append(Body, new ListPair(new Functor1("label", Name), RestStatements), NewStatements))
4420 {
4421 convertStatementListCSharp(NewStatements, Level);
4422 return;
4423 }
4424 }
4425 }
4426 {
4427 Variable Type = new Variable();
4428 Variable Name = new Variable();
4429 Variable Expression = new Variable();
4430 Variable RestStatements = new Variable();
4431 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("declare", Type, Name, Expression), RestStatements)))
4432 {
4433 convertIndentationCSharp(Level);
4434 YP.write(Type);
4435 YP.write(Atom.a(" "));
4436 YP.write(Name);
4437 YP.write(Atom.a(" = "));
4438 convertExpressionCSharp(Expression);
4439 YP.write(Atom.a(";"));
4440 YP.nl();
4441 convertStatementListCSharp(RestStatements, Level);
4442 return;
4443 }
4444 }
4445 {
4446 Variable Name = new Variable();
4447 Variable Expression = new Variable();
4448 Variable RestStatements = new Variable();
4449 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("assign", Name, Expression), RestStatements)))
4450 {
4451 convertIndentationCSharp(Level);
4452 YP.write(Name);
4453 YP.write(Atom.a(" = "));
4454 convertExpressionCSharp(Expression);
4455 YP.write(Atom.a(";"));
4456 YP.nl();
4457 convertStatementListCSharp(RestStatements, Level);
4458 return;
4459 }
4460 }
4461 {
4462 Variable RestStatements = new Variable();
4463 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldtrue"), RestStatements)))
4464 {
4465 convertIndentationCSharp(Level);
4466 YP.write(Atom.a("yield return true;"));
4467 YP.nl();
4468 convertStatementListCSharp(RestStatements, Level);
4469 return;
4470 }
4471 }
4472 {
4473 Variable RestStatements = new Variable();
4474 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldfalse"), RestStatements)))
4475 {
4476 convertIndentationCSharp(Level);
4477 YP.write(Atom.a("yield return false;"));
4478 YP.nl();
4479 convertStatementListCSharp(RestStatements, Level);
4480 return;
4481 }
4482 }
4483 {
4484 Variable RestStatements = new Variable();
4485 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldbreak"), RestStatements)))
4486 {
4487 convertIndentationCSharp(Level);
4488 YP.write(Atom.a("yield break;"));
4489 YP.nl();
4490 convertStatementListCSharp(RestStatements, Level);
4491 return;
4492 }
4493 }
4494 {
4495 Variable RestStatements = new Variable();
4496 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("return"), RestStatements)))
4497 {
4498 convertIndentationCSharp(Level);
4499 YP.write(Atom.a("return;"));
4500 YP.nl();
4501 convertStatementListCSharp(RestStatements, Level);
4502 return;
4503 }
4504 }
4505 {
4506 Variable RestStatements = new Variable();
4507 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returntrue"), RestStatements)))
4508 {
4509 convertIndentationCSharp(Level);
4510 YP.write(Atom.a("return true;"));
4511 YP.nl();
4512 convertStatementListCSharp(RestStatements, Level);
4513 return;
4514 }
4515 }
4516 {
4517 Variable RestStatements = new Variable();
4518 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returnfalse"), RestStatements)))
4519 {
4520 convertIndentationCSharp(Level);
4521 YP.write(Atom.a("return false;"));
4522 YP.nl();
4523 convertStatementListCSharp(RestStatements, Level);
4524 return;
4525 }
4526 }
4527 {
4528 Variable Name = new Variable();
4529 Variable RestStatements = new Variable();
4530 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("label", Name), RestStatements)))
4531 {
4532 convertIndentationCSharp(Level);
4533 YP.write(Name);
4534 YP.write(Atom.a(":"));
4535 YP.nl();
4536 if (YP.termEqual(RestStatements, Atom.NIL))
4537 {
4538 convertIndentationCSharp(Level);
4539 YP.write(Atom.a("{}"));
4540 YP.nl();
4541 convertStatementListCSharp(RestStatements, Level);
4542 return;
4543 goto cutIf1;
4544 }
4545 convertStatementListCSharp(RestStatements, Level);
4546 return;
4547 cutIf1:
4548 { }
4549 }
4550 }
4551 {
4552 Variable Name = new Variable();
4553 Variable RestStatements = new Variable();
4554 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("breakBlock", Name), RestStatements)))
4555 {
4556 convertIndentationCSharp(Level);
4557 YP.write(Atom.a("goto "));
4558 YP.write(Name);
4559 YP.write(Atom.a(";"));
4560 YP.nl();
4561 convertStatementListCSharp(RestStatements, Level);
4562 return;
4563 }
4564 }
4565 {
4566 Variable Name = new Variable();
4567 Variable ArgList = new Variable();
4568 Variable RestStatements = new Variable();
4569 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("call", Name, ArgList), RestStatements)))
4570 {
4571 convertIndentationCSharp(Level);
4572 YP.write(Name);
4573 YP.write(Atom.a("("));
4574 convertArgListCSharp(ArgList);
4575 YP.write(Atom.a(");"));
4576 YP.nl();
4577 convertStatementListCSharp(RestStatements, Level);
4578 return;
4579 }
4580 }
4581 {
4582 Variable Name = new Variable();
4583 Variable _FunctorArgs = new Variable();
4584 Variable ArgList = new Variable();
4585 Variable RestStatements = new Variable();
4586 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("functorCall", Name, _FunctorArgs, ArgList), RestStatements)))
4587 {
4588 convertStatementListCSharp(new ListPair(new Functor2("call", Name, ArgList), RestStatements), Level);
4589 return;
4590 }
4591 }
4592 {
4593 Variable Obj = new Variable();
4594 Variable Name = new Variable();
4595 Variable ArgList = new Variable();
4596 Variable RestStatements = new Variable();
4597 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("callMember", new Functor1("var", Obj), Name, ArgList), RestStatements)))
4598 {
4599 convertIndentationCSharp(Level);
4600 YP.write(Obj);
4601 YP.write(Atom.a("."));
4602 YP.write(Name);
4603 YP.write(Atom.a("("));
4604 convertArgListCSharp(ArgList);
4605 YP.write(Atom.a(");"));
4606 YP.nl();
4607 convertStatementListCSharp(RestStatements, Level);
4608 return;
4609 }
4610 }
4611 {
4612 Variable Body = new Variable();
4613 Variable RestStatements = new Variable();
4614 Variable NextLevel = new Variable();
4615 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("blockScope", Body), RestStatements)))
4616 {
4617 convertIndentationCSharp(Level);
4618 YP.write(Atom.a("{"));
4619 YP.nl();
4620 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
4621 {
4622 convertStatementListCSharp(Body, NextLevel);
4623 convertIndentationCSharp(Level);
4624 YP.write(Atom.a("}"));
4625 YP.nl();
4626 convertStatementListCSharp(RestStatements, Level);
4627 return;
4628 }
4629 }
4630 }
4631 {
4632 Variable Expression = new Variable();
4633 Variable Body = new Variable();
4634 Variable RestStatements = new Variable();
4635 Variable NextLevel = new Variable();
4636 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("if", Expression, Body), RestStatements)))
4637 {
4638 convertIndentationCSharp(Level);
4639 YP.write(Atom.a("if ("));
4640 convertExpressionCSharp(Expression);
4641 YP.write(Atom.a(") {"));
4642 YP.nl();
4643 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
4644 {
4645 convertStatementListCSharp(Body, NextLevel);
4646 convertIndentationCSharp(Level);
4647 YP.write(Atom.a("}"));
4648 YP.nl();
4649 convertStatementListCSharp(RestStatements, Level);
4650 return;
4651 }
4652 }
4653 }
4654 {
4655 Variable Expression = new Variable();
4656 Variable Body = new Variable();
4657 Variable RestStatements = new Variable();
4658 Variable NextLevel = new Variable();
4659 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("foreach", Expression, Body), RestStatements)))
4660 {
4661 convertIndentationCSharp(Level);
4662 YP.write(Atom.a("foreach (bool l"));
4663 YP.write(Level);
4664 YP.write(Atom.a(" in "));
4665 convertExpressionCSharp(Expression);
4666 YP.write(Atom.a(") {"));
4667 YP.nl();
4668 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
4669 {
4670 convertStatementListCSharp(Body, NextLevel);
4671 convertIndentationCSharp(Level);
4672 YP.write(Atom.a("}"));
4673 YP.nl();
4674 convertStatementListCSharp(RestStatements, Level);
4675 return;
4676 }
4677 }
4678 }
4679 {
4680 Variable Expression = new Variable();
4681 Variable RestStatements = new Variable();
4682 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("throw", Expression), RestStatements)))
4683 {
4684 convertIndentationCSharp(Level);
4685 YP.write(Atom.a("throw "));
4686 convertExpressionCSharp(Expression);
4687 YP.write(Atom.a(";"));
4688 YP.nl();
4689 convertStatementListCSharp(RestStatements, Level);
4690 return;
4691 }
4692 }
4693 }
4694
4695 public static void convertIndentationCSharp(object Level)
4696 {
4697 {
4698 Variable N = new Variable();
4699 foreach (bool l2 in YP.unify(N, YP.multiply(Level, 2)))
4700 {
4701 repeatWrite(Atom.a(" "), N);
4702 return;
4703 }
4704 }
4705 }
4706
4707 public static void convertArgListCSharp(object arg1)
4708 {
4709 {
4710 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
4711 {
4712 return;
4713 }
4714 }
4715 {
4716 Variable Head = new Variable();
4717 Variable Tail = new Variable();
4718 foreach (bool l2 in YP.unify(arg1, new ListPair(Head, Tail)))
4719 {
4720 convertExpressionCSharp(Head);
4721 if (YP.termNotEqual(Tail, Atom.NIL))
4722 {
4723 YP.write(Atom.a(", "));
4724 convertArgListCSharp(Tail);
4725 return;
4726 goto cutIf1;
4727 }
4728 convertArgListCSharp(Tail);
4729 return;
4730 cutIf1:
4731 { }
4732 }
4733 }
4734 }
4735
4736 public static void convertExpressionCSharp(object arg1)
4737 {
4738 {
4739 Variable X = new Variable();
4740 foreach (bool l2 in YP.unify(arg1, new Functor1("arg", X)))
4741 {
4742 YP.write(Atom.a("object "));
4743 YP.write(X);
4744 return;
4745 }
4746 }
4747 {
4748 Variable Name = new Variable();
4749 Variable ArgList = new Variable();
4750 foreach (bool l2 in YP.unify(arg1, new Functor2("call", Name, ArgList)))
4751 {
4752 YP.write(Name);
4753 YP.write(Atom.a("("));
4754 convertArgListCSharp(ArgList);
4755 YP.write(Atom.a(")"));
4756 return;
4757 }
4758 }
4759 {
4760 Variable Name = new Variable();
4761 Variable _FunctorArgs = new Variable();
4762 Variable ArgList = new Variable();
4763 foreach (bool l2 in YP.unify(arg1, new Functor3("functorCall", Name, _FunctorArgs, ArgList)))
4764 {
4765 convertExpressionCSharp(new Functor2("call", Name, ArgList));
4766 return;
4767 }
4768 }
4769 {
4770 Variable Obj = new Variable();
4771 Variable Name = new Variable();
4772 Variable ArgList = new Variable();
4773 foreach (bool l2 in YP.unify(arg1, new Functor3("callMember", new Functor1("var", Obj), Name, ArgList)))
4774 {
4775 YP.write(Obj);
4776 YP.write(Atom.a("."));
4777 YP.write(Name);
4778 YP.write(Atom.a("("));
4779 convertArgListCSharp(ArgList);
4780 YP.write(Atom.a(")"));
4781 return;
4782 }
4783 }
4784 {
4785 Variable Name = new Variable();
4786 Variable ArgList = new Variable();
4787 foreach (bool l2 in YP.unify(arg1, new Functor2("new", Name, ArgList)))
4788 {
4789 YP.write(Atom.a("new "));
4790 YP.write(Name);
4791 YP.write(Atom.a("("));
4792 convertArgListCSharp(ArgList);
4793 YP.write(Atom.a(")"));
4794 return;
4795 }
4796 }
4797 {
4798 Variable Name = new Variable();
4799 foreach (bool l2 in YP.unify(arg1, new Functor1("var", Name)))
4800 {
4801 YP.write(Name);
4802 return;
4803 }
4804 }
4805 {
4806 foreach (bool l2 in YP.unify(arg1, Atom.a("null")))
4807 {
4808 YP.write(Atom.a("null"));
4809 return;
4810 }
4811 }
4812 {
4813 Variable X = new Variable();
4814 foreach (bool l2 in YP.unify(arg1, new Functor1("not", X)))
4815 {
4816 YP.write(Atom.a("!("));
4817 convertExpressionCSharp(X);
4818 YP.write(Atom.a(")"));
4819 return;
4820 }
4821 }
4822 {
4823 Variable X = new Variable();
4824 Variable Y = new Variable();
4825 foreach (bool l2 in YP.unify(arg1, new Functor2("and", X, Y)))
4826 {
4827 YP.write(Atom.a("("));
4828 convertExpressionCSharp(X);
4829 YP.write(Atom.a(") && ("));
4830 convertExpressionCSharp(Y);
4831 YP.write(Atom.a(")"));
4832 return;
4833 }
4834 }
4835 {
4836 Variable ArgList = new Variable();
4837 foreach (bool l2 in YP.unify(arg1, new Functor1("objectArray", ArgList)))
4838 {
4839 YP.write(Atom.a("new object[] {"));
4840 convertArgListCSharp(ArgList);
4841 YP.write(Atom.a("}"));
4842 return;
4843 }
4844 }
4845 {
4846 Variable X = new Variable();
4847 Variable Codes = new Variable();
4848 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
4849 {
4850 if (YP.atom(X))
4851 {
4852 YP.write(Atom.a("\""));
4853 foreach (bool l4 in YP.atom_codes(X, Codes))
4854 {
4855 convertStringCodesCSharp(Codes);
4856 YP.write(Atom.a("\""));
4857 return;
4858 }
4859 }
4860 }
4861 }
4862 {
4863 Variable X = new Variable();
4864 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
4865 {
4866 YP.write(X);
4867 return;
4868 }
4869 }
4870 }
4871
4872 public static void convertStringCodesCSharp(object arg1)
4873 {
4874 {
4875 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
4876 {
4877 return;
4878 }
4879 }
4880 {
4881 Variable Code = new Variable();
4882 Variable RestCodes = new Variable();
4883 foreach (bool l2 in YP.unify(arg1, new ListPair(Code, RestCodes)))
4884 {
4885 foreach (bool l3 in putCStringCode(Code))
4886 {
4887 convertStringCodesCSharp(RestCodes);
4888 return;
4889 }
4890 }
4891 }
4892 }
4893
4894 public static void convertFunctionJavascript(object arg1)
4895 {
4896 {
4897 foreach (bool l2 in YP.unify(arg1, Atom.a("getDeclaringClass")))
4898 {
4899 YP.write(Atom.a("function getDeclaringClass() { return null; }"));
4900 YP.nl();
4901 YP.nl();
4902 return;
4903 }
4904 }
4905 {
4906 Variable x1 = new Variable();
4907 Variable Name = new Variable();
4908 Variable ArgList = new Variable();
4909 Variable Body = new Variable();
4910 foreach (bool l2 in YP.unify(arg1, new Functor("function", new object[] { x1, Name, ArgList, Body })))
4911 {
4912 YP.write(Atom.a("function "));
4913 YP.write(Name);
4914 YP.write(Atom.a("("));
4915 convertArgListJavascript(ArgList);
4916 YP.write(Atom.a(") {"));
4917 YP.nl();
4918 convertStatementListJavascript(Body, 1);
4919 YP.write(Atom.a("}"));
4920 YP.nl();
4921 YP.nl();
4922 return;
4923 }
4924 }
4925 }
4926
4927 public static void convertStatementListJavascript(object arg1, object arg2)
4928 {
4929 {
4930 object x1 = arg2;
4931 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
4932 {
4933 return;
4934 }
4935 }
4936 {
4937 object Level = arg2;
4938 Variable Name = new Variable();
4939 Variable Body = new Variable();
4940 Variable RestStatements = new Variable();
4941 Variable NextLevel = new Variable();
4942 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("breakableBlock", Name, Body), RestStatements)))
4943 {
4944 convertIndentationJavascript(Level);
4945 YP.write(Name);
4946 YP.write(Atom.a(":"));
4947 YP.nl();
4948 convertIndentationJavascript(Level);
4949 YP.write(Atom.a("{"));
4950 YP.nl();
4951 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
4952 {
4953 convertStatementListJavascript(Body, NextLevel);
4954 convertIndentationJavascript(Level);
4955 YP.write(Atom.a("}"));
4956 YP.nl();
4957 convertStatementListJavascript(RestStatements, Level);
4958 return;
4959 }
4960 }
4961 }
4962 {
4963 object Level = arg2;
4964 Variable _Type = new Variable();
4965 Variable Name = new Variable();
4966 Variable Expression = new Variable();
4967 Variable RestStatements = new Variable();
4968 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("declare", _Type, Name, Expression), RestStatements)))
4969 {
4970 convertIndentationJavascript(Level);
4971 YP.write(Atom.a("var "));
4972 YP.write(Name);
4973 YP.write(Atom.a(" = "));
4974 convertExpressionJavascript(Expression);
4975 YP.write(Atom.a(";"));
4976 YP.nl();
4977 convertStatementListJavascript(RestStatements, Level);
4978 return;
4979 }
4980 }
4981 {
4982 object Level = arg2;
4983 Variable Name = new Variable();
4984 Variable Expression = new Variable();
4985 Variable RestStatements = new Variable();
4986 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("assign", Name, Expression), RestStatements)))
4987 {
4988 convertIndentationJavascript(Level);
4989 YP.write(Name);
4990 YP.write(Atom.a(" = "));
4991 convertExpressionJavascript(Expression);
4992 YP.write(Atom.a(";"));
4993 YP.nl();
4994 convertStatementListJavascript(RestStatements, Level);
4995 return;
4996 }
4997 }
4998 {
4999 object Level = arg2;
5000 Variable RestStatements = new Variable();
5001 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldtrue"), RestStatements)))
5002 {
5003 convertIndentationJavascript(Level);
5004 YP.write(Atom.a("yield true;"));
5005 YP.nl();
5006 convertStatementListJavascript(RestStatements, Level);
5007 return;
5008 }
5009 }
5010 {
5011 object Level = arg2;
5012 Variable RestStatements = new Variable();
5013 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldfalse"), RestStatements)))
5014 {
5015 convertIndentationJavascript(Level);
5016 YP.write(Atom.a("yield false;"));
5017 YP.nl();
5018 convertStatementListJavascript(RestStatements, Level);
5019 return;
5020 }
5021 }
5022 {
5023 object Level = arg2;
5024 Variable RestStatements = new Variable();
5025 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldbreak"), RestStatements)))
5026 {
5027 convertIndentationJavascript(Level);
5028 YP.write(Atom.a("return;"));
5029 YP.nl();
5030 convertStatementListJavascript(RestStatements, Level);
5031 return;
5032 }
5033 }
5034 {
5035 object Level = arg2;
5036 Variable RestStatements = new Variable();
5037 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("return"), RestStatements)))
5038 {
5039 convertIndentationJavascript(Level);
5040 YP.write(Atom.a("return;"));
5041 YP.nl();
5042 convertStatementListJavascript(RestStatements, Level);
5043 return;
5044 }
5045 }
5046 {
5047 object Level = arg2;
5048 Variable RestStatements = new Variable();
5049 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returntrue"), RestStatements)))
5050 {
5051 convertIndentationJavascript(Level);
5052 YP.write(Atom.a("return true;"));
5053 YP.nl();
5054 convertStatementListJavascript(RestStatements, Level);
5055 return;
5056 }
5057 }
5058 {
5059 object Level = arg2;
5060 Variable RestStatements = new Variable();
5061 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returnfalse"), RestStatements)))
5062 {
5063 convertIndentationJavascript(Level);
5064 YP.write(Atom.a("return false;"));
5065 YP.nl();
5066 convertStatementListJavascript(RestStatements, Level);
5067 return;
5068 }
5069 }
5070 {
5071 object Level = arg2;
5072 Variable Name = new Variable();
5073 Variable RestStatements = new Variable();
5074 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("breakBlock", Name), RestStatements)))
5075 {
5076 convertIndentationJavascript(Level);
5077 YP.write(Atom.a("break "));
5078 YP.write(Name);
5079 YP.write(Atom.a(";"));
5080 YP.nl();
5081 convertStatementListJavascript(RestStatements, Level);
5082 return;
5083 }
5084 }
5085 {
5086 object Level = arg2;
5087 Variable Name = new Variable();
5088 Variable ArgList = new Variable();
5089 Variable RestStatements = new Variable();
5090 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("call", Name, ArgList), RestStatements)))
5091 {
5092 convertIndentationJavascript(Level);
5093 YP.write(Name);
5094 YP.write(Atom.a("("));
5095 convertArgListJavascript(ArgList);
5096 YP.write(Atom.a(");"));
5097 YP.nl();
5098 convertStatementListJavascript(RestStatements, Level);
5099 return;
5100 }
5101 }
5102 {
5103 object Level = arg2;
5104 Variable Name = new Variable();
5105 Variable _FunctorArgs = new Variable();
5106 Variable ArgList = new Variable();
5107 Variable RestStatements = new Variable();
5108 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("functorCall", Name, _FunctorArgs, ArgList), RestStatements)))
5109 {
5110 convertStatementListJavascript(new ListPair(new Functor2("call", Name, ArgList), RestStatements), Level);
5111 return;
5112 }
5113 }
5114 {
5115 object Level = arg2;
5116 Variable Obj = new Variable();
5117 Variable Name = new Variable();
5118 Variable ArgList = new Variable();
5119 Variable RestStatements = new Variable();
5120 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("callMember", new Functor1("var", Obj), Name, ArgList), RestStatements)))
5121 {
5122 convertIndentationJavascript(Level);
5123 YP.write(Obj);
5124 YP.write(Atom.a("."));
5125 YP.write(Name);
5126 YP.write(Atom.a("("));
5127 convertArgListJavascript(ArgList);
5128 YP.write(Atom.a(");"));
5129 YP.nl();
5130 convertStatementListJavascript(RestStatements, Level);
5131 return;
5132 }
5133 }
5134 {
5135 object Level = arg2;
5136 Variable Body = new Variable();
5137 Variable RestStatements = new Variable();
5138 Variable NextLevel = new Variable();
5139 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("blockScope", Body), RestStatements)))
5140 {
5141 convertIndentationJavascript(Level);
5142 YP.write(Atom.a("{"));
5143 YP.nl();
5144 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5145 {
5146 convertStatementListJavascript(Body, NextLevel);
5147 convertIndentationJavascript(Level);
5148 YP.write(Atom.a("}"));
5149 YP.nl();
5150 convertStatementListJavascript(RestStatements, Level);
5151 return;
5152 }
5153 }
5154 }
5155 {
5156 object Level = arg2;
5157 Variable Expression = new Variable();
5158 Variable Body = new Variable();
5159 Variable RestStatements = new Variable();
5160 Variable NextLevel = new Variable();
5161 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("if", Expression, Body), RestStatements)))
5162 {
5163 convertIndentationJavascript(Level);
5164 YP.write(Atom.a("if ("));
5165 convertExpressionJavascript(Expression);
5166 YP.write(Atom.a(") {"));
5167 YP.nl();
5168 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5169 {
5170 convertStatementListJavascript(Body, NextLevel);
5171 convertIndentationJavascript(Level);
5172 YP.write(Atom.a("}"));
5173 YP.nl();
5174 convertStatementListJavascript(RestStatements, Level);
5175 return;
5176 }
5177 }
5178 }
5179 {
5180 object Level = arg2;
5181 Variable Expression = new Variable();
5182 Variable Body = new Variable();
5183 Variable RestStatements = new Variable();
5184 Variable NextLevel = new Variable();
5185 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("foreach", Expression, Body), RestStatements)))
5186 {
5187 convertIndentationJavascript(Level);
5188 YP.write(Atom.a("for each (var l"));
5189 YP.write(Level);
5190 YP.write(Atom.a(" in "));
5191 convertExpressionJavascript(Expression);
5192 YP.write(Atom.a(") {"));
5193 YP.nl();
5194 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5195 {
5196 convertStatementListJavascript(Body, NextLevel);
5197 convertIndentationJavascript(Level);
5198 YP.write(Atom.a("}"));
5199 YP.nl();
5200 convertStatementListJavascript(RestStatements, Level);
5201 return;
5202 }
5203 }
5204 }
5205 {
5206 object Level = arg2;
5207 Variable Expression = new Variable();
5208 Variable RestStatements = new Variable();
5209 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("throw", Expression), RestStatements)))
5210 {
5211 convertIndentationJavascript(Level);
5212 YP.write(Atom.a("throw "));
5213 convertExpressionJavascript(Expression);
5214 YP.write(Atom.a(";"));
5215 YP.nl();
5216 convertStatementListJavascript(RestStatements, Level);
5217 return;
5218 }
5219 }
5220 }
5221
5222 public static void convertIndentationJavascript(object Level)
5223 {
5224 {
5225 Variable N = new Variable();
5226 foreach (bool l2 in YP.unify(N, YP.multiply(Level, 2)))
5227 {
5228 repeatWrite(Atom.a(" "), N);
5229 return;
5230 }
5231 }
5232 }
5233
5234 public static void convertArgListJavascript(object arg1)
5235 {
5236 {
5237 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
5238 {
5239 return;
5240 }
5241 }
5242 {
5243 Variable Head = new Variable();
5244 Variable Tail = new Variable();
5245 foreach (bool l2 in YP.unify(arg1, new ListPair(Head, Tail)))
5246 {
5247 convertExpressionJavascript(Head);
5248 if (YP.termNotEqual(Tail, Atom.NIL))
5249 {
5250 YP.write(Atom.a(", "));
5251 convertArgListJavascript(Tail);
5252 return;
5253 goto cutIf1;
5254 }
5255 convertArgListJavascript(Tail);
5256 return;
5257 cutIf1:
5258 { }
5259 }
5260 }
5261 }
5262
5263 public static void convertExpressionJavascript(object arg1)
5264 {
5265 {
5266 Variable X = new Variable();
5267 foreach (bool l2 in YP.unify(arg1, new Functor1("arg", X)))
5268 {
5269 YP.write(X);
5270 return;
5271 }
5272 }
5273 {
5274 Variable Name = new Variable();
5275 Variable ArgList = new Variable();
5276 foreach (bool l2 in YP.unify(arg1, new Functor2("call", Name, ArgList)))
5277 {
5278 YP.write(Name);
5279 YP.write(Atom.a("("));
5280 convertArgListJavascript(ArgList);
5281 YP.write(Atom.a(")"));
5282 return;
5283 }
5284 }
5285 {
5286 Variable Name = new Variable();
5287 Variable _FunctorArgs = new Variable();
5288 Variable ArgList = new Variable();
5289 foreach (bool l2 in YP.unify(arg1, new Functor3("functorCall", Name, _FunctorArgs, ArgList)))
5290 {
5291 convertExpressionJavascript(new Functor2("call", Name, ArgList));
5292 return;
5293 }
5294 }
5295 {
5296 Variable Obj = new Variable();
5297 Variable Name = new Variable();
5298 Variable ArgList = new Variable();
5299 foreach (bool l2 in YP.unify(arg1, new Functor3("callMember", new Functor1("var", Obj), Name, ArgList)))
5300 {
5301 YP.write(Obj);
5302 YP.write(Atom.a("."));
5303 YP.write(Name);
5304 YP.write(Atom.a("("));
5305 convertArgListJavascript(ArgList);
5306 YP.write(Atom.a(")"));
5307 return;
5308 }
5309 }
5310 {
5311 Variable Name = new Variable();
5312 Variable ArgList = new Variable();
5313 foreach (bool l2 in YP.unify(arg1, new Functor2("new", Name, ArgList)))
5314 {
5315 YP.write(Atom.a("new "));
5316 YP.write(Name);
5317 YP.write(Atom.a("("));
5318 convertArgListJavascript(ArgList);
5319 YP.write(Atom.a(")"));
5320 return;
5321 }
5322 }
5323 {
5324 Variable Name = new Variable();
5325 foreach (bool l2 in YP.unify(arg1, new Functor1("var", Name)))
5326 {
5327 YP.write(Name);
5328 return;
5329 }
5330 }
5331 {
5332 foreach (bool l2 in YP.unify(arg1, Atom.a("null")))
5333 {
5334 YP.write(Atom.a("null"));
5335 return;
5336 }
5337 }
5338 {
5339 Variable X = new Variable();
5340 foreach (bool l2 in YP.unify(arg1, new Functor1("not", X)))
5341 {
5342 YP.write(Atom.a("!("));
5343 convertExpressionJavascript(X);
5344 YP.write(Atom.a(")"));
5345 return;
5346 }
5347 }
5348 {
5349 Variable X = new Variable();
5350 Variable Y = new Variable();
5351 foreach (bool l2 in YP.unify(arg1, new Functor2("and", X, Y)))
5352 {
5353 YP.write(Atom.a("("));
5354 convertExpressionJavascript(X);
5355 YP.write(Atom.a(") && ("));
5356 convertExpressionJavascript(Y);
5357 YP.write(Atom.a(")"));
5358 return;
5359 }
5360 }
5361 {
5362 Variable ArgList = new Variable();
5363 foreach (bool l2 in YP.unify(arg1, new Functor1("objectArray", ArgList)))
5364 {
5365 YP.write(Atom.a("["));
5366 convertArgListJavascript(ArgList);
5367 YP.write(Atom.a("]"));
5368 return;
5369 }
5370 }
5371 {
5372 Variable X = new Variable();
5373 Variable Codes = new Variable();
5374 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
5375 {
5376 if (YP.atom(X))
5377 {
5378 YP.write(Atom.a("\""));
5379 foreach (bool l4 in YP.atom_codes(X, Codes))
5380 {
5381 convertStringCodesJavascript(Codes);
5382 YP.write(Atom.a("\""));
5383 return;
5384 }
5385 }
5386 }
5387 }
5388 {
5389 Variable X = new Variable();
5390 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
5391 {
5392 YP.write(X);
5393 return;
5394 }
5395 }
5396 }
5397
5398 public static void convertStringCodesJavascript(object arg1)
5399 {
5400 {
5401 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
5402 {
5403 return;
5404 }
5405 }
5406 {
5407 Variable Code = new Variable();
5408 Variable RestCodes = new Variable();
5409 foreach (bool l2 in YP.unify(arg1, new ListPair(Code, RestCodes)))
5410 {
5411 foreach (bool l3 in putCStringCode(Code))
5412 {
5413 convertStringCodesJavascript(RestCodes);
5414 return;
5415 }
5416 }
5417 }
5418 }
5419
5420 public static void convertFunctionPython(object arg1)
5421 {
5422 {
5423 foreach (bool l2 in YP.unify(arg1, Atom.a("getDeclaringClass")))
5424 {
5425 YP.write(Atom.a("def getDeclaringClass():"));
5426 YP.nl();
5427 YP.write(Atom.a(" return None"));
5428 YP.nl();
5429 YP.nl();
5430 return;
5431 }
5432 }
5433 {
5434 Variable x1 = new Variable();
5435 Variable Name = new Variable();
5436 Variable ArgList = new Variable();
5437 Variable Body = new Variable();
5438 Variable Level = new Variable();
5439 Variable HasBreakableBlock = new Variable();
5440 foreach (bool l2 in YP.unify(arg1, new Functor("function", new object[] { x1, Name, ArgList, Body })))
5441 {
5442 YP.write(Atom.a("def "));
5443 YP.write(Name);
5444 YP.write(Atom.a("("));
5445 convertArgListPython(ArgList);
5446 YP.write(Atom.a("):"));
5447 YP.nl();
5448 foreach (bool l3 in YP.unify(Level, 1))
5449 {
5450 if (hasBreakableBlockPython(Body))
5451 {
5452 foreach (bool l5 in YP.unify(HasBreakableBlock, 1))
5453 {
5454 if (YP.termEqual(HasBreakableBlock, 1))
5455 {
5456 convertIndentationPython(Level);
5457 YP.write(Atom.a("doBreak = False"));
5458 YP.nl();
5459 foreach (bool l7 in convertStatementListPython(Body, Level, HasBreakableBlock))
5460 {
5461 YP.nl();
5462 return;
5463 }
5464 goto cutIf2;
5465 }
5466 foreach (bool l6 in convertStatementListPython(Body, Level, HasBreakableBlock))
5467 {
5468 YP.nl();
5469 return;
5470 }
5471 cutIf2:
5472 { }
5473 }
5474 goto cutIf1;
5475 }
5476 foreach (bool l4 in YP.unify(HasBreakableBlock, 0))
5477 {
5478 if (YP.termEqual(HasBreakableBlock, 1))
5479 {
5480 convertIndentationPython(Level);
5481 YP.write(Atom.a("doBreak = False"));
5482 YP.nl();
5483 foreach (bool l6 in convertStatementListPython(Body, Level, HasBreakableBlock))
5484 {
5485 YP.nl();
5486 return;
5487 }
5488 goto cutIf3;
5489 }
5490 foreach (bool l5 in convertStatementListPython(Body, Level, HasBreakableBlock))
5491 {
5492 YP.nl();
5493 return;
5494 }
5495 cutIf3:
5496 { }
5497 }
5498 cutIf1:
5499 { }
5500 }
5501 }
5502 }
5503 }
5504
5505 public static bool hasBreakableBlockPython(object arg1)
5506 {
5507 {
5508 Variable _Name = new Variable();
5509 Variable _Body = new Variable();
5510 Variable _RestStatements = new Variable();
5511 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("breakableBlock", _Name, _Body), _RestStatements)))
5512 {
5513 return true;
5514 }
5515 }
5516 {
5517 Variable Body = new Variable();
5518 Variable _RestStatements = new Variable();
5519 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("blockScope", Body), _RestStatements)))
5520 {
5521 if (hasBreakableBlockPython(Body))
5522 {
5523 return true;
5524 }
5525 }
5526 }
5527 {
5528 Variable _Expression = new Variable();
5529 Variable Body = new Variable();
5530 Variable _RestStatements = new Variable();
5531 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("if", _Expression, Body), _RestStatements)))
5532 {
5533 if (hasBreakableBlockPython(Body))
5534 {
5535 return true;
5536 }
5537 }
5538 }
5539 {
5540 Variable _Expression = new Variable();
5541 Variable Body = new Variable();
5542 Variable _RestStatements = new Variable();
5543 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("foreach", _Expression, Body), _RestStatements)))
5544 {
5545 if (hasBreakableBlockPython(Body))
5546 {
5547 return true;
5548 }
5549 }
5550 }
5551 {
5552 Variable x1 = new Variable();
5553 Variable RestStatements = new Variable();
5554 foreach (bool l2 in YP.unify(arg1, new ListPair(x1, RestStatements)))
5555 {
5556 if (hasBreakableBlockPython(RestStatements))
5557 {
5558 return true;
5559 }
5560 }
5561 }
5562 return false;
5563 }
5564
5565 public static IEnumerable<bool> convertStatementListPython(object arg1, object arg2, object arg3)
5566 {
5567 {
5568 object x1 = arg2;
5569 object x2 = arg3;
5570 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
5571 {
5572 yield return true;
5573 yield break;
5574 }
5575 }
5576 {
5577 object Level = arg2;
5578 object HasBreakableBlock = arg3;
5579 Variable Name = new Variable();
5580 Variable Body = new Variable();
5581 Variable RestStatements = new Variable();
5582 Variable NextLevel = new Variable();
5583 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("breakableBlock", Name, Body), RestStatements)))
5584 {
5585 convertIndentationPython(Level);
5586 YP.write(Name);
5587 YP.write(Atom.a(" = False"));
5588 YP.nl();
5589 convertIndentationPython(Level);
5590 YP.write(Atom.a("for _ in [1]:"));
5591 YP.nl();
5592 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5593 {
5594 foreach (bool l4 in convertStatementListPython(Body, NextLevel, HasBreakableBlock))
5595 {
5596 convertIndentationPython(Level);
5597 YP.write(Atom.a("if "));
5598 YP.write(Name);
5599 YP.write(Atom.a(":"));
5600 YP.nl();
5601 convertIndentationPython(NextLevel);
5602 YP.write(Atom.a("doBreak = False"));
5603 YP.nl();
5604 convertIndentationPython(Level);
5605 YP.write(Atom.a("if doBreak:"));
5606 YP.nl();
5607 convertIndentationPython(NextLevel);
5608 YP.write(Atom.a("break"));
5609 YP.nl();
5610 foreach (bool l5 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5611 {
5612 yield return true;
5613 yield break;
5614 }
5615 }
5616 }
5617 }
5618 }
5619 {
5620 object Level = arg2;
5621 object HasBreakableBlock = arg3;
5622 Variable _Type = new Variable();
5623 Variable Name = new Variable();
5624 Variable Expression = new Variable();
5625 Variable RestStatements = new Variable();
5626 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("declare", _Type, Name, Expression), RestStatements)))
5627 {
5628 convertIndentationPython(Level);
5629 YP.write(Name);
5630 YP.write(Atom.a(" = "));
5631 convertExpressionPython(Expression);
5632 YP.nl();
5633 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5634 {
5635 yield return true;
5636 yield break;
5637 }
5638 }
5639 }
5640 {
5641 object Level = arg2;
5642 object HasBreakableBlock = arg3;
5643 Variable Name = new Variable();
5644 Variable Expression = new Variable();
5645 Variable RestStatements = new Variable();
5646 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("assign", Name, Expression), RestStatements)))
5647 {
5648 convertIndentationPython(Level);
5649 YP.write(Name);
5650 YP.write(Atom.a(" = "));
5651 convertExpressionPython(Expression);
5652 YP.nl();
5653 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5654 {
5655 yield return true;
5656 yield break;
5657 }
5658 }
5659 }
5660 {
5661 object Level = arg2;
5662 object HasBreakableBlock = arg3;
5663 Variable RestStatements = new Variable();
5664 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldtrue"), RestStatements)))
5665 {
5666 convertIndentationPython(Level);
5667 YP.write(Atom.a("yield True"));
5668 YP.nl();
5669 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5670 {
5671 yield return true;
5672 yield break;
5673 }
5674 }
5675 }
5676 {
5677 object Level = arg2;
5678 object HasBreakableBlock = arg3;
5679 Variable RestStatements = new Variable();
5680 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldfalse"), RestStatements)))
5681 {
5682 convertIndentationPython(Level);
5683 YP.write(Atom.a("yield False"));
5684 YP.nl();
5685 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5686 {
5687 yield return true;
5688 yield break;
5689 }
5690 }
5691 }
5692 {
5693 object Level = arg2;
5694 object HasBreakableBlock = arg3;
5695 Variable RestStatements = new Variable();
5696 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("yieldbreak"), RestStatements)))
5697 {
5698 convertIndentationPython(Level);
5699 YP.write(Atom.a("return"));
5700 YP.nl();
5701 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5702 {
5703 yield return true;
5704 yield break;
5705 }
5706 }
5707 }
5708 {
5709 object Level = arg2;
5710 object HasBreakableBlock = arg3;
5711 Variable RestStatements = new Variable();
5712 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("return"), RestStatements)))
5713 {
5714 convertIndentationPython(Level);
5715 YP.write(Atom.a("return"));
5716 YP.nl();
5717 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5718 {
5719 yield return true;
5720 yield break;
5721 }
5722 }
5723 }
5724 {
5725 object Level = arg2;
5726 object HasBreakableBlock = arg3;
5727 Variable RestStatements = new Variable();
5728 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returntrue"), RestStatements)))
5729 {
5730 convertIndentationPython(Level);
5731 YP.write(Atom.a("return True"));
5732 YP.nl();
5733 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5734 {
5735 yield return true;
5736 yield break;
5737 }
5738 }
5739 }
5740 {
5741 object Level = arg2;
5742 object HasBreakableBlock = arg3;
5743 Variable RestStatements = new Variable();
5744 foreach (bool l2 in YP.unify(arg1, new ListPair(Atom.a("returnfalse"), RestStatements)))
5745 {
5746 convertIndentationPython(Level);
5747 YP.write(Atom.a("return False"));
5748 YP.nl();
5749 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5750 {
5751 yield return true;
5752 yield break;
5753 }
5754 }
5755 }
5756 {
5757 object Level = arg2;
5758 object HasBreakableBlock = arg3;
5759 Variable Name = new Variable();
5760 Variable RestStatements = new Variable();
5761 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("breakBlock", Name), RestStatements)))
5762 {
5763 convertIndentationPython(Level);
5764 YP.write(Name);
5765 YP.write(Atom.a(" = True"));
5766 YP.nl();
5767 convertIndentationPython(Level);
5768 YP.write(Atom.a("doBreak = True"));
5769 YP.nl();
5770 convertIndentationPython(Level);
5771 YP.write(Atom.a("break"));
5772 YP.nl();
5773 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5774 {
5775 yield return true;
5776 yield break;
5777 }
5778 }
5779 }
5780 {
5781 object Level = arg2;
5782 object HasBreakableBlock = arg3;
5783 Variable Name = new Variable();
5784 Variable ArgList = new Variable();
5785 Variable RestStatements = new Variable();
5786 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("call", Name, ArgList), RestStatements)))
5787 {
5788 convertIndentationPython(Level);
5789 YP.write(Name);
5790 YP.write(Atom.a("("));
5791 convertArgListPython(ArgList);
5792 YP.write(Atom.a(")"));
5793 YP.nl();
5794 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5795 {
5796 yield return true;
5797 yield break;
5798 }
5799 }
5800 }
5801 {
5802 object Level = arg2;
5803 object HasBreakableBlock = arg3;
5804 Variable Name = new Variable();
5805 Variable _FunctorArgs = new Variable();
5806 Variable ArgList = new Variable();
5807 Variable RestStatements = new Variable();
5808 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("functorCall", Name, _FunctorArgs, ArgList), RestStatements)))
5809 {
5810 foreach (bool l3 in convertStatementListPython(new ListPair(new Functor2("call", Name, ArgList), RestStatements), Level, HasBreakableBlock))
5811 {
5812 yield return true;
5813 yield break;
5814 }
5815 }
5816 }
5817 {
5818 object Level = arg2;
5819 object HasBreakableBlock = arg3;
5820 Variable Obj = new Variable();
5821 Variable Name = new Variable();
5822 Variable ArgList = new Variable();
5823 Variable RestStatements = new Variable();
5824 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor3("callMember", new Functor1("var", Obj), Name, ArgList), RestStatements)))
5825 {
5826 convertIndentationPython(Level);
5827 YP.write(Obj);
5828 YP.write(Atom.a("."));
5829 YP.write(Name);
5830 YP.write(Atom.a("("));
5831 convertArgListPython(ArgList);
5832 YP.write(Atom.a(")"));
5833 YP.nl();
5834 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5835 {
5836 yield return true;
5837 yield break;
5838 }
5839 }
5840 }
5841 {
5842 object Level = arg2;
5843 object HasBreakableBlock = arg3;
5844 Variable Body = new Variable();
5845 Variable RestStatements = new Variable();
5846 Variable NextLevel = new Variable();
5847 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("blockScope", Body), RestStatements)))
5848 {
5849 if (YP.termEqual(HasBreakableBlock, 1))
5850 {
5851 convertIndentationPython(Level);
5852 YP.write(Atom.a("for _ in [1]:"));
5853 YP.nl();
5854 foreach (bool l4 in YP.unify(NextLevel, YP.add(Level, 1)))
5855 {
5856 foreach (bool l5 in convertStatementListPython(Body, NextLevel, HasBreakableBlock))
5857 {
5858 if (YP.termEqual(HasBreakableBlock, 1))
5859 {
5860 if (YP.greaterThan(Level, 1))
5861 {
5862 convertIndentationPython(Level);
5863 YP.write(Atom.a("if doBreak:"));
5864 YP.nl();
5865 convertIndentationPython(NextLevel);
5866 YP.write(Atom.a("break"));
5867 YP.nl();
5868 foreach (bool l8 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5869 {
5870 yield return true;
5871 yield break;
5872 }
5873 goto cutIf3;
5874 }
5875 foreach (bool l7 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5876 {
5877 yield return true;
5878 yield break;
5879 }
5880 cutIf3:
5881 goto cutIf2;
5882 }
5883 foreach (bool l6 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5884 {
5885 yield return true;
5886 yield break;
5887 }
5888 cutIf2:
5889 { }
5890 }
5891 }
5892 goto cutIf1;
5893 }
5894 foreach (bool l3 in YP.unify(NextLevel, Level))
5895 {
5896 foreach (bool l4 in convertStatementListPython(Body, NextLevel, HasBreakableBlock))
5897 {
5898 if (YP.termEqual(HasBreakableBlock, 1))
5899 {
5900 if (YP.greaterThan(Level, 1))
5901 {
5902 convertIndentationPython(Level);
5903 YP.write(Atom.a("if doBreak:"));
5904 YP.nl();
5905 convertIndentationPython(NextLevel);
5906 YP.write(Atom.a("break"));
5907 YP.nl();
5908 foreach (bool l7 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5909 {
5910 yield return true;
5911 yield break;
5912 }
5913 goto cutIf5;
5914 }
5915 foreach (bool l6 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5916 {
5917 yield return true;
5918 yield break;
5919 }
5920 cutIf5:
5921 goto cutIf4;
5922 }
5923 foreach (bool l5 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5924 {
5925 yield return true;
5926 yield break;
5927 }
5928 cutIf4:
5929 { }
5930 }
5931 }
5932 cutIf1:
5933 { }
5934 }
5935 }
5936 {
5937 object Level = arg2;
5938 object HasBreakableBlock = arg3;
5939 Variable Expression = new Variable();
5940 Variable Body = new Variable();
5941 Variable RestStatements = new Variable();
5942 Variable NextLevel = new Variable();
5943 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("if", Expression, Body), RestStatements)))
5944 {
5945 convertIndentationPython(Level);
5946 YP.write(Atom.a("if "));
5947 convertExpressionPython(Expression);
5948 YP.write(Atom.a(":"));
5949 YP.nl();
5950 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5951 {
5952 foreach (bool l4 in convertStatementListPython(Body, NextLevel, HasBreakableBlock))
5953 {
5954 foreach (bool l5 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5955 {
5956 yield return true;
5957 yield break;
5958 }
5959 }
5960 }
5961 }
5962 }
5963 {
5964 object Level = arg2;
5965 object HasBreakableBlock = arg3;
5966 Variable Expression = new Variable();
5967 Variable Body = new Variable();
5968 Variable RestStatements = new Variable();
5969 Variable NextLevel = new Variable();
5970 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor2("foreach", Expression, Body), RestStatements)))
5971 {
5972 convertIndentationPython(Level);
5973 YP.write(Atom.a("for l"));
5974 YP.write(Level);
5975 YP.write(Atom.a(" in "));
5976 convertExpressionPython(Expression);
5977 YP.write(Atom.a(":"));
5978 YP.nl();
5979 foreach (bool l3 in YP.unify(NextLevel, YP.add(Level, 1)))
5980 {
5981 foreach (bool l4 in convertStatementListPython(Body, NextLevel, HasBreakableBlock))
5982 {
5983 if (YP.termEqual(HasBreakableBlock, 1))
5984 {
5985 convertIndentationPython(Level);
5986 YP.write(Atom.a("if doBreak:"));
5987 YP.nl();
5988 convertIndentationPython(NextLevel);
5989 YP.write(Atom.a("break"));
5990 YP.nl();
5991 foreach (bool l6 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5992 {
5993 yield return true;
5994 yield break;
5995 }
5996 goto cutIf6;
5997 }
5998 foreach (bool l5 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
5999 {
6000 yield return true;
6001 yield break;
6002 }
6003 cutIf6:
6004 { }
6005 }
6006 }
6007 }
6008 }
6009 {
6010 object Level = arg2;
6011 object HasBreakableBlock = arg3;
6012 Variable Expression = new Variable();
6013 Variable RestStatements = new Variable();
6014 foreach (bool l2 in YP.unify(arg1, new ListPair(new Functor1("throw", Expression), RestStatements)))
6015 {
6016 convertIndentationPython(Level);
6017 YP.write(Atom.a("raise "));
6018 convertExpressionPython(Expression);
6019 YP.nl();
6020 foreach (bool l3 in convertStatementListPython(RestStatements, Level, HasBreakableBlock))
6021 {
6022 yield return true;
6023 yield break;
6024 }
6025 }
6026 }
6027 }
6028
6029 public static void convertIndentationPython(object Level)
6030 {
6031 {
6032 Variable N = new Variable();
6033 foreach (bool l2 in YP.unify(N, YP.multiply(Level, 2)))
6034 {
6035 repeatWrite(Atom.a(" "), N);
6036 return;
6037 }
6038 }
6039 }
6040
6041 public static void convertArgListPython(object arg1)
6042 {
6043 {
6044 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
6045 {
6046 return;
6047 }
6048 }
6049 {
6050 Variable Head = new Variable();
6051 Variable Tail = new Variable();
6052 foreach (bool l2 in YP.unify(arg1, new ListPair(Head, Tail)))
6053 {
6054 convertExpressionPython(Head);
6055 if (YP.termNotEqual(Tail, Atom.NIL))
6056 {
6057 YP.write(Atom.a(", "));
6058 convertArgListPython(Tail);
6059 return;
6060 goto cutIf1;
6061 }
6062 convertArgListPython(Tail);
6063 return;
6064 cutIf1:
6065 { }
6066 }
6067 }
6068 }
6069
6070 public static void convertExpressionPython(object arg1)
6071 {
6072 {
6073 Variable X = new Variable();
6074 foreach (bool l2 in YP.unify(arg1, new Functor1("arg", X)))
6075 {
6076 YP.write(X);
6077 return;
6078 }
6079 }
6080 {
6081 Variable Name = new Variable();
6082 Variable ArgList = new Variable();
6083 foreach (bool l2 in YP.unify(arg1, new Functor2("call", Name, ArgList)))
6084 {
6085 YP.write(Name);
6086 YP.write(Atom.a("("));
6087 convertArgListPython(ArgList);
6088 YP.write(Atom.a(")"));
6089 return;
6090 }
6091 }
6092 {
6093 Variable Name = new Variable();
6094 Variable _FunctorArgs = new Variable();
6095 Variable ArgList = new Variable();
6096 foreach (bool l2 in YP.unify(arg1, new Functor3("functorCall", Name, _FunctorArgs, ArgList)))
6097 {
6098 convertExpressionPython(new Functor2("call", Name, ArgList));
6099 return;
6100 }
6101 }
6102 {
6103 Variable Obj = new Variable();
6104 Variable Name = new Variable();
6105 Variable ArgList = new Variable();
6106 foreach (bool l2 in YP.unify(arg1, new Functor3("callMember", new Functor1("var", Obj), Name, ArgList)))
6107 {
6108 YP.write(Obj);
6109 YP.write(Atom.a("."));
6110 YP.write(Name);
6111 YP.write(Atom.a("("));
6112 convertArgListPython(ArgList);
6113 YP.write(Atom.a(")"));
6114 return;
6115 }
6116 }
6117 {
6118 Variable Name = new Variable();
6119 Variable ArgList = new Variable();
6120 foreach (bool l2 in YP.unify(arg1, new Functor2("new", Name, ArgList)))
6121 {
6122 YP.write(Name);
6123 YP.write(Atom.a("("));
6124 convertArgListPython(ArgList);
6125 YP.write(Atom.a(")"));
6126 return;
6127 }
6128 }
6129 {
6130 Variable Name = new Variable();
6131 foreach (bool l2 in YP.unify(arg1, new Functor1("var", Name)))
6132 {
6133 YP.write(Name);
6134 return;
6135 }
6136 }
6137 {
6138 foreach (bool l2 in YP.unify(arg1, Atom.a("null")))
6139 {
6140 YP.write(Atom.a("None"));
6141 return;
6142 }
6143 }
6144 {
6145 Variable X = new Variable();
6146 foreach (bool l2 in YP.unify(arg1, new Functor1("not", X)))
6147 {
6148 YP.write(Atom.a("not ("));
6149 convertExpressionPython(X);
6150 YP.write(Atom.a(")"));
6151 return;
6152 }
6153 }
6154 {
6155 Variable X = new Variable();
6156 Variable Y = new Variable();
6157 foreach (bool l2 in YP.unify(arg1, new Functor2("and", X, Y)))
6158 {
6159 YP.write(Atom.a("("));
6160 convertExpressionPython(X);
6161 YP.write(Atom.a(") and ("));
6162 convertExpressionPython(Y);
6163 YP.write(Atom.a(")"));
6164 return;
6165 }
6166 }
6167 {
6168 Variable ArgList = new Variable();
6169 foreach (bool l2 in YP.unify(arg1, new Functor1("objectArray", ArgList)))
6170 {
6171 YP.write(Atom.a("["));
6172 convertArgListPython(ArgList);
6173 YP.write(Atom.a("]"));
6174 return;
6175 }
6176 }
6177 {
6178 Variable X = new Variable();
6179 Variable Codes = new Variable();
6180 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
6181 {
6182 if (YP.atom(X))
6183 {
6184 YP.write(Atom.a("\""));
6185 foreach (bool l4 in YP.atom_codes(X, Codes))
6186 {
6187 convertStringCodesPython(Codes);
6188 YP.write(Atom.a("\""));
6189 return;
6190 }
6191 }
6192 }
6193 }
6194 {
6195 Variable X = new Variable();
6196 foreach (bool l2 in YP.unify(arg1, new Functor1("object", X)))
6197 {
6198 YP.write(X);
6199 return;
6200 }
6201 }
6202 }
6203
6204 public static void convertStringCodesPython(object arg1)
6205 {
6206 {
6207 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
6208 {
6209 return;
6210 }
6211 }
6212 {
6213 Variable Code = new Variable();
6214 Variable RestCodes = new Variable();
6215 foreach (bool l2 in YP.unify(arg1, new ListPair(Code, RestCodes)))
6216 {
6217 if (YP.termEqual(Code, 34))
6218 {
6219 YP.put_code(92);
6220 YP.put_code(Code);
6221 convertStringCodesPython(RestCodes);
6222 return;
6223 goto cutIf1;
6224 }
6225 if (YP.termEqual(Code, 92))
6226 {
6227 YP.put_code(92);
6228 YP.put_code(Code);
6229 convertStringCodesPython(RestCodes);
6230 return;
6231 goto cutIf1;
6232 }
6233 YP.put_code(Code);
6234 convertStringCodesPython(RestCodes);
6235 return;
6236 cutIf1:
6237 { }
6238 }
6239 }
6240 }
6241
6242 public static IEnumerable<bool> putCStringCode(object Code)
6243 {
6244 {
6245 Variable HexDigit = new Variable();
6246 Variable HexChar = new Variable();
6247 if (YP.lessThanOrEqual(Code, 31))
6248 {
6249 if (YP.lessThanOrEqual(Code, 15))
6250 {
6251 YP.write(Atom.a("\\u000"));
6252 foreach (bool l4 in YP.unify(HexDigit, Code))
6253 {
6254 if (YP.lessThanOrEqual(HexDigit, 9))
6255 {
6256 foreach (bool l6 in YP.unify(HexChar, YP.add(HexDigit, 48)))
6257 {
6258 YP.put_code(HexChar);
6259 yield return true;
6260 yield break;
6261 }
6262 goto cutIf2;
6263 }
6264 foreach (bool l5 in YP.unify(HexChar, YP.add(HexDigit, 55)))
6265 {
6266 YP.put_code(HexChar);
6267 yield return true;
6268 yield break;
6269 }
6270 cutIf2:
6271 { }
6272 }
6273 goto cutIf1;
6274 }
6275 YP.write(Atom.a("\\u001"));
6276 foreach (bool l3 in YP.unify(HexDigit, YP.subtract(Code, 16)))
6277 {
6278 if (YP.lessThanOrEqual(HexDigit, 9))
6279 {
6280 foreach (bool l5 in YP.unify(HexChar, YP.add(HexDigit, 48)))
6281 {
6282 YP.put_code(HexChar);
6283 yield return true;
6284 yield break;
6285 }
6286 goto cutIf3;
6287 }
6288 foreach (bool l4 in YP.unify(HexChar, YP.add(HexDigit, 55)))
6289 {
6290 YP.put_code(HexChar);
6291 yield return true;
6292 yield break;
6293 }
6294 cutIf3:
6295 { }
6296 }
6297 cutIf1:
6298 { }
6299 }
6300 }
6301 {
6302 if (YP.termEqual(Code, 34))
6303 {
6304 YP.put_code(92);
6305 YP.put_code(34);
6306 yield return true;
6307 yield break;
6308 }
6309 }
6310 {
6311 if (YP.termEqual(Code, 92))
6312 {
6313 YP.put_code(92);
6314 YP.put_code(92);
6315 yield return true;
6316 yield break;
6317 }
6318 }
6319 {
6320 YP.put_code(Code);
6321 yield return true;
6322 yield break;
6323 }
6324 }
6325
6326 public static IEnumerable<bool> member(object X, object arg2)
6327 {
6328 {
6329 Variable x2 = new Variable();
6330 foreach (bool l2 in YP.unify(arg2, new ListPair(X, x2)))
6331 {
6332 yield return false;
6333 }
6334 }
6335 {
6336 Variable x2 = new Variable();
6337 Variable Rest = new Variable();
6338 foreach (bool l2 in YP.unify(arg2, new ListPair(x2, Rest)))
6339 {
6340 foreach (bool l3 in member(X, Rest))
6341 {
6342 yield return false;
6343 }
6344 }
6345 }
6346 }
6347
6348 public static IEnumerable<bool> append(object arg1, object arg2, object arg3)
6349 {
6350 {
6351 Variable List = new Variable();
6352 foreach (bool l2 in YP.unify(arg1, Atom.NIL))
6353 {
6354 foreach (bool l3 in YP.unify(arg2, List))
6355 {
6356 foreach (bool l4 in YP.unify(arg3, List))
6357 {
6358 yield return false;
6359 }
6360 }
6361 }
6362 }
6363 {
6364 object List2 = arg2;
6365 Variable X = new Variable();
6366 Variable List1 = new Variable();
6367 Variable List12 = new Variable();
6368 foreach (bool l2 in YP.unify(arg1, new ListPair(X, List1)))
6369 {
6370 foreach (bool l3 in YP.unify(arg3, new ListPair(X, List12)))
6371 {
6372 foreach (bool l4 in append(List1, List2, List12))
6373 {
6374 yield return false;
6375 }
6376 }
6377 }
6378 }
6379 }
6380 #pragma warning restore 0168, 0219, 0164,0162
6381 }
6382}
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 97dd0f6..4e0c273 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -31,7 +31,6 @@ using System.Collections.Generic;
31using System.Reflection; 31using System.Reflection;
32using log4net; 32using log4net;
33using Tools; 33using Tools;
34
35using OpenSim.Region.Framework.Interfaces; 34using OpenSim.Region.Framework.Interfaces;
36 35
37namespace OpenSim.Region.ScriptEngine.Shared.CodeTools 36namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
@@ -49,6 +48,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
49 private List<string> m_warnings = new List<string>(); 48 private List<string> m_warnings = new List<string>();
50 private IScriptModuleComms m_comms = null; 49 private IScriptModuleComms m_comms = null;
51 50
51 private bool m_insertCoopTerminationChecks;
52 private static string m_coopTerminationCheck = "opensim_reserved_CheckForCoopTermination();";
53
54 /// <summary>
55 /// Keep a record of the previous node when we do the parsing.
56 /// </summary>
57 /// <remarks>
58 /// We do this here because the parser generated by CSTools does not retain a reference to its parent node.
59 /// The previous node is required so we can correctly insert co-op termination checks when required.
60 /// </remarks>
61// private SYMBOL m_previousNode;
62
52 /// <summary> 63 /// <summary>
53 /// Creates an 'empty' CSCodeGenerator instance. 64 /// Creates an 'empty' CSCodeGenerator instance.
54 /// </summary> 65 /// </summary>
@@ -58,9 +69,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
58 ResetCounters(); 69 ResetCounters();
59 } 70 }
60 71
61 public CSCodeGenerator(IScriptModuleComms comms) 72 public CSCodeGenerator(IScriptModuleComms comms, bool insertCoopTerminationChecks)
62 { 73 {
63 m_comms = comms; 74 m_comms = comms;
75 m_insertCoopTerminationChecks = insertCoopTerminationChecks;
64 ResetCounters(); 76 ResetCounters();
65 } 77 }
66 78
@@ -150,12 +162,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
150 m_braceCount++; 162 m_braceCount++;
151 163
152 // line number 164 // line number
153 m_CSharpLine += 3; 165 m_CSharpLine += 9;
154 166
155 // here's the payload 167 // here's the payload
156 retstr += GenerateLine(); 168 retstr += GenerateLine();
157 foreach (SYMBOL s in m_astRoot.kids) 169 foreach (SYMBOL s in m_astRoot.kids)
158 retstr += GenerateNode(s); 170 retstr += GenerateNode(m_astRoot, s);
159 171
160 // close braces! 172 // close braces!
161 m_braceCount--; 173 m_braceCount--;
@@ -165,7 +177,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
165 177
166 // Removes all carriage return characters which may be generated in Windows platform. Is there 178 // Removes all carriage return characters which may be generated in Windows platform. Is there
167 // cleaner way of doing this? 179 // cleaner way of doing this?
168 retstr=retstr.Replace("\r", ""); 180 retstr = retstr.Replace("\r", "");
169 181
170 return retstr; 182 return retstr;
171 } 183 }
@@ -191,9 +203,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
191 /// Recursively called to generate each type of node. Will generate this 203 /// Recursively called to generate each type of node. Will generate this
192 /// node, then all it's children. 204 /// node, then all it's children.
193 /// </summary> 205 /// </summary>
206 /// <param name="previousSymbol">The parent node.</param>
194 /// <param name="s">The current node to generate code for.</param> 207 /// <param name="s">The current node to generate code for.</param>
195 /// <returns>String containing C# code for SYMBOL s.</returns> 208 /// <returns>String containing C# code for SYMBOL s.</returns>
196 private string GenerateNode(SYMBOL s) 209 private string GenerateNode(SYMBOL previousSymbol, SYMBOL s)
197 { 210 {
198 string retstr = String.Empty; 211 string retstr = String.Empty;
199 212
@@ -207,11 +220,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
207 else if (s is State) 220 else if (s is State)
208 retstr += GenerateState((State) s); 221 retstr += GenerateState((State) s);
209 else if (s is CompoundStatement) 222 else if (s is CompoundStatement)
210 retstr += GenerateCompoundStatement((CompoundStatement) s); 223 retstr += GenerateCompoundStatement(previousSymbol, (CompoundStatement) s);
211 else if (s is Declaration) 224 else if (s is Declaration)
212 retstr += GenerateDeclaration((Declaration) s); 225 retstr += GenerateDeclaration((Declaration) s);
213 else if (s is Statement) 226 else if (s is Statement)
214 retstr += GenerateStatement((Statement) s); 227 retstr += GenerateStatement(previousSymbol, (Statement) s);
215 else if (s is ReturnStatement) 228 else if (s is ReturnStatement)
216 retstr += GenerateReturnStatement((ReturnStatement) s); 229 retstr += GenerateReturnStatement((ReturnStatement) s);
217 else if (s is JumpLabel) 230 else if (s is JumpLabel)
@@ -261,7 +274,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
261 else 274 else
262 { 275 {
263 foreach (SYMBOL kid in s.kids) 276 foreach (SYMBOL kid in s.kids)
264 retstr += GenerateNode(kid); 277 retstr += GenerateNode(s, kid);
265 } 278 }
266 279
267 return retstr; 280 return retstr;
@@ -295,7 +308,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
295 retstr += GenerateLine(")"); 308 retstr += GenerateLine(")");
296 309
297 foreach (SYMBOL kid in remainingKids) 310 foreach (SYMBOL kid in remainingKids)
298 retstr += GenerateNode(kid); 311 retstr += GenerateNode(gf, kid);
299 312
300 return retstr; 313 return retstr;
301 } 314 }
@@ -312,7 +325,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
312 foreach (SYMBOL s in gv.kids) 325 foreach (SYMBOL s in gv.kids)
313 { 326 {
314 retstr += Indent(); 327 retstr += Indent();
315 retstr += GenerateNode(s); 328 retstr += GenerateNode(gv, s);
316 retstr += GenerateLine(";"); 329 retstr += GenerateLine(";");
317 } 330 }
318 331
@@ -365,7 +378,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
365 retstr += GenerateLine(")"); 378 retstr += GenerateLine(")");
366 379
367 foreach (SYMBOL kid in remainingKids) 380 foreach (SYMBOL kid in remainingKids)
368 retstr += GenerateNode(kid); 381 retstr += GenerateNode(se, kid);
369 382
370 return retstr; 383 return retstr;
371 } 384 }
@@ -404,7 +417,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
404 417
405 foreach (SYMBOL s in al.kids) 418 foreach (SYMBOL s in al.kids)
406 { 419 {
407 retstr += GenerateNode(s); 420 retstr += GenerateNode(al, s);
408 if (0 < comma--) 421 if (0 < comma--)
409 retstr += Generate(", "); 422 retstr += Generate(", ");
410 } 423 }
@@ -417,7 +430,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
417 /// </summary> 430 /// </summary>
418 /// <param name="cs">The CompoundStatement node.</param> 431 /// <param name="cs">The CompoundStatement node.</param>
419 /// <returns>String containing C# code for CompoundStatement cs.</returns> 432 /// <returns>String containing C# code for CompoundStatement cs.</returns>
420 private string GenerateCompoundStatement(CompoundStatement cs) 433 private string GenerateCompoundStatement(SYMBOL previousSymbol, CompoundStatement cs)
421 { 434 {
422 string retstr = String.Empty; 435 string retstr = String.Empty;
423 436
@@ -425,8 +438,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
425 retstr += GenerateIndentedLine("{"); 438 retstr += GenerateIndentedLine("{");
426 m_braceCount++; 439 m_braceCount++;
427 440
441 if (m_insertCoopTerminationChecks)
442 {
443 // We have to check in event functions as well because the user can manually call these.
444 if (previousSymbol is GlobalFunctionDefinition
445 || previousSymbol is WhileStatement
446 || previousSymbol is DoWhileStatement
447 || previousSymbol is ForLoop
448 || previousSymbol is StateEvent)
449 retstr += GenerateIndentedLine(m_coopTerminationCheck);
450 }
451
428 foreach (SYMBOL kid in cs.kids) 452 foreach (SYMBOL kid in cs.kids)
429 retstr += GenerateNode(kid); 453 retstr += GenerateNode(cs, kid);
430 454
431 // closing brace 455 // closing brace
432 m_braceCount--; 456 m_braceCount--;
@@ -450,10 +474,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
450 /// </summary> 474 /// </summary>
451 /// <param name="s">The Statement node.</param> 475 /// <param name="s">The Statement node.</param>
452 /// <returns>String containing C# code for Statement s.</returns> 476 /// <returns>String containing C# code for Statement s.</returns>
453 private string GenerateStatement(Statement s) 477 private string GenerateStatement(SYMBOL previousSymbol, Statement s)
454 { 478 {
455 string retstr = String.Empty; 479 string retstr = String.Empty;
456 bool printSemicolon = true; 480 bool printSemicolon = true;
481 bool transformToBlock = false;
482
483 if (m_insertCoopTerminationChecks)
484 {
485 // A non-braced single line do while structure cannot contain multiple statements.
486 // So to insert the termination check we change this to a braced control structure instead.
487 if (previousSymbol is WhileStatement
488 || previousSymbol is DoWhileStatement
489 || previousSymbol is ForLoop)
490 {
491 transformToBlock = true;
492
493 // FIXME: This will be wrongly indented because the previous for/while/dowhile will have already indented.
494 retstr += GenerateIndentedLine("{");
495
496 retstr += GenerateIndentedLine(m_coopTerminationCheck);
497 }
498 }
457 499
458 retstr += Indent(); 500 retstr += Indent();
459 501
@@ -466,12 +508,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
466 // (MONO) error. 508 // (MONO) error.
467 if (!(s.kids.Top is IdentExpression && 1 == s.kids.Count)) 509 if (!(s.kids.Top is IdentExpression && 1 == s.kids.Count))
468 foreach (SYMBOL kid in s.kids) 510 foreach (SYMBOL kid in s.kids)
469 retstr += GenerateNode(kid); 511 retstr += GenerateNode(s, kid);
470 } 512 }
471 513
472 if (printSemicolon) 514 if (printSemicolon)
473 retstr += GenerateLine(";"); 515 retstr += GenerateLine(";");
474 516
517 if (transformToBlock)
518 {
519 // FIXME: This will be wrongly indented because the for/while/dowhile is currently handling the unindent
520 retstr += GenerateIndentedLine("}");
521 }
522
475 return retstr; 523 return retstr;
476 } 524 }
477 525
@@ -487,10 +535,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
487 List<string> identifiers = new List<string>(); 535 List<string> identifiers = new List<string>();
488 checkForMultipleAssignments(identifiers, a); 536 checkForMultipleAssignments(identifiers, a);
489 537
490 retstr += GenerateNode((SYMBOL) a.kids.Pop()); 538 retstr += GenerateNode(a, (SYMBOL) a.kids.Pop());
491 retstr += Generate(String.Format(" {0} ", a.AssignmentType), a); 539 retstr += Generate(String.Format(" {0} ", a.AssignmentType), a);
492 foreach (SYMBOL kid in a.kids) 540 foreach (SYMBOL kid in a.kids)
493 retstr += GenerateNode(kid); 541 retstr += GenerateNode(a, kid);
494 542
495 return retstr; 543 return retstr;
496 } 544 }
@@ -563,7 +611,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
563 retstr += Generate("return ", rs); 611 retstr += Generate("return ", rs);
564 612
565 foreach (SYMBOL kid in rs.kids) 613 foreach (SYMBOL kid in rs.kids)
566 retstr += GenerateNode(kid); 614 retstr += GenerateNode(rs, kid);
567 615
568 return retstr; 616 return retstr;
569 } 617 }
@@ -575,7 +623,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
575 /// <returns>String containing C# code for JumpLabel jl.</returns> 623 /// <returns>String containing C# code for JumpLabel jl.</returns>
576 private string GenerateJumpLabel(JumpLabel jl) 624 private string GenerateJumpLabel(JumpLabel jl)
577 { 625 {
578 return Generate(String.Format("{0}:", CheckName(jl.LabelName)), jl) + " NoOp();\n"; 626 string labelStatement;
627
628 if (m_insertCoopTerminationChecks)
629 labelStatement = m_coopTerminationCheck;
630 else
631 labelStatement = "NoOp();";
632
633 return GenerateLine(String.Format("{0}: {1}", CheckName(jl.LabelName), labelStatement), jl);
579 } 634 }
580 635
581 /// <summary> 636 /// <summary>
@@ -598,14 +653,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
598 string retstr = String.Empty; 653 string retstr = String.Empty;
599 654
600 retstr += GenerateIndented("if (", ifs); 655 retstr += GenerateIndented("if (", ifs);
601 retstr += GenerateNode((SYMBOL) ifs.kids.Pop()); 656 retstr += GenerateNode(ifs, (SYMBOL) ifs.kids.Pop());
602 retstr += GenerateLine(")"); 657 retstr += GenerateLine(")");
603 658
604 // CompoundStatement handles indentation itself but we need to do it 659 // CompoundStatement handles indentation itself but we need to do it
605 // otherwise. 660 // otherwise.
606 bool indentHere = ifs.kids.Top is Statement; 661 bool indentHere = ifs.kids.Top is Statement;
607 if (indentHere) m_braceCount++; 662 if (indentHere) m_braceCount++;
608 retstr += GenerateNode((SYMBOL) ifs.kids.Pop()); 663 retstr += GenerateNode(ifs, (SYMBOL) ifs.kids.Pop());
609 if (indentHere) m_braceCount--; 664 if (indentHere) m_braceCount--;
610 665
611 if (0 < ifs.kids.Count) // do it again for an else 666 if (0 < ifs.kids.Count) // do it again for an else
@@ -614,7 +669,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
614 669
615 indentHere = ifs.kids.Top is Statement; 670 indentHere = ifs.kids.Top is Statement;
616 if (indentHere) m_braceCount++; 671 if (indentHere) m_braceCount++;
617 retstr += GenerateNode((SYMBOL) ifs.kids.Pop()); 672 retstr += GenerateNode(ifs, (SYMBOL) ifs.kids.Pop());
618 if (indentHere) m_braceCount--; 673 if (indentHere) m_braceCount--;
619 } 674 }
620 675
@@ -641,14 +696,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
641 string retstr = String.Empty; 696 string retstr = String.Empty;
642 697
643 retstr += GenerateIndented("while (", ws); 698 retstr += GenerateIndented("while (", ws);
644 retstr += GenerateNode((SYMBOL) ws.kids.Pop()); 699 retstr += GenerateNode(ws, (SYMBOL) ws.kids.Pop());
645 retstr += GenerateLine(")"); 700 retstr += GenerateLine(")");
646 701
647 // CompoundStatement handles indentation itself but we need to do it 702 // CompoundStatement handles indentation itself but we need to do it
648 // otherwise. 703 // otherwise.
649 bool indentHere = ws.kids.Top is Statement; 704 bool indentHere = ws.kids.Top is Statement;
650 if (indentHere) m_braceCount++; 705 if (indentHere) m_braceCount++;
651 retstr += GenerateNode((SYMBOL) ws.kids.Pop()); 706 retstr += GenerateNode(ws, (SYMBOL) ws.kids.Pop());
652 if (indentHere) m_braceCount--; 707 if (indentHere) m_braceCount--;
653 708
654 return retstr; 709 return retstr;
@@ -669,11 +724,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
669 // otherwise. 724 // otherwise.
670 bool indentHere = dws.kids.Top is Statement; 725 bool indentHere = dws.kids.Top is Statement;
671 if (indentHere) m_braceCount++; 726 if (indentHere) m_braceCount++;
672 retstr += GenerateNode((SYMBOL) dws.kids.Pop()); 727 retstr += GenerateNode(dws, (SYMBOL) dws.kids.Pop());
673 if (indentHere) m_braceCount--; 728 if (indentHere) m_braceCount--;
674 729
675 retstr += GenerateIndented("while (", dws); 730 retstr += GenerateIndented("while (", dws);
676 retstr += GenerateNode((SYMBOL) dws.kids.Pop()); 731 retstr += GenerateNode(dws, (SYMBOL) dws.kids.Pop());
677 retstr += GenerateLine(");"); 732 retstr += GenerateLine(");");
678 733
679 return retstr; 734 return retstr;
@@ -702,7 +757,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
702 retstr += Generate("; "); 757 retstr += Generate("; ");
703 // for (x = 0; x < 10; x++) 758 // for (x = 0; x < 10; x++)
704 // ^^^^^^ 759 // ^^^^^^
705 retstr += GenerateNode((SYMBOL) fl.kids.Pop()); 760 retstr += GenerateNode(fl, (SYMBOL) fl.kids.Pop());
706 retstr += Generate("; "); 761 retstr += Generate("; ");
707 // for (x = 0; x < 10; x++) 762 // for (x = 0; x < 10; x++)
708 // ^^^ 763 // ^^^
@@ -713,7 +768,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
713 // otherwise. 768 // otherwise.
714 bool indentHere = fl.kids.Top is Statement; 769 bool indentHere = fl.kids.Top is Statement;
715 if (indentHere) m_braceCount++; 770 if (indentHere) m_braceCount++;
716 retstr += GenerateNode((SYMBOL) fl.kids.Pop()); 771 retstr += GenerateNode(fl, (SYMBOL) fl.kids.Pop());
717 if (indentHere) m_braceCount--; 772 if (indentHere) m_braceCount--;
718 773
719 return retstr; 774 return retstr;
@@ -758,7 +813,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
758 while (s is ParenthesisExpression) 813 while (s is ParenthesisExpression)
759 s = (SYMBOL)s.kids.Pop(); 814 s = (SYMBOL)s.kids.Pop();
760 815
761 retstr += GenerateNode(s); 816 retstr += GenerateNode(fls, s);
762 if (0 < comma--) 817 if (0 < comma--)
763 retstr += Generate(", "); 818 retstr += Generate(", ");
764 } 819 }
@@ -779,20 +834,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
779 { 834 {
780 // special case handling for logical and/or, see Mantis 3174 835 // special case handling for logical and/or, see Mantis 3174
781 retstr += "((bool)("; 836 retstr += "((bool)(";
782 retstr += GenerateNode((SYMBOL)be.kids.Pop()); 837 retstr += GenerateNode(be, (SYMBOL)be.kids.Pop());
783 retstr += "))"; 838 retstr += "))";
784 retstr += Generate(String.Format(" {0} ", be.ExpressionSymbol.Substring(0,1)), be); 839 retstr += Generate(String.Format(" {0} ", be.ExpressionSymbol.Substring(0,1)), be);
785 retstr += "((bool)("; 840 retstr += "((bool)(";
786 foreach (SYMBOL kid in be.kids) 841 foreach (SYMBOL kid in be.kids)
787 retstr += GenerateNode(kid); 842 retstr += GenerateNode(be, kid);
788 retstr += "))"; 843 retstr += "))";
789 } 844 }
790 else 845 else
791 { 846 {
792 retstr += GenerateNode((SYMBOL)be.kids.Pop()); 847 retstr += GenerateNode(be, (SYMBOL)be.kids.Pop());
793 retstr += Generate(String.Format(" {0} ", be.ExpressionSymbol), be); 848 retstr += Generate(String.Format(" {0} ", be.ExpressionSymbol), be);
794 foreach (SYMBOL kid in be.kids) 849 foreach (SYMBOL kid in be.kids)
795 retstr += GenerateNode(kid); 850 retstr += GenerateNode(be, kid);
796 } 851 }
797 852
798 return retstr; 853 return retstr;
@@ -808,7 +863,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
808 string retstr = String.Empty; 863 string retstr = String.Empty;
809 864
810 retstr += Generate(ue.UnarySymbol, ue); 865 retstr += Generate(ue.UnarySymbol, ue);
811 retstr += GenerateNode((SYMBOL) ue.kids.Pop()); 866 retstr += GenerateNode(ue, (SYMBOL) ue.kids.Pop());
812 867
813 return retstr; 868 return retstr;
814 } 869 }
@@ -824,7 +879,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
824 879
825 retstr += Generate("("); 880 retstr += Generate("(");
826 foreach (SYMBOL kid in pe.kids) 881 foreach (SYMBOL kid in pe.kids)
827 retstr += GenerateNode(kid); 882 retstr += GenerateNode(pe, kid);
828 retstr += Generate(")"); 883 retstr += Generate(")");
829 884
830 return retstr; 885 return retstr;
@@ -861,7 +916,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
861 916
862 // we wrap all typecasted statements in parentheses 917 // we wrap all typecasted statements in parentheses
863 retstr += Generate(String.Format("({0}) (", te.TypecastType), te); 918 retstr += Generate(String.Format("({0}) (", te.TypecastType), te);
864 retstr += GenerateNode((SYMBOL) te.kids.Pop()); 919 retstr += GenerateNode(te, (SYMBOL) te.kids.Pop());
865 retstr += Generate(")"); 920 retstr += Generate(")");
866 921
867 return retstr; 922 return retstr;
@@ -882,7 +937,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
882 { 937 {
883 string retval = null; 938 string retval = null;
884 if (value is int) 939 if (value is int)
885 retval = ((int)value).ToString(); 940 retval = String.Format("new LSL_Types.LSLInteger({0})",((int)value).ToString());
886 else if (value is float) 941 else if (value is float)
887 retval = String.Format("new LSL_Types.LSLFloat({0})",((float)value).ToString()); 942 retval = String.Format("new LSL_Types.LSLFloat({0})",((float)value).ToString());
888 else if (value is string) 943 else if (value is string)
@@ -931,7 +986,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
931 } 986 }
932 987
933 foreach (SYMBOL kid in fc.kids) 988 foreach (SYMBOL kid in fc.kids)
934 retstr += GenerateNode(kid); 989 retstr += GenerateNode(fc, kid);
935 990
936 retstr += Generate(")"); 991 retstr += Generate(")");
937 992
@@ -980,11 +1035,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
980 string retstr = String.Empty; 1035 string retstr = String.Empty;
981 1036
982 retstr += Generate(String.Format("new {0}(", vc.Type), vc); 1037 retstr += Generate(String.Format("new {0}(", vc.Type), vc);
983 retstr += GenerateNode((SYMBOL) vc.kids.Pop()); 1038 retstr += GenerateNode(vc, (SYMBOL) vc.kids.Pop());
984 retstr += Generate(", "); 1039 retstr += Generate(", ");
985 retstr += GenerateNode((SYMBOL) vc.kids.Pop()); 1040 retstr += GenerateNode(vc, (SYMBOL) vc.kids.Pop());
986 retstr += Generate(", "); 1041 retstr += Generate(", ");
987 retstr += GenerateNode((SYMBOL) vc.kids.Pop()); 1042 retstr += GenerateNode(vc, (SYMBOL) vc.kids.Pop());
988 retstr += Generate(")"); 1043 retstr += Generate(")");
989 1044
990 return retstr; 1045 return retstr;
@@ -1000,13 +1055,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
1000 string retstr = String.Empty; 1055 string retstr = String.Empty;
1001 1056
1002 retstr += Generate(String.Format("new {0}(", rc.Type), rc); 1057 retstr += Generate(String.Format("new {0}(", rc.Type), rc);
1003 retstr += GenerateNode((SYMBOL) rc.kids.Pop()); 1058 retstr += GenerateNode(rc, (SYMBOL) rc.kids.Pop());
1004 retstr += Generate(", "); 1059 retstr += Generate(", ");
1005 retstr += GenerateNode((SYMBOL) rc.kids.Pop()); 1060 retstr += GenerateNode(rc, (SYMBOL) rc.kids.Pop());
1006 retstr += Generate(", "); 1061 retstr += Generate(", ");
1007 retstr += GenerateNode((SYMBOL) rc.kids.Pop()); 1062 retstr += GenerateNode(rc, (SYMBOL) rc.kids.Pop());
1008 retstr += Generate(", "); 1063 retstr += Generate(", ");
1009 retstr += GenerateNode((SYMBOL) rc.kids.Pop()); 1064 retstr += GenerateNode(rc, (SYMBOL) rc.kids.Pop());
1010 retstr += Generate(")"); 1065 retstr += Generate(")");
1011 1066
1012 return retstr; 1067 return retstr;
@@ -1024,7 +1079,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
1024 retstr += Generate(String.Format("new {0}(", lc.Type), lc); 1079 retstr += Generate(String.Format("new {0}(", lc.Type), lc);
1025 1080
1026 foreach (SYMBOL kid in lc.kids) 1081 foreach (SYMBOL kid in lc.kids)
1027 retstr += GenerateNode(kid); 1082 retstr += GenerateNode(lc, kid);
1028 1083
1029 retstr += Generate(")"); 1084 retstr += Generate(")");
1030 1085
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
index 03be2ab..af324bf 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
@@ -58,9 +58,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
58 { 58 {
59 lsl = 0, 59 lsl = 0,
60 cs = 1, 60 cs = 1,
61 vb = 2, 61 vb = 2
62 js = 3,
63 yp = 4
64 } 62 }
65 63
66 /// <summary> 64 /// <summary>
@@ -72,6 +70,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
72 private bool CompileWithDebugInformation; 70 private bool CompileWithDebugInformation;
73 private Dictionary<string, bool> AllowedCompilers = new Dictionary<string, bool>(StringComparer.CurrentCultureIgnoreCase); 71 private Dictionary<string, bool> AllowedCompilers = new Dictionary<string, bool>(StringComparer.CurrentCultureIgnoreCase);
74 private Dictionary<string, enumCompileType> LanguageMapping = new Dictionary<string, enumCompileType>(StringComparer.CurrentCultureIgnoreCase); 72 private Dictionary<string, enumCompileType> LanguageMapping = new Dictionary<string, enumCompileType>(StringComparer.CurrentCultureIgnoreCase);
73 private bool m_insertCoopTerminationCalls;
75 74
76 private string FilePrefix; 75 private string FilePrefix;
77 private string ScriptEnginesPath = null; 76 private string ScriptEnginesPath = null;
@@ -84,9 +83,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
84 83
85 private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider(); 84 private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider();
86 private static VBCodeProvider VBcodeProvider = new VBCodeProvider(); 85 private static VBCodeProvider VBcodeProvider = new VBCodeProvider();
87// private static JScriptCodeProvider JScodeProvider = new JScriptCodeProvider();
88 private static CSharpCodeProvider YPcodeProvider = new CSharpCodeProvider(); // YP is translated into CSharp
89 private static YP2CSConverter YP_Converter = new YP2CSConverter();
90 86
91 // private static int instanceID = new Random().Next(0, int.MaxValue); // Unique number to use on our compiled files 87 // private static int instanceID = new Random().Next(0, int.MaxValue); // Unique number to use on our compiled files
92 private static UInt64 scriptCompileCounter = 0; // And a counter 88 private static UInt64 scriptCompileCounter = 0; // And a counter
@@ -95,20 +91,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
95 private Dictionary<string, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>> m_lineMaps = 91 private Dictionary<string, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>> m_lineMaps =
96 new Dictionary<string, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>>(); 92 new Dictionary<string, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>>();
97 93
94 public bool in_startup = true;
95
98 public Compiler(IScriptEngine scriptEngine) 96 public Compiler(IScriptEngine scriptEngine)
99 { 97 {
100 m_scriptEngine = scriptEngine;; 98 m_scriptEngine = scriptEngine;
101 ScriptEnginesPath = scriptEngine.ScriptEnginePath; 99 ScriptEnginesPath = scriptEngine.ScriptEnginePath;
102 ReadConfig(); 100 ReadConfig();
103 } 101 }
104 102
105 public bool in_startup = true;
106 public void ReadConfig() 103 public void ReadConfig()
107 { 104 {
108 // Get some config 105 // Get some config
109 WriteScriptSourceToDebugFile = m_scriptEngine.Config.GetBoolean("WriteScriptSourceToDebugFile", false); 106 WriteScriptSourceToDebugFile = m_scriptEngine.Config.GetBoolean("WriteScriptSourceToDebugFile", false);
110 CompileWithDebugInformation = m_scriptEngine.Config.GetBoolean("CompileWithDebugInformation", true); 107 CompileWithDebugInformation = m_scriptEngine.Config.GetBoolean("CompileWithDebugInformation", true);
111 bool DeleteScriptsOnStartup = m_scriptEngine.Config.GetBoolean("DeleteScriptsOnStartup", true); 108 bool DeleteScriptsOnStartup = m_scriptEngine.Config.GetBoolean("DeleteScriptsOnStartup", true);
109 m_insertCoopTerminationCalls = m_scriptEngine.Config.GetString("ScriptStopStrategy", "abort") == "co-op";
112 110
113 // Get file prefix from scriptengine name and make it file system safe: 111 // Get file prefix from scriptengine name and make it file system safe:
114 FilePrefix = "CommonCompiler"; 112 FilePrefix = "CommonCompiler";
@@ -120,7 +118,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
120 if (in_startup) 118 if (in_startup)
121 { 119 {
122 in_startup = false; 120 in_startup = false;
123 CreateScriptsDirectory(); 121 CheckOrCreateScriptsDirectory();
124 122
125 // First time we start? Delete old files 123 // First time we start? Delete old files
126 if (DeleteScriptsOnStartup) 124 if (DeleteScriptsOnStartup)
@@ -131,8 +129,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
131 LanguageMapping.Add(enumCompileType.cs.ToString(), enumCompileType.cs); 129 LanguageMapping.Add(enumCompileType.cs.ToString(), enumCompileType.cs);
132 LanguageMapping.Add(enumCompileType.vb.ToString(), enumCompileType.vb); 130 LanguageMapping.Add(enumCompileType.vb.ToString(), enumCompileType.vb);
133 LanguageMapping.Add(enumCompileType.lsl.ToString(), enumCompileType.lsl); 131 LanguageMapping.Add(enumCompileType.lsl.ToString(), enumCompileType.lsl);
134 LanguageMapping.Add(enumCompileType.js.ToString(), enumCompileType.js);
135 LanguageMapping.Add(enumCompileType.yp.ToString(), enumCompileType.yp);
136 132
137 // Allowed compilers 133 // Allowed compilers
138 string allowComp = m_scriptEngine.Config.GetString("AllowedCompilers", "lsl"); 134 string allowComp = m_scriptEngine.Config.GetString("AllowedCompilers", "lsl");
@@ -189,13 +185,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
189 } 185 }
190 186
191 // We now have an allow-list, a mapping list, and a default language 187 // We now have an allow-list, a mapping list, and a default language
192
193 } 188 }
194 189
195 /// <summary> 190 /// <summary>
196 /// Create the directory where compiled scripts are stored. 191 /// Create the directory where compiled scripts are stored if it does not already exist.
197 /// </summary> 192 /// </summary>
198 private void CreateScriptsDirectory() 193 private void CheckOrCreateScriptsDirectory()
199 { 194 {
200 if (!Directory.Exists(ScriptEnginesPath)) 195 if (!Directory.Exists(ScriptEnginesPath))
201 { 196 {
@@ -285,15 +280,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
285 return GetCompilerOutput(assetID.ToString()); 280 return GetCompilerOutput(assetID.ToString());
286 } 281 }
287 282
288 /// <summary> 283 public void PerformScriptCompile(
289 /// Converts script from LSL to CS and calls CompileFromCSText 284 string source, string asset, UUID ownerUUID,
290 /// </summary>
291 /// <param name="Script">LSL script</param>
292 /// <returns>Filename to .dll assembly</returns>
293 public void PerformScriptCompile(string Script, string asset, UUID ownerUUID,
294 out string assembly, out Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap) 285 out string assembly, out Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap)
295 { 286 {
296// m_log.DebugFormat("[Compiler]: Compiling script\n{0}", Script); 287 PerformScriptCompile(source, asset, ownerUUID, false, out assembly, out linemap);
288 }
289
290 public void PerformScriptCompile(
291 string source, string asset, UUID ownerUUID, bool alwaysRecompile,
292 out string assembly, out Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap)
293 {
294// m_log.DebugFormat("[Compiler]: Checking script for asset {0} in {1}\n{2}", asset, m_scriptEngine.World.Name, source);
297 295
298 IScriptModuleComms comms = m_scriptEngine.World.RequestModuleInterface<IScriptModuleComms>(); 296 IScriptModuleComms comms = m_scriptEngine.World.RequestModuleInterface<IScriptModuleComms>();
299 297
@@ -302,33 +300,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
302 300
303 assembly = GetCompilerOutput(asset); 301 assembly = GetCompilerOutput(asset);
304 302
305 if (!Directory.Exists(ScriptEnginesPath)) 303// m_log.DebugFormat("[Compiler]: Retrieved assembly {0} for asset {1} in {2}", assembly, asset, m_scriptEngine.World.Name);
306 {
307 try
308 {
309 Directory.CreateDirectory(ScriptEnginesPath);
310 }
311 catch (Exception)
312 {
313 }
314 }
315 304
316 if (!Directory.Exists(Path.Combine(ScriptEnginesPath, 305 CheckOrCreateScriptsDirectory();
317 m_scriptEngine.World.RegionInfo.RegionID.ToString())))
318 {
319 try
320 {
321 Directory.CreateDirectory(ScriptEnginesPath);
322 }
323 catch (Exception)
324 {
325 }
326 }
327 306
328 // Don't recompile if we already have it 307 // Don't recompile if we're not forced to and we already have it
329 // Performing 3 file exists tests for every script can still be slow 308 // Performing 3 file exists tests for every script can still be slow
330 if (File.Exists(assembly) && File.Exists(assembly + ".text") && File.Exists(assembly + ".map")) 309 if (!alwaysRecompile && File.Exists(assembly) && File.Exists(assembly + ".text") && File.Exists(assembly + ".map"))
331 { 310 {
311// m_log.DebugFormat("[Compiler]: Found existing assembly {0} for asset {1} in {2}", assembly, asset, m_scriptEngine.World.Name);
312
332 // If we have already read this linemap file, then it will be in our dictionary. 313 // If we have already read this linemap file, then it will be in our dictionary.
333 // Don't build another copy of the dictionary (saves memory) and certainly 314 // Don't build another copy of the dictionary (saves memory) and certainly
334 // don't keep reading the same file from disk multiple times. 315 // don't keep reading the same file from disk multiple times.
@@ -338,31 +319,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
338 return; 319 return;
339 } 320 }
340 321
341 if (Script == String.Empty) 322// m_log.DebugFormat("[Compiler]: Compiling assembly {0} for asset {1} in {2}", assembly, asset, m_scriptEngine.World.Name);
342 { 323
324 if (source == String.Empty)
343 throw new Exception("Cannot find script assembly and no script text present"); 325 throw new Exception("Cannot find script assembly and no script text present");
344 }
345 326
346 enumCompileType language = DefaultCompileLanguage; 327 enumCompileType language = DefaultCompileLanguage;
347 328
348 if (Script.StartsWith("//c#", true, CultureInfo.InvariantCulture)) 329 if (source.StartsWith("//c#", true, CultureInfo.InvariantCulture))
349 language = enumCompileType.cs; 330 language = enumCompileType.cs;
350 if (Script.StartsWith("//vb", true, CultureInfo.InvariantCulture)) 331 if (source.StartsWith("//vb", true, CultureInfo.InvariantCulture))
351 { 332 {
352 language = enumCompileType.vb; 333 language = enumCompileType.vb;
353 // We need to remove //vb, it won't compile with that 334 // We need to remove //vb, it won't compile with that
354 335
355 Script = Script.Substring(4, Script.Length - 4); 336 source = source.Substring(4, source.Length - 4);
356 } 337 }
357 if (Script.StartsWith("//lsl", true, CultureInfo.InvariantCulture)) 338 if (source.StartsWith("//lsl", true, CultureInfo.InvariantCulture))
358 language = enumCompileType.lsl; 339 language = enumCompileType.lsl;
359 340
360 if (Script.StartsWith("//js", true, CultureInfo.InvariantCulture))
361 language = enumCompileType.js;
362
363 if (Script.StartsWith("//yp", true, CultureInfo.InvariantCulture))
364 language = enumCompileType.yp;
365
366// m_log.DebugFormat("[Compiler]: Compile language is {0}", language); 341// m_log.DebugFormat("[Compiler]: Compile language is {0}", language);
367 342
368 if (!AllowedCompilers.ContainsKey(language.ToString())) 343 if (!AllowedCompilers.ContainsKey(language.ToString()))
@@ -381,13 +356,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
381 throw new Exception(errtext); 356 throw new Exception(errtext);
382 } 357 }
383 358
384 string compileScript = Script; 359 string compileScript = source;
385 360
386 if (language == enumCompileType.lsl) 361 if (language == enumCompileType.lsl)
387 { 362 {
388 // Its LSL, convert it to C# 363 // Its LSL, convert it to C#
389 LSL_Converter = (ICodeConverter)new CSCodeGenerator(comms); 364 LSL_Converter = (ICodeConverter)new CSCodeGenerator(comms, m_insertCoopTerminationCalls);
390 compileScript = LSL_Converter.Convert(Script); 365 compileScript = LSL_Converter.Convert(source);
391 366
392 // copy converter warnings into our warnings. 367 // copy converter warnings into our warnings.
393 foreach (string warning in LSL_Converter.GetWarnings()) 368 foreach (string warning in LSL_Converter.GetWarnings())
@@ -401,26 +376,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
401 WriteMapFile(assembly + ".map", linemap); 376 WriteMapFile(assembly + ".map", linemap);
402 } 377 }
403 378
404 if (language == enumCompileType.yp)
405 {
406 // Its YP, convert it to C#
407 compileScript = YP_Converter.Convert(Script);
408 }
409
410 switch (language) 379 switch (language)
411 { 380 {
412 case enumCompileType.cs: 381 case enumCompileType.cs:
413 case enumCompileType.lsl: 382 case enumCompileType.lsl:
414 compileScript = CreateCSCompilerScript(compileScript); 383 compileScript = CreateCSCompilerScript(
384 compileScript,
385 m_scriptEngine.ScriptClassName,
386 m_scriptEngine.ScriptBaseClassName,
387 m_scriptEngine.ScriptBaseClassParameters);
415 break; 388 break;
416 case enumCompileType.vb: 389 case enumCompileType.vb:
417 compileScript = CreateVBCompilerScript(compileScript); 390 compileScript = CreateVBCompilerScript(
418 break; 391 compileScript, m_scriptEngine.ScriptClassName, m_scriptEngine.ScriptBaseClassName);
419// case enumCompileType.js:
420// compileScript = CreateJSCompilerScript(compileScript);
421// break;
422 case enumCompileType.yp:
423 compileScript = CreateYPCompilerScript(compileScript);
424 break; 392 break;
425 } 393 }
426 394
@@ -451,43 +419,44 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
451// return compileScript; 419// return compileScript;
452// } 420// }
453 421
454 private static string CreateCSCompilerScript(string compileScript) 422 public static string CreateCSCompilerScript(
423 string compileScript, string className, string baseClassName, ParameterInfo[] constructorParameters)
455 { 424 {
456 compileScript = String.Empty + 425 compileScript = string.Format(
457 "using OpenSim.Region.ScriptEngine.Shared; using System.Collections.Generic;\r\n" + 426@"using OpenSim.Region.ScriptEngine.Shared;
458 String.Empty + "namespace SecondLife { " + 427using System.Collections.Generic;
459 String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass { \r\n" + 428
460 @"public Script() { } " + 429namespace SecondLife
461 compileScript + 430{{
462 "} }\r\n"; 431 public class {0} : {1}
463 return compileScript; 432 {{
464 } 433 public {0}({2}) : base({3}) {{}}
434{4}
435 }}
436}}",
437 className,
438 baseClassName,
439 constructorParameters != null
440 ? string.Join(", ", Array.ConvertAll<ParameterInfo, string>(constructorParameters, pi => pi.ToString()))
441 : "",
442 constructorParameters != null
443 ? string.Join(", ", Array.ConvertAll<ParameterInfo, string>(constructorParameters, pi => pi.Name))
444 : "",
445 compileScript);
465 446
466 private static string CreateYPCompilerScript(string compileScript)
467 {
468 compileScript = String.Empty +
469 "using OpenSim.Region.ScriptEngine.Shared.YieldProlog; " +
470 "using OpenSim.Region.ScriptEngine.Shared; using System.Collections.Generic;\r\n" +
471 String.Empty + "namespace SecondLife { " +
472 String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass { \r\n" +
473 //@"public Script() { } " +
474 @"static OpenSim.Region.ScriptEngine.Shared.YieldProlog.YP YP=null; " +
475 @"public Script() { YP= new OpenSim.Region.ScriptEngine.Shared.YieldProlog.YP(); } " +
476
477 compileScript +
478 "} }\r\n";
479 return compileScript; 447 return compileScript;
480 } 448 }
481 449
482 private static string CreateVBCompilerScript(string compileScript) 450 public static string CreateVBCompilerScript(string compileScript, string className, string baseClassName)
483 { 451 {
484 compileScript = String.Empty + 452 compileScript = String.Empty +
485 "Imports OpenSim.Region.ScriptEngine.Shared: Imports System.Collections.Generic: " + 453 "Imports OpenSim.Region.ScriptEngine.Shared: Imports System.Collections.Generic: " +
486 String.Empty + "NameSpace SecondLife:" + 454 String.Empty + "NameSpace SecondLife:" +
487 String.Empty + "Public Class Script: Inherits OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass: " + 455 String.Empty + "Public Class " + className + ": Inherits " + baseClassName +
488 "\r\nPublic Sub New()\r\nEnd Sub: " + 456 "\r\nPublic Sub New()\r\nEnd Sub: " +
489 compileScript + 457 compileScript +
490 ":End Class :End Namespace\r\n"; 458 ":End Class :End Namespace\r\n";
459
491 return compileScript; 460 return compileScript;
492 } 461 }
493 462
@@ -506,7 +475,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
506 scriptCompileCounter++; 475 scriptCompileCounter++;
507 try 476 try
508 { 477 {
509 File.Delete(assembly); 478 if (File.Exists(assembly))
479 {
480 File.SetAttributes(assembly, FileAttributes.Normal);
481 File.Delete(assembly);
482 }
510 } 483 }
511 catch (Exception e) // NOTLEGIT - Should be just FileIOException 484 catch (Exception e) // NOTLEGIT - Should be just FileIOException
512 { 485 {
@@ -549,11 +522,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
549 parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, 522 parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,
550 "OpenMetaverseTypes.dll")); 523 "OpenMetaverseTypes.dll"));
551 524
552 if (lang == enumCompileType.yp) 525 if (m_scriptEngine.ScriptReferencedAssemblies != null)
553 { 526 Array.ForEach<string>(
554 parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, 527 m_scriptEngine.ScriptReferencedAssemblies,
555 "OpenSim.Region.ScriptEngine.Shared.YieldProlog.dll")); 528 a => parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, a)));
556 }
557 529
558 parameters.GenerateExecutable = false; 530 parameters.GenerateExecutable = false;
559 parameters.OutputAssembly = assembly; 531 parameters.OutputAssembly = assembly;
@@ -579,6 +551,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
579 results = CScodeProvider.CompileAssemblyFromSource( 551 results = CScodeProvider.CompileAssemblyFromSource(
580 parameters, Script); 552 parameters, Script);
581 } 553 }
554
582 // Deal with an occasional segv in the compiler. 555 // Deal with an occasional segv in the compiler.
583 // Rarely, if ever, occurs twice in succession. 556 // Rarely, if ever, occurs twice in succession.
584 // Line # == 0 and no file name are indications that 557 // Line # == 0 and no file name are indications that
@@ -586,7 +559,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
586 // error log. 559 // error log.
587 if (results.Errors.Count > 0) 560 if (results.Errors.Count > 0)
588 { 561 {
589 if (!retried && (results.Errors[0].FileName == null || results.Errors[0].FileName == String.Empty) && 562 if (!retried && string.IsNullOrEmpty(results.Errors[0].FileName) &&
590 results.Errors[0].Line == 0) 563 results.Errors[0].Line == 0)
591 { 564 {
592 // System.Console.WriteLine("retrying failed compilation"); 565 // System.Console.WriteLine("retrying failed compilation");
@@ -603,41 +576,42 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
603 } 576 }
604 } while (!complete); 577 } while (!complete);
605 break; 578 break;
606// case enumCompileType.js:
607// results = JScodeProvider.CompileAssemblyFromSource(
608// parameters, Script);
609// break;
610 case enumCompileType.yp:
611 results = YPcodeProvider.CompileAssemblyFromSource(
612 parameters, Script);
613 break;
614 default: 579 default:
615 throw new Exception("Compiler is not able to recongnize " + 580 throw new Exception("Compiler is not able to recongnize " +
616 "language type \"" + lang.ToString() + "\""); 581 "language type \"" + lang.ToString() + "\"");
617 } 582 }
618 583
619 // Check result 584// foreach (Type type in results.CompiledAssembly.GetTypes())
620 // Go through errors 585// {
586// foreach (MethodInfo method in type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static))
587// {
588// m_log.DebugFormat("[COMPILER]: {0}.{1}", type.FullName, method.Name);
589// }
590// }
621 591
622 // 592 //
623 // WARNINGS AND ERRORS 593 // WARNINGS AND ERRORS
624 // 594 //
625 bool hadErrors = false; 595 bool hadErrors = false;
626 string errtext = String.Empty; 596 string errtext = String.Empty;
627
628 if (results.Errors.Count > 0) 597 if (results.Errors.Count > 0)
629 { 598 {
630 foreach (CompilerError CompErr in results.Errors) 599 foreach (CompilerError CompErr in results.Errors)
631 { 600 {
632 string severity = CompErr.IsWarning ? "Warning" : "Error"; 601 string severity = CompErr.IsWarning ? "Warning" : "Error";
633 602
634 KeyValuePair<int, int> lslPos; 603 KeyValuePair<int, int> errorPos;
635 604
636 // Show 5 errors max, but check entire list for errors 605 // Show 5 errors max, but check entire list for errors
637 606
638 if (severity == "Error") 607 if (severity == "Error")
639 { 608 {
640 lslPos = FindErrorPosition(CompErr.Line, CompErr.Column, m_lineMaps[assembly]); 609 // C# scripts will not have a linemap since theres no line translation involved.
610 if (!m_lineMaps.ContainsKey(assembly))
611 errorPos = new KeyValuePair<int, int>(CompErr.Line, CompErr.Column);
612 else
613 errorPos = FindErrorPosition(CompErr.Line, CompErr.Column, m_lineMaps[assembly]);
614
641 string text = CompErr.ErrorText; 615 string text = CompErr.ErrorText;
642 616
643 // Use LSL type names 617 // Use LSL type names
@@ -647,7 +621,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
647 // The Second Life viewer's script editor begins 621 // The Second Life viewer's script editor begins
648 // countingn lines and columns at 0, so we subtract 1. 622 // countingn lines and columns at 0, so we subtract 1.
649 errtext += String.Format("({0},{1}): {4} {2}: {3}\n", 623 errtext += String.Format("({0},{1}): {4} {2}: {3}\n",
650 lslPos.Key - 1, lslPos.Value - 1, 624 errorPos.Key - 1, errorPos.Value - 1,
651 CompErr.ErrorNumber, text, severity); 625 CompErr.ErrorNumber, text, severity);
652 hadErrors = true; 626 hadErrors = true;
653 } 627 }
@@ -699,9 +673,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
699 673
700 try 674 try
701 { 675 {
702 FileStream fs = File.Open(assembly, FileMode.Open, FileAccess.Read); 676 using (FileStream fs = File.Open(assembly, FileMode.Open, FileAccess.Read))
703 fs.Read(data, 0, data.Length); 677 fs.Read(data, 0, data.Length);
704 fs.Close();
705 } 678 }
706 catch (Exception) 679 catch (Exception)
707 { 680 {
@@ -716,19 +689,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
716 689
717 Byte[] buf = Encoding.ASCII.GetBytes(filetext); 690 Byte[] buf = Encoding.ASCII.GetBytes(filetext);
718 691
719 FileStream sfs = File.Create(assembly + ".text"); 692 using (FileStream sfs = File.Create(assembly + ".text"))
720 sfs.Write(buf, 0, buf.Length); 693 sfs.Write(buf, 0, buf.Length);
721 sfs.Close();
722 694
723 return assembly; 695 return assembly;
724 } 696 }
725 697
726 private class kvpSorter : IComparer<KeyValuePair<int, int>> 698 private class kvpSorter : IComparer<KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>>>
727 { 699 {
728 public int Compare(KeyValuePair<int, int> a, 700 public int Compare(KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> a,
729 KeyValuePair<int, int> b) 701 KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> b)
730 { 702 {
731 return a.Key.CompareTo(b.Key); 703 int kc = a.Key.Key.CompareTo(b.Key.Key);
704 return (kc != 0) ? kc : a.Key.Value.CompareTo(b.Key.Value);
732 } 705 }
733 } 706 }
734 707
@@ -745,30 +718,46 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
745 out ret)) 718 out ret))
746 return ret; 719 return ret;
747 720
748 List<KeyValuePair<int, int>> sorted = 721 var sorted = new List<KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>>>(positionMap);
749 new List<KeyValuePair<int, int>>(positionMap.Keys);
750 722
751 sorted.Sort(new kvpSorter()); 723 sorted.Sort(new kvpSorter());
752 724
753 int l = 1; 725 int l = 1;
754 int c = 1; 726 int c = 1;
727 int pl = 1;
755 728
756 foreach (KeyValuePair<int, int> cspos in sorted) 729 foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> posmap in sorted)
757 { 730 {
758 if (cspos.Key >= line) 731 //m_log.DebugFormat("[Compiler]: Scanning line map {0},{1} --> {2},{3}", posmap.Key.Key, posmap.Key.Value, posmap.Value.Key, posmap.Value.Value);
732 int nl = posmap.Value.Key + line - posmap.Key.Key; // New, translated LSL line and column.
733 int nc = posmap.Value.Value + col - posmap.Key.Value;
734 // Keep going until we find the first point passed line,col.
735 if (posmap.Key.Key > line)
759 { 736 {
760 if (cspos.Key > line) 737 //m_log.DebugFormat("[Compiler]: Line is larger than requested {0},{1}, returning {2},{3}", line, col, l, c);
761 return new KeyValuePair<int, int>(l, c); 738 if (pl < line)
762 if (cspos.Value > col) 739 {
763 return new KeyValuePair<int, int>(l, c); 740 //m_log.DebugFormat("[Compiler]: Previous line ({0}) is less than requested line ({1}), setting column to 1.", pl, line);
764 c = cspos.Value; 741 c = 1;
765 if (c == 0) 742 }
766 c++; 743 break;
767 } 744 }
768 else 745 if (posmap.Key.Key == line && posmap.Key.Value > col)
769 { 746 {
770 l = cspos.Key; 747 // Never move l,c backwards.
748 if (nl > l || (nl == l && nc > c))
749 {
750 //m_log.DebugFormat("[Compiler]: Using offset relative to this: {0} + {1} - {2}, {3} + {4} - {5} = {6}, {7}",
751 // posmap.Value.Key, line, posmap.Key.Key, posmap.Value.Value, col, posmap.Key.Value, nl, nc);
752 l = nl;
753 c = nc;
754 }
755 //m_log.DebugFormat("[Compiler]: Column is larger than requested {0},{1}, returning {2},{3}", line, col, l, c);
756 break;
771 } 757 }
758 pl = posmap.Key.Key;
759 l = posmap.Value.Key;
760 c = posmap.Value.Value;
772 } 761 }
773 return new KeyValuePair<int, int>(l, c); 762 return new KeyValuePair<int, int>(l, c);
774 } 763 }
@@ -794,7 +783,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
794 return message; 783 return message;
795 } 784 }
796 785
797
798 private static void WriteMapFile(string filename, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap) 786 private static void WriteMapFile(string filename, Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap)
799 { 787 {
800 string mapstring = String.Empty; 788 string mapstring = String.Empty;
@@ -806,40 +794,42 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
806 } 794 }
807 795
808 Byte[] mapbytes = Encoding.ASCII.GetBytes(mapstring); 796 Byte[] mapbytes = Encoding.ASCII.GetBytes(mapstring);
809 FileStream mfs = File.Create(filename);
810 mfs.Write(mapbytes, 0, mapbytes.Length);
811 mfs.Close();
812 }
813 797
798 using (FileStream mfs = File.Create(filename))
799 mfs.Write(mapbytes, 0, mapbytes.Length);
800 }
814 801
815 private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> ReadMapFile(string filename) 802 private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> ReadMapFile(string filename)
816 { 803 {
817 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap; 804 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> linemap;
818 try 805 try
819 { 806 {
820 StreamReader r = File.OpenText(filename); 807 using (StreamReader r = File.OpenText(filename))
821 linemap = new Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>();
822
823 string line;
824 while ((line = r.ReadLine()) != null)
825 { 808 {
826 String[] parts = line.Split(new Char[] { ',' }); 809 linemap = new Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>();
827 int kk = System.Convert.ToInt32(parts[0]);
828 int kv = System.Convert.ToInt32(parts[1]);
829 int vk = System.Convert.ToInt32(parts[2]);
830 int vv = System.Convert.ToInt32(parts[3]);
831 810
832 KeyValuePair<int, int> k = new KeyValuePair<int, int>(kk, kv); 811 string line;
833 KeyValuePair<int, int> v = new KeyValuePair<int, int>(vk, vv); 812 while ((line = r.ReadLine()) != null)
813 {
814 String[] parts = line.Split(new Char[] { ',' });
815 int kk = System.Convert.ToInt32(parts[0]);
816 int kv = System.Convert.ToInt32(parts[1]);
817 int vk = System.Convert.ToInt32(parts[2]);
818 int vv = System.Convert.ToInt32(parts[3]);
819
820 KeyValuePair<int, int> k = new KeyValuePair<int, int>(kk, kv);
821 KeyValuePair<int, int> v = new KeyValuePair<int, int>(vk, vv);
834 822
835 linemap[k] = v; 823 linemap[k] = v;
824 }
836 } 825 }
837 } 826 }
838 catch 827 catch
839 { 828 {
840 linemap = new Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>(); 829 linemap = new Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>();
841 } 830 }
831
842 return linemap; 832 return linemap;
843 } 833 }
844 } 834 }
845} 835} \ No newline at end of file
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
index e77b3d2..0fb3574 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
@@ -27,12 +27,16 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection;
31using log4net;
30using Tools; 32using Tools;
31 33
32namespace OpenSim.Region.ScriptEngine.Shared.CodeTools 34namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
33{ 35{
34 public class LSL2CSCodeTransformer 36 public class LSL2CSCodeTransformer
35 { 37 {
38// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
39
36 private SYMBOL m_astRoot = null; 40 private SYMBOL m_astRoot = null;
37 private static Dictionary<string, string> m_datatypeLSL2OpenSim = null; 41 private static Dictionary<string, string> m_datatypeLSL2OpenSim = null;
38 42
@@ -78,6 +82,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
78 /// <param name="s">The current node to transform.</param> 82 /// <param name="s">The current node to transform.</param>
79 private void TransformNode(SYMBOL s) 83 private void TransformNode(SYMBOL s)
80 { 84 {
85// m_log.DebugFormat("[LSL2CSCODETRANSFORMER]: Tranforming node {0}", s);
86
81 // make sure to put type lower in the inheritance hierarchy first 87 // make sure to put type lower in the inheritance hierarchy first
82 // ie: since IdentConstant and StringConstant inherit from Constant, 88 // ie: since IdentConstant and StringConstant inherit from Constant,
83 // put IdentConstant and StringConstant before Constant 89 // put IdentConstant and StringConstant before Constant
@@ -103,10 +109,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
103 // We need to check for that here. 109 // We need to check for that here.
104 if (null != s.kids[i]) 110 if (null != s.kids[i])
105 { 111 {
112// m_log.Debug("[LSL2CSCODETRANSFORMER]: Moving down level");
113
106 if (!(s is Assignment || s is ArgumentDeclarationList) && s.kids[i] is Declaration) 114 if (!(s is Assignment || s is ArgumentDeclarationList) && s.kids[i] is Declaration)
107 AddImplicitInitialization(s, i); 115 AddImplicitInitialization(s, i);
108 116
109 TransformNode((SYMBOL) s.kids[i]); 117 TransformNode((SYMBOL) s.kids[i]);
118
119// m_log.Debug("[LSL2CSCODETRANSFORMER]: Moving up level");
110 } 120 }
111 } 121 }
112 } 122 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Properties/AssemblyInfo.cs
index c65caa8..0aece99 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.8.3.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs
index 77e087c..b92f3a3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs
@@ -762,6 +762,7 @@ default
762 public void TestIfStatement() 762 public void TestIfStatement()
763 { 763 {
764 TestHelpers.InMethod(); 764 TestHelpers.InMethod();
765// TestHelpers.EnableLogging();
765 766
766 string input = @"// let's test if statements 767 string input = @"// let's test if statements
767 768
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CompilerTest.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CompilerTest.cs
index 05a8756..b476e32 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CompilerTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CompilerTest.cs
@@ -25,12 +25,14 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using System.IO; 29using System.IO;
29using System.CodeDom.Compiler; 30using System.CodeDom.Compiler;
30using System.Collections.Generic; 31using System.Collections.Generic;
31using Microsoft.CSharp; 32using Microsoft.CSharp;
32using NUnit.Framework; 33using NUnit.Framework;
33using OpenSim.Region.ScriptEngine.Shared.CodeTools; 34using OpenSim.Region.ScriptEngine.Shared.CodeTools;
35using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
34using OpenSim.Tests.Common; 36using OpenSim.Tests.Common;
35 37
36namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests 38namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
@@ -46,7 +48,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
46 private string m_testDir; 48 private string m_testDir;
47 private CSharpCodeProvider m_CSCodeProvider; 49 private CSharpCodeProvider m_CSCodeProvider;
48 private CompilerParameters m_compilerParameters; 50 private CompilerParameters m_compilerParameters;
49 private CompilerResults m_compilerResults; 51 // private CompilerResults m_compilerResults;
52 private ResolveEventHandler m_resolveEventHandler;
50 53
51 /// <summary> 54 /// <summary>
52 /// Creates a temporary directory where build artifacts are stored. 55 /// Creates a temporary directory where build artifacts are stored.
@@ -61,14 +64,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
61 // Create the temporary directory for housing build artifacts. 64 // Create the temporary directory for housing build artifacts.
62 Directory.CreateDirectory(m_testDir); 65 Directory.CreateDirectory(m_testDir);
63 } 66 }
67 }
68
69 [SetUp]
70 public override void SetUp()
71 {
72 base.SetUp();
64 73
65 // Create a CSCodeProvider and CompilerParameters. 74 // Create a CSCodeProvider and CompilerParameters.
66 m_CSCodeProvider = new CSharpCodeProvider(); 75 m_CSCodeProvider = new CSharpCodeProvider();
67 m_compilerParameters = new CompilerParameters(); 76 m_compilerParameters = new CompilerParameters();
68 77
69 string rootPath = Path.Combine(Path.GetDirectoryName(System.AppDomain.CurrentDomain.BaseDirectory), "bin"); 78 string rootPath = System.AppDomain.CurrentDomain.BaseDirectory;
79
80 m_resolveEventHandler = new ResolveEventHandler(AssemblyResolver.OnAssemblyResolve);
81
82 System.AppDomain.CurrentDomain.AssemblyResolve += m_resolveEventHandler;
83
70 m_compilerParameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Shared.dll")); 84 m_compilerParameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Shared.dll"));
71 m_compilerParameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll")); 85 m_compilerParameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll"));
86 m_compilerParameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenMetaverseTypes.dll"));
72 m_compilerParameters.GenerateExecutable = false; 87 m_compilerParameters.GenerateExecutable = false;
73 } 88 }
74 89
@@ -76,9 +91,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
76 /// Removes the temporary build directory and any build artifacts 91 /// Removes the temporary build directory and any build artifacts
77 /// inside it. 92 /// inside it.
78 /// </summary> 93 /// </summary>
79 [TestFixtureTearDown] 94 [TearDown]
80 public void CleanUp() 95 public void CleanUp()
81 { 96 {
97 System.AppDomain.CurrentDomain.AssemblyResolve -= m_resolveEventHandler;
98
82 if (Directory.Exists(m_testDir)) 99 if (Directory.Exists(m_testDir))
83 { 100 {
84 // Blow away the temporary directory with artifacts. 101 // Blow away the temporary directory with artifacts.
@@ -86,52 +103,100 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
86 } 103 }
87 } 104 }
88 105
106 private CompilerResults CompileScript(
107 string input, out Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> positionMap)
108 {
109 m_compilerParameters.OutputAssembly = Path.Combine(m_testDir, Path.GetRandomFileName() + ".dll");
110
111 CSCodeGenerator cg = new CSCodeGenerator();
112 string output = cg.Convert(input);
113
114 output = Compiler.CreateCSCompilerScript(output, "script1", typeof(ScriptBaseClass).FullName, null);
115 // System.Console.WriteLine(output);
116
117 positionMap = cg.PositionMap;
118
119 CompilerResults compilerResults = m_CSCodeProvider.CompileAssemblyFromSource(m_compilerParameters, output);
120
121 // foreach (KeyValuePair<int, int> key in positionMap.Keys)
122 // {
123 // KeyValuePair<int, int> val = positionMap[key];
124 //
125 // System.Console.WriteLine("{0},{1} => {2},{3}", key.Key, key.Value, val.Key, val.Value);
126 // }
127 //
128 // foreach (CompilerError compErr in m_compilerResults.Errors)
129 // {
130 // System.Console.WriteLine("Error: {0},{1} => {2}", compErr.Line, compErr.Column, compErr);
131 // }
132
133 return compilerResults;
134 }
135
136 /// <summary>
137 /// Test that line number errors are resolved as expected when preceding code contains a jump.
138 /// </summary>
139 [Test]
140 public void TestJumpAndSyntaxError()
141 {
142 TestHelpers.InMethod();
143
144 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> positionMap;
145
146 CompilerResults compilerResults = CompileScript(
147@"default
148{
149 state_entry()
150 {
151 jump l;
152 @l;
153 i = 1;
154 }
155}", out positionMap);
156
157 Assert.AreEqual(
158 new KeyValuePair<int, int>(7, 9),
159 positionMap[new KeyValuePair<int, int>(compilerResults.Errors[0].Line, compilerResults.Errors[0].Column)]);
160 }
161
89 /// <summary> 162 /// <summary>
90 /// Test the C# compiler error message can be mapped to the correct 163 /// Test the C# compiler error message can be mapped to the correct
91 /// line/column in the LSL source when an undeclared variable is used. 164 /// line/column in the LSL source when an undeclared variable is used.
92 /// </summary> 165 /// </summary>
93 //[Test] 166 [Test]
94 public void TestUseUndeclaredVariable() 167 public void TestUseUndeclaredVariable()
95 { 168 {
96 TestHelpers.InMethod(); 169 TestHelpers.InMethod();
97 170
98 m_compilerParameters.OutputAssembly = Path.Combine(m_testDir, Path.GetRandomFileName() + ".dll"); 171 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> positionMap;
99 172
100 string input = @"default 173 CompilerResults compilerResults = CompileScript(
174@"default
101{ 175{
102 state_entry() 176 state_entry()
103 { 177 {
104 integer y = x + 3; 178 integer y = x + 3;
105 } 179 }
106}"; 180}", out positionMap);
107 181
108 CSCodeGenerator cg = new CSCodeGenerator(); 182 Assert.AreEqual(
109 string output = "using OpenSim.Region.ScriptEngine.Shared; using System.Collections.Generic;\n" + 183 new KeyValuePair<int, int>(5, 21),
110 "namespace SecondLife { " + 184 positionMap[new KeyValuePair<int, int>(compilerResults.Errors[0].Line, compilerResults.Errors[0].Column)]);
111 "public class Script : OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass {\n" +
112 "public Script() { } " +
113 cg.Convert(input) +
114 "} }\n";
115 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> positionMap = cg.PositionMap;
116
117 m_compilerResults = m_CSCodeProvider.CompileAssemblyFromSource(m_compilerParameters, output);
118
119 Assert.AreEqual(new KeyValuePair<int, int>(5, 21),
120 positionMap[new KeyValuePair<int, int>(m_compilerResults.Errors[0].Line, m_compilerResults.Errors[0].Column)]);
121 } 185 }
122 186
123 /// <summary> 187 /// <summary>
124 /// Test that a string can be cast to string and another string 188 /// Test that a string can be cast to string and another string
125 /// concatenated. 189 /// concatenated.
126 /// </summary> 190 /// </summary>
127 //[Test] 191 [Test]
128 public void TestCastAndConcatString() 192 public void TestCastAndConcatString()
129 { 193 {
130 TestHelpers.InMethod(); 194 TestHelpers.InMethod();
131 195
132 m_compilerParameters.OutputAssembly = Path.Combine(m_testDir, Path.GetRandomFileName() + ".dll"); 196 Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> positionMap;
133 197
134 string input = @"string s = "" a string""; 198 CompilerResults compilerResults = CompileScript(
199@"string s = "" a string"";
135 200
136default 201default
137{ 202{
@@ -141,18 +206,9 @@ default
141 string tmp = (string) gAvatarKey + s; 206 string tmp = (string) gAvatarKey + s;
142 llSay(0, tmp); 207 llSay(0, tmp);
143 } 208 }
144}"; 209}", out positionMap);
145 210
146 CSCodeGenerator cg = new CSCodeGenerator(); 211 Assert.AreEqual(0, compilerResults.Errors.Count);
147 string output = "using OpenSim.Region.ScriptEngine.Shared; using System.Collections.Generic;\n" +
148 "namespace SecondLife { " +
149 "public class Script : OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass {\n" +
150 "public Script() { } " +
151 cg.Convert(input) +
152 "} }\n";
153 m_compilerResults = m_CSCodeProvider.CompileAssemblyFromSource(m_compilerParameters, output);
154
155 Assert.AreEqual(0, m_compilerResults.Errors.Count);
156 } 212 }
157 } 213 }
158} \ No newline at end of file 214} \ No newline at end of file
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs
new file mode 100644
index 0000000..67ce10a
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs
@@ -0,0 +1,359 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Text.RegularExpressions;
31using NUnit.Framework;
32using OpenSim.Region.ScriptEngine.Shared.CodeTools;
33using OpenSim.Tests.Common;
34
35namespace OpenSim.Region.ScriptEngine.Shared.Tests
36{
37 public class LSL_EventTests : OpenSimTestCase
38 {
39 CSCodeGenerator m_cg = new CSCodeGenerator();
40
41 [Test]
42 public void TestBadEvent()
43 {
44 TestHelpers.InMethod();
45// TestHelpers.EnableLogging();
46
47 TestCompile("default { bad() {} }", true);
48 }
49
50 [Test]
51 public void TestAttachEvent()
52 {
53 TestHelpers.InMethod();
54// TestHelpers.EnableLogging();
55
56 TestKeyArgEvent("attach");
57 }
58
59 [Test]
60 public void TestObjectRezEvent()
61 {
62 TestHelpers.InMethod();
63// TestHelpers.EnableLogging();
64
65 TestKeyArgEvent("object_rez");
66 }
67
68 [Test]
69 public void TestMovingEndEvent()
70 {
71 TestHelpers.InMethod();
72// TestHelpers.EnableLogging();
73
74 TestVoidArgEvent("moving_end");
75 }
76
77 [Test]
78 public void TestMovingStartEvent()
79 {
80 TestHelpers.InMethod();
81// TestHelpers.EnableLogging();
82
83 TestVoidArgEvent("moving_start");
84 }
85
86 [Test]
87 public void TestNoSensorEvent()
88 {
89 TestHelpers.InMethod();
90// TestHelpers.EnableLogging();
91
92 TestVoidArgEvent("no_sensor");
93 }
94
95 [Test]
96 public void TestNotAtRotTargetEvent()
97 {
98 TestHelpers.InMethod();
99// TestHelpers.EnableLogging();
100
101 TestVoidArgEvent("not_at_rot_target");
102 }
103
104 [Test]
105 public void TestNotAtTargetEvent()
106 {
107 TestHelpers.InMethod();
108// TestHelpers.EnableLogging();
109
110 TestVoidArgEvent("not_at_target");
111 }
112
113 [Test]
114 public void TestStateEntryEvent()
115 {
116 TestHelpers.InMethod();
117// TestHelpers.EnableLogging();
118
119 TestVoidArgEvent("state_entry");
120 }
121
122 [Test]
123 public void TestStateExitEvent()
124 {
125 TestHelpers.InMethod();
126// TestHelpers.EnableLogging();
127
128 TestVoidArgEvent("state_exit");
129 }
130
131 [Test]
132 public void TestTimerEvent()
133 {
134 TestHelpers.InMethod();
135// TestHelpers.EnableLogging();
136
137 TestVoidArgEvent("timer");
138 }
139
140 private void TestVoidArgEvent(string eventName)
141 {
142 TestCompile("default { " + eventName + "() {} }", false);
143 TestCompile("default { " + eventName + "(integer n) {} }", true);
144 }
145
146 [Test]
147 public void TestChangedEvent()
148 {
149 TestHelpers.InMethod();
150// TestHelpers.EnableLogging();
151
152 TestIntArgEvent("changed");
153 }
154
155 [Test]
156 public void TestCollisionEvent()
157 {
158 TestHelpers.InMethod();
159// TestHelpers.EnableLogging();
160
161 TestIntArgEvent("collision");
162 }
163
164 [Test]
165 public void TestCollisionStartEvent()
166 {
167 TestHelpers.InMethod();
168// TestHelpers.EnableLogging();
169
170 TestIntArgEvent("collision_start");
171 }
172
173 [Test]
174 public void TestCollisionEndEvent()
175 {
176 TestHelpers.InMethod();
177// TestHelpers.EnableLogging();
178
179 TestIntArgEvent("collision_end");
180 }
181
182 [Test]
183 public void TestOnRezEvent()
184 {
185 TestHelpers.InMethod();
186// TestHelpers.EnableLogging();
187
188 TestIntArgEvent("on_rez");
189 }
190
191 [Test]
192 public void TestRunTimePermissionsEvent()
193 {
194 TestHelpers.InMethod();
195// TestHelpers.EnableLogging();
196
197 TestIntArgEvent("run_time_permissions");
198 }
199
200 [Test]
201 public void TestSensorEvent()
202 {
203 TestHelpers.InMethod();
204// TestHelpers.EnableLogging();
205
206 TestIntArgEvent("sensor");
207 }
208
209 [Test]
210 public void TestTouchEvent()
211 {
212 TestHelpers.InMethod();
213// TestHelpers.EnableLogging();
214
215 TestIntArgEvent("touch");
216 }
217
218 [Test]
219 public void TestTouchStartEvent()
220 {
221 TestHelpers.InMethod();
222// TestHelpers.EnableLogging();
223
224 TestIntArgEvent("touch_start");
225 }
226
227 [Test]
228 public void TestTouchEndEvent()
229 {
230 TestHelpers.InMethod();
231// TestHelpers.EnableLogging();
232
233 TestIntArgEvent("touch_end");
234 }
235
236 [Test]
237 public void TestLandCollisionEvent()
238 {
239 TestHelpers.InMethod();
240// TestHelpers.EnableLogging();
241
242 TestVectorArgEvent("land_collision");
243 }
244
245 [Test]
246 public void TestLandCollisionStartEvent()
247 {
248 TestHelpers.InMethod();
249// TestHelpers.EnableLogging();
250
251 TestVectorArgEvent("land_collision_start");
252 }
253
254 [Test]
255 public void TestLandCollisionEndEvent()
256 {
257 TestHelpers.InMethod();
258// TestHelpers.EnableLogging();
259
260 TestVectorArgEvent("land_collision_end");
261 }
262
263 [Test]
264 public void TestAtRotTargetEvent()
265 {
266 TestHelpers.InMethod();
267// TestHelpers.EnableLogging();
268
269 TestIntRotRotArgEvent("at_rot_target");
270 }
271
272 [Test]
273 public void TestAtTargetEvent()
274 {
275 TestHelpers.InMethod();
276// TestHelpers.EnableLogging();
277
278 TestIntVecVecArgEvent("at_target");
279 }
280
281 [Test]
282 public void TestControlEvent()
283 {
284 TestHelpers.InMethod();
285// TestHelpers.EnableLogging();
286
287 TestKeyIntIntArgEvent("control");
288 }
289
290 private void TestIntArgEvent(string eventName)
291 {
292 TestCompile("default { " + eventName + "(integer n) {} }", false);
293 TestCompile("default { " + eventName + "{{}} }", true);
294 TestCompile("default { " + eventName + "(string s) {{}} }", true);
295 TestCompile("default { " + eventName + "(integer n, integer o) {{}} }", true);
296 }
297
298 private void TestKeyArgEvent(string eventName)
299 {
300 TestCompile("default { " + eventName + "(key k) {} }", false);
301 TestCompile("default { " + eventName + "{{}} }", true);
302 TestCompile("default { " + eventName + "(string s) {{}} }", true);
303 TestCompile("default { " + eventName + "(key k, key l) {{}} }", true);
304 }
305
306 private void TestVectorArgEvent(string eventName)
307 {
308 TestCompile("default { " + eventName + "(vector v) {} }", false);
309 TestCompile("default { " + eventName + "{{}} }", true);
310 TestCompile("default { " + eventName + "(string s) {{}} }", true);
311 TestCompile("default { " + eventName + "(vector v, vector w) {{}} }", true);
312 }
313
314 private void TestIntRotRotArgEvent(string eventName)
315 {
316 TestCompile("default { " + eventName + "(integer n, rotation r, rotation s) {} }", false);
317 TestCompile("default { " + eventName + "{{}} }", true);
318 TestCompile("default { " + eventName + "(string s) {{}} }", true);
319 TestCompile("default { " + eventName + "(integer n, rotation r, rotation s, rotation t) {{}} }", true);
320 }
321
322 private void TestIntVecVecArgEvent(string eventName)
323 {
324 TestCompile("default { " + eventName + "(integer n, vector v, vector w) {} }", false);
325 TestCompile("default { " + eventName + "{{}} }", true);
326 TestCompile("default { " + eventName + "(string s) {{}} }", true);
327 TestCompile("default { " + eventName + "(integer n, vector v, vector w, vector x) {{}} }", true);
328 }
329
330 private void TestKeyIntIntArgEvent(string eventName)
331 {
332 TestCompile("default { " + eventName + "(key k, integer n, integer o) {} }", false);
333 TestCompile("default { " + eventName + "{{}} }", true);
334 TestCompile("default { " + eventName + "(string s) {{}} }", true);
335 TestCompile("default { " + eventName + "(key k, integer n, integer o, integer p) {{}} }", true);
336 }
337
338 private void TestCompile(string script, bool expectException)
339 {
340 bool gotException = false;
341 Exception ge = null;
342
343 try
344 {
345 m_cg.Convert(script);
346 }
347 catch (Exception e)
348 {
349 gotException = true;
350 ge = e;
351 }
352
353 Assert.That(
354 gotException,
355 Is.EqualTo(expectException),
356 "Failed on {0}, exception {1}", script, ge != null ? ge.ToString() : "n/a");
357 }
358 }
359} \ No newline at end of file
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs
deleted file mode 100644
index 7ea3cfc..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs
+++ /dev/null
@@ -1,117 +0,0 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSimulator Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
29using System;
30using System.IO;
31using System.Collections.Generic;
32using System.Text;
33using System.Text.RegularExpressions;
34using OpenSim.Region.ScriptEngine.Shared.YieldProlog;
35
36namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
37{
38 public class YP2CSConverter
39 {
40 public YP2CSConverter()
41 {
42 }
43
44 public string Convert(string Script)
45 {
46 string CS_code = GenCode(Script);
47 return CS_code;
48 }
49
50 static string GenCode(string myCode)
51 {
52 Variable TermList = new Variable();
53 Variable FunctionCode = new Variable();
54
55 string CS_code = "";
56
57 int cs_pointer = myCode.IndexOf("\n//cs");
58 if (cs_pointer > 0)
59 {
60 CS_code = myCode.Substring(cs_pointer); // CS code comes after
61 myCode = myCode.Substring(0, cs_pointer);
62 }
63 myCode.Replace("//yp", "%YPCode");
64
65 StringWriter myCS_SW = new StringWriter();
66 StringReader myCode_SR = new StringReader(" yp_nop_header_nop. \n "+myCode + "\n");
67
68 YP.see(myCode_SR);
69 YP.tell(myCS_SW);
70
71 //m_log.Debug("Mycode\n ===================================\n" + myCode+"\n");
72
73// disable warning: don't see how we can code this differently short
74// of rewriting the whole thing
75#pragma warning disable 0168, 0219
76 foreach (bool l1 in Parser.parseInput(TermList))
77 {
78 foreach (bool l2 in YPCompiler.makeFunctionPseudoCode(TermList, FunctionCode))
79 {
80 // ListPair VFC = new ListPair(FunctionCode, new Variable());
81 //m_log.Debug("-------------------------")
82 //m_log.Debug(FunctionCode.ToString())
83 //m_log.Debug("-------------------------")
84 YPCompiler.convertFunctionCSharp(FunctionCode);
85 //YPCompiler.convertStringCodesCSharp(VFC);
86 }
87 }
88#pragma warning restore 0168, 0219
89 YP.seen();
90 myCS_SW.Close();
91 YP.told();
92 StringBuilder bu = myCS_SW.GetStringBuilder();
93 string finalcode = "//YPEncoded\n" + bu.ToString();
94 // FIX script events (we're in the same script)
95 // 'YP.script_event(Atom.a(@"sayit"),' ==> 'sayit('
96 finalcode = Regex.Replace(finalcode,
97 @"YP.script_event\(Atom.a\(\@\""(.*?)""\)\,",
98 @"this.$1(",
99 RegexOptions.Compiled | RegexOptions.Singleline);
100 finalcode = Regex.Replace(finalcode,
101 @"YP.script_event\(Atom.a\(\""(.*?)""\)\,",
102 @"this.$1(",
103 RegexOptions.Compiled | RegexOptions.Singleline);
104 finalcode = Regex.Replace(finalcode,
105 @" static ",
106 @" ",
107 RegexOptions.Compiled | RegexOptions.Singleline);
108
109 finalcode = CS_code+"\n\r"+ finalcode;
110 finalcode = Regex.Replace(finalcode,
111 @"PrologCallback",
112 @"public IEnumerable<bool> ",
113 RegexOptions.Compiled | RegexOptions.Singleline);
114 return finalcode;
115 }
116 }
117}
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
index cad27b7..f87f446 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
@@ -357,21 +357,25 @@ public override int yynum { get { return 90; }}
357public class HTTP_REQUEST_EVENT : TOKEN{ public override string yyname { get { return "HTTP_REQUEST_EVENT";}} 357public class HTTP_REQUEST_EVENT : TOKEN{ public override string yyname { get { return "HTTP_REQUEST_EVENT";}}
358public override int yynum { get { return 91; }} 358public override int yynum { get { return 91; }}
359 public HTTP_REQUEST_EVENT(Lexer yyl):base(yyl) {}} 359 public HTTP_REQUEST_EVENT(Lexer yyl):base(yyl) {}}
360//%IDENT+92 360//%TRANSACTION_RESULT_EVENT+92
361public class IDENT : TOKEN{ public override string yyname { get { return "IDENT";}} 361public class TRANSACTION_RESULT_EVENT : TOKEN{ public override string yyname { get { return "TRANSACTION_RESULT_EVENT";}}
362public override int yynum { get { return 92; }} 362public override int yynum { get { return 92; }}
363 public TRANSACTION_RESULT_EVENT(Lexer yyl):base(yyl) {}}
364//%IDENT+93
365public class IDENT : TOKEN{ public override string yyname { get { return "IDENT";}}
366public override int yynum { get { return 93; }}
363 public IDENT(Lexer yyl):base(yyl) {}} 367 public IDENT(Lexer yyl):base(yyl) {}}
364//%INTEGER_CONSTANT+93 368//%INTEGER_CONSTANT+94
365public class INTEGER_CONSTANT : TOKEN{ public override string yyname { get { return "INTEGER_CONSTANT";}} 369public class INTEGER_CONSTANT : TOKEN{ public override string yyname { get { return "INTEGER_CONSTANT";}}
366public override int yynum { get { return 93; }} 370public override int yynum { get { return 94; }}
367 public INTEGER_CONSTANT(Lexer yyl):base(yyl) {}} 371 public INTEGER_CONSTANT(Lexer yyl):base(yyl) {}}
368//%HEX_INTEGER_CONSTANT+94 372//%HEX_INTEGER_CONSTANT+95
369public class HEX_INTEGER_CONSTANT : TOKEN{ public override string yyname { get { return "HEX_INTEGER_CONSTANT";}} 373public class HEX_INTEGER_CONSTANT : TOKEN{ public override string yyname { get { return "HEX_INTEGER_CONSTANT";}}
370public override int yynum { get { return 94; }} 374public override int yynum { get { return 95; }}
371 public HEX_INTEGER_CONSTANT(Lexer yyl):base(yyl) {}} 375 public HEX_INTEGER_CONSTANT(Lexer yyl):base(yyl) {}}
372//%FLOAT_CONSTANT+95 376//%FLOAT_CONSTANT+96
373public class FLOAT_CONSTANT : TOKEN{ public override string yyname { get { return "FLOAT_CONSTANT";}} 377public class FLOAT_CONSTANT : TOKEN{ public override string yyname { get { return "FLOAT_CONSTANT";}}
374public override int yynum { get { return 95; }} 378public override int yynum { get { return 96; }}
375 public FLOAT_CONSTANT(Lexer yyl):base(yyl) {}} 379 public FLOAT_CONSTANT(Lexer yyl):base(yyl) {}}
376//%|LSLTokens 380//%|LSLTokens
377public class yyLSLTokens : YyLexer { 381public class yyLSLTokens : YyLexer {
@@ -476,9 +480,9 @@ public class yyLSLTokens : YyLexer {
4762,1,3,56,0, 4802,1,3,56,0,
4772,1,3,57,0, 4812,1,3,57,0,
4782,1,7,9,122, 4822,1,7,9,122,
4799,1,9,3,96, 4839,1,9,3,238,
48033,123,5,1,3, 48422,123,5,1,3,
48196,33,2,1,7, 485238,22,2,1,7,
48210,124,9,1,10, 48610,124,9,1,10,
4833,178,0,125,5, 4873,178,0,125,5,
4841,3,178,0,2, 4881,3,178,0,2,
@@ -502,8 +506,8 @@ public class yyLSLTokens : YyLexer {
5029,0,2,1,3, 5069,0,2,1,3,
50310,0,2,1,7, 50710,0,2,1,7,
50415,134,9,1,15, 50815,134,9,1,15,
5053,15,7,135,5, 5093,0,6,135,5,
5061,3,15,7,2, 5101,3,0,6,2,
5071,7,17,136,9, 5111,7,17,136,9,
5081,17,3,0,224, 5121,17,3,0,224,
509137,5,1,3,0, 513137,5,1,3,0,
@@ -573,18 +577,18 @@ public class yyLSLTokens : YyLexer {
57379,0,77,0,77, 57779,0,77,0,77,
5740,69,0,78,0, 5780,69,0,78,0,
57584,0,160,12,1, 57984,0,160,12,1,
5761073,161,5,119,3, 5801095,161,5,119,3,
5771,0,162,12,1, 5811,0,162,12,1,
5781074,163,5,0,164, 5821096,163,5,0,164,
57911,1,1041,0,165, 58311,1,1063,0,165,
5804,0,1,-1,3, 5844,0,1,-1,3,
5819,0,162,3,10, 5859,0,162,3,10,
5820,166,12,1,1275, 5860,166,12,1,1297,
583167,5,0,168,11, 587167,5,0,168,11,
5841,1045,0,165,1, 5881,1067,0,165,1,
585-1,3,13,0,162, 589-1,3,13,0,162,
5863,0,3,162,3, 5903,0,3,162,3,
58796,33,162,3,32, 5910,6,162,3,32,
5880,162,3,33,0, 5920,162,3,33,0,
589162,3,34,0,162, 593162,3,34,0,162,
5903,35,0,162,3, 5943,35,0,162,3,
@@ -593,12 +597,12 @@ public class yyLSLTokens : YyLexer {
593162,3,40,0,162, 597162,3,40,0,162,
5943,41,0,162,3, 5983,41,0,162,3,
59542,0,169,12,1, 59942,0,169,12,1,
5961414,170,5,1,3, 6001436,170,5,1,3,
59747,0,171,12,1, 60147,0,171,12,1,
5981518,172,5,0,173, 6021540,172,5,0,173,
59911,1,1027,0,165, 60311,1,1049,0,165,
6001,-1,174,11,1, 6041,-1,174,11,1,
6011041,0,165,1,-1, 6051063,0,165,1,-1,
6023,43,0,162,3, 6063,43,0,162,3,
60344,0,162,3,45, 60744,0,162,3,45,
6040,162,3,46,0, 6080,162,3,46,0,
@@ -641,15 +645,15 @@ public class yyLSLTokens : YyLexer {
641162,3,93,0,162, 645162,3,93,0,162,
6423,94,0,162,3, 6463,94,0,162,3,
64395,0,162,3,96, 64795,0,162,3,96,
6440,162,3,97,0, 6480,162,3,238,22,
645162,3,98,0,162, 649162,3,98,0,162,
6463,99,0,162,3, 6503,99,0,162,3,
647100,0,162,3,101, 651100,0,162,3,101,
6480,162,3,102,0, 6520,162,3,97,0,
649162,3,103,0,162, 653162,3,103,0,162,
6503,104,0,162,3, 6543,104,0,162,3,
651105,0,162,3,106, 655105,0,162,3,106,
6520,162,3,107,0, 6560,162,3,102,0,
653162,3,108,0,162, 657162,3,108,0,162,
6543,109,0,162,3, 6583,109,0,162,3,
655110,0,162,3,111, 659110,0,162,3,111,
@@ -665,11 +669,11 @@ public class yyLSLTokens : YyLexer {
665162,3,123,0,162, 669162,3,123,0,162,
6663,124,0,162,3, 6703,124,0,162,3,
667125,0,162,3,96, 671125,0,162,3,96,
6686,162,3,126,0, 6726,162,3,107,0,
669162,3,58,15,162, 673162,3,126,0,162,
6703,59,15,162,3, 6743,58,15,162,3,
671136,4,162,3,160, 67559,15,162,3,136,
6720,162,3,15,7, 6764,162,3,160,0,
673162,3,170,0,162, 677162,3,170,0,162,
6743,171,0,162,3, 6783,171,0,162,3,
675172,0,162,3,173, 679172,0,162,3,173,
@@ -687,17 +691,17 @@ public class yyLSLTokens : YyLexer {
68778,0,73,0,84, 69178,0,73,0,84,
6880,73,0,65,0, 6920,73,0,65,0,
68976,0,176,12,1, 69376,0,176,12,1,
6901674,177,5,91,3, 6941696,177,5,91,3,
6919,0,178,12,1, 6959,0,178,12,1,
69240509,179,5,0,180, 69642571,179,5,0,180,
69311,1,1050,0,165, 69711,1,1072,0,165,
6941,-1,3,10,0, 6981,-1,3,10,0,
695178,3,13,0,178, 699178,3,13,0,178,
6963,32,0,178,3, 7003,32,0,178,3,
69733,0,181,12,1, 70133,0,181,12,1,
69843542,182,5,1,3, 70245604,182,5,1,3,
69961,0,183,12,1, 70361,0,183,12,1,
70043657,184,5,0,185, 70445719,184,5,0,185,
70111,1,142,0,186, 70511,1,142,0,186,
7024,36,69,0,88, 7064,36,69,0,88,
7030,67,0,76,0, 7070,67,0,76,0,
@@ -714,13 +718,13 @@ public class yyLSLTokens : YyLexer {
71465,0,84,0,73, 71865,0,84,0,73,
7150,79,0,78,0, 7190,79,0,78,0,
7161,-1,3,34,0, 7201,-1,3,34,0,
717189,12,1,43783,190, 721189,12,1,45845,190,
7185,0,191,11,1, 7225,0,191,11,1,
719941,0,165,1,-1, 723963,0,165,1,-1,
7203,37,0,192,12, 7243,37,0,192,12,
7211,41733,193,5,1, 7251,43795,193,5,1,
7223,61,0,194,12, 7263,61,0,194,12,
7231,41848,195,5,0, 7271,43910,195,5,0,
724196,11,1,40,0, 728196,11,1,40,0,
725197,4,28,80,0, 729197,4,28,80,0,
72669,0,82,0,67, 73069,0,82,0,67,
@@ -734,9 +738,9 @@ public class yyLSLTokens : YyLexer {
73482,0,67,0,69, 73882,0,67,0,69,
7350,78,0,84,0, 7390,78,0,84,0,
7361,-1,3,38,0, 7401,-1,3,38,0,
737200,12,1,41974,201, 741200,12,1,44036,201,
7385,1,3,38,0, 7425,1,3,38,0,
739202,12,1,42074,203, 743202,12,1,44136,203,
7405,0,204,11,1, 7445,0,204,11,1,
741185,0,205,4,14, 745185,0,205,4,14,
74265,0,77,0,80, 74665,0,77,0,80,
@@ -746,7 +750,7 @@ public class yyLSLTokens : YyLexer {
7460,207,4,6,65, 7500,207,4,6,65,
7470,77,0,80,0, 7510,77,0,80,0,
7481,-1,3,40,0, 7521,-1,3,40,0,
749208,12,1,41246,209, 753208,12,1,43308,209,
7505,0,210,11,1, 7545,0,210,11,1,
75171,0,211,4,20, 75571,0,211,4,20,
75276,0,69,0,70, 75676,0,69,0,70,
@@ -754,7 +758,7 @@ public class yyLSLTokens : YyLexer {
75480,0,65,0,82, 75880,0,65,0,82,
7550,69,0,78,0, 7590,69,0,78,0,
7561,-1,3,41,0, 7601,-1,3,41,0,
757212,12,1,41610,213, 761212,12,1,43672,213,
7585,0,214,11,1, 7625,0,214,11,1,
75976,0,215,4,22, 76376,0,215,4,22,
76082,0,73,0,71, 76482,0,73,0,71,
@@ -763,9 +767,9 @@ public class yyLSLTokens : YyLexer {
7630,82,0,69,0, 7670,82,0,69,0,
76478,0,1,-1,3, 76878,0,1,-1,3,
76542,0,216,12,1, 76942,0,216,12,1,
76642215,217,5,1,3, 77044277,217,5,1,3,
76761,0,218,12,1, 77161,0,218,12,1,
76842330,219,5,0,220, 77244392,219,5,0,220,
76911,1,28,0,221, 77311,1,28,0,221,
7704,22,83,0,84, 7744,22,83,0,84,
7710,65,0,82,0, 7750,65,0,82,0,
@@ -777,9 +781,9 @@ public class yyLSLTokens : YyLexer {
7770,84,0,65,0, 7810,84,0,65,0,
77882,0,1,-1,3, 78282,0,1,-1,3,
77943,0,224,12,1, 78343,0,224,12,1,
78045231,225,5,2,3, 78447293,225,5,2,3,
78161,0,226,12,1, 78561,0,226,12,1,
78245346,227,5,0,228, 78647408,227,5,0,228,
78311,1,16,0,229, 78711,1,16,0,229,
7844,22,80,0,76, 7884,22,80,0,76,
7850,85,0,83,0, 7890,85,0,83,0,
@@ -787,7 +791,7 @@ public class yyLSLTokens : YyLexer {
7870,85,0,65,0, 7910,85,0,65,0,
78876,0,83,0,1, 79276,0,83,0,1,
789-1,3,43,0,230, 793-1,3,43,0,230,
79012,1,45468,231,5, 79412,1,47530,231,5,
7910,232,11,1,2, 7950,232,11,1,2,
7920,233,4,18,73, 7960,233,4,18,73,
7930,78,0,67,0, 7970,78,0,67,0,
@@ -798,15 +802,15 @@ public class yyLSLTokens : YyLexer {
7984,8,80,0,76, 8024,8,80,0,76,
7990,85,0,83,0, 8030,85,0,83,0,
8001,-1,3,44,0, 8041,-1,3,44,0,
801236,12,1,42456,237, 805236,12,1,44518,237,
8025,0,238,11,1, 8065,0,238,11,1,
80361,0,239,4,10, 80761,0,239,4,10,
80467,0,79,0,77, 80867,0,79,0,77,
8050,77,0,65,0, 8090,77,0,65,0,
8061,-1,3,45,0, 8101,-1,3,45,0,
807240,12,1,40641,241, 811240,12,1,42703,241,
8085,2,3,45,0, 8125,2,3,45,0,
809242,12,1,40728,243, 813242,12,1,42790,243,
8105,0,244,11,1, 8145,0,244,11,1,
81110,0,245,4,18, 81510,0,245,4,18,
81268,0,69,0,67, 81668,0,69,0,67,
@@ -814,7 +818,7 @@ public class yyLSLTokens : YyLexer {
81477,0,69,0,78, 81877,0,69,0,78,
8150,84,0,1,-1, 8190,84,0,1,-1,
8163,61,0,246,12, 8203,61,0,246,12,
8171,40876,247,5,0, 8211,42938,247,5,0,
818248,11,1,22,0, 822248,11,1,22,0,
819249,4,24,77,0, 823249,4,24,77,0,
82073,0,78,0,85, 82473,0,78,0,85,
@@ -827,9 +831,9 @@ public class yyLSLTokens : YyLexer {
8270,78,0,85,0, 8310,78,0,85,0,
82883,0,1,-1,3, 83283,0,1,-1,3,
82946,0,252,12,1, 83346,0,252,12,1,
83042577,253,5,14,3, 83444639,253,5,14,3,
83148,0,254,12,1, 83548,0,254,12,1,
83240243,255,5,14,3, 83642305,255,5,14,3,
83348,0,254,3,49, 83748,0,254,3,49,
8340,254,3,50,0, 8380,254,3,50,0,
835254,3,51,0,254, 839254,3,51,0,254,
@@ -839,11 +843,11 @@ public class yyLSLTokens : YyLexer {
839254,3,56,0,254, 843254,3,56,0,254,
8403,57,0,254,3, 8443,57,0,254,3,
841101,0,256,12,1, 845101,0,256,12,1,
84239706,257,5,12,3, 84641768,257,5,12,3,
84343,0,258,12,1, 84743,0,258,12,1,
84440033,259,5,10,3, 84842095,259,5,10,3,
84548,0,260,12,1, 84948,0,260,12,1,
84639768,261,5,12,3, 85041830,261,5,12,3,
84748,0,260,3,49, 85148,0,260,3,49,
8480,260,3,50,0, 8520,260,3,50,0,
849260,3,51,0,260, 853260,3,51,0,260,
@@ -853,8 +857,8 @@ public class yyLSLTokens : YyLexer {
853260,3,56,0,260, 857260,3,56,0,260,
8543,57,0,260,3, 8583,57,0,260,3,
855102,0,262,12,1, 859102,0,262,12,1,
85639774,263,5,0,264, 86041836,263,5,0,264,
85711,1,882,0,265, 86111,1,904,0,265,
8584,28,70,0,76, 8624,28,70,0,76,
8590,79,0,65,0, 8630,79,0,65,0,
86084,0,95,0,67, 86484,0,95,0,67,
@@ -862,7 +866,7 @@ public class yyLSLTokens : YyLexer {
86283,0,84,0,65, 86683,0,84,0,65,
8630,78,0,84,0, 8670,78,0,84,0,
8641,-1,3,70,0, 8681,-1,3,70,0,
865262,266,11,1,882, 869262,266,11,1,904,
8660,265,1,-1,3, 8700,265,1,-1,3,
86749,0,260,3,50, 87149,0,260,3,50,
8680,260,3,51,0, 8720,260,3,51,0,
@@ -884,7 +888,7 @@ public class yyLSLTokens : YyLexer {
8841,-1,3,102,0, 8881,-1,3,102,0,
885262,3,69,0,256, 889262,3,69,0,256,
8863,70,0,262,267, 8903,70,0,262,267,
88711,1,882,0,265, 89111,1,904,0,265,
8881,-1,3,49,0, 8921,-1,3,49,0,
889254,3,50,0,254, 893254,3,50,0,254,
8903,51,0,254,3, 8943,51,0,254,3,
@@ -901,15 +905,15 @@ public class yyLSLTokens : YyLexer {
9010,82,0,73,0, 9050,82,0,73,0,
90279,0,68,0,1, 90679,0,68,0,1,
903-1,3,47,0,270, 907-1,3,47,0,270,
90412,1,42698,271,5, 90812,1,44760,271,5,
9053,3,47,0,272, 9093,3,47,0,272,
90612,1,42922,273,5, 91012,1,44984,273,5,
907118,3,1,0,274, 911118,3,1,0,274,
90812,1,42923,275,5, 91212,1,44985,275,5,
909118,3,1,0,274, 913118,3,1,0,274,
9103,9,0,274,3, 9143,9,0,274,3,
91196,33,274,3,13, 91513,0,274,3,0,
9120,274,3,0,3, 9163,274,3,0,6,
913274,3,32,0,274, 917274,3,32,0,274,
9143,33,0,274,3, 9183,33,0,274,3,
91534,0,274,3,35, 91934,0,274,3,35,
@@ -960,16 +964,16 @@ public class yyLSLTokens : YyLexer {
9600,274,3,93,0, 9640,274,3,93,0,
961274,3,94,0,274, 965274,3,94,0,274,
9623,95,0,274,3, 9663,95,0,274,3,
96396,0,274,3,97, 96796,0,274,3,238,
9640,274,3,98,0, 96822,274,3,98,0,
965274,3,99,0,274, 969274,3,99,0,274,
9663,100,0,274,3, 9703,100,0,274,3,
967101,0,274,3,102, 971101,0,274,3,97,
9680,274,3,103,0, 9720,274,3,103,0,
969274,3,104,0,274, 973274,3,104,0,274,
9703,105,0,274,3, 9743,105,0,274,3,
971106,0,274,3,107, 975106,0,274,3,102,
9720,274,3,15,7, 9760,274,3,108,0,
973274,3,109,0,274, 977274,3,109,0,274,
9743,110,0,274,3, 9783,110,0,274,3,
975111,0,274,3,112, 979111,0,274,3,112,
@@ -981,10 +985,10 @@ public class yyLSLTokens : YyLexer {
981274,3,119,0,274, 985274,3,119,0,274,
9823,120,0,274,3, 9863,120,0,274,3,
983121,0,274,3,122, 987121,0,274,3,122,
9840,274,3,108,0, 9880,274,3,123,0,
985274,3,124,0,274, 989274,3,124,0,274,
9863,125,0,274,3, 9903,125,0,274,3,
98796,6,274,3,123, 99196,6,274,3,107,
9880,274,3,126,0, 9920,274,3,126,0,
989274,3,58,15,274, 993274,3,58,15,274,
9903,59,15,274,3, 9943,59,15,274,3,
@@ -1001,11 +1005,11 @@ public class yyLSLTokens : YyLexer {
1001274,3,0,224,274, 1005274,3,0,224,274,
10023,40,32,274,3, 10063,40,32,274,3,
100363,32,274,276,11, 100763,32,274,276,11,
10041,1054,0,165,1, 10081,1076,0,165,1,
1005-1,3,9,0,274, 1009-1,3,9,0,274,
10063,96,33,274,3, 10103,13,0,274,3,
100713,0,274,3,0, 10110,3,274,3,0,
10083,274,3,32,0, 10126,274,3,32,0,
1009274,3,33,0,274, 1013274,3,33,0,274,
10103,34,0,274,3, 10143,34,0,274,3,
101135,0,274,3,36, 101535,0,274,3,36,
@@ -1056,16 +1060,16 @@ public class yyLSLTokens : YyLexer {
10560,274,3,94,0, 10600,274,3,94,0,
1057274,3,95,0,274, 1061274,3,95,0,274,
10583,96,0,274,3, 10623,96,0,274,3,
105997,0,274,3,98, 1063238,22,274,3,98,
10600,274,3,99,0, 10640,274,3,99,0,
1061274,3,100,0,274, 1065274,3,100,0,274,
10623,101,0,274,3, 10663,101,0,274,3,
1063102,0,274,3,103, 106797,0,274,3,103,
10640,274,3,104,0, 10680,274,3,104,0,
1065274,3,105,0,274, 1069274,3,105,0,274,
10663,106,0,274,3, 10703,106,0,274,3,
1067107,0,274,3,15, 1071102,0,274,3,108,
10687,274,3,109,0, 10720,274,3,109,0,
1069274,3,110,0,274, 1073274,3,110,0,274,
10703,111,0,274,3, 10743,111,0,274,3,
1071112,0,274,3,113, 1075112,0,274,3,113,
@@ -1076,11 +1080,11 @@ public class yyLSLTokens : YyLexer {
10760,274,3,119,0, 10800,274,3,119,0,
1077274,3,120,0,274, 1081274,3,120,0,274,
10783,121,0,274,3, 10823,121,0,274,3,
1079122,0,274,3,108, 1083122,0,274,3,123,
10800,274,3,124,0, 10840,274,3,124,0,
1081274,3,125,0,274, 1085274,3,125,0,274,
10823,96,6,274,3, 10863,96,6,274,3,
1083123,0,274,3,126, 1087107,0,274,3,126,
10840,274,3,58,15, 10880,274,3,58,15,
1085274,3,59,15,274, 1089274,3,59,15,274,
10863,136,4,274,3, 10903,136,4,274,3,
@@ -1096,9 +1100,9 @@ public class yyLSLTokens : YyLexer {
10961,274,3,0,224, 11001,274,3,0,224,
1097274,3,40,32,274, 1101274,3,40,32,274,
10983,63,32,274,277, 11023,63,32,274,277,
109911,1,1054,0,165, 110311,1,1076,0,165,
11001,-1,3,61,0, 11041,-1,3,61,0,
1101278,12,1,43173,279, 1105278,12,1,45235,279,
11025,0,280,11,1, 11065,0,280,11,1,
110334,0,281,4,24, 110734,0,281,4,24,
110483,0,76,0,65, 110883,0,76,0,65,
@@ -1107,19 +1111,19 @@ public class yyLSLTokens : YyLexer {
11070,85,0,65,0, 11110,85,0,65,0,
110876,0,83,0,1, 111276,0,83,0,1,
1109-1,3,42,0,282, 1113-1,3,42,0,282,
111012,1,42799,283,5, 111412,1,44861,283,5,
11110,284,11,1,1015, 11150,284,11,1,1037,
11120,165,1,-1,285, 11160,165,1,-1,285,
111311,1,96,0,286, 111711,1,96,0,286,
11144,10,83,0,76, 11184,10,83,0,76,
11150,65,0,83,0, 11190,65,0,83,0,
111672,0,1,-1,3, 112072,0,1,-1,3,
111748,0,287,12,1, 112148,0,287,12,1,
111839296,288,5,13,3, 112241358,288,5,13,3,
1119120,0,289,12,1, 1123120,0,289,12,1,
112039320,290,5,22,3, 112441382,290,5,22,3,
1121102,0,291,12,1, 1125102,0,291,12,1,
112239321,292,5,22,3, 112641383,292,5,22,3,
1123102,0,291,3,48, 1127102,0,291,3,48,
11240,291,3,49,0, 11280,291,3,49,0,
1125291,3,50,0,291, 1129291,3,50,0,291,
@@ -1138,7 +1142,7 @@ public class yyLSLTokens : YyLexer {
11383,68,0,291,3, 11423,68,0,291,3,
113969,0,291,3,70, 114369,0,291,3,70,
11400,291,293,11,1, 11440,291,293,11,1,
1141863,0,294,4,40, 1145885,0,294,4,40,
114272,0,69,0,88, 114672,0,69,0,88,
11430,95,0,73,0, 11470,95,0,73,0,
114478,0,84,0,69, 114878,0,84,0,69,
@@ -1166,9 +1170,9 @@ public class yyLSLTokens : YyLexer {
11660,291,3,70,0, 11700,291,3,70,0,
1167291,0,165,1,-1, 1171291,0,165,1,-1,
11683,48,0,295,12, 11723,48,0,295,12,
11691,39598,296,5,11, 11731,41660,296,5,11,
11703,46,0,297,12, 11743,46,0,297,12,
11711,39701,298,5,14, 11751,41763,298,5,14,
11723,48,0,254,3, 11763,48,0,254,3,
117349,0,254,3,50, 117749,0,254,3,50,
11740,254,3,51,0, 11780,254,3,51,0,
@@ -1180,7 +1184,7 @@ public class yyLSLTokens : YyLexer {
11803,101,0,256,3, 11843,101,0,256,3,
1181102,0,262,3,69, 1185102,0,262,3,69,
11820,256,3,70,0, 11860,256,3,70,0,
1183262,299,11,1,882, 1187262,299,11,1,904,
11840,265,1,-1,3, 11880,265,1,-1,3,
118548,0,295,3,49, 118948,0,295,3,49,
11860,295,3,50,0, 11900,295,3,50,0,
@@ -1190,7 +1194,7 @@ public class yyLSLTokens : YyLexer {
11900,295,3,55,0, 11940,295,3,55,0,
1191295,3,56,0,295, 1195295,3,56,0,295,
11923,57,0,295,300, 11963,57,0,295,300,
119311,1,857,0,301, 119711,1,879,0,301,
11944,32,73,0,78, 11984,32,73,0,78,
11950,84,0,69,0, 11990,84,0,69,0,
119671,0,69,0,82, 120071,0,69,0,82,
@@ -1207,7 +1211,7 @@ public class yyLSLTokens : YyLexer {
120756,0,295,3,54, 121156,0,295,3,54,
12080,295,3,46,0, 12120,295,3,46,0,
1209297,3,57,0,295, 1213297,3,57,0,295,
1210302,11,1,857,0, 1214302,11,1,879,0,
1211301,1,-1,3,49, 1215301,1,-1,3,49,
12120,295,3,50,0, 12160,295,3,50,0,
1213295,3,51,0,295, 1217295,3,51,0,295,
@@ -1217,16 +1221,16 @@ public class yyLSLTokens : YyLexer {
1217295,3,56,0,295, 1221295,3,56,0,295,
12183,57,0,295,3, 12223,57,0,295,3,
121959,0,303,12,1, 122359,0,303,12,1,
122043300,304,5,0,305, 122445362,304,5,0,305,
122111,1,46,0,306, 122511,1,46,0,306,
12224,18,83,0,69, 12264,18,83,0,69,
12230,77,0,73,0, 12270,77,0,73,0,
122467,0,79,0,76, 122867,0,79,0,76,
12250,79,0,78,0, 12290,79,0,78,0,
12261,-1,3,60,0, 12301,-1,3,60,0,
1227307,12,1,44268,308, 1231307,12,1,46330,308,
12285,2,3,60,0, 12325,2,3,60,0,
1229309,12,1,44382,310, 1233309,12,1,46444,310,
12305,0,311,11,1, 12345,0,311,11,1,
1231197,0,312,4,20, 1235197,0,312,4,20,
123276,0,69,0,70, 123676,0,69,0,70,
@@ -1234,7 +1238,7 @@ public class yyLSLTokens : YyLexer {
123483,0,72,0,73, 123883,0,72,0,73,
12350,70,0,84,0, 12390,70,0,84,0,
12361,-1,3,61,0, 12401,-1,3,61,0,
1237313,12,1,44503,314, 1241313,12,1,46565,314,
12385,0,315,11,1, 12425,0,315,11,1,
1239148,0,316,4,22, 1243148,0,316,4,22,
124076,0,69,0,83, 124476,0,69,0,83,
@@ -1249,9 +1253,9 @@ public class yyLSLTokens : YyLexer {
12490,71,0,76,0, 12530,71,0,76,0,
125069,0,1,-1,3, 125469,0,1,-1,3,
125161,0,319,12,1, 125561,0,319,12,1,
125244629,320,5,1,3, 125646691,320,5,1,3,
125361,0,321,12,1, 125761,0,321,12,1,
125444744,322,5,0,323, 125846806,322,5,0,323,
125511,1,136,0,324, 125911,1,136,0,324,
12564,26,69,0,81, 12604,26,69,0,81,
12570,85,0,65,0, 12610,85,0,65,0,
@@ -1264,9 +1268,9 @@ public class yyLSLTokens : YyLexer {
126481,0,85,0,65, 126881,0,85,0,65,
12650,76,0,83,0, 12690,76,0,83,0,
12661,-1,3,62,0, 12701,-1,3,62,0,
1267327,12,1,44870,328, 1271327,12,1,46932,328,
12685,2,3,61,0, 12725,2,3,61,0,
1269329,12,1,44985,330, 1273329,12,1,47047,330,
12705,0,331,11,1, 12745,0,331,11,1,
1271154,0,332,4,28, 1275154,0,332,4,28,
127271,0,82,0,69, 127671,0,82,0,69,
@@ -1276,7 +1280,7 @@ public class yyLSLTokens : YyLexer {
127685,0,65,0,76, 128085,0,65,0,76,
12770,83,0,1,-1, 12810,83,0,1,-1,
12783,62,0,333,12, 12823,62,0,333,12,
12791,45106,334,5,0, 12831,47168,334,5,0,
1280335,11,1,203,0, 1284335,11,1,203,0,
1281336,4,22,82,0, 1285336,4,22,82,0,
128273,0,71,0,72, 128673,0,71,0,72,
@@ -1291,13 +1295,13 @@ public class yyLSLTokens : YyLexer {
12910,71,0,76,0, 12950,71,0,76,0,
129269,0,1,-1,3, 129669,0,1,-1,3,
129364,0,339,12,1, 129764,0,339,12,1,
129443421,340,5,0,341, 129845483,340,5,0,341,
129511,1,106,0,342, 129911,1,106,0,342,
12964,4,65,0,84, 13004,4,65,0,84,
12970,1,-1,3,65, 13010,1,-1,3,65,
12980,343,12,1,1675, 13020,343,12,1,1697,
1299344,5,63,3,109, 1303344,5,63,3,109,
13000,345,12,1,1676, 13040,345,12,1,1698,
1301346,5,63,3,109, 1305346,5,63,3,109,
13020,345,3,110,0, 13060,345,3,110,0,
1303345,3,111,0,345, 1307345,3,111,0,345,
@@ -1349,7 +1353,7 @@ public class yyLSLTokens : YyLexer {
1349105,0,345,3,106, 1353105,0,345,3,106,
13500,345,3,107,0, 13540,345,3,107,0,
1351345,3,108,0,345, 1355345,3,108,0,345,
1352347,11,1,845,0, 1356347,11,1,867,0,
1353348,4,10,73,0, 1357348,4,10,73,0,
135468,0,69,0,78, 135868,0,69,0,78,
13550,84,0,1,-1, 13590,84,0,1,-1,
@@ -1403,7 +1407,7 @@ public class yyLSLTokens : YyLexer {
1403345,3,106,0,345, 1407345,3,106,0,345,
14043,107,0,345,3, 14083,107,0,345,3,
1405108,0,345,349,11, 1409108,0,345,349,11,
14061,845,0,348,1, 14101,867,0,348,1,
1407-1,3,66,0,343, 1411-1,3,66,0,343,
14083,67,0,343,3, 14123,67,0,343,3,
140968,0,343,3,69, 141368,0,343,3,69,
@@ -1425,7 +1429,7 @@ public class yyLSLTokens : YyLexer {
142588,0,343,3,89, 142988,0,343,3,89,
14260,343,3,90,0, 14300,343,3,90,0,
1427343,3,91,0,350, 1431343,3,91,0,350,
142812,1,41124,351,5, 143212,1,43186,351,5,
14290,352,11,1,126, 14330,352,11,1,126,
14300,353,4,24,76, 14340,353,4,24,76,
14310,69,0,70,0, 14350,69,0,70,0,
@@ -1434,7 +1438,7 @@ public class yyLSLTokens : YyLexer {
143467,0,75,0,69, 143867,0,75,0,69,
14350,84,0,1,-1, 14390,84,0,1,-1,
14363,93,0,354,12, 14403,93,0,354,12,
14371,41489,355,5,0, 14411,43551,355,5,0,
1438356,11,1,131,0, 1442356,11,1,131,0,
1439357,4,26,82,0, 1443357,4,26,82,0,
144073,0,71,0,72, 144473,0,71,0,72,
@@ -1443,21 +1447,21 @@ public class yyLSLTokens : YyLexer {
14430,67,0,75,0, 14470,67,0,75,0,
144469,0,84,0,1, 144869,0,84,0,1,
1445-1,3,94,0,358, 1449-1,3,94,0,358,
144612,1,45593,359,5, 145012,1,47655,359,5,
14470,360,11,1,170, 14510,360,11,1,170,
14480,361,4,10,67, 14520,361,4,10,67,
14490,65,0,82,0, 14530,65,0,82,0,
145069,0,84,0,1, 145469,0,84,0,1,
1451-1,3,95,0,343, 1455-1,3,95,0,343,
14523,97,0,362,12, 14563,97,0,362,12,
14531,20677,363,5,63, 14571,22739,363,5,63,
14543,109,0,345,3, 14583,109,0,345,3,
1455110,0,345,3,111, 1459110,0,345,3,111,
14560,345,3,112,0, 14600,345,3,112,0,
1457345,3,113,0,345, 1461345,3,113,0,345,
14583,114,0,345,3, 14623,114,0,345,3,
1459115,0,345,3,116, 1463115,0,345,3,116,
14600,364,12,1,20712, 14640,364,12,1,22774,
1461365,5,63,3,109, 1465365,5,63,3,109,
14620,345,3,110,0, 14660,345,3,110,0,
1463345,3,111,0,345, 1467345,3,111,0,345,
@@ -1465,7 +1469,7 @@ public class yyLSLTokens : YyLexer {
1465113,0,345,3,114, 1469113,0,345,3,114,
14660,345,3,115,0, 14700,345,3,115,0,
1467345,3,116,0,366, 1471345,3,116,0,366,
146812,1,20747,367,5, 147212,1,22809,367,5,
146963,3,109,0,345, 147363,3,109,0,345,
14703,110,0,345,3, 14743,110,0,345,3,
1471111,0,345,3,112, 1475111,0,345,3,112,
@@ -1508,7 +1512,7 @@ public class yyLSLTokens : YyLexer {
15080,345,3,90,0, 15120,345,3,90,0,
1509345,3,95,0,345, 1513345,3,95,0,345,
15103,97,0,368,12, 15143,97,0,368,12,
15111,20790,369,5,63, 15151,22852,369,5,63,
15123,109,0,345,3, 15163,109,0,345,3,
1513110,0,345,3,111, 1517110,0,345,3,111,
15140,345,3,112,0, 15180,345,3,112,0,
@@ -1552,7 +1556,7 @@ public class yyLSLTokens : YyLexer {
15523,95,0,345,3, 15563,95,0,345,3,
155397,0,345,3,98, 155797,0,345,3,98,
15540,345,3,99,0, 15580,345,3,99,0,
1555370,12,1,20835,371, 1559370,12,1,22897,371,
15565,63,3,109,0, 15605,63,3,109,0,
1557345,3,110,0,345, 1561345,3,110,0,345,
15583,111,0,345,3, 15623,111,0,345,3,
@@ -1601,7 +1605,7 @@ public class yyLSLTokens : YyLexer {
1601345,3,102,0,345, 1605345,3,102,0,345,
16023,103,0,345,3, 16063,103,0,345,3,
1603104,0,372,12,1, 1607104,0,372,12,1,
160420885,373,5,63,3, 160822947,373,5,63,3,
1605109,0,345,3,110, 1609109,0,345,3,110,
16060,345,3,111,0, 16100,345,3,111,0,
1607345,3,112,0,345, 1611345,3,112,0,345,
@@ -1662,7 +1666,7 @@ public class yyLSLTokens : YyLexer {
16623,105,0,345,3, 16663,105,0,345,3,
1663106,0,345,3,107, 1667106,0,345,3,107,
16640,345,3,108,0, 16680,345,3,108,0,
1665345,376,11,1,845, 1669345,376,11,1,867,
16660,348,1,-1,3, 16700,348,1,-1,3,
1667100,0,345,3,101, 1671100,0,345,3,101,
16680,345,3,102,0, 16720,345,3,102,0,
@@ -1671,7 +1675,7 @@ public class yyLSLTokens : YyLexer {
1671105,0,345,3,106, 1675105,0,345,3,106,
16720,345,3,107,0, 16760,345,3,107,0,
1673345,3,108,0,345, 1677345,3,108,0,345,
1674377,11,1,845,0, 1678377,11,1,867,0,
1675348,1,-1,3,98, 1679348,1,-1,3,98,
16760,345,3,99,0, 16800,345,3,99,0,
1677345,3,100,0,345, 1681345,3,100,0,345,
@@ -1682,7 +1686,7 @@ public class yyLSLTokens : YyLexer {
16823,106,0,345,3, 16863,106,0,345,3,
1683107,0,345,3,108, 1687107,0,345,3,108,
16840,345,378,11,1, 16880,345,378,11,1,
1685845,0,348,1,-1, 1689867,0,348,1,-1,
16863,117,0,345,3, 16903,117,0,345,3,
1687118,0,345,3,119, 1691118,0,345,3,119,
16880,345,3,120,0, 16920,345,3,120,0,
@@ -1717,17 +1721,17 @@ public class yyLSLTokens : YyLexer {
1717345,3,88,0,345, 1721345,3,88,0,345,
17183,89,0,345,3, 17223,89,0,345,3,
171990,0,345,3,95, 172390,0,345,3,95,
17200,379,12,1,21278, 17240,379,12,1,23340,
1721380,5,63,3,109, 1725380,5,63,3,109,
17220,345,3,110,0, 17260,345,3,110,0,
1723345,3,111,0,345, 1727345,3,111,0,345,
17243,112,0,345,3, 17283,112,0,345,3,
1725113,0,345,3,114, 1729113,0,345,3,114,
17260,381,12,1,21311, 17300,381,12,1,23373,
1727382,5,63,3,109, 1731382,5,63,3,109,
17280,345,3,110,0, 17320,345,3,110,0,
1729345,3,111,0,383, 1733345,3,111,0,383,
173012,1,21341,384,5, 173412,1,23403,384,5,
173163,3,109,0,345, 173563,3,109,0,345,
17323,110,0,345,3, 17363,110,0,345,3,
1733111,0,345,3,112, 1737111,0,345,3,112,
@@ -1735,7 +1739,7 @@ public class yyLSLTokens : YyLexer {
1735345,3,114,0,345, 1739345,3,114,0,345,
17363,115,0,345,3, 17403,115,0,345,3,
1737116,0,385,12,1, 1741116,0,385,12,1,
173821376,386,5,63,3, 174223438,386,5,63,3,
1739109,0,345,3,110, 1743109,0,345,3,110,
17400,345,3,111,0, 17440,345,3,111,0,
1741345,3,112,0,345, 1745345,3,112,0,345,
@@ -1777,14 +1781,14 @@ public class yyLSLTokens : YyLexer {
1777345,3,89,0,345, 1781345,3,89,0,345,
17783,90,0,345,3, 17823,90,0,345,3,
177995,0,387,12,1, 178395,0,387,12,1,
178021462,388,5,63,3, 178423524,388,5,63,3,
1781109,0,345,3,110, 1785109,0,345,3,110,
17820,345,3,111,0, 17860,345,3,111,0,
1783345,3,112,0,345, 1787345,3,112,0,345,
17843,113,0,345,3, 17883,113,0,345,3,
1785114,0,345,3,115, 1789114,0,345,3,115,
17860,345,3,116,0, 17900,345,3,116,0,
1787389,12,1,21497,390, 1791389,12,1,23559,390,
17885,63,3,109,0, 17925,63,3,109,0,
1789345,3,110,0,345, 1793345,3,110,0,345,
17903,111,0,345,3, 17943,111,0,345,3,
@@ -1827,13 +1831,13 @@ public class yyLSLTokens : YyLexer {
182789,0,345,3,90, 183189,0,345,3,90,
18280,345,3,95,0, 18320,345,3,95,0,
1829345,3,97,0,391, 1833345,3,97,0,391,
183012,1,21540,392,5, 183412,1,23602,392,5,
183163,3,109,0,345, 183563,3,109,0,345,
18323,110,0,345,3, 18363,110,0,345,3,
1833111,0,345,3,112, 1837111,0,345,3,112,
18340,345,3,113,0, 18380,345,3,113,0,
1835345,3,114,0,393, 1839345,3,114,0,393,
183612,1,21573,394,5, 184012,1,23635,394,5,
183763,3,109,0,345, 184163,3,109,0,345,
18383,110,0,345,3, 18423,110,0,345,3,
1839111,0,345,3,112, 1843111,0,345,3,112,
@@ -1881,7 +1885,7 @@ public class yyLSLTokens : YyLexer {
1881345,3,101,0,345, 1885345,3,101,0,345,
18823,102,0,345,3, 18863,102,0,345,3,
1883103,0,395,12,1, 1887103,0,395,12,1,
188421622,396,5,63,3, 188823684,396,5,63,3,
1885109,0,345,3,110, 1889109,0,345,3,110,
18860,345,3,111,0, 18900,345,3,111,0,
1887345,3,112,0,345, 1891345,3,112,0,345,
@@ -1927,14 +1931,14 @@ public class yyLSLTokens : YyLexer {
1927345,3,99,0,345, 1931345,3,99,0,345,
19283,100,0,345,3, 19323,100,0,345,3,
1929101,0,397,12,1, 1933101,0,397,12,1,
193021669,398,5,63,3, 193423731,398,5,63,3,
1931109,0,345,3,110, 1935109,0,345,3,110,
19320,345,3,111,0, 19360,345,3,111,0,
1933345,3,112,0,345, 1937345,3,112,0,345,
19343,113,0,345,3, 19383,113,0,345,3,
1935114,0,345,3,115, 1939114,0,345,3,115,
19360,345,3,116,0, 19400,345,3,116,0,
1937399,12,1,21704,400, 1941399,12,1,23766,400,
19385,63,3,109,0, 19425,63,3,109,0,
1939345,3,110,0,345, 1943345,3,110,0,345,
19403,111,0,345,3, 19443,111,0,345,3,
@@ -2040,19 +2044,19 @@ public class yyLSLTokens : YyLexer {
20403,106,0,345,3, 20443,106,0,345,3,
2041107,0,345,3,108, 2045107,0,345,3,108,
20420,345,403,11,1, 20460,345,403,11,1,
2043845,0,348,1,-1, 2047867,0,348,1,-1,
20443,102,0,345,3, 20483,102,0,345,3,
2045103,0,345,3,104, 2049103,0,345,3,104,
20460,345,3,105,0, 20500,345,3,105,0,
2047345,3,106,0,345, 2051345,3,106,0,345,
20483,107,0,345,3, 20523,107,0,345,3,
2049108,0,345,404,11, 2053108,0,345,404,11,
20501,845,0,348,1, 20541,867,0,348,1,
2051-1,3,104,0,345, 2055-1,3,104,0,345,
20523,105,0,345,3, 20563,105,0,345,3,
2053106,0,345,3,107, 2057106,0,345,3,107,
20540,345,3,108,0, 20580,345,3,108,0,
2055345,405,11,1,845, 2059345,405,11,1,867,
20560,348,1,-1,3, 20600,348,1,-1,3,
2057115,0,345,3,116, 2061115,0,345,3,116,
20580,345,3,117,0, 20620,345,3,117,0,
@@ -2100,7 +2104,7 @@ public class yyLSLTokens : YyLexer {
21003,106,0,345,3, 21043,106,0,345,3,
2101107,0,345,3,108, 2105107,0,345,3,108,
21020,345,406,11,1, 21060,345,406,11,1,
2103845,0,348,1,-1, 2107867,0,348,1,-1,
21043,98,0,345,3, 21083,98,0,345,3,
210599,0,345,3,100, 210999,0,345,3,100,
21060,345,3,101,0, 21100,345,3,101,0,
@@ -2110,7 +2114,7 @@ public class yyLSLTokens : YyLexer {
21100,345,3,106,0, 21140,345,3,106,0,
2111345,3,107,0,345, 2115345,3,107,0,345,
21123,108,0,345,407, 21163,108,0,345,407,
211311,1,845,0,348, 211711,1,867,0,348,
21141,-1,3,117,0, 21181,-1,3,117,0,
2115345,3,118,0,345, 2119345,3,118,0,345,
21163,119,0,345,3, 21203,119,0,345,3,
@@ -2156,7 +2160,7 @@ public class yyLSLTokens : YyLexer {
21563,106,0,345,3, 21603,106,0,345,3,
2157107,0,345,3,108, 2161107,0,345,3,108,
21580,345,408,11,1, 21620,345,408,11,1,
2159845,0,348,1,-1, 2163867,0,348,1,-1,
21603,97,0,345,3, 21643,97,0,345,3,
216198,0,345,3,99, 216598,0,345,3,99,
21620,345,3,100,0, 21660,345,3,100,0,
@@ -2167,7 +2171,7 @@ public class yyLSLTokens : YyLexer {
2167345,3,106,0,345, 2171345,3,106,0,345,
21683,107,0,345,3, 21723,107,0,345,3,
2169108,0,345,409,11, 2173108,0,345,409,11,
21701,845,0,348,1, 21741,867,0,348,1,
2171-1,3,117,0,345, 2175-1,3,117,0,345,
21723,118,0,345,3, 21763,118,0,345,3,
2173119,0,345,3,120, 2177119,0,345,3,120,
@@ -2212,7 +2216,7 @@ public class yyLSLTokens : YyLexer {
22123,105,0,345,3, 22163,105,0,345,3,
2213106,0,345,3,107, 2217106,0,345,3,107,
22140,345,3,108,0, 22180,345,3,108,0,
2215345,410,11,1,845, 2219345,410,11,1,867,
22160,348,1,-1,3, 22200,348,1,-1,3,
2217112,0,345,3,113, 2221112,0,345,3,113,
22180,345,3,114,0, 22220,345,3,114,0,
@@ -2262,10 +2266,10 @@ public class yyLSLTokens : YyLexer {
22620,345,3,106,0, 22660,345,3,106,0,
2263345,3,107,0,345, 2267345,3,107,0,345,
22643,108,0,345,411, 22683,108,0,345,411,
226511,1,845,0,348, 226911,1,867,0,348,
22661,-1,3,115,0, 22701,-1,3,115,0,
2267345,3,116,0,412, 2271345,3,116,0,412,
226812,1,22513,413,5, 227212,1,24575,413,5,
226963,3,109,0,345, 227363,3,109,0,345,
22703,110,0,345,3, 22743,110,0,345,3,
2271111,0,345,3,112, 2275111,0,345,3,112,
@@ -2308,13 +2312,13 @@ public class yyLSLTokens : YyLexer {
23080,345,3,90,0, 23120,345,3,90,0,
2309345,3,95,0,345, 2313345,3,95,0,345,
23103,97,0,414,12, 23143,97,0,414,12,
23111,22556,415,5,63, 23151,24618,415,5,63,
23123,109,0,345,3, 23163,109,0,345,3,
2313110,0,345,3,111, 2317110,0,345,3,111,
23140,345,3,112,0, 23180,345,3,112,0,
2315345,3,113,0,345, 2319345,3,113,0,345,
23163,114,0,416,12, 23203,114,0,416,12,
23171,22589,417,5,63, 23211,24651,417,5,63,
23183,109,0,345,3, 23223,109,0,345,3,
2319110,0,345,3,111, 2323110,0,345,3,111,
23200,345,3,112,0, 23240,345,3,112,0,
@@ -2361,7 +2365,7 @@ public class yyLSLTokens : YyLexer {
2361345,3,100,0,345, 2365345,3,100,0,345,
23623,101,0,345,3, 23663,101,0,345,3,
2363102,0,345,3,103, 2367102,0,345,3,103,
23640,418,12,1,22638, 23680,418,12,1,24700,
2365419,5,63,3,109, 2369419,5,63,3,109,
23660,345,3,110,0, 23700,345,3,110,0,
2367345,3,111,0,345, 2371345,3,111,0,345,
@@ -2407,7 +2411,7 @@ public class yyLSLTokens : YyLexer {
2407345,3,98,0,345, 2411345,3,98,0,345,
24083,99,0,345,3, 24123,99,0,345,3,
2409100,0,345,3,101, 2413100,0,345,3,101,
24100,420,12,1,22685, 24140,420,12,1,24747,
2411421,5,63,3,109, 2415421,5,63,3,109,
24120,345,3,110,0, 24160,345,3,110,0,
2413345,3,111,0,345, 2417345,3,111,0,345,
@@ -2415,7 +2419,7 @@ public class yyLSLTokens : YyLexer {
2415113,0,345,3,114, 2419113,0,345,3,114,
24160,345,3,115,0, 24200,345,3,115,0,
2417345,3,116,0,422, 2421345,3,116,0,422,
241812,1,22720,423,5, 242212,1,24782,423,5,
241963,3,109,0,345, 242363,3,109,0,345,
24203,110,0,345,3, 24243,110,0,345,3,
2421111,0,345,3,112, 2425111,0,345,3,112,
@@ -2519,20 +2523,20 @@ public class yyLSLTokens : YyLexer {
2519345,3,106,0,345, 2523345,3,106,0,345,
25203,107,0,345,3, 25243,107,0,345,3,
2521108,0,345,426,11, 2525108,0,345,426,11,
25221,845,0,348,1, 25261,867,0,348,1,
2523-1,3,102,0,345, 2527-1,3,102,0,345,
25243,103,0,345,3, 25283,103,0,345,3,
2525104,0,345,3,105, 2529104,0,345,3,105,
25260,345,3,106,0, 25300,345,3,106,0,
2527345,3,107,0,345, 2531345,3,107,0,345,
25283,108,0,345,427, 25323,108,0,345,427,
252911,1,845,0,348, 253311,1,867,0,348,
25301,-1,3,104,0, 25341,-1,3,104,0,
2531345,3,105,0,345, 2535345,3,105,0,345,
25323,106,0,345,3, 25363,106,0,345,3,
2533107,0,345,3,108, 2537107,0,345,3,108,
25340,345,428,11,1, 25380,345,428,11,1,
2535845,0,348,1,-1, 2539867,0,348,1,-1,
25363,115,0,345,3, 25403,115,0,345,3,
2537116,0,345,3,117, 2541116,0,345,3,117,
25380,345,3,118,0, 25420,345,3,118,0,
@@ -2579,7 +2583,7 @@ public class yyLSLTokens : YyLexer {
2579345,3,106,0,345, 2583345,3,106,0,345,
25803,107,0,345,3, 25843,107,0,345,3,
2581108,0,345,429,11, 2585108,0,345,429,11,
25821,845,0,348,1, 25861,867,0,348,1,
2583-1,3,98,0,345, 2587-1,3,98,0,345,
25843,99,0,345,3, 25883,99,0,345,3,
2585100,0,345,3,101, 2589100,0,345,3,101,
@@ -2589,7 +2593,7 @@ public class yyLSLTokens : YyLexer {
2589105,0,345,3,106, 2593105,0,345,3,106,
25900,345,3,107,0, 25940,345,3,107,0,
2591345,3,108,0,345, 2595345,3,108,0,345,
2592430,11,1,845,0, 2596430,11,1,867,0,
2593348,1,-1,3,117, 2597348,1,-1,3,117,
25940,345,3,118,0, 25980,345,3,118,0,
2595345,3,119,0,345, 2599345,3,119,0,345,
@@ -2635,7 +2639,7 @@ public class yyLSLTokens : YyLexer {
2635345,3,106,0,345, 2639345,3,106,0,345,
26363,107,0,345,3, 26403,107,0,345,3,
2637108,0,345,431,11, 2641108,0,345,431,11,
26381,845,0,348,1, 26421,867,0,348,1,
2639-1,3,97,0,345, 2643-1,3,97,0,345,
26403,98,0,345,3, 26443,98,0,345,3,
264199,0,345,3,100, 264599,0,345,3,100,
@@ -2646,7 +2650,7 @@ public class yyLSLTokens : YyLexer {
26460,345,3,106,0, 26500,345,3,106,0,
2647345,3,107,0,345, 2651345,3,107,0,345,
26483,108,0,345,432, 26523,108,0,345,432,
264911,1,845,0,348, 265311,1,867,0,348,
26501,-1,3,117,0, 26541,-1,3,117,0,
2651345,3,118,0,345, 2655345,3,118,0,345,
26523,119,0,345,3, 26563,119,0,345,3,
@@ -2692,16 +2696,16 @@ public class yyLSLTokens : YyLexer {
26923,106,0,345,3, 26963,106,0,345,3,
2693107,0,345,3,108, 2697107,0,345,3,108,
26940,345,433,11,1, 26980,345,433,11,1,
2695845,0,348,1,-1, 2699867,0,348,1,-1,
26963,98,0,343,3, 27003,98,0,343,3,
269799,0,434,12,1, 270199,0,434,12,1,
269823439,435,5,63,3, 270225501,435,5,63,3,
2699109,0,345,3,110, 2703109,0,345,3,110,
27000,345,3,111,0, 27040,345,3,111,0,
2701436,12,1,23469,437, 2705436,12,1,25531,437,
27025,63,3,109,0, 27065,63,3,109,0,
2703345,3,110,0,438, 2707345,3,110,0,438,
270412,1,23498,439,5, 270812,1,25560,439,5,
270563,3,109,0,345, 270963,3,109,0,345,
27063,110,0,345,3, 27103,110,0,345,3,
2707111,0,345,3,112, 2711111,0,345,3,112,
@@ -2709,16 +2713,16 @@ public class yyLSLTokens : YyLexer {
2709345,3,114,0,345, 2713345,3,114,0,345,
27103,115,0,345,3, 27143,115,0,345,3,
2711116,0,440,12,1, 2715116,0,440,12,1,
271223533,441,5,63,3, 271625595,441,5,63,3,
2713109,0,345,3,110, 2717109,0,345,3,110,
27140,345,3,111,0, 27180,345,3,111,0,
2715345,3,112,0,345, 2719345,3,112,0,345,
27163,113,0,345,3, 27203,113,0,345,3,
2717114,0,442,12,1, 2721114,0,442,12,1,
271823566,443,5,63,3, 272225628,443,5,63,3,
2719109,0,345,3,110, 2723109,0,345,3,110,
27200,345,3,111,0, 27240,345,3,111,0,
2721444,12,1,23596,445, 2725444,12,1,25658,445,
27225,63,3,109,0, 27265,63,3,109,0,
2723345,3,110,0,345, 2727345,3,110,0,345,
27243,111,0,345,3, 27283,111,0,345,3,
@@ -2770,7 +2774,7 @@ public class yyLSLTokens : YyLexer {
27700,345,3,106,0, 27740,345,3,106,0,
2771345,3,107,0,345, 2775345,3,107,0,345,
27723,108,0,446,12, 27763,108,0,446,12,
27731,23650,447,5,63, 27771,25712,447,5,63,
27743,109,0,345,3, 27783,109,0,345,3,
2775110,0,345,3,111, 2779110,0,345,3,111,
27760,345,3,112,0, 27800,345,3,112,0,
@@ -2829,7 +2833,7 @@ public class yyLSLTokens : YyLexer {
28290,69,0,86,0, 28330,69,0,86,0,
283069,0,78,0,84, 283469,0,78,0,84,
28310,1,-1,450,11, 28350,1,-1,450,11,
28321,845,0,348,1, 28361,867,0,348,1,
2833-1,3,112,0,345, 2837-1,3,112,0,345,
28343,113,0,345,3, 28383,113,0,345,3,
2835114,0,345,3,115, 2839114,0,345,3,115,
@@ -2878,7 +2882,7 @@ public class yyLSLTokens : YyLexer {
28783,105,0,345,3, 28823,105,0,345,3,
2879106,0,345,3,107, 2883106,0,345,3,107,
28800,345,3,108,0, 28840,345,3,108,0,
2881345,451,11,1,845, 2885345,451,11,1,867,
28820,348,1,-1,3, 28860,348,1,-1,3,
2883115,0,345,3,116, 2887115,0,345,3,116,
28840,345,3,117,0, 28880,345,3,117,0,
@@ -2926,7 +2930,7 @@ public class yyLSLTokens : YyLexer {
29263,106,0,345,3, 29303,106,0,345,3,
2927107,0,345,3,108, 2931107,0,345,3,108,
29280,345,452,11,1, 29320,345,452,11,1,
2929845,0,348,1,-1, 2933867,0,348,1,-1,
29303,117,0,345,3, 29343,117,0,345,3,
2931118,0,345,3,119, 2935118,0,345,3,119,
29320,345,3,120,0, 29360,345,3,120,0,
@@ -2971,7 +2975,7 @@ public class yyLSLTokens : YyLexer {
2971105,0,345,3,106, 2975105,0,345,3,106,
29720,345,3,107,0, 29760,345,3,107,0,
2973345,3,108,0,345, 2977345,3,108,0,345,
2974453,11,1,845,0, 2978453,11,1,867,0,
2975348,1,-1,3,111, 2979348,1,-1,3,111,
29760,345,3,112,0, 29800,345,3,112,0,
2977345,3,113,0,345, 2981345,3,113,0,345,
@@ -3021,7 +3025,7 @@ public class yyLSLTokens : YyLexer {
3021345,3,105,0,345, 3025345,3,105,0,345,
30223,106,0,345,3, 30263,106,0,345,3,
3023107,0,345,3,108, 3027107,0,345,3,108,
30240,454,12,1,24123, 30280,454,12,1,26185,
3025455,5,63,3,109, 3029455,5,63,3,109,
30260,345,3,110,0, 30300,345,3,110,0,
3027345,3,111,0,345, 3031345,3,111,0,345,
@@ -3073,7 +3077,7 @@ public class yyLSLTokens : YyLexer {
3073105,0,345,3,106, 3077105,0,345,3,106,
30740,345,3,107,0, 30780,345,3,107,0,
3075345,3,108,0,456, 3079345,3,108,0,456,
307612,1,24177,457,5, 308012,1,26239,457,5,
307763,3,109,0,345, 308163,3,109,0,345,
30783,110,0,345,3, 30823,110,0,345,3,
3079111,0,345,3,112, 3083111,0,345,3,112,
@@ -3122,14 +3126,14 @@ public class yyLSLTokens : YyLexer {
31223,102,0,345,3, 31263,102,0,345,3,
3123103,0,345,3,104, 3127103,0,345,3,104,
31240,345,3,105,0, 31280,345,3,105,0,
3125458,12,1,24228,459, 3129458,12,1,26290,459,
31265,63,3,109,0, 31305,63,3,109,0,
3127345,3,110,0,345, 3131345,3,110,0,345,
31283,111,0,345,3, 31323,111,0,345,3,
3129112,0,345,3,113, 3133112,0,345,3,113,
31300,345,3,114,0, 31340,345,3,114,0,
3131345,3,115,0,460, 3135345,3,115,0,460,
313212,1,24262,461,5, 313612,1,26324,461,5,
313363,3,109,0,345, 313763,3,109,0,345,
31343,110,0,345,3, 31383,110,0,345,3,
3135111,0,345,3,112, 3139111,0,345,3,112,
@@ -3178,14 +3182,14 @@ public class yyLSLTokens : YyLexer {
31783,102,0,345,3, 31823,102,0,345,3,
3179103,0,345,3,104, 3183103,0,345,3,104,
31800,345,3,105,0, 31840,345,3,105,0,
3181462,12,1,24313,463, 3185462,12,1,26375,463,
31825,63,3,109,0, 31865,63,3,109,0,
3183345,3,110,0,345, 3187345,3,110,0,345,
31843,111,0,464,12, 31883,111,0,464,12,
31851,24343,465,5,63, 31891,26405,465,5,63,
31863,109,0,345,3, 31903,109,0,345,3,
3187110,0,466,12,1, 3191110,0,466,12,1,
318824372,467,5,63,3, 319226434,467,5,63,3,
3189109,0,345,3,110, 3193109,0,345,3,110,
31900,345,3,111,0, 31940,345,3,111,0,
3191345,3,112,0,345, 3195345,3,112,0,345,
@@ -3227,13 +3231,13 @@ public class yyLSLTokens : YyLexer {
3227345,3,89,0,345, 3231345,3,89,0,345,
32283,90,0,345,3, 32323,90,0,345,3,
322995,0,468,12,1, 323395,0,468,12,1,
323024458,469,5,63,3, 323426520,469,5,63,3,
3231109,0,345,3,110, 3235109,0,345,3,110,
32320,345,3,111,0, 32360,345,3,111,0,
3233345,3,112,0,345, 3237345,3,112,0,345,
32343,113,0,345,3, 32383,113,0,345,3,
3235114,0,345,3,115, 3239114,0,345,3,115,
32360,470,12,1,24492, 32400,470,12,1,26554,
3237471,5,63,3,109, 3241471,5,63,3,109,
32380,345,3,110,0, 32420,345,3,110,0,
3239345,3,111,0,345, 3243345,3,111,0,345,
@@ -3241,7 +3245,7 @@ public class yyLSLTokens : YyLexer {
3241113,0,345,3,114, 3245113,0,345,3,114,
32420,345,3,115,0, 32460,345,3,115,0,
3243345,3,116,0,472, 3247345,3,116,0,472,
324412,1,24527,473,5, 324812,1,26589,473,5,
324563,3,109,0,345, 324963,3,109,0,345,
32463,110,0,345,3, 32503,110,0,345,3,
3247111,0,345,3,112, 3251111,0,345,3,112,
@@ -3284,20 +3288,20 @@ public class yyLSLTokens : YyLexer {
32840,345,3,90,0, 32880,345,3,90,0,
3285345,3,95,0,345, 3289345,3,95,0,345,
32863,97,0,474,12, 32903,97,0,474,12,
32871,24570,475,5,63, 32911,26632,475,5,63,
32883,109,0,345,3, 32923,109,0,345,3,
3289110,0,345,3,111, 3293110,0,345,3,111,
32900,345,3,112,0, 32940,345,3,112,0,
3291345,3,113,0,345, 3295345,3,113,0,345,
32923,114,0,476,12, 32963,114,0,476,12,
32931,24603,477,5,63, 32971,26665,477,5,63,
32943,109,0,345,3, 32983,109,0,345,3,
3295110,0,345,3,111, 3299110,0,345,3,111,
32960,345,3,112,0, 33000,345,3,112,0,
3297345,3,113,0,345, 3301345,3,113,0,345,
32983,114,0,345,3, 33023,114,0,345,3,
3299115,0,345,3,116, 3303115,0,345,3,116,
33000,478,12,1,24638, 33040,478,12,1,26700,
3301479,5,63,3,109, 3305479,5,63,3,109,
33020,345,3,110,0, 33060,345,3,110,0,
3303345,3,111,0,345, 3307345,3,111,0,345,
@@ -3404,7 +3408,7 @@ public class yyLSLTokens : YyLexer {
34043,106,0,345,3, 34083,106,0,345,3,
3405107,0,345,3,108, 3409107,0,345,3,108,
34060,345,482,11,1, 34100,345,482,11,1,
3407845,0,348,1,-1, 3411867,0,348,1,-1,
34083,115,0,345,3, 34123,115,0,345,3,
3409116,0,345,3,117, 3413116,0,345,3,117,
34100,345,3,118,0, 34140,345,3,118,0,
@@ -3451,7 +3455,7 @@ public class yyLSLTokens : YyLexer {
3451345,3,106,0,345, 3455345,3,106,0,345,
34523,107,0,345,3, 34563,107,0,345,3,
3453108,0,345,483,11, 3457108,0,345,483,11,
34541,845,0,348,1, 34581,867,0,348,1,
3455-1,3,98,0,345, 3459-1,3,98,0,345,
34563,99,0,345,3, 34603,99,0,345,3,
3457100,0,345,3,101, 3461100,0,345,3,101,
@@ -3461,7 +3465,7 @@ public class yyLSLTokens : YyLexer {
3461105,0,345,3,106, 3465105,0,345,3,106,
34620,345,3,107,0, 34660,345,3,107,0,
3463345,3,108,0,345, 3467345,3,108,0,345,
3464484,11,1,845,0, 3468484,11,1,867,0,
3465348,1,-1,3,117, 3469348,1,-1,3,117,
34660,345,3,118,0, 34700,345,3,118,0,
3467345,3,119,0,345, 3471345,3,119,0,345,
@@ -3507,7 +3511,7 @@ public class yyLSLTokens : YyLexer {
3507345,3,106,0,345, 3511345,3,106,0,345,
35083,107,0,345,3, 35123,107,0,345,3,
3509108,0,345,485,11, 3513108,0,345,485,11,
35101,845,0,348,1, 35141,867,0,348,1,
3511-1,3,116,0,345, 3515-1,3,116,0,345,
35123,117,0,345,3, 35163,117,0,345,3,
3513118,0,345,3,119, 3517118,0,345,3,119,
@@ -3547,10 +3551,10 @@ public class yyLSLTokens : YyLexer {
3547345,3,98,0,345, 3551345,3,98,0,345,
35483,99,0,345,3, 35523,99,0,345,3,
3549100,0,345,3,101, 3553100,0,345,3,101,
35500,486,12,1,25105, 35540,486,12,1,27167,
3551487,5,63,3,109, 3555487,5,63,3,109,
35520,345,3,110,0, 35560,345,3,110,0,
3553488,12,1,25134,489, 3557488,12,1,27196,489,
35545,63,3,109,0, 35585,63,3,109,0,
3555345,3,110,0,345, 3559345,3,110,0,345,
35563,111,0,345,3, 35603,111,0,345,3,
@@ -3595,7 +3599,7 @@ public class yyLSLTokens : YyLexer {
3595345,3,97,0,345, 3599345,3,97,0,345,
35963,98,0,345,3, 36003,98,0,345,3,
359799,0,345,3,100, 360199,0,345,3,100,
35980,490,12,1,25180, 36020,490,12,1,27242,
3599491,5,63,3,109, 3603491,5,63,3,109,
36000,345,3,110,0, 36040,345,3,110,0,
3601345,3,111,0,345, 3605345,3,111,0,345,
@@ -3663,7 +3667,7 @@ public class yyLSLTokens : YyLexer {
3663105,0,345,3,106, 3667105,0,345,3,106,
36640,345,3,107,0, 36680,345,3,107,0,
3665345,3,108,0,345, 3669345,3,108,0,345,
3666494,11,1,845,0, 3670494,11,1,867,0,
3667348,1,-1,3,111, 3671348,1,-1,3,111,
36680,345,3,112,0, 36720,345,3,112,0,
3669345,3,113,0,345, 3673345,3,113,0,345,
@@ -3714,14 +3718,14 @@ public class yyLSLTokens : YyLexer {
37143,106,0,345,3, 37183,106,0,345,3,
3715107,0,345,3,108, 3719107,0,345,3,108,
37160,345,495,11,1, 37200,345,495,11,1,
3717845,0,348,1,-1, 3721867,0,348,1,-1,
37183,102,0,345,3, 37223,102,0,345,3,
3719103,0,345,3,104, 3723103,0,345,3,104,
37200,345,3,105,0, 37240,345,3,105,0,
3721345,3,106,0,345, 3725345,3,106,0,345,
37223,107,0,345,3, 37263,107,0,345,3,
3723108,0,345,496,11, 3727108,0,345,496,11,
37241,845,0,348,1, 37281,867,0,348,1,
3725-1,3,97,0,345, 3729-1,3,97,0,345,
37263,98,0,345,3, 37303,98,0,345,3,
372799,0,345,3,100, 373199,0,345,3,100,
@@ -3789,7 +3793,7 @@ public class yyLSLTokens : YyLexer {
3789345,3,106,0,345, 3793345,3,106,0,345,
37903,107,0,345,3, 37943,107,0,345,3,
3791108,0,345,499,11, 3795108,0,345,499,11,
37921,845,0,348,1, 37961,867,0,348,1,
3793-1,3,112,0,345, 3797-1,3,112,0,345,
37943,113,0,345,3, 37983,113,0,345,3,
3795114,0,345,3,115, 3799114,0,345,3,115,
@@ -3838,11 +3842,11 @@ public class yyLSLTokens : YyLexer {
38383,105,0,345,3, 38423,105,0,345,3,
3839106,0,345,3,107, 3843106,0,345,3,107,
38400,345,3,108,0, 38440,345,3,108,0,
3841345,500,11,1,845, 3845345,500,11,1,867,
38420,348,1,-1,3, 38460,348,1,-1,3,
3843106,0,345,3,107, 3847106,0,345,3,107,
38440,345,3,108,0, 38480,345,3,108,0,
3845345,501,11,1,845, 3849345,501,11,1,867,
38460,348,1,-1,3, 38500,348,1,-1,3,
3847116,0,345,3,117, 3851116,0,345,3,117,
38480,345,3,118,0, 38520,345,3,118,0,
@@ -3889,14 +3893,14 @@ public class yyLSLTokens : YyLexer {
3889345,3,106,0,345, 3893345,3,106,0,345,
38903,107,0,345,3, 38943,107,0,345,3,
3891108,0,345,502,11, 3895108,0,345,502,11,
38921,845,0,348,1, 38961,867,0,348,1,
3893-1,3,106,0,345, 3897-1,3,106,0,345,
38943,107,0,345,3, 38983,107,0,345,3,
3895108,0,345,503,11, 3899108,0,345,503,11,
38961,845,0,348,1, 39001,867,0,348,1,
3897-1,504,11,1,845, 3901-1,504,11,1,867,
38980,348,1,-1,505, 39020,348,1,-1,505,
389911,1,845,0,348, 390311,1,867,0,348,
39001,-1,3,112,0, 39041,-1,3,112,0,
3901345,3,113,0,345, 3905345,3,113,0,345,
39023,114,0,345,3, 39063,114,0,345,3,
@@ -3942,7 +3946,7 @@ public class yyLSLTokens : YyLexer {
39423,101,0,345,3, 39463,101,0,345,3,
3943102,0,345,3,103, 3947102,0,345,3,103,
39440,345,3,104,0, 39480,345,3,104,0,
3945506,12,1,26129,507, 3949506,12,1,28191,507,
39465,63,3,109,0, 39505,63,3,109,0,
3947345,3,110,0,345, 3951345,3,110,0,345,
39483,111,0,345,3, 39523,111,0,345,3,
@@ -3985,10 +3989,10 @@ public class yyLSLTokens : YyLexer {
398589,0,345,3,90, 398989,0,345,3,90,
39860,345,3,95,0, 39900,345,3,95,0,
3987345,3,97,0,508, 3991345,3,97,0,508,
398812,1,26172,509,5, 399212,1,28234,509,5,
398963,3,109,0,345, 399363,3,109,0,345,
39903,110,0,510,12, 39943,110,0,510,12,
39911,26201,511,5,63, 39951,28263,511,5,63,
39923,109,0,345,3, 39963,109,0,345,3,
3993110,0,345,3,111, 3997110,0,345,3,111,
39940,345,3,112,0, 39980,345,3,112,0,
@@ -4035,7 +4039,7 @@ public class yyLSLTokens : YyLexer {
4035345,3,100,0,345, 4039345,3,100,0,345,
40363,101,0,345,3, 40403,101,0,345,3,
4037102,0,345,3,103, 4041102,0,345,3,103,
40380,512,12,1,26250, 40420,512,12,1,28312,
4039513,5,63,3,109, 4043513,5,63,3,109,
40400,345,3,110,0, 40440,345,3,110,0,
4041345,3,111,0,345, 4045345,3,111,0,345,
@@ -4081,7 +4085,7 @@ public class yyLSLTokens : YyLexer {
4081345,3,98,0,345, 4085345,3,98,0,345,
40823,99,0,345,3, 40863,99,0,345,3,
4083100,0,345,3,101, 4087100,0,345,3,101,
40840,514,12,1,26297, 40880,514,12,1,28359,
4085515,5,63,3,109, 4089515,5,63,3,109,
40860,345,3,110,0, 40900,345,3,110,0,
4087345,3,111,0,345, 4091345,3,111,0,345,
@@ -4127,7 +4131,7 @@ public class yyLSLTokens : YyLexer {
4127345,3,98,0,345, 4131345,3,98,0,345,
41283,99,0,345,3, 41323,99,0,345,3,
4129100,0,516,12,1, 4133100,0,516,12,1,
413026343,517,5,63,3, 413428405,517,5,63,3,
4131109,0,345,3,110, 4135109,0,345,3,110,
41320,345,3,111,0, 41360,345,3,111,0,
4133345,3,112,0,345, 4137345,3,112,0,345,
@@ -4192,20 +4196,20 @@ public class yyLSLTokens : YyLexer {
41920,345,3,106,0, 41960,345,3,106,0,
4193345,3,107,0,345, 4197345,3,107,0,345,
41943,108,0,345,520, 41983,108,0,345,520,
419511,1,845,0,348, 419911,1,867,0,348,
41961,-1,3,102,0, 42001,-1,3,102,0,
4197345,3,103,0,345, 4201345,3,103,0,345,
41983,104,0,345,3, 42023,104,0,345,3,
4199105,0,345,3,106, 4203105,0,345,3,106,
42000,345,3,107,0, 42040,345,3,107,0,
4201345,3,108,0,345, 4205345,3,108,0,345,
4202521,11,1,845,0, 4206521,11,1,867,0,
4203348,1,-1,3,104, 4207348,1,-1,3,104,
42040,345,3,105,0, 42080,345,3,105,0,
4205345,3,106,0,345, 4209345,3,106,0,345,
42063,107,0,345,3, 42103,107,0,345,3,
4207108,0,345,522,11, 4211108,0,345,522,11,
42081,845,0,348,1, 42121,867,0,348,1,
4209-1,3,111,0,345, 4213-1,3,111,0,345,
42103,112,0,345,3, 42143,112,0,345,3,
4211113,0,345,3,114, 4215113,0,345,3,114,
@@ -4255,7 +4259,7 @@ public class yyLSLTokens : YyLexer {
4255105,0,345,3,106, 4259105,0,345,3,106,
42560,345,3,107,0, 42600,345,3,107,0,
4257345,3,108,0,345, 4261345,3,108,0,345,
4258523,11,1,845,0, 4262523,11,1,867,0,
4259348,1,-1,3,98, 4263348,1,-1,3,98,
42600,345,3,99,0, 42640,345,3,99,0,
4261345,3,100,0,345, 4265345,3,100,0,345,
@@ -4266,17 +4270,17 @@ public class yyLSLTokens : YyLexer {
42663,106,0,345,3, 42703,106,0,345,3,
4267107,0,345,3,108, 4271107,0,345,3,108,
42680,345,524,11,1, 42720,345,524,11,1,
4269845,0,348,1,-1, 4273867,0,348,1,-1,
42703,105,0,345,3, 42743,105,0,345,3,
4271106,0,345,3,107, 4275106,0,345,3,107,
42720,345,3,108,0, 42760,345,3,108,0,
4273345,525,11,1,845, 4277345,525,11,1,867,
42740,348,1,-1,3, 42780,348,1,-1,3,
4275100,0,526,12,1, 4279100,0,526,12,1,
427626920,527,5,63,3, 428028982,527,5,63,3,
4277109,0,345,3,110, 4281109,0,345,3,110,
42780,345,3,111,0, 42820,345,3,111,0,
4279528,12,1,26950,529, 4283528,12,1,29012,529,
42805,63,3,109,0, 42845,63,3,109,0,
4281345,3,110,0,345, 4285345,3,110,0,345,
42823,111,0,345,3, 42863,111,0,345,3,
@@ -4370,14 +4374,14 @@ public class yyLSLTokens : YyLexer {
43700,345,3,90,0, 43740,345,3,90,0,
4371345,3,95,0,345, 4375345,3,95,0,345,
43723,97,0,532,12, 43763,97,0,532,12,
43731,27083,533,5,63, 43771,29145,533,5,63,
43743,109,0,345,3, 43783,109,0,345,3,
4375110,0,345,3,111, 4379110,0,345,3,111,
43760,345,3,112,0, 43800,345,3,112,0,
4377345,3,113,0,345, 4381345,3,113,0,345,
43783,114,0,345,3, 43823,114,0,345,3,
4379115,0,345,3,116, 4383115,0,345,3,116,
43800,534,12,1,27118, 43840,534,12,1,29180,
4381535,5,63,3,109, 4385535,5,63,3,109,
43820,345,3,110,0, 43860,345,3,110,0,
4383345,3,111,0,345, 4387345,3,111,0,345,
@@ -4420,14 +4424,14 @@ public class yyLSLTokens : YyLexer {
44203,89,0,345,3, 44243,89,0,345,3,
442190,0,345,3,95, 442590,0,345,3,95,
44220,345,3,97,0, 44260,345,3,97,0,
4423536,12,1,27161,537, 4427536,12,1,29223,537,
44245,63,3,109,0, 44285,63,3,109,0,
4425345,3,110,0,345, 4429345,3,110,0,345,
44263,111,0,345,3, 44303,111,0,345,3,
4427112,0,345,3,113, 4431112,0,345,3,113,
44280,345,3,114,0, 44320,345,3,114,0,
4429345,3,115,0,538, 4433345,3,115,0,538,
443012,1,27195,539,5, 443412,1,29257,539,5,
443163,3,109,0,345, 443563,3,109,0,345,
44323,110,0,345,3, 44363,110,0,345,3,
4433111,0,345,3,112, 4437111,0,345,3,112,
@@ -4473,13 +4477,13 @@ public class yyLSLTokens : YyLexer {
447398,0,345,3,99, 447798,0,345,3,99,
44740,345,3,100,0, 44780,345,3,100,0,
4475345,3,101,0,540, 4479345,3,101,0,540,
447612,1,27242,541,5, 448012,1,29304,541,5,
447763,3,109,0,345, 448163,3,109,0,345,
44783,110,0,345,3, 44823,110,0,345,3,
4479111,0,345,3,112, 4483111,0,345,3,112,
44800,345,3,113,0, 44840,345,3,113,0,
4481345,3,114,0,542, 4485345,3,114,0,542,
448212,1,27275,543,5, 448612,1,29337,543,5,
448363,3,109,0,345, 448763,3,109,0,345,
44843,110,0,345,3, 44883,110,0,345,3,
4485111,0,345,3,112, 4489111,0,345,3,112,
@@ -4488,7 +4492,7 @@ public class yyLSLTokens : YyLexer {
44883,115,0,345,3, 44923,115,0,345,3,
4489116,0,345,3,117, 4493116,0,345,3,117,
44900,345,3,118,0, 44940,345,3,118,0,
4491544,12,1,27312,545, 4495544,12,1,29374,545,
44925,63,3,109,0, 44965,63,3,109,0,
4493345,3,110,0,345, 4497345,3,110,0,345,
44943,111,0,345,3, 44983,111,0,345,3,
@@ -4534,13 +4538,13 @@ public class yyLSLTokens : YyLexer {
45343,98,0,345,3, 45383,98,0,345,3,
453599,0,345,3,100, 453999,0,345,3,100,
45360,345,3,101,0, 45400,345,3,101,0,
4537546,12,1,27359,547, 4541546,12,1,29421,547,
45385,63,3,109,0, 45425,63,3,109,0,
4539345,3,110,0,345, 4543345,3,110,0,345,
45403,111,0,345,3, 45443,111,0,345,3,
4541112,0,345,3,113, 4545112,0,345,3,113,
45420,345,3,114,0, 45460,345,3,114,0,
4543548,12,1,27392,549, 4547548,12,1,29454,549,
45445,63,3,109,0, 45485,63,3,109,0,
4545345,3,110,0,345, 4549345,3,110,0,345,
45463,111,0,345,3, 45503,111,0,345,3,
@@ -4646,14 +4650,14 @@ public class yyLSLTokens : YyLexer {
46460,345,3,106,0, 46500,345,3,106,0,
4647345,3,107,0,345, 4651345,3,107,0,345,
46483,108,0,345,552, 46523,108,0,345,552,
464911,1,845,0,348, 465311,1,867,0,348,
46501,-1,3,102,0, 46541,-1,3,102,0,
4651345,3,103,0,345, 4655345,3,103,0,345,
46523,104,0,345,3, 46563,104,0,345,3,
4653105,0,345,3,106, 4657105,0,345,3,106,
46540,345,3,107,0, 46580,345,3,107,0,
4655345,3,108,0,345, 4659345,3,108,0,345,
4656553,11,1,845,0, 4660553,11,1,867,0,
4657348,1,-1,3,119, 4661348,1,-1,3,119,
46580,345,3,120,0, 46620,345,3,120,0,
4659345,3,121,0,345, 4663345,3,121,0,345,
@@ -4697,7 +4701,7 @@ public class yyLSLTokens : YyLexer {
4697105,0,345,3,106, 4701105,0,345,3,106,
46980,345,3,107,0, 47020,345,3,107,0,
4699345,3,108,0,345, 4703345,3,108,0,345,
4700554,11,1,845,0, 4704554,11,1,867,0,
4701348,1,-1,3,115, 4705348,1,-1,3,115,
47020,345,3,116,0, 47060,345,3,116,0,
4703345,3,117,0,345, 4707345,3,117,0,345,
@@ -4744,7 +4748,7 @@ public class yyLSLTokens : YyLexer {
47443,105,0,345,3, 47483,105,0,345,3,
4745106,0,345,3,107, 4749106,0,345,3,107,
47460,345,3,108,0, 47500,345,3,108,0,
4747345,555,11,1,845, 4751345,555,11,1,867,
47480,348,1,-1,3, 47520,348,1,-1,3,
4749102,0,345,3,103, 4753102,0,345,3,103,
47500,345,3,104,0, 47540,345,3,104,0,
@@ -4752,7 +4756,7 @@ public class yyLSLTokens : YyLexer {
47523,106,0,345,3, 47563,106,0,345,3,
4753107,0,345,3,108, 4757107,0,345,3,108,
47540,345,556,11,1, 47580,345,556,11,1,
4755845,0,348,1,-1, 4759867,0,348,1,-1,
47563,116,0,345,3, 47603,116,0,345,3,
4757117,0,345,3,118, 4761117,0,345,3,118,
47580,345,3,119,0, 47620,345,3,119,0,
@@ -4798,7 +4802,7 @@ public class yyLSLTokens : YyLexer {
47980,345,3,106,0, 48020,345,3,106,0,
4799345,3,107,0,345, 4803345,3,107,0,345,
48003,108,0,345,557, 48043,108,0,345,557,
480111,1,845,0,348, 480511,1,867,0,348,
48021,-1,3,98,0, 48061,-1,3,98,0,
4803345,3,99,0,345, 4807345,3,99,0,345,
48043,100,0,345,3, 48083,100,0,345,3,
@@ -4808,7 +4812,7 @@ public class yyLSLTokens : YyLexer {
48083,105,0,345,3, 48123,105,0,345,3,
4809106,0,345,3,107, 4813106,0,345,3,107,
48100,345,3,108,0, 48140,345,3,108,0,
4811345,558,11,1,845, 4815345,558,11,1,867,
48120,348,1,-1,3, 48160,348,1,-1,3,
4813117,0,345,3,118, 4817117,0,345,3,118,
48140,345,3,119,0, 48180,345,3,119,0,
@@ -4854,12 +4858,12 @@ public class yyLSLTokens : YyLexer {
48540,345,3,106,0, 48580,345,3,106,0,
4855345,3,107,0,345, 4859345,3,107,0,345,
48563,108,0,345,559, 48603,108,0,345,559,
485711,1,845,0,348, 486111,1,867,0,348,
48581,-1,3,98,0, 48621,-1,3,98,0,
4859345,3,99,0,345, 4863345,3,99,0,345,
48603,100,0,345,3, 48643,100,0,345,3,
4861101,0,560,12,1, 4865101,0,560,12,1,
486228167,561,5,63,3, 486630229,561,5,63,3,
4863109,0,345,3,110, 4867109,0,345,3,110,
48640,345,3,111,0, 48680,345,3,111,0,
4865345,3,112,0,345, 4869345,3,112,0,345,
@@ -4905,7 +4909,7 @@ public class yyLSLTokens : YyLexer {
4905345,3,99,0,345, 4909345,3,99,0,345,
49063,100,0,345,3, 49103,100,0,345,3,
4907101,0,345,3,102, 4911101,0,345,3,102,
49080,562,12,1,28215, 49120,562,12,1,30277,
4909563,5,63,3,109, 4913563,5,63,3,109,
49100,345,3,110,0, 49140,345,3,110,0,
4911345,3,111,0,345, 4915345,3,111,0,345,
@@ -4948,7 +4952,7 @@ public class yyLSLTokens : YyLexer {
49483,89,0,345,3, 49523,89,0,345,3,
494990,0,345,3,95, 495390,0,345,3,95,
49500,345,3,97,0, 49540,345,3,97,0,
4951564,12,1,28258,565, 4955564,12,1,30320,565,
49525,63,3,109,0, 49565,63,3,109,0,
4953345,3,110,0,345, 4957345,3,110,0,345,
49543,111,0,345,3, 49583,111,0,345,3,
@@ -4957,7 +4961,7 @@ public class yyLSLTokens : YyLexer {
4957345,3,115,0,345, 4961345,3,115,0,345,
49583,116,0,345,3, 49623,116,0,345,3,
4959117,0,566,12,1, 4963117,0,566,12,1,
496028294,567,5,63,3, 496430356,567,5,63,3,
4961109,0,345,3,110, 4965109,0,345,3,110,
49620,345,3,111,0, 49660,345,3,111,0,
4963345,3,112,0,345, 4967345,3,112,0,345,
@@ -5008,7 +5012,7 @@ public class yyLSLTokens : YyLexer {
50083,105,0,345,3, 50123,105,0,345,3,
5009106,0,345,3,107, 5013106,0,345,3,107,
50100,345,3,108,0, 50140,345,3,108,0,
5011568,12,1,28348,569, 5015568,12,1,30410,569,
50125,63,3,109,0, 50165,63,3,109,0,
5013345,3,110,0,345, 5017345,3,110,0,345,
50143,111,0,345,3, 50183,111,0,345,3,
@@ -5016,7 +5020,7 @@ public class yyLSLTokens : YyLexer {
50160,345,3,114,0, 50200,345,3,114,0,
5017345,3,115,0,345, 5021345,3,115,0,345,
50183,116,0,570,12, 50223,116,0,570,12,
50191,28383,571,5,63, 50231,30445,571,5,63,
50203,109,0,345,3, 50243,109,0,345,3,
5021110,0,345,3,111, 5025110,0,345,3,111,
50220,345,3,112,0, 50260,345,3,112,0,
@@ -5119,8 +5123,8 @@ public class yyLSLTokens : YyLexer {
5119345,3,106,0,345, 5123345,3,106,0,345,
51203,107,0,345,3, 51243,107,0,345,3,
5121108,0,345,574,11, 5125108,0,345,574,11,
51221,845,0,348,1, 51261,867,0,348,1,
5123-1,575,11,1,845, 5127-1,575,11,1,867,
51240,348,1,-1,3, 51280,348,1,-1,3,
5125118,0,345,3,119, 5129118,0,345,3,119,
51260,345,3,120,0, 51300,345,3,120,0,
@@ -5165,7 +5169,7 @@ public class yyLSLTokens : YyLexer {
5165105,0,345,3,106, 5169105,0,345,3,106,
51660,345,3,107,0, 51700,345,3,107,0,
5167345,3,108,0,345, 5171345,3,108,0,345,
5168576,11,1,845,0, 5172576,11,1,867,0,
5169348,1,-1,3,98, 5173348,1,-1,3,98,
51700,345,3,99,0, 51740,345,3,99,0,
5171345,3,100,0,345, 5175345,3,100,0,345,
@@ -5176,24 +5180,24 @@ public class yyLSLTokens : YyLexer {
51763,106,0,345,3, 51803,106,0,345,3,
5177107,0,345,3,108, 5181107,0,345,3,108,
51780,345,577,11,1, 51820,345,577,11,1,
5179845,0,348,1,-1, 5183867,0,348,1,-1,
51803,103,0,345,3, 51843,103,0,345,3,
5181104,0,345,3,105, 5185104,0,345,3,105,
51820,345,3,106,0, 51860,345,3,106,0,
5183345,3,107,0,345, 5187345,3,107,0,345,
51843,108,0,345,578, 51883,108,0,345,578,
518511,1,845,0,348, 518911,1,867,0,348,
51861,-1,3,102,0, 51901,-1,3,102,0,
5187345,3,103,0,345, 5191345,3,103,0,345,
51883,104,0,345,3, 51923,104,0,345,3,
5189105,0,345,3,106, 5193105,0,345,3,106,
51900,345,3,107,0, 51940,345,3,107,0,
5191345,3,108,0,345, 5195345,3,108,0,345,
5192579,11,1,845,0, 5196579,11,1,867,0,
5193348,1,-1,3,101, 5197348,1,-1,3,101,
51940,580,12,1,28961, 51980,580,12,1,31023,
5195581,5,63,3,109, 5199581,5,63,3,109,
51960,582,12,1,28989, 52000,582,12,1,31051,
5197583,5,63,3,109, 5201583,5,63,3,109,
51980,345,3,110,0, 52020,345,3,110,0,
5199345,3,111,0,345, 5203345,3,111,0,345,
@@ -5236,7 +5240,7 @@ public class yyLSLTokens : YyLexer {
52363,89,0,345,3, 52403,89,0,345,3,
523790,0,345,3,95, 524190,0,345,3,95,
52380,345,3,97,0, 52420,345,3,97,0,
5239584,12,1,29032,585, 5243584,12,1,31094,585,
52405,63,3,109,0, 52445,63,3,109,0,
5241345,3,110,0,345, 5245345,3,110,0,345,
52423,111,0,345,3, 52463,111,0,345,3,
@@ -5285,7 +5289,7 @@ public class yyLSLTokens : YyLexer {
5285345,3,102,0,345, 5289345,3,102,0,345,
52863,103,0,345,3, 52903,103,0,345,3,
5287104,0,345,3,105, 5291104,0,345,3,105,
52880,586,12,1,29083, 52920,586,12,1,31145,
5289587,5,63,3,109, 5293587,5,63,3,109,
52900,345,3,110,0, 52940,345,3,110,0,
5291345,3,111,0,345, 5295345,3,111,0,345,
@@ -5337,7 +5341,7 @@ public class yyLSLTokens : YyLexer {
5337105,0,345,3,106, 5341105,0,345,3,106,
53380,345,3,107,0, 53420,345,3,107,0,
5339345,3,108,0,588, 5343345,3,108,0,588,
534012,1,29137,589,5, 534412,1,31199,589,5,
534163,3,109,0,345, 534563,3,109,0,345,
53423,110,0,345,3, 53463,110,0,345,3,
5343111,0,345,3,112, 5347111,0,345,3,112,
@@ -5395,11 +5399,11 @@ public class yyLSLTokens : YyLexer {
53950,95,0,69,0, 53990,95,0,69,0,
539686,0,69,0,78, 540086,0,69,0,78,
53970,84,0,1,-1, 54010,84,0,1,-1,
5398592,11,1,845,0, 5402592,11,1,867,0,
5399348,1,-1,3,106, 5403348,1,-1,3,106,
54000,345,3,107,0, 54040,345,3,107,0,
5401345,3,108,0,345, 5405345,3,108,0,345,
5402593,11,1,845,0, 5406593,11,1,867,0,
5403348,1,-1,3,98, 5407348,1,-1,3,98,
54040,345,3,99,0, 54080,345,3,99,0,
5405345,3,100,0,345, 5409345,3,100,0,345,
@@ -5410,7 +5414,7 @@ public class yyLSLTokens : YyLexer {
54103,106,0,345,3, 54143,106,0,345,3,
5411107,0,345,3,108, 5415107,0,345,3,108,
54120,345,594,11,1, 54160,345,594,11,1,
5413845,0,348,1,-1, 5417867,0,348,1,-1,
54143,110,0,345,3, 54183,110,0,345,3,
5415111,0,345,3,112, 5419111,0,345,3,112,
54160,345,3,113,0, 54200,345,3,113,0,
@@ -5461,13 +5465,13 @@ public class yyLSLTokens : YyLexer {
5461345,3,106,0,345, 5465345,3,106,0,345,
54623,107,0,345,3, 54663,107,0,345,3,
5463108,0,595,12,1, 5467108,0,595,12,1,
546429495,596,5,63,3, 546831557,596,5,63,3,
5465109,0,345,3,110, 5469109,0,345,3,110,
54660,345,3,111,0, 54700,345,3,111,0,
5467345,3,112,0,345, 5471345,3,112,0,345,
54683,113,0,345,3, 54723,113,0,345,3,
5469114,0,345,3,115, 5473114,0,345,3,115,
54700,597,12,1,29529, 54740,597,12,1,31591,
5471598,5,63,3,109, 5475598,5,63,3,109,
54720,345,3,110,0, 54760,345,3,110,0,
5473345,3,111,0,345, 5477345,3,111,0,345,
@@ -5513,7 +5517,7 @@ public class yyLSLTokens : YyLexer {
5513345,3,98,0,345, 5517345,3,98,0,345,
55143,99,0,345,3, 55183,99,0,345,3,
5515100,0,345,3,101, 5519100,0,345,3,101,
55160,599,12,1,29576, 55200,599,12,1,31638,
5517600,5,63,3,109, 5521600,5,63,3,109,
55180,345,3,110,0, 55220,345,3,110,0,
5519345,3,111,0,345, 5523345,3,111,0,345,
@@ -5574,7 +5578,7 @@ public class yyLSLTokens : YyLexer {
55743,105,0,345,3, 55783,105,0,345,3,
5575106,0,345,3,107, 5579106,0,345,3,107,
55760,345,3,108,0, 55800,345,3,108,0,
5577345,603,11,1,845, 5581345,603,11,1,867,
55780,348,1,-1,3, 55820,348,1,-1,3,
5579116,0,345,3,117, 5583116,0,345,3,117,
55800,345,3,118,0, 55840,345,3,118,0,
@@ -5621,20 +5625,20 @@ public class yyLSLTokens : YyLexer {
5621345,3,106,0,345, 5625345,3,106,0,345,
56223,107,0,345,3, 56263,107,0,345,3,
5623108,0,345,604,11, 5627108,0,345,604,11,
56241,845,0,348,1, 56281,867,0,348,1,
5625-1,605,11,1,845, 5629-1,605,11,1,867,
56260,348,1,-1,3, 56300,348,1,-1,3,
5627102,0,606,12,1, 5631102,0,606,12,1,
562829922,607,5,63,3, 563231984,607,5,63,3,
5629109,0,345,3,110, 5633109,0,345,3,110,
56300,345,3,111,0, 56340,345,3,111,0,
5631608,12,1,29952,609, 5635608,12,1,32014,609,
56325,63,3,109,0, 56365,63,3,109,0,
5633345,3,110,0,345, 5637345,3,110,0,345,
56343,111,0,345,3, 56383,111,0,345,3,
5635112,0,345,3,113, 5639112,0,345,3,113,
56360,345,3,114,0, 56400,345,3,114,0,
5637610,12,1,29985,611, 5641610,12,1,32047,611,
56385,63,3,109,0, 56425,63,3,109,0,
5639345,3,110,0,345, 5643345,3,110,0,345,
56403,111,0,345,3, 56443,111,0,345,3,
@@ -5735,7 +5739,7 @@ public class yyLSLTokens : YyLexer {
5735345,3,106,0,345, 5739345,3,106,0,345,
57363,107,0,345,3, 57403,107,0,345,3,
5737108,0,345,614,11, 5741108,0,345,614,11,
57381,845,0,348,1, 57421,867,0,348,1,
5739-1,3,112,0,345, 5743-1,3,112,0,345,
57403,113,0,345,3, 57443,113,0,345,3,
5741114,0,345,3,115, 5745114,0,345,3,115,
@@ -5784,11 +5788,11 @@ public class yyLSLTokens : YyLexer {
57843,105,0,345,3, 57883,105,0,345,3,
5785106,0,345,3,107, 5789106,0,345,3,107,
57860,345,3,108,0, 57900,345,3,108,0,
5787615,12,1,30216,616, 5791615,12,1,32278,616,
57885,63,3,109,0, 57925,63,3,109,0,
5789345,3,110,0,345, 5793345,3,110,0,345,
57903,111,0,617,12, 57943,111,0,617,12,
57911,30246,618,5,63, 57951,32308,618,5,63,
57923,109,0,345,3, 57963,109,0,345,3,
5793110,0,345,3,111, 5797110,0,345,3,111,
57940,345,3,112,0, 57980,345,3,112,0,
@@ -5831,14 +5835,14 @@ public class yyLSLTokens : YyLexer {
5831345,3,90,0,345, 5835345,3,90,0,345,
58323,95,0,345,3, 58363,95,0,345,3,
583397,0,619,12,1, 583797,0,619,12,1,
583430289,620,5,63,3, 583832351,620,5,63,3,
5835109,0,345,3,110, 5839109,0,345,3,110,
58360,345,3,111,0, 58400,345,3,111,0,
5837345,3,112,0,345, 5841345,3,112,0,345,
58383,113,0,345,3, 58423,113,0,345,3,
5839114,0,345,3,115, 5843114,0,345,3,115,
58400,345,3,116,0, 58440,345,3,116,0,
5841621,12,1,30324,622, 5845621,12,1,32386,622,
58425,63,3,109,0, 58465,63,3,109,0,
5843345,3,110,0,345, 5847345,3,110,0,345,
58443,111,0,345,3, 58483,111,0,345,3,
@@ -5940,7 +5944,7 @@ public class yyLSLTokens : YyLexer {
59400,345,3,106,0, 59440,345,3,106,0,
5941345,3,107,0,345, 5945345,3,107,0,345,
59423,108,0,345,625, 59463,108,0,345,625,
594311,1,845,0,348, 594711,1,867,0,348,
59441,-1,3,98,0, 59481,-1,3,98,0,
5945345,3,99,0,345, 5949345,3,99,0,345,
59463,100,0,345,3, 59503,100,0,345,3,
@@ -5950,7 +5954,7 @@ public class yyLSLTokens : YyLexer {
59503,105,0,345,3, 59543,105,0,345,3,
5951106,0,345,3,107, 5955106,0,345,3,107,
59520,345,3,108,0, 59560,345,3,108,0,
5953345,626,11,1,845, 5957345,626,11,1,867,
59540,348,1,-1,3, 59580,348,1,-1,3,
5955112,0,345,3,113, 5959112,0,345,3,113,
59560,345,3,114,0, 59600,345,3,114,0,
@@ -6000,19 +6004,19 @@ public class yyLSLTokens : YyLexer {
60000,345,3,106,0, 60040,345,3,106,0,
6001345,3,107,0,345, 6005345,3,107,0,345,
60023,108,0,345,627, 60063,108,0,345,627,
600311,1,845,0,348, 600711,1,867,0,348,
60041,-1,628,11,1, 60081,-1,628,11,1,
6005845,0,348,1,-1, 6009867,0,348,1,-1,
60063,103,0,343,3, 60103,103,0,343,3,
6007104,0,629,12,1, 6011104,0,629,12,1,
600830764,630,5,63,3, 601232826,630,5,63,3,
6009109,0,345,3,110, 6013109,0,345,3,110,
60100,345,3,111,0, 60140,345,3,111,0,
6011345,3,112,0,345, 6015345,3,112,0,345,
60123,113,0,345,3, 60163,113,0,345,3,
6013114,0,345,3,115, 6017114,0,345,3,115,
60140,345,3,116,0, 60180,345,3,116,0,
6015631,12,1,30799,632, 6019631,12,1,32861,632,
60165,63,3,109,0, 60205,63,3,109,0,
6017345,3,110,0,345, 6021345,3,110,0,345,
60183,111,0,345,3, 60223,111,0,345,3,
@@ -6020,11 +6024,11 @@ public class yyLSLTokens : YyLexer {
60200,345,3,114,0, 60240,345,3,114,0,
6021345,3,115,0,345, 6025345,3,115,0,345,
60223,116,0,633,12, 60263,116,0,633,12,
60231,30834,634,5,63, 60271,32896,634,5,63,
60243,109,0,345,3, 60283,109,0,345,3,
6025110,0,345,3,111, 6029110,0,345,3,111,
60260,345,3,112,0, 60300,345,3,112,0,
6027635,12,1,30865,636, 6031635,12,1,32927,636,
60285,63,3,109,0, 60325,63,3,109,0,
6029345,3,110,0,345, 6033345,3,110,0,345,
60303,111,0,345,3, 60343,111,0,345,3,
@@ -6066,13 +6070,13 @@ public class yyLSLTokens : YyLexer {
60663,88,0,345,3, 60703,88,0,345,3,
606789,0,345,3,90, 607189,0,345,3,90,
60680,345,3,95,0, 60720,345,3,95,0,
6069637,12,1,30951,638, 6073637,12,1,33013,638,
60705,63,3,109,0, 60745,63,3,109,0,
6071345,3,110,0,345, 6075345,3,110,0,345,
60723,111,0,345,3, 60763,111,0,345,3,
6073112,0,345,3,113, 6077112,0,345,3,113,
60740,345,3,114,0, 60780,345,3,114,0,
6075639,12,1,30984,640, 6079639,12,1,33046,640,
60765,63,3,109,0, 60805,63,3,109,0,
6077345,3,110,0,345, 6081345,3,110,0,345,
60783,111,0,345,3, 60823,111,0,345,3,
@@ -6118,12 +6122,12 @@ public class yyLSLTokens : YyLexer {
61183,98,0,345,3, 61223,98,0,345,3,
611999,0,345,3,100, 612399,0,345,3,100,
61200,345,3,101,0, 61240,345,3,101,0,
6121641,12,1,31031,642, 6125641,12,1,33093,642,
61225,63,3,109,0, 61265,63,3,109,0,
6123345,3,110,0,345, 6127345,3,110,0,345,
61243,111,0,345,3, 61283,111,0,345,3,
6125112,0,345,3,113, 6129112,0,345,3,113,
61260,643,12,1,31063, 61300,643,12,1,33125,
6127644,5,63,3,109, 6131644,5,63,3,109,
61280,345,3,110,0, 61320,345,3,110,0,
6129345,3,111,0,345, 6133345,3,111,0,345,
@@ -6132,7 +6136,7 @@ public class yyLSLTokens : YyLexer {
61320,345,3,115,0, 61360,345,3,115,0,
6133345,3,116,0,345, 6137345,3,116,0,345,
61343,117,0,645,12, 61383,117,0,645,12,
61351,31099,646,5,63, 61391,33161,646,5,63,
61363,109,0,345,3, 61403,109,0,345,3,
6137110,0,345,3,111, 6141110,0,345,3,111,
61380,345,3,112,0, 61420,345,3,112,0,
@@ -6178,21 +6182,21 @@ public class yyLSLTokens : YyLexer {
61780,345,3,99,0, 61820,345,3,99,0,
6179345,3,100,0,345, 6183345,3,100,0,345,
61803,101,0,647,12, 61843,101,0,647,12,
61811,31146,648,5,63, 61851,33208,648,5,63,
61823,109,0,345,3, 61863,109,0,345,3,
6183110,0,345,3,111, 6187110,0,345,3,111,
61840,345,3,112,0, 61880,345,3,112,0,
6185345,3,113,0,345, 6189345,3,113,0,345,
61863,114,0,345,3, 61903,114,0,345,3,
6187115,0,649,12,1, 6191115,0,649,12,1,
618831180,650,5,63,3, 619233242,650,5,63,3,
6189109,0,345,3,110, 6193109,0,345,3,110,
61900,345,3,111,0, 61940,345,3,111,0,
6191345,3,112,0,345, 6195345,3,112,0,345,
61923,113,0,345,3, 61963,113,0,345,3,
6193114,0,345,3,115, 6197114,0,345,3,115,
61940,345,3,116,0, 61980,345,3,116,0,
6195651,12,1,31215,652, 6199651,12,1,33277,652,
61965,63,3,109,0, 62005,63,3,109,0,
6197345,3,110,0,345, 6201345,3,110,0,345,
61983,111,0,345,3, 62023,111,0,345,3,
@@ -6297,7 +6301,7 @@ public class yyLSLTokens : YyLexer {
6297105,0,345,3,106, 6301105,0,345,3,106,
62980,345,3,107,0, 63020,345,3,107,0,
6299345,3,108,0,345, 6303345,3,108,0,345,
6300655,11,1,845,0, 6304655,11,1,867,0,
6301348,1,-1,3,116, 6305348,1,-1,3,116,
63020,345,3,117,0, 63060,345,3,117,0,
6303345,3,118,0,345, 6307345,3,118,0,345,
@@ -6344,14 +6348,14 @@ public class yyLSLTokens : YyLexer {
63443,106,0,345,3, 63483,106,0,345,3,
6345107,0,345,3,108, 6349107,0,345,3,108,
63460,345,656,11,1, 63500,345,656,11,1,
6347845,0,348,1,-1, 6351867,0,348,1,-1,
63483,102,0,345,3, 63523,102,0,345,3,
6349103,0,345,3,104, 6353103,0,345,3,104,
63500,345,3,105,0, 63540,345,3,105,0,
6351345,3,106,0,345, 6355345,3,106,0,345,
63523,107,0,345,3, 63563,107,0,345,3,
6353108,0,345,657,11, 6357108,0,345,657,11,
63541,845,0,348,1, 63581,867,0,348,1,
6355-1,3,118,0,345, 6359-1,3,118,0,345,
63563,119,0,345,3, 63603,119,0,345,3,
6357120,0,345,3,121, 6361120,0,345,3,121,
@@ -6396,27 +6400,27 @@ public class yyLSLTokens : YyLexer {
63963,106,0,345,3, 64003,106,0,345,3,
6397107,0,345,3,108, 6401107,0,345,3,108,
63980,345,658,11,1, 64020,345,658,11,1,
6399845,0,348,1,-1, 6403867,0,348,1,-1,
64003,114,0,345,3, 64043,114,0,345,3,
6401115,0,659,12,1, 6405115,0,659,12,1,
640231665,660,5,63,3, 640633727,660,5,63,3,
6403109,0,345,3,110, 6407109,0,345,3,110,
64040,345,3,111,0, 64080,345,3,111,0,
6405345,3,112,0,661, 6409345,3,112,0,661,
640612,1,31696,662,5, 641012,1,33758,662,5,
640763,3,109,0,345, 641163,3,109,0,345,
64083,110,0,345,3, 64123,110,0,345,3,
6409111,0,663,12,1, 6413111,0,663,12,1,
641031726,664,5,63,3, 641433788,664,5,63,3,
6411109,0,345,3,110, 6415109,0,345,3,110,
64120,665,12,1,31755, 64160,665,12,1,33817,
6413666,5,63,3,109, 6417666,5,63,3,109,
64140,345,3,110,0, 64180,345,3,110,0,
6415345,3,111,0,345, 6419345,3,111,0,345,
64163,112,0,345,3, 64203,112,0,345,3,
6417113,0,345,3,114, 6421113,0,345,3,114,
64180,345,3,115,0, 64220,345,3,115,0,
6419667,12,1,31789,668, 6423667,12,1,33851,668,
64205,63,3,109,0, 64245,63,3,109,0,
6421345,3,110,0,345, 6425345,3,110,0,345,
64223,111,0,345,3, 64263,111,0,345,3,
@@ -6462,7 +6466,7 @@ public class yyLSLTokens : YyLexer {
64623,98,0,345,3, 64663,98,0,345,3,
646399,0,345,3,100, 646799,0,345,3,100,
64640,345,3,101,0, 64680,345,3,101,0,
6465669,12,1,31836,670, 6469669,12,1,33898,670,
64665,63,3,109,0, 64705,63,3,109,0,
6467345,3,110,0,345, 6471345,3,110,0,345,
64683,111,0,345,3, 64723,111,0,345,3,
@@ -6529,7 +6533,7 @@ public class yyLSLTokens : YyLexer {
6529105,0,345,3,106, 6533105,0,345,3,106,
65300,345,3,107,0, 65340,345,3,107,0,
6531345,3,108,0,345, 6535345,3,108,0,345,
6532673,11,1,845,0, 6536673,11,1,867,0,
6533348,1,-1,3,116, 6537348,1,-1,3,116,
65340,345,3,117,0, 65380,345,3,117,0,
6535345,3,118,0,345, 6539345,3,118,0,345,
@@ -6576,7 +6580,7 @@ public class yyLSLTokens : YyLexer {
65763,106,0,345,3, 65803,106,0,345,3,
6577107,0,345,3,108, 6581107,0,345,3,108,
65780,345,674,11,1, 65820,345,674,11,1,
6579845,0,348,1,-1, 6583867,0,348,1,-1,
65803,111,0,345,3, 65843,111,0,345,3,
6581112,0,345,3,113, 6585112,0,345,3,113,
65820,345,3,114,0, 65860,345,3,114,0,
@@ -6626,7 +6630,7 @@ public class yyLSLTokens : YyLexer {
66260,345,3,106,0, 66300,345,3,106,0,
6627345,3,107,0,345, 6631345,3,107,0,345,
66283,108,0,345,675, 66323,108,0,345,675,
662911,1,845,0,348, 663311,1,867,0,348,
66301,-1,3,112,0, 66341,-1,3,112,0,
6631345,3,113,0,345, 6635345,3,113,0,345,
66323,114,0,345,3, 66363,114,0,345,3,
@@ -6676,7 +6680,7 @@ public class yyLSLTokens : YyLexer {
66763,106,0,345,3, 66803,106,0,345,3,
6677107,0,345,3,108, 6681107,0,345,3,108,
66780,345,676,11,1, 66820,345,676,11,1,
6679845,0,348,1,-1, 6683867,0,348,1,-1,
66803,113,0,345,3, 66843,113,0,345,3,
6681114,0,345,3,115, 6685114,0,345,3,115,
66820,345,3,116,0, 66860,345,3,116,0,
@@ -6724,7 +6728,7 @@ public class yyLSLTokens : YyLexer {
67243,105,0,345,3, 67283,105,0,345,3,
6725106,0,345,3,107, 6729106,0,345,3,107,
67260,345,3,108,0, 67300,345,3,108,0,
6727345,677,11,1,845, 6731345,677,11,1,867,
67280,348,1,-1,3, 67320,348,1,-1,3,
6729116,0,345,3,117, 6733116,0,345,3,117,
67300,345,3,118,0, 67340,345,3,118,0,
@@ -6771,14 +6775,14 @@ public class yyLSLTokens : YyLexer {
6771345,3,106,0,345, 6775345,3,106,0,345,
67723,107,0,345,3, 67763,107,0,345,3,
6773108,0,345,678,11, 6777108,0,345,678,11,
67741,845,0,348,1, 67781,867,0,348,1,
6775-1,3,102,0,345, 6779-1,3,102,0,345,
67763,103,0,345,3, 67803,103,0,345,3,
6777104,0,345,3,105, 6781104,0,345,3,105,
67780,345,3,106,0, 67820,345,3,106,0,
6779345,3,107,0,345, 6783345,3,107,0,345,
67803,108,0,345,679, 67843,108,0,345,679,
678111,1,845,0,348, 678511,1,867,0,348,
67821,-1,3,115,0, 67861,-1,3,115,0,
6783345,3,116,0,345, 6787345,3,116,0,345,
67843,117,0,345,3, 67883,117,0,345,3,
@@ -6825,7 +6829,7 @@ public class yyLSLTokens : YyLexer {
6825105,0,345,3,106, 6829105,0,345,3,106,
68260,345,3,107,0, 68300,345,3,107,0,
6827345,3,108,0,345, 6831345,3,108,0,345,
6828680,11,1,845,0, 6832680,11,1,867,0,
6829348,1,-1,3,97, 6833348,1,-1,3,97,
68300,345,3,98,0, 68340,345,3,98,0,
6831345,3,99,0,345, 6835345,3,99,0,345,
@@ -6836,7 +6840,7 @@ public class yyLSLTokens : YyLexer {
68363,105,0,345,3, 68403,105,0,345,3,
6837106,0,345,3,107, 6841106,0,345,3,107,
68380,345,3,108,0, 68420,345,3,108,0,
6839345,681,11,1,845, 6843345,681,11,1,867,
68400,348,1,-1,3, 68440,348,1,-1,3,
6841113,0,345,3,114, 6845113,0,345,3,114,
68420,345,3,115,0, 68460,345,3,115,0,
@@ -6885,7 +6889,7 @@ public class yyLSLTokens : YyLexer {
6885105,0,345,3,106, 6889105,0,345,3,106,
68860,345,3,107,0, 68900,345,3,107,0,
6887345,3,108,0,345, 6891345,3,108,0,345,
6888682,11,1,845,0, 6892682,11,1,867,0,
6889348,1,-1,3,117, 6893348,1,-1,3,117,
68900,345,3,118,0, 68940,345,3,118,0,
6891345,3,119,0,345, 6895345,3,119,0,345,
@@ -6931,7 +6935,7 @@ public class yyLSLTokens : YyLexer {
6931345,3,106,0,345, 6935345,3,106,0,345,
69323,107,0,345,3, 69363,107,0,345,3,
6933108,0,345,683,11, 6937108,0,345,683,11,
69341,845,0,348,1, 69381,867,0,348,1,
6935-1,3,117,0,345, 6939-1,3,117,0,345,
69363,118,0,345,3, 69403,118,0,345,3,
6937119,0,345,3,120, 6941119,0,345,3,120,
@@ -6976,12 +6980,12 @@ public class yyLSLTokens : YyLexer {
69763,105,0,345,3, 69803,105,0,345,3,
6977106,0,345,3,107, 6981106,0,345,3,107,
69780,345,3,108,0, 69820,345,3,108,0,
6979345,684,11,1,845, 6983345,684,11,1,867,
69800,348,1,-1,3, 69840,348,1,-1,3,
6981105,0,685,12,1, 6985105,0,685,12,1,
698232925,686,5,63,3, 698634987,686,5,63,3,
6983109,0,345,3,110, 6987109,0,345,3,110,
69840,687,12,1,32954, 69880,687,12,1,35016,
6985688,5,63,3,109, 6989688,5,63,3,109,
69860,345,3,110,0, 69900,345,3,110,0,
6987345,3,111,0,345, 6991345,3,111,0,345,
@@ -6989,7 +6993,7 @@ public class yyLSLTokens : YyLexer {
6989113,0,345,3,114, 6993113,0,345,3,114,
69900,345,3,115,0, 69940,345,3,115,0,
6991345,3,116,0,689, 6995345,3,116,0,689,
699212,1,32989,690,5, 699612,1,35051,690,5,
699363,3,109,0,345, 699763,3,109,0,345,
69943,110,0,345,3, 69983,110,0,345,3,
6995111,0,345,3,112, 6999111,0,345,3,112,
@@ -7035,7 +7039,7 @@ public class yyLSLTokens : YyLexer {
703598,0,345,3,99, 703998,0,345,3,99,
70360,345,3,100,0, 70400,345,3,100,0,
7037345,3,101,0,691, 7041345,3,101,0,691,
703812,1,33036,692,5, 704212,1,35098,692,5,
703963,3,109,0,345, 704363,3,109,0,345,
70403,110,0,345,3, 70443,110,0,345,3,
7041111,0,345,3,112, 7045111,0,345,3,112,
@@ -7083,7 +7087,7 @@ public class yyLSLTokens : YyLexer {
7083345,3,101,0,345, 7087345,3,101,0,345,
70843,102,0,345,3, 70883,102,0,345,3,
7085103,0,693,12,1, 7089103,0,693,12,1,
708633085,694,5,63,3, 709035147,694,5,63,3,
7087109,0,345,3,110, 7091109,0,345,3,110,
70880,345,3,111,0, 70920,345,3,111,0,
7089345,3,112,0,345, 7093345,3,112,0,345,
@@ -7129,13 +7133,13 @@ public class yyLSLTokens : YyLexer {
7129345,3,99,0,345, 7133345,3,99,0,345,
71303,100,0,345,3, 71343,100,0,345,3,
7131101,0,695,12,1, 7135101,0,695,12,1,
713233132,696,5,63,3, 713635194,696,5,63,3,
7133109,0,345,3,110, 7137109,0,345,3,110,
71340,345,3,111,0, 71380,345,3,111,0,
7135345,3,112,0,345, 7139345,3,112,0,345,
71363,113,0,345,3, 71403,113,0,345,3,
7137114,0,697,12,1, 7141114,0,697,12,1,
713833165,698,5,63,3, 714235227,698,5,63,3,
7139109,0,345,3,110, 7143109,0,345,3,110,
71400,345,3,111,0, 71440,345,3,111,0,
7141345,3,112,0,345, 7145345,3,112,0,345,
@@ -7239,27 +7243,27 @@ public class yyLSLTokens : YyLexer {
7239345,3,106,0,345, 7243345,3,106,0,345,
72403,107,0,345,3, 72443,107,0,345,3,
7241108,0,345,701,11, 7245108,0,345,701,11,
72421,845,0,348,1, 72461,867,0,348,1,
7243-1,3,102,0,345, 7247-1,3,102,0,345,
72443,103,0,345,3, 72483,103,0,345,3,
7245104,0,345,3,105, 7249104,0,345,3,105,
72460,345,3,106,0, 72500,345,3,106,0,
7247345,3,107,0,345, 7251345,3,107,0,345,
72483,108,0,345,702, 72523,108,0,345,702,
724911,1,845,0,348, 725311,1,867,0,348,
72501,-1,3,104,0, 72541,-1,3,104,0,
7251345,3,105,0,345, 7255345,3,105,0,345,
72523,106,0,345,3, 72563,106,0,345,3,
7253107,0,345,3,108, 7257107,0,345,3,108,
72540,345,703,11,1, 72580,345,703,11,1,
7255845,0,348,1,-1, 7259867,0,348,1,-1,
72563,102,0,345,3, 72603,102,0,345,3,
7257103,0,345,3,104, 7261103,0,345,3,104,
72580,345,3,105,0, 72620,345,3,105,0,
7259345,3,106,0,345, 7263345,3,106,0,345,
72603,107,0,345,3, 72643,107,0,345,3,
7261108,0,345,704,11, 7265108,0,345,704,11,
72621,845,0,348,1, 72661,867,0,348,1,
7263-1,3,117,0,345, 7267-1,3,117,0,345,
72643,118,0,345,3, 72683,118,0,345,3,
7265119,0,345,3,120, 7269119,0,345,3,120,
@@ -7304,7 +7308,7 @@ public class yyLSLTokens : YyLexer {
73043,105,0,345,3, 73083,105,0,345,3,
7305106,0,345,3,107, 7309106,0,345,3,107,
73060,345,3,108,0, 73100,345,3,108,0,
7307345,705,11,1,845, 7311345,705,11,1,867,
73080,348,1,-1,3, 73120,348,1,-1,3,
7309111,0,345,3,112, 7313111,0,345,3,112,
73100,345,3,113,0, 73140,345,3,113,0,
@@ -7350,7 +7354,7 @@ public class yyLSLTokens : YyLexer {
73500,345,3,100,0, 73540,345,3,100,0,
7351345,3,101,0,345, 7355345,3,101,0,345,
73523,102,0,706,12, 73563,102,0,706,12,
73531,33693,707,5,63, 73571,35755,707,5,63,
73543,109,0,345,3, 73583,109,0,345,3,
7355110,0,345,3,111, 7359110,0,345,3,111,
73560,345,3,112,0, 73600,345,3,112,0,
@@ -7409,9 +7413,9 @@ public class yyLSLTokens : YyLexer {
7409105,0,345,3,106, 7413105,0,345,3,106,
74100,345,3,107,0, 74140,345,3,107,0,
7411345,3,108,0,345, 7415345,3,108,0,345,
7412710,11,1,845,0, 7416710,11,1,867,0,
7413348,1,-1,3,106, 7417348,1,-1,3,106,
74140,711,12,1,33886, 74180,711,12,1,35948,
7415712,5,63,3,109, 7419712,5,63,3,109,
74160,345,3,110,0, 74200,345,3,110,0,
7417345,3,111,0,345, 7421345,3,111,0,345,
@@ -7420,13 +7424,13 @@ public class yyLSLTokens : YyLexer {
74200,345,3,115,0, 74240,345,3,115,0,
7421345,3,116,0,345, 7425345,3,116,0,345,
74223,117,0,713,12, 74263,117,0,713,12,
74231,33922,714,5,63, 74271,35984,714,5,63,
74243,109,0,715,12, 74283,109,0,715,12,
74251,33950,716,5,63, 74291,36012,716,5,63,
74263,109,0,345,3, 74303,109,0,345,3,
7427110,0,345,3,111, 7431110,0,345,3,111,
74280,345,3,112,0, 74320,345,3,112,0,
7429717,12,1,33981,718, 7433717,12,1,36043,718,
74305,63,3,109,0, 74345,63,3,109,0,
7431345,3,110,0,345, 7435345,3,110,0,345,
74323,111,0,345,3, 74363,111,0,345,3,
@@ -7529,7 +7533,7 @@ public class yyLSLTokens : YyLexer {
7529345,3,106,0,345, 7533345,3,106,0,345,
75303,107,0,345,3, 75343,107,0,345,3,
7531108,0,345,721,11, 7535108,0,345,721,11,
75321,845,0,348,1, 75361,867,0,348,1,
7533-1,3,110,0,345, 7537-1,3,110,0,345,
75343,111,0,345,3, 75383,111,0,345,3,
7535112,0,345,3,113, 7539112,0,345,3,113,
@@ -7580,7 +7584,7 @@ public class yyLSLTokens : YyLexer {
75800,345,3,106,0, 75840,345,3,106,0,
7581345,3,107,0,345, 7585345,3,107,0,345,
75823,108,0,345,722, 75863,108,0,345,722,
758311,1,845,0,348, 758711,1,867,0,348,
75841,-1,3,118,0, 75881,-1,3,118,0,
7585345,3,119,0,345, 7589345,3,119,0,345,
75863,120,0,345,3, 75903,120,0,345,3,
@@ -7625,9 +7629,9 @@ public class yyLSLTokens : YyLexer {
7625345,3,106,0,345, 7629345,3,106,0,345,
76263,107,0,345,3, 76303,107,0,345,3,
7627108,0,345,723,11, 7631108,0,345,723,11,
76281,845,0,348,1, 76321,867,0,348,1,
7629-1,3,107,0,724, 7633-1,3,107,0,724,
763012,1,34367,725,5, 763412,1,36429,725,5,
763163,3,109,0,345, 763563,3,109,0,345,
76323,110,0,345,3, 76363,110,0,345,3,
7633111,0,345,3,112, 7637111,0,345,3,112,
@@ -7673,7 +7677,7 @@ public class yyLSLTokens : YyLexer {
767398,0,345,3,99, 767798,0,345,3,99,
76740,345,3,100,0, 76780,345,3,100,0,
7675345,3,101,0,726, 7679345,3,101,0,726,
767612,1,34414,727,5, 768012,1,36476,727,5,
767763,3,109,0,345, 768163,3,109,0,345,
76783,110,0,345,3, 76823,110,0,345,3,
7679111,0,345,3,112, 7683111,0,345,3,112,
@@ -7685,7 +7689,7 @@ public class yyLSLTokens : YyLexer {
7685345,3,119,0,345, 7689345,3,119,0,345,
76863,120,0,345,3, 76903,120,0,345,3,
7687121,0,728,12,1, 7691121,0,728,12,1,
768834454,729,5,63,3, 769236516,729,5,63,3,
7689109,0,345,3,110, 7693109,0,345,3,110,
76900,345,3,111,0, 76940,345,3,111,0,
7691345,3,112,0,345, 7695345,3,112,0,345,
@@ -7782,16 +7786,16 @@ public class yyLSLTokens : YyLexer {
77823,106,0,345,3, 77863,106,0,345,3,
7783107,0,345,3,108, 7787107,0,345,3,108,
77840,345,732,11,1, 77880,345,732,11,1,
7785845,0,348,1,-1, 7789867,0,348,1,-1,
77863,102,0,345,3, 77903,102,0,345,3,
7787103,0,345,3,104, 7791103,0,345,3,104,
77880,345,3,105,0, 77920,345,3,105,0,
7789345,3,106,0,345, 7793345,3,106,0,345,
77903,107,0,345,3, 77943,107,0,345,3,
7791108,0,345,733,11, 7795108,0,345,733,11,
77921,845,0,348,1, 77961,867,0,348,1,
7793-1,3,108,0,734, 7797-1,3,108,0,734,
779412,1,34728,735,5, 779812,1,36790,735,5,
779563,3,109,0,345, 779963,3,109,0,345,
77963,110,0,345,3, 78003,110,0,345,3,
7797111,0,345,3,112, 7801111,0,345,3,112,
@@ -7834,10 +7838,10 @@ public class yyLSLTokens : YyLexer {
78340,345,3,90,0, 78380,345,3,90,0,
7835345,3,95,0,345, 7839345,3,95,0,345,
78363,97,0,736,12, 78403,97,0,736,12,
78371,34771,737,5,63, 78411,36833,737,5,63,
78383,109,0,345,3, 78423,109,0,345,3,
7839110,0,738,12,1, 7843110,0,738,12,1,
784034800,739,5,63,3, 784436862,739,5,63,3,
7841109,0,345,3,110, 7845109,0,345,3,110,
78420,345,3,111,0, 78460,345,3,111,0,
7843345,3,112,0,345, 7847345,3,112,0,345,
@@ -7882,7 +7886,7 @@ public class yyLSLTokens : YyLexer {
78820,345,3,98,0, 78860,345,3,98,0,
7883345,3,99,0,345, 7887345,3,99,0,345,
78843,100,0,740,12, 78883,100,0,740,12,
78851,34846,741,5,63, 78891,36908,741,5,63,
78863,109,0,345,3, 78903,109,0,345,3,
7887110,0,345,3,111, 7891110,0,345,3,111,
78880,345,3,112,0, 78920,345,3,112,0,
@@ -7924,7 +7928,7 @@ public class yyLSLTokens : YyLexer {
79240,345,3,89,0, 79280,345,3,89,0,
7925345,3,90,0,345, 7929345,3,90,0,345,
79263,95,0,742,12, 79303,95,0,742,12,
79271,34932,743,5,63, 79311,36994,743,5,63,
79283,109,0,345,3, 79323,109,0,345,3,
7929110,0,345,3,111, 7933110,0,345,3,111,
79300,345,3,112,0, 79340,345,3,112,0,
@@ -7968,11 +7972,11 @@ public class yyLSLTokens : YyLexer {
79683,95,0,345,3, 79723,95,0,345,3,
796997,0,345,3,98, 797397,0,345,3,98,
79700,345,3,99,0, 79740,345,3,99,0,
7971744,12,1,34977,745, 7975744,12,1,37039,745,
79725,63,3,109,0, 79765,63,3,109,0,
7973345,3,110,0,345, 7977345,3,110,0,345,
79743,111,0,746,12, 79783,111,0,746,12,
79751,35007,747,5,63, 79791,37069,747,5,63,
79763,109,0,345,3, 79803,109,0,345,3,
7977110,0,345,3,111, 7981110,0,345,3,111,
79780,345,3,112,0, 79820,345,3,112,0,
@@ -8023,7 +8027,7 @@ public class yyLSLTokens : YyLexer {
8023345,3,105,0,345, 8027345,3,105,0,345,
80243,106,0,345,3, 80283,106,0,345,3,
8025107,0,345,3,108, 8029107,0,345,3,108,
80260,748,12,1,35061, 80300,748,12,1,37123,
8027749,5,63,3,109, 8031749,5,63,3,109,
80280,345,3,110,0, 80320,345,3,110,0,
8029345,3,111,0,345, 8033345,3,111,0,345,
@@ -8075,7 +8079,7 @@ public class yyLSLTokens : YyLexer {
8075105,0,345,3,106, 8079105,0,345,3,106,
80760,345,3,107,0, 80800,345,3,107,0,
8077345,3,108,0,750, 8081345,3,108,0,750,
807812,1,35115,751,5, 808212,1,37177,751,5,
807963,3,109,0,345, 808363,3,109,0,345,
80803,110,0,345,3, 80843,110,0,345,3,
8081111,0,345,3,112, 8085111,0,345,3,112,
@@ -8124,14 +8128,14 @@ public class yyLSLTokens : YyLexer {
81243,102,0,345,3, 81283,102,0,345,3,
8125103,0,345,3,104, 8129103,0,345,3,104,
81260,345,3,105,0, 81300,345,3,105,0,
8127752,12,1,35166,753, 8131752,12,1,37228,753,
81285,63,3,109,0, 81325,63,3,109,0,
8129345,3,110,0,345, 8133345,3,110,0,345,
81303,111,0,345,3, 81343,111,0,345,3,
8131112,0,345,3,113, 8135112,0,345,3,113,
81320,345,3,114,0, 81360,345,3,114,0,
8133345,3,115,0,754, 8137345,3,115,0,754,
813412,1,35200,755,5, 813812,1,37262,755,5,
813563,3,109,0,345, 813963,3,109,0,345,
81363,110,0,345,3, 81403,110,0,345,3,
8137111,0,345,3,112, 8141111,0,345,3,112,
@@ -8180,14 +8184,14 @@ public class yyLSLTokens : YyLexer {
81803,102,0,345,3, 81843,102,0,345,3,
8181103,0,345,3,104, 8185103,0,345,3,104,
81820,345,3,105,0, 81860,345,3,105,0,
8183756,12,1,35251,757, 8187756,12,1,37313,757,
81845,63,3,109,0, 81885,63,3,109,0,
8185345,3,110,0,345, 8189345,3,110,0,345,
81863,111,0,758,12, 81903,111,0,758,12,
81871,35281,759,5,63, 81911,37343,759,5,63,
81883,109,0,345,3, 81923,109,0,345,3,
8189110,0,760,12,1, 8193110,0,760,12,1,
819035310,761,5,63,3, 819437372,761,5,63,3,
8191109,0,345,3,110, 8195109,0,345,3,110,
81920,345,3,111,0, 81960,345,3,111,0,
8193345,3,112,0,345, 8197345,3,112,0,345,
@@ -8229,13 +8233,13 @@ public class yyLSLTokens : YyLexer {
8229345,3,89,0,345, 8233345,3,89,0,345,
82303,90,0,345,3, 82343,90,0,345,3,
823195,0,762,12,1, 823595,0,762,12,1,
823235396,763,5,63,3, 823637458,763,5,63,3,
8233109,0,345,3,110, 8237109,0,345,3,110,
82340,345,3,111,0, 82380,345,3,111,0,
8235345,3,112,0,345, 8239345,3,112,0,345,
82363,113,0,345,3, 82403,113,0,345,3,
8237114,0,345,3,115, 8241114,0,345,3,115,
82380,764,12,1,35430, 82420,764,12,1,37492,
8239765,5,63,3,109, 8243765,5,63,3,109,
82400,345,3,110,0, 82440,345,3,110,0,
8241345,3,111,0,345, 8245345,3,111,0,345,
@@ -8243,7 +8247,7 @@ public class yyLSLTokens : YyLexer {
8243113,0,345,3,114, 8247113,0,345,3,114,
82440,345,3,115,0, 82480,345,3,115,0,
8245345,3,116,0,766, 8249345,3,116,0,766,
824612,1,35465,767,5, 825012,1,37527,767,5,
824763,3,109,0,345, 825163,3,109,0,345,
82483,110,0,345,3, 82523,110,0,345,3,
8249111,0,345,3,112, 8253111,0,345,3,112,
@@ -8286,20 +8290,20 @@ public class yyLSLTokens : YyLexer {
82860,345,3,90,0, 82900,345,3,90,0,
8287345,3,95,0,345, 8291345,3,95,0,345,
82883,97,0,768,12, 82923,97,0,768,12,
82891,35508,769,5,63, 82931,37570,769,5,63,
82903,109,0,345,3, 82943,109,0,345,3,
8291110,0,345,3,111, 8295110,0,345,3,111,
82920,345,3,112,0, 82960,345,3,112,0,
8293345,3,113,0,345, 8297345,3,113,0,345,
82943,114,0,770,12, 82983,114,0,770,12,
82951,35541,771,5,63, 82991,37603,771,5,63,
82963,109,0,345,3, 83003,109,0,345,3,
8297110,0,345,3,111, 8301110,0,345,3,111,
82980,345,3,112,0, 83020,345,3,112,0,
8299345,3,113,0,345, 8303345,3,113,0,345,
83003,114,0,345,3, 83043,114,0,345,3,
8301115,0,345,3,116, 8305115,0,345,3,116,
83020,772,12,1,35576, 83060,772,12,1,37638,
8303773,5,63,3,109, 8307773,5,63,3,109,
83040,345,3,110,0, 83080,345,3,110,0,
8305345,3,111,0,345, 8309345,3,111,0,345,
@@ -8408,7 +8412,7 @@ public class yyLSLTokens : YyLexer {
84083,106,0,345,3, 84123,106,0,345,3,
8409107,0,345,3,108, 8413107,0,345,3,108,
84100,345,776,11,1, 84140,345,776,11,1,
8411845,0,348,1,-1, 8415867,0,348,1,-1,
84123,115,0,345,3, 84163,115,0,345,3,
8413116,0,345,3,117, 8417116,0,345,3,117,
84140,345,3,118,0, 84180,345,3,118,0,
@@ -8455,7 +8459,7 @@ public class yyLSLTokens : YyLexer {
8455345,3,106,0,345, 8459345,3,106,0,345,
84563,107,0,345,3, 84603,107,0,345,3,
8457108,0,345,777,11, 8461108,0,345,777,11,
84581,845,0,348,1, 84621,867,0,348,1,
8459-1,3,98,0,345, 8463-1,3,98,0,345,
84603,99,0,345,3, 84643,99,0,345,3,
8461100,0,345,3,101, 8465100,0,345,3,101,
@@ -8465,7 +8469,7 @@ public class yyLSLTokens : YyLexer {
8465105,0,345,3,106, 8469105,0,345,3,106,
84660,345,3,107,0, 84700,345,3,107,0,
8467345,3,108,0,345, 8471345,3,108,0,345,
8468778,11,1,845,0, 8472778,11,1,867,0,
8469348,1,-1,3,117, 8473348,1,-1,3,117,
84700,345,3,118,0, 84740,345,3,118,0,
8471345,3,119,0,345, 8475345,3,119,0,345,
@@ -8511,7 +8515,7 @@ public class yyLSLTokens : YyLexer {
8511345,3,106,0,345, 8515345,3,106,0,345,
85123,107,0,345,3, 85163,107,0,345,3,
8513108,0,345,779,11, 8517108,0,345,779,11,
85141,845,0,348,1, 85181,867,0,348,1,
8515-1,3,116,0,345, 8519-1,3,116,0,345,
85163,117,0,345,3, 85203,117,0,345,3,
8517118,0,345,3,119, 8521118,0,345,3,119,
@@ -8551,10 +8555,10 @@ public class yyLSLTokens : YyLexer {
8551345,3,98,0,345, 8555345,3,98,0,345,
85523,99,0,345,3, 85563,99,0,345,3,
8553100,0,345,3,101, 8557100,0,345,3,101,
85540,780,12,1,36043, 85580,780,12,1,38105,
8555781,5,63,3,109, 8559781,5,63,3,109,
85560,345,3,110,0, 85600,345,3,110,0,
8557782,12,1,36072,783, 8561782,12,1,38134,783,
85585,63,3,109,0, 85625,63,3,109,0,
8559345,3,110,0,345, 8563345,3,110,0,345,
85603,111,0,345,3, 85643,111,0,345,3,
@@ -8599,7 +8603,7 @@ public class yyLSLTokens : YyLexer {
8599345,3,97,0,345, 8603345,3,97,0,345,
86003,98,0,345,3, 86043,98,0,345,3,
860199,0,345,3,100, 860599,0,345,3,100,
86020,784,12,1,36118, 86060,784,12,1,38180,
8603785,5,63,3,109, 8607785,5,63,3,109,
86040,345,3,110,0, 86080,345,3,110,0,
8605345,3,111,0,345, 8609345,3,111,0,345,
@@ -8669,7 +8673,7 @@ public class yyLSLTokens : YyLexer {
8669105,0,345,3,106, 8673105,0,345,3,106,
86700,345,3,107,0, 86740,345,3,107,0,
8671345,3,108,0,345, 8675345,3,108,0,345,
8672788,11,1,845,0, 8676788,11,1,867,0,
8673348,1,-1,3,111, 8677348,1,-1,3,111,
86740,345,3,112,0, 86780,345,3,112,0,
8675345,3,113,0,345, 8679345,3,113,0,345,
@@ -8720,14 +8724,14 @@ public class yyLSLTokens : YyLexer {
87203,106,0,345,3, 87243,106,0,345,3,
8721107,0,345,3,108, 8725107,0,345,3,108,
87220,345,789,11,1, 87260,345,789,11,1,
8723845,0,348,1,-1, 8727867,0,348,1,-1,
87243,102,0,345,3, 87283,102,0,345,3,
8725103,0,345,3,104, 8729103,0,345,3,104,
87260,345,3,105,0, 87300,345,3,105,0,
8727345,3,106,0,345, 8731345,3,106,0,345,
87283,107,0,345,3, 87323,107,0,345,3,
8729108,0,345,790,11, 8733108,0,345,790,11,
87301,845,0,348,1, 87341,867,0,348,1,
8731-1,3,97,0,345, 8735-1,3,97,0,345,
87323,98,0,345,3, 87363,98,0,345,3,
873399,0,345,3,100, 873799,0,345,3,100,
@@ -8797,7 +8801,7 @@ public class yyLSLTokens : YyLexer {
8797345,3,106,0,345, 8801345,3,106,0,345,
87983,107,0,345,3, 88023,107,0,345,3,
8799108,0,345,793,11, 8803108,0,345,793,11,
88001,845,0,348,1, 88041,867,0,348,1,
8801-1,3,112,0,345, 8805-1,3,112,0,345,
88023,113,0,345,3, 88063,113,0,345,3,
8803114,0,345,3,115, 8807114,0,345,3,115,
@@ -8846,11 +8850,11 @@ public class yyLSLTokens : YyLexer {
88463,105,0,345,3, 88503,105,0,345,3,
8847106,0,345,3,107, 8851106,0,345,3,107,
88480,345,3,108,0, 88520,345,3,108,0,
8849345,794,11,1,845, 8853345,794,11,1,867,
88500,348,1,-1,3, 88540,348,1,-1,3,
8851106,0,345,3,107, 8855106,0,345,3,107,
88520,345,3,108,0, 88560,345,3,108,0,
8853345,795,11,1,845, 8857345,795,11,1,867,
88540,348,1,-1,3, 88580,348,1,-1,3,
8855116,0,345,3,117, 8859116,0,345,3,117,
88560,345,3,118,0, 88600,345,3,118,0,
@@ -8897,14 +8901,14 @@ public class yyLSLTokens : YyLexer {
8897345,3,106,0,345, 8901345,3,106,0,345,
88983,107,0,345,3, 89023,107,0,345,3,
8899108,0,345,796,11, 8903108,0,345,796,11,
89001,845,0,348,1, 89041,867,0,348,1,
8901-1,3,106,0,345, 8905-1,3,106,0,345,
89023,107,0,345,3, 89063,107,0,345,3,
8903108,0,345,797,11, 8907108,0,345,797,11,
89041,845,0,348,1, 89081,867,0,348,1,
8905-1,798,11,1,845, 8909-1,798,11,1,867,
89060,348,1,-1,799, 89100,348,1,-1,799,
890711,1,845,0,348, 891111,1,867,0,348,
89081,-1,3,112,0, 89121,-1,3,112,0,
8909345,3,113,0,345, 8913345,3,113,0,345,
89103,114,0,345,3, 89143,114,0,345,3,
@@ -8954,7 +8958,7 @@ public class yyLSLTokens : YyLexer {
89543,106,0,345,3, 89583,106,0,345,3,
8955107,0,345,3,108, 8959107,0,345,3,108,
89560,345,800,11,1, 89600,345,800,11,1,
8957845,0,348,1,-1, 8961867,0,348,1,-1,
89583,100,0,345,3, 89623,100,0,345,3,
8959101,0,345,3,102, 8963101,0,345,3,102,
89600,345,3,103,0, 89640,345,3,103,0,
@@ -8962,7 +8966,7 @@ public class yyLSLTokens : YyLexer {
89623,105,0,345,3, 89663,105,0,345,3,
8963106,0,345,3,107, 8967106,0,345,3,107,
89640,345,3,108,0, 89680,345,3,108,0,
8965345,801,11,1,845, 8969345,801,11,1,867,
89660,348,1,-1,3, 89700,348,1,-1,3,
896797,0,345,3,98, 897197,0,345,3,98,
89680,345,3,99,0, 89720,345,3,99,0,
@@ -8974,7 +8978,7 @@ public class yyLSLTokens : YyLexer {
89743,106,0,345,3, 89783,106,0,345,3,
8975107,0,345,3,108, 8979107,0,345,3,108,
89760,345,802,11,1, 89800,345,802,11,1,
8977845,0,348,1,-1, 8981867,0,348,1,-1,
89783,101,0,345,3, 89823,101,0,345,3,
8979102,0,345,3,103, 8983102,0,345,3,103,
89800,345,3,104,0, 89840,345,3,104,0,
@@ -8982,7 +8986,7 @@ public class yyLSLTokens : YyLexer {
89823,106,0,345,3, 89863,106,0,345,3,
8983107,0,345,3,108, 8987107,0,345,3,108,
89840,345,803,11,1, 89880,345,803,11,1,
8985845,0,348,1,-1, 8989867,0,348,1,-1,
89863,111,0,345,3, 89903,111,0,345,3,
8987112,0,345,3,113, 8991112,0,345,3,113,
89880,345,3,114,0, 89920,345,3,114,0,
@@ -9032,7 +9036,7 @@ public class yyLSLTokens : YyLexer {
90320,345,3,106,0, 90360,345,3,106,0,
9033345,3,107,0,345, 9037345,3,107,0,345,
90343,108,0,345,804, 90383,108,0,345,804,
903511,1,845,0,348, 903911,1,867,0,348,
90361,-1,3,98,0, 90401,-1,3,98,0,
9037345,3,99,0,345, 9041345,3,99,0,345,
90383,100,0,345,3, 90423,100,0,345,3,
@@ -9040,10 +9044,10 @@ public class yyLSLTokens : YyLexer {
90400,345,3,103,0, 90440,345,3,103,0,
9041345,3,104,0,345, 9045345,3,104,0,345,
90423,105,0,805,12, 90463,105,0,805,12,
90431,37419,806,5,63, 90471,39481,806,5,63,
90443,109,0,345,3, 90483,109,0,345,3,
9045110,0,807,12,1, 9049110,0,807,12,1,
904637448,808,5,63,3, 905039510,808,5,63,3,
9047109,0,345,3,110, 9051109,0,345,3,110,
90480,345,3,111,0, 90520,345,3,111,0,
9049345,3,112,0,345, 9053345,3,112,0,345,
@@ -9093,7 +9097,7 @@ public class yyLSLTokens : YyLexer {
9093345,3,104,0,345, 9097345,3,104,0,345,
90943,105,0,345,3, 90983,105,0,345,3,
9095106,0,345,3,107, 9099106,0,345,3,107,
90960,809,12,1,37501, 91000,809,12,1,39563,
9097810,5,63,3,109, 9101810,5,63,3,109,
90980,345,3,110,0, 91020,345,3,110,0,
9099345,3,111,0,345, 9103345,3,111,0,345,
@@ -9135,9 +9139,9 @@ public class yyLSLTokens : YyLexer {
9135345,3,88,0,345, 9139345,3,88,0,345,
91363,89,0,345,3, 91403,89,0,345,3,
913790,0,345,3,95, 914190,0,345,3,95,
91380,811,12,1,37587, 91420,811,12,1,39649,
9139812,5,63,3,109, 9143812,5,63,3,109,
91400,813,12,1,37615, 91440,813,12,1,39677,
9141814,5,63,3,109, 9145814,5,63,3,109,
91420,345,3,110,0, 91460,345,3,110,0,
9143345,3,111,0,345, 9147345,3,111,0,345,
@@ -9183,21 +9187,21 @@ public class yyLSLTokens : YyLexer {
9183345,3,98,0,345, 9187345,3,98,0,345,
91843,99,0,345,3, 91883,99,0,345,3,
9185100,0,345,3,101, 9189100,0,345,3,101,
91860,815,12,1,37662, 91900,815,12,1,39724,
9187816,5,63,3,109, 9191816,5,63,3,109,
91880,345,3,110,0, 91920,345,3,110,0,
9189345,3,111,0,345, 9193345,3,111,0,345,
91903,112,0,345,3, 91943,112,0,345,3,
9191113,0,345,3,114, 9195113,0,345,3,114,
91920,345,3,115,0, 91960,345,3,115,0,
9193817,12,1,37696,818, 9197817,12,1,39758,818,
91945,63,3,109,0, 91985,63,3,109,0,
9195345,3,110,0,345, 9199345,3,110,0,345,
91963,111,0,345,3, 92003,111,0,345,3,
9197112,0,345,3,113, 9201112,0,345,3,113,
91980,345,3,114,0, 92020,345,3,114,0,
9199345,3,115,0,819, 9203345,3,115,0,819,
920012,1,37730,820,5, 920412,1,39792,820,5,
920163,3,109,0,345, 920563,3,109,0,345,
92023,110,0,345,3, 92063,110,0,345,3,
9203111,0,345,3,112, 9207111,0,345,3,112,
@@ -9240,7 +9244,7 @@ public class yyLSLTokens : YyLexer {
92400,345,3,90,0, 92440,345,3,90,0,
9241345,3,95,0,345, 9245345,3,95,0,345,
92423,97,0,821,12, 92463,97,0,821,12,
92431,37773,822,5,63, 92471,39835,822,5,63,
92443,109,0,345,3, 92483,109,0,345,3,
9245110,0,345,3,111, 9249110,0,345,3,111,
92460,345,3,112,0, 92500,345,3,112,0,
@@ -9287,7 +9291,7 @@ public class yyLSLTokens : YyLexer {
9287345,3,100,0,345, 9291345,3,100,0,345,
92883,101,0,345,3, 92923,101,0,345,3,
9289102,0,345,3,103, 9293102,0,345,3,103,
92900,823,12,1,37822, 92940,823,12,1,39884,
9291824,5,63,3,109, 9295824,5,63,3,109,
92920,345,3,110,0, 92960,345,3,110,0,
9293345,3,111,0,345, 9297345,3,111,0,345,
@@ -9333,7 +9337,7 @@ public class yyLSLTokens : YyLexer {
9333345,3,98,0,345, 9337345,3,98,0,345,
93343,99,0,345,3, 93383,99,0,345,3,
9335100,0,345,3,101, 9339100,0,345,3,101,
93360,825,12,1,37869, 93400,825,12,1,39931,
9337826,5,63,3,109, 9341826,5,63,3,109,
93380,345,3,110,0, 93420,345,3,110,0,
9339345,3,111,0,345, 9343345,3,111,0,345,
@@ -9400,13 +9404,13 @@ public class yyLSLTokens : YyLexer {
94000,345,3,106,0, 94040,345,3,106,0,
9401345,3,107,0,345, 9405345,3,107,0,345,
94023,108,0,345,829, 94063,108,0,345,829,
940311,1,845,0,348, 940711,1,867,0,348,
94041,-1,3,104,0, 94081,-1,3,104,0,
9405345,3,105,0,345, 9409345,3,105,0,345,
94063,106,0,345,3, 94103,106,0,345,3,
9407107,0,345,3,108, 9411107,0,345,3,108,
94080,345,830,11,1, 94120,345,830,11,1,
9409845,0,348,1,-1, 9413867,0,348,1,-1,
94103,98,0,345,3, 94143,98,0,345,3,
941199,0,345,3,100, 941599,0,345,3,100,
94120,345,3,101,0, 94160,345,3,101,0,
@@ -9416,7 +9420,7 @@ public class yyLSLTokens : YyLexer {
94160,345,3,106,0, 94200,345,3,106,0,
9417345,3,107,0,345, 9421345,3,107,0,345,
94183,108,0,345,831, 94223,108,0,345,831,
941911,1,845,0,348, 942311,1,867,0,348,
94201,-1,3,116,0, 94241,-1,3,116,0,
9421345,3,117,0,345, 9425345,3,117,0,345,
94223,118,0,345,3, 94263,118,0,345,3,
@@ -9462,7 +9466,7 @@ public class yyLSLTokens : YyLexer {
94623,105,0,345,3, 94663,105,0,345,3,
9463106,0,345,3,107, 9467106,0,345,3,107,
94640,345,3,108,0, 94680,345,3,108,0,
9465345,832,11,1,845, 9469345,832,11,1,867,
94660,348,1,-1,3, 94700,348,1,-1,3,
9467116,0,345,3,117, 9471116,0,345,3,117,
94680,345,3,118,0, 94720,345,3,118,0,
@@ -9509,14 +9513,14 @@ public class yyLSLTokens : YyLexer {
9509345,3,106,0,345, 9513345,3,106,0,345,
95103,107,0,345,3, 95143,107,0,345,3,
9511108,0,345,833,11, 9515108,0,345,833,11,
95121,845,0,348,1, 95161,867,0,348,1,
9513-1,3,102,0,345, 9517-1,3,102,0,345,
95143,103,0,345,3, 95183,103,0,345,3,
9515104,0,345,3,105, 9519104,0,345,3,105,
95160,345,3,106,0, 95200,345,3,106,0,
9517345,3,107,0,345, 9521345,3,107,0,345,
95183,108,0,345,834, 95223,108,0,345,834,
951911,1,845,0,348, 952311,1,867,0,348,
95201,-1,3,110,0, 95241,-1,3,110,0,
9521345,3,111,0,345, 9525345,3,111,0,345,
95223,112,0,345,3, 95263,112,0,345,3,
@@ -9567,7 +9571,7 @@ public class yyLSLTokens : YyLexer {
9567105,0,345,3,106, 9571105,0,345,3,106,
95680,345,3,107,0, 95720,345,3,107,0,
9569345,3,108,0,345, 9573345,3,108,0,345,
9570835,11,1,845,0, 9574835,11,1,867,0,
9571348,1,-1,3,97, 9575348,1,-1,3,97,
95720,345,3,98,0, 95760,345,3,98,0,
9573345,3,99,0,345, 9577345,3,99,0,345,
@@ -9578,15 +9582,15 @@ public class yyLSLTokens : YyLexer {
95783,105,0,345,3, 95823,105,0,345,3,
9579106,0,345,3,107, 9583106,0,345,3,107,
95800,345,3,108,0, 95840,345,3,108,0,
9581345,836,11,1,845, 9585345,836,11,1,867,
95820,348,1,-1,3, 95860,348,1,-1,3,
9583108,0,345,837,11, 9587108,0,345,837,11,
95841,845,0,348,1, 95881,867,0,348,1,
9585-1,3,111,0,345, 9589-1,3,111,0,345,
95863,112,0,345,3, 95903,112,0,345,3,
9587113,0,345,3,114, 9591113,0,345,3,114,
95880,345,3,115,0, 95920,345,3,115,0,
9589838,12,1,38653,839, 9593838,12,1,40715,839,
95905,63,3,109,0, 95945,63,3,109,0,
9591345,3,110,0,345, 9595345,3,110,0,345,
95923,111,0,345,3, 95963,111,0,345,3,
@@ -9594,7 +9598,7 @@ public class yyLSLTokens : YyLexer {
95940,345,3,114,0, 95980,345,3,114,0,
9595345,3,115,0,345, 9599345,3,115,0,345,
95963,116,0,840,12, 96003,116,0,840,12,
95971,38688,841,5,63, 96011,40750,841,5,63,
95983,109,0,345,3, 96023,109,0,345,3,
9599110,0,345,3,111, 9603110,0,345,3,111,
96000,345,3,112,0, 96040,345,3,112,0,
@@ -9640,10 +9644,10 @@ public class yyLSLTokens : YyLexer {
96400,345,3,99,0, 96440,345,3,99,0,
9641345,3,100,0,345, 9645345,3,100,0,345,
96423,101,0,842,12, 96463,101,0,842,12,
96431,38735,843,5,63, 96471,40797,843,5,63,
96443,109,0,345,3, 96483,109,0,345,3,
9645110,0,844,12,1, 9649110,0,844,12,1,
964638764,845,5,63,3, 965040826,845,5,63,3,
9647109,0,345,3,110, 9651109,0,345,3,110,
96480,345,3,111,0, 96520,345,3,111,0,
9649345,3,112,0,345, 9653345,3,112,0,345,
@@ -9750,7 +9754,7 @@ public class yyLSLTokens : YyLexer {
97500,345,3,106,0, 97540,345,3,106,0,
9751345,3,107,0,345, 9755345,3,107,0,345,
97523,108,0,345,848, 97563,108,0,345,848,
975311,1,845,0,348, 975711,1,867,0,348,
97541,-1,3,102,0, 97581,-1,3,102,0,
9755345,3,103,0,345, 9759345,3,103,0,345,
97563,104,0,345,3, 97603,104,0,345,3,
@@ -9807,7 +9811,7 @@ public class yyLSLTokens : YyLexer {
9807345,3,106,0,345, 9811345,3,106,0,345,
98083,107,0,345,3, 98123,107,0,345,3,
9809108,0,345,851,11, 9813108,0,345,851,11,
98101,845,0,348,1, 98141,867,0,348,1,
9811-1,3,116,0,345, 9815-1,3,116,0,345,
98123,117,0,345,3, 98163,117,0,345,3,
9813118,0,345,3,119, 9817118,0,345,3,119,
@@ -9853,20 +9857,20 @@ public class yyLSLTokens : YyLexer {
9853105,0,345,3,106, 9857105,0,345,3,106,
98540,345,3,107,0, 98580,345,3,107,0,
9855345,3,108,0,345, 9859345,3,108,0,345,
9856852,11,1,845,0, 9860852,11,1,867,0,
9857348,1,-1,3,106, 9861348,1,-1,3,106,
98580,345,3,107,0, 98620,345,3,107,0,
9859345,3,108,0,345, 9863345,3,108,0,345,
9860853,11,1,845,0, 9864853,11,1,867,0,
9861348,1,-1,3,109, 9865348,1,-1,3,109,
98620,854,12,1,1942, 98660,854,12,1,1964,
9863855,5,63,3,109, 9867855,5,63,3,109,
98640,345,3,110,0, 98680,345,3,110,0,
9865345,3,111,0,856, 9869345,3,111,0,856,
986612,1,1972,857,5, 987012,1,1994,857,5,
986763,3,109,0,345, 987163,3,109,0,345,
98683,110,0,858,12, 98723,110,0,858,12,
98691,2001,859,5,63, 98731,2023,859,5,63,
98703,109,0,345,3, 98743,109,0,345,3,
9871110,0,345,3,111, 9875110,0,345,3,111,
98720,345,3,112,0, 98760,345,3,112,0,
@@ -9912,7 +9916,7 @@ public class yyLSLTokens : YyLexer {
99120,345,3,99,0, 99160,345,3,99,0,
9913345,3,100,0,345, 9917345,3,100,0,345,
99143,101,0,860,12, 99183,101,0,860,12,
99151,2048,861,5,63, 99191,2070,861,5,63,
99163,109,0,345,3, 99203,109,0,345,3,
9917110,0,345,3,111, 9921110,0,345,3,111,
99180,345,3,112,0, 99220,345,3,112,0,
@@ -9923,7 +9927,7 @@ public class yyLSLTokens : YyLexer {
9923345,3,118,0,345, 9927345,3,118,0,345,
99243,119,0,345,3, 99283,119,0,345,3,
9925120,0,345,3,121, 9929120,0,345,3,121,
99260,862,12,1,2088, 99300,862,12,1,2110,
9927863,5,63,3,109, 9931863,5,63,3,109,
99280,345,3,110,0, 99320,345,3,110,0,
9929345,3,111,0,345, 9933345,3,111,0,345,
@@ -10022,14 +10026,14 @@ public class yyLSLTokens : YyLexer {
100223,106,0,345,3, 100263,106,0,345,3,
10023107,0,345,3,108, 10027107,0,345,3,108,
100240,345,866,11,1, 100280,345,866,11,1,
10025845,0,348,1,-1, 10029867,0,348,1,-1,
100263,102,0,345,3, 100303,102,0,345,3,
10027103,0,345,3,104, 10031103,0,345,3,104,
100280,345,3,105,0, 100320,345,3,105,0,
10029345,3,106,0,345, 10033345,3,106,0,345,
100303,107,0,345,3, 100343,107,0,345,3,
10031108,0,345,867,11, 10035108,0,345,867,11,
100321,845,0,348,1, 100361,867,0,348,1,
10033-1,3,111,0,345, 10037-1,3,111,0,345,
100343,112,0,345,3, 100383,112,0,345,3,
10035113,0,345,3,114, 10039113,0,345,3,114,
@@ -10037,7 +10041,7 @@ public class yyLSLTokens : YyLexer {
10037345,3,116,0,345, 10041345,3,116,0,345,
100383,117,0,345,3, 100423,117,0,345,3,
10039118,0,868,12,1, 10043118,0,868,12,1,
100402369,869,5,63,3, 100442391,869,5,63,3,
10041109,0,345,3,110, 10045109,0,345,3,110,
100420,345,3,111,0, 100460,345,3,111,0,
10043345,3,112,0,345, 10047345,3,112,0,345,
@@ -10086,10 +10090,10 @@ public class yyLSLTokens : YyLexer {
100860,345,3,103,0, 100900,345,3,103,0,
10087345,3,104,0,345, 10091345,3,104,0,345,
100883,105,0,870,12, 100923,105,0,870,12,
100891,2420,871,5,63, 100931,2442,871,5,63,
100903,109,0,345,3, 100943,109,0,345,3,
10091110,0,872,12,1, 10095110,0,872,12,1,
100922449,873,5,63,3, 100962471,873,5,63,3,
10093109,0,345,3,110, 10097109,0,345,3,110,
100940,345,3,111,0, 100980,345,3,111,0,
10095345,3,112,0,345, 10099345,3,112,0,345,
@@ -10136,7 +10140,7 @@ public class yyLSLTokens : YyLexer {
101363,100,0,345,3, 101403,100,0,345,3,
10137101,0,345,3,102, 10141101,0,345,3,102,
101380,345,3,103,0, 101420,345,3,103,0,
10139874,12,1,2498,875, 10143874,12,1,2520,875,
101405,63,3,109,0, 101445,63,3,109,0,
10141345,3,110,0,345, 10145345,3,110,0,345,
101423,111,0,345,3, 101463,111,0,345,3,
@@ -10178,14 +10182,14 @@ public class yyLSLTokens : YyLexer {
101783,88,0,345,3, 101823,88,0,345,3,
1017989,0,345,3,90, 1018389,0,345,3,90,
101800,345,3,95,0, 101840,345,3,95,0,
10181876,12,1,2584,877, 10185876,12,1,2606,877,
101825,63,3,109,0, 101865,63,3,109,0,
10183345,3,110,0,345, 10187345,3,110,0,345,
101843,111,0,345,3, 101883,111,0,345,3,
10185112,0,345,3,113, 10189112,0,345,3,113,
101860,345,3,114,0, 101900,345,3,114,0,
10187345,3,115,0,878, 10191345,3,115,0,878,
1018812,1,2618,879,5, 1019212,1,2640,879,5,
1018963,3,109,0,345, 1019363,3,109,0,345,
101903,110,0,345,3, 101943,110,0,345,3,
10191111,0,345,3,112, 10195111,0,345,3,112,
@@ -10193,7 +10197,7 @@ public class yyLSLTokens : YyLexer {
10193345,3,114,0,345, 10197345,3,114,0,345,
101943,115,0,345,3, 101983,115,0,345,3,
10195116,0,880,12,1, 10199116,0,880,12,1,
101962653,881,5,63,3, 102002675,881,5,63,3,
10197109,0,345,3,110, 10201109,0,345,3,110,
101980,345,3,111,0, 102020,345,3,111,0,
10199345,3,112,0,345, 10203345,3,112,0,345,
@@ -10235,13 +10239,13 @@ public class yyLSLTokens : YyLexer {
10235345,3,89,0,345, 10239345,3,89,0,345,
102363,90,0,345,3, 102403,90,0,345,3,
1023795,0,345,3,97, 1024195,0,345,3,97,
102380,882,12,1,2696, 102420,882,12,1,2718,
10239883,5,63,3,109, 10243883,5,63,3,109,
102400,345,3,110,0, 102440,345,3,110,0,
10241345,3,111,0,345, 10245345,3,111,0,345,
102423,112,0,345,3, 102463,112,0,345,3,
10243113,0,345,3,114, 10247113,0,345,3,114,
102440,884,12,1,2729, 102480,884,12,1,2751,
10245885,5,63,3,109, 10249885,5,63,3,109,
102460,345,3,110,0, 102500,345,3,110,0,
10247345,3,111,0,345, 10251345,3,111,0,345,
@@ -10249,7 +10253,7 @@ public class yyLSLTokens : YyLexer {
10249113,0,345,3,114, 10253113,0,345,3,114,
102500,345,3,115,0, 102540,345,3,115,0,
10251345,3,116,0,886, 10255345,3,116,0,886,
1025212,1,2764,887,5, 1025612,1,2786,887,5,
1025363,3,109,0,345, 1025763,3,109,0,345,
102543,110,0,345,3, 102583,110,0,345,3,
10255111,0,345,3,112, 10259111,0,345,3,112,
@@ -10354,7 +10358,7 @@ public class yyLSLTokens : YyLexer {
103540,345,3,106,0, 103580,345,3,106,0,
10355345,3,107,0,345, 10359345,3,107,0,345,
103563,108,0,345,890, 103603,108,0,345,890,
1035711,1,845,0,348, 1036111,1,867,0,348,
103581,-1,3,115,0, 103621,-1,3,115,0,
10359345,3,116,0,345, 10363345,3,116,0,345,
103603,117,0,345,3, 103643,117,0,345,3,
@@ -10401,7 +10405,7 @@ public class yyLSLTokens : YyLexer {
10401105,0,345,3,106, 10405105,0,345,3,106,
104020,345,3,107,0, 104060,345,3,107,0,
10403345,3,108,0,345, 10407345,3,108,0,345,
10404891,11,1,845,0, 10408891,11,1,867,0,
10405348,1,-1,3,98, 10409348,1,-1,3,98,
104060,345,3,99,0, 104100,345,3,99,0,
10407345,3,100,0,345, 10411345,3,100,0,345,
@@ -10412,7 +10416,7 @@ public class yyLSLTokens : YyLexer {
104123,106,0,345,3, 104163,106,0,345,3,
10413107,0,345,3,108, 10417107,0,345,3,108,
104140,345,892,11,1, 104180,345,892,11,1,
10415845,0,348,1,-1, 10419867,0,348,1,-1,
104163,117,0,345,3, 104203,117,0,345,3,
10417118,0,345,3,119, 10421118,0,345,3,119,
104180,345,3,120,0, 104220,345,3,120,0,
@@ -10457,7 +10461,7 @@ public class yyLSLTokens : YyLexer {
10457105,0,345,3,106, 10461105,0,345,3,106,
104580,345,3,107,0, 104620,345,3,107,0,
10459345,3,108,0,345, 10463345,3,108,0,345,
10460893,11,1,845,0, 10464893,11,1,867,0,
10461348,1,-1,3,116, 10465348,1,-1,3,116,
104620,345,3,117,0, 104660,345,3,117,0,
10463345,3,118,0,345, 10467345,3,118,0,345,
@@ -10498,10 +10502,10 @@ public class yyLSLTokens : YyLexer {
104980,345,3,99,0, 105020,345,3,99,0,
10499345,3,100,0,345, 10503345,3,100,0,345,
105003,101,0,894,12, 105043,101,0,894,12,
105011,3231,895,5,63, 105051,3253,895,5,63,
105023,109,0,345,3, 105063,109,0,345,3,
10503110,0,896,12,1, 10507110,0,896,12,1,
105043260,897,5,63,3, 105083282,897,5,63,3,
10505109,0,345,3,110, 10509109,0,345,3,110,
105060,345,3,111,0, 105100,345,3,111,0,
10507345,3,112,0,345, 10511345,3,112,0,345,
@@ -10546,7 +10550,7 @@ public class yyLSLTokens : YyLexer {
105460,345,3,98,0, 105500,345,3,98,0,
10547345,3,99,0,345, 10551345,3,99,0,345,
105483,100,0,898,12, 105523,100,0,898,12,
105491,3306,899,5,63, 105531,3328,899,5,63,
105503,109,0,345,3, 105543,109,0,345,3,
10551110,0,345,3,111, 10555110,0,345,3,111,
105520,345,3,112,0, 105560,345,3,112,0,
@@ -10612,7 +10616,7 @@ public class yyLSLTokens : YyLexer {
106123,105,0,345,3, 106163,105,0,345,3,
10613106,0,345,3,107, 10617106,0,345,3,107,
106140,345,3,108,0, 106180,345,3,108,0,
10615345,902,11,1,845, 10619345,902,11,1,867,
106160,348,1,-1,3, 106200,348,1,-1,3,
10617111,0,345,3,112, 10621111,0,345,3,112,
106180,345,3,113,0, 106220,345,3,113,0,
@@ -10663,14 +10667,14 @@ public class yyLSLTokens : YyLexer {
10663345,3,106,0,345, 10667345,3,106,0,345,
106643,107,0,345,3, 106683,107,0,345,3,
10665108,0,345,903,11, 10669108,0,345,903,11,
106661,845,0,348,1, 106701,867,0,348,1,
10667-1,3,102,0,345, 10671-1,3,102,0,345,
106683,103,0,345,3, 106723,103,0,345,3,
10669104,0,345,3,105, 10673104,0,345,3,105,
106700,345,3,106,0, 106740,345,3,106,0,
10671345,3,107,0,345, 10675345,3,107,0,345,
106723,108,0,345,904, 106763,108,0,345,904,
1067311,1,845,0,348, 1067711,1,867,0,348,
106741,-1,3,97,0, 106781,-1,3,97,0,
10675345,3,98,0,345, 10679345,3,98,0,345,
106763,99,0,345,3, 106803,99,0,345,3,
@@ -10681,13 +10685,13 @@ public class yyLSLTokens : YyLexer {
10681105,0,345,3,106, 10685105,0,345,3,106,
106820,345,3,107,0, 106860,345,3,107,0,
10683345,3,108,0,345, 10687345,3,108,0,345,
10684905,11,1,845,0, 10688905,11,1,867,0,
10685348,1,-1,3,104, 10689348,1,-1,3,104,
106860,345,3,105,0, 106900,345,3,105,0,
10687345,3,106,0,345, 10691345,3,106,0,345,
106883,107,0,345,3, 106923,107,0,345,3,
10689108,0,345,906,11, 10693108,0,345,906,11,
106901,845,0,348,1, 106941,867,0,348,1,
10691-1,3,111,0,345, 10695-1,3,111,0,345,
106923,112,0,345,3, 106963,112,0,345,3,
10693113,0,345,3,114, 10697113,0,345,3,114,
@@ -10737,11 +10741,11 @@ public class yyLSLTokens : YyLexer {
10737105,0,345,3,106, 10741105,0,345,3,106,
107380,345,3,107,0, 107420,345,3,107,0,
10739345,3,108,0,345, 10743345,3,108,0,345,
10740907,11,1,845,0, 10744907,11,1,867,0,
10741348,1,-1,3,106, 10745348,1,-1,3,106,
107420,345,3,107,0, 107460,345,3,107,0,
10743345,3,108,0,345, 10747345,3,108,0,345,
10744908,11,1,845,0, 10748908,11,1,867,0,
10745348,1,-1,3,119, 10749348,1,-1,3,119,
107460,345,3,120,0, 107500,345,3,120,0,
10747345,3,121,0,345, 10751345,3,121,0,345,
@@ -10785,7 +10789,7 @@ public class yyLSLTokens : YyLexer {
10785105,0,345,3,106, 10789105,0,345,3,106,
107860,345,3,107,0, 107900,345,3,107,0,
10787345,3,108,0,345, 10791345,3,108,0,345,
10788909,11,1,845,0, 10792909,11,1,867,0,
10789348,1,-1,3,112, 10793348,1,-1,3,112,
107900,345,3,113,0, 107940,345,3,113,0,
10791345,3,114,0,345, 10795345,3,114,0,345,
@@ -10835,20 +10839,20 @@ public class yyLSLTokens : YyLexer {
10835345,3,106,0,345, 10839345,3,106,0,345,
108363,107,0,345,3, 108403,107,0,345,3,
10837108,0,345,910,11, 10841108,0,345,910,11,
108381,845,0,348,1, 108421,867,0,348,1,
10839-1,3,110,0,911, 10843-1,3,110,0,911,
1084012,1,4103,912,5, 1084412,1,4125,912,5,
1084163,3,109,0,345, 1084563,3,109,0,345,
108423,110,0,345,3, 108463,110,0,345,3,
10843111,0,913,12,1, 10847111,0,913,12,1,
108444133,914,5,63,3, 108484155,914,5,63,3,
10845109,0,345,3,110, 10849109,0,345,3,110,
108460,345,3,111,0, 108500,345,3,111,0,
10847345,3,112,0,345, 10851345,3,112,0,345,
108483,113,0,345,3, 108523,113,0,345,3,
10849114,0,345,3,115, 10853114,0,345,3,115,
108500,345,3,116,0, 108540,345,3,116,0,
10851915,12,1,4168,916, 10855915,12,1,4190,916,
108525,63,3,109,0, 108565,63,3,109,0,
10853345,3,110,0,345, 10857345,3,110,0,345,
108543,111,0,345,3, 108583,111,0,345,3,
@@ -10890,7 +10894,7 @@ public class yyLSLTokens : YyLexer {
108903,88,0,345,3, 108943,88,0,345,3,
1089189,0,345,3,90, 1089589,0,345,3,90,
108920,345,3,95,0, 108960,345,3,95,0,
10893917,12,1,4254,918, 10897917,12,1,4276,918,
108945,63,3,109,0, 108985,63,3,109,0,
10895345,3,110,0,345, 10899345,3,110,0,345,
108963,111,0,345,3, 109003,111,0,345,3,
@@ -10933,7 +10937,7 @@ public class yyLSLTokens : YyLexer {
1093389,0,345,3,90, 1093789,0,345,3,90,
109340,345,3,95,0, 109380,345,3,95,0,
10935345,3,97,0,919, 10939345,3,97,0,919,
1093612,1,4297,920,5, 1094012,1,4319,920,5,
1093763,3,109,0,345, 1094163,3,109,0,345,
109383,110,0,345,3, 109423,110,0,345,3,
10939111,0,345,3,112, 10943111,0,345,3,112,
@@ -10941,7 +10945,7 @@ public class yyLSLTokens : YyLexer {
10941345,3,114,0,345, 10945345,3,114,0,345,
109423,115,0,345,3, 109463,115,0,345,3,
10943116,0,921,12,1, 10947116,0,921,12,1,
109444332,922,5,63,3, 109484354,922,5,63,3,
10945109,0,345,3,110, 10949109,0,345,3,110,
109460,345,3,111,0, 109500,345,3,111,0,
10947345,3,112,0,345, 10951345,3,112,0,345,
@@ -10983,16 +10987,16 @@ public class yyLSLTokens : YyLexer {
10983345,3,89,0,345, 10987345,3,89,0,345,
109843,90,0,345,3, 109883,90,0,345,3,
1098595,0,923,12,1, 1098995,0,923,12,1,
109864418,924,5,63,3, 109904440,924,5,63,3,
10987109,0,345,3,110, 10991109,0,345,3,110,
109880,345,3,111,0, 109920,345,3,111,0,
10989345,3,112,0,345, 10993345,3,112,0,345,
109903,113,0,345,3, 109943,113,0,345,3,
10991114,0,925,12,1, 10995114,0,925,12,1,
109924451,926,5,63,3, 109964473,926,5,63,3,
10993109,0,345,3,110, 10997109,0,345,3,110,
109940,345,3,111,0, 109980,345,3,111,0,
10995927,12,1,4481,928, 10999927,12,1,4503,928,
109965,63,3,109,0, 110005,63,3,109,0,
10997345,3,110,0,345, 11001345,3,110,0,345,
109983,111,0,345,3, 110023,111,0,345,3,
@@ -11000,7 +11004,7 @@ public class yyLSLTokens : YyLexer {
110000,345,3,114,0, 110040,345,3,114,0,
11001345,3,115,0,345, 11005345,3,115,0,345,
110023,116,0,929,12, 110063,116,0,929,12,
110031,4516,930,5,63, 110071,4538,930,5,63,
110043,109,0,345,3, 110083,109,0,345,3,
11005110,0,345,3,111, 11009110,0,345,3,111,
110060,345,3,112,0, 110100,345,3,112,0,
@@ -11042,14 +11046,14 @@ public class yyLSLTokens : YyLexer {
110420,345,3,89,0, 110460,345,3,89,0,
11043345,3,90,0,345, 11047345,3,90,0,345,
110443,95,0,931,12, 110483,95,0,931,12,
110451,4602,932,5,63, 110491,4624,932,5,63,
110463,109,0,345,3, 110503,109,0,345,3,
11047110,0,345,3,111, 11051110,0,345,3,111,
110480,345,3,112,0, 110520,345,3,112,0,
11049345,3,113,0,345, 11053345,3,113,0,345,
110503,114,0,345,3, 110543,114,0,345,3,
11051115,0,345,3,116, 11055115,0,345,3,116,
110520,933,12,1,4637, 110560,933,12,1,4659,
11053934,5,63,3,109, 11057934,5,63,3,109,
110540,345,3,110,0, 110580,345,3,110,0,
11055345,3,111,0,345, 11059345,3,111,0,345,
@@ -11092,13 +11096,13 @@ public class yyLSLTokens : YyLexer {
110923,89,0,345,3, 110963,89,0,345,3,
1109390,0,345,3,95, 1109790,0,345,3,95,
110940,345,3,97,0, 110980,345,3,97,0,
11095935,12,1,4680,936, 11099935,12,1,4702,936,
110965,63,3,109,0, 111005,63,3,109,0,
11097345,3,110,0,345, 11101345,3,110,0,345,
110983,111,0,345,3, 111023,111,0,345,3,
11099112,0,345,3,113, 11103112,0,345,3,113,
111000,345,3,114,0, 111040,345,3,114,0,
11101937,12,1,4713,938, 11105937,12,1,4735,938,
111025,63,3,109,0, 111065,63,3,109,0,
11103345,3,110,0,345, 11107345,3,110,0,345,
111043,111,0,345,3, 111083,111,0,345,3,
@@ -11146,7 +11150,7 @@ public class yyLSLTokens : YyLexer {
111460,345,3,101,0, 111500,345,3,101,0,
11147345,3,102,0,345, 11151345,3,102,0,345,
111483,103,0,939,12, 111523,103,0,939,12,
111491,4762,940,5,63, 111531,4784,940,5,63,
111503,109,0,345,3, 111543,109,0,345,3,
11151110,0,345,3,111, 11155110,0,345,3,111,
111520,345,3,112,0, 111560,345,3,112,0,
@@ -11192,14 +11196,14 @@ public class yyLSLTokens : YyLexer {
111920,345,3,99,0, 111960,345,3,99,0,
11193345,3,100,0,345, 11197345,3,100,0,345,
111943,101,0,941,12, 111983,101,0,941,12,
111951,4809,942,5,63, 111991,4831,942,5,63,
111963,109,0,345,3, 112003,109,0,345,3,
11197110,0,345,3,111, 11201110,0,345,3,111,
111980,345,3,112,0, 112020,345,3,112,0,
11199345,3,113,0,345, 11203345,3,113,0,345,
112003,114,0,345,3, 112043,114,0,345,3,
11201115,0,345,3,116, 11205115,0,345,3,116,
112020,943,12,1,4844, 112060,943,12,1,4866,
11203944,5,63,3,109, 11207944,5,63,3,109,
112040,345,3,110,0, 112080,345,3,110,0,
11205345,3,111,0,345, 11209345,3,111,0,345,
@@ -11306,7 +11310,7 @@ public class yyLSLTokens : YyLexer {
113063,105,0,345,3, 113103,105,0,345,3,
11307106,0,345,3,107, 11311106,0,345,3,107,
113080,345,3,108,0, 113120,345,3,108,0,
11309345,947,11,1,845, 11313345,947,11,1,867,
113100,348,1,-1,3, 113140,348,1,-1,3,
11311102,0,345,3,103, 11315102,0,345,3,103,
113120,345,3,104,0, 113160,345,3,104,0,
@@ -11314,12 +11318,12 @@ public class yyLSLTokens : YyLexer {
113143,106,0,345,3, 113183,106,0,345,3,
11315107,0,345,3,108, 11319107,0,345,3,108,
113160,345,948,11,1, 113200,345,948,11,1,
11317845,0,348,1,-1, 11321867,0,348,1,-1,
113183,104,0,345,3, 113223,104,0,345,3,
11319105,0,345,3,106, 11323105,0,345,3,106,
113200,345,3,107,0, 113240,345,3,107,0,
11321345,3,108,0,345, 11325345,3,108,0,345,
11322949,11,1,845,0, 11326949,11,1,867,0,
11323348,1,-1,3,115, 11327348,1,-1,3,115,
113240,345,3,116,0, 113280,345,3,116,0,
11325345,3,117,0,345, 11329345,3,117,0,345,
@@ -11366,7 +11370,7 @@ public class yyLSLTokens : YyLexer {
113663,105,0,345,3, 113703,105,0,345,3,
11367106,0,345,3,107, 11371106,0,345,3,107,
113680,345,3,108,0, 113720,345,3,108,0,
11369345,950,11,1,845, 11373345,950,11,1,867,
113700,348,1,-1,3, 113740,348,1,-1,3,
1137198,0,345,3,99, 1137598,0,345,3,99,
113720,345,3,100,0, 113760,345,3,100,0,
@@ -11377,7 +11381,7 @@ public class yyLSLTokens : YyLexer {
11377345,3,106,0,345, 11381345,3,106,0,345,
113783,107,0,345,3, 113823,107,0,345,3,
11379108,0,345,951,11, 11383108,0,345,951,11,
113801,845,0,348,1, 113841,867,0,348,1,
11381-1,3,117,0,345, 11385-1,3,117,0,345,
113823,118,0,345,3, 113863,118,0,345,3,
11383119,0,345,3,120, 11387119,0,345,3,120,
@@ -11422,7 +11426,7 @@ public class yyLSLTokens : YyLexer {
114223,105,0,345,3, 114263,105,0,345,3,
11423106,0,345,3,107, 11427106,0,345,3,107,
114240,345,3,108,0, 114280,345,3,108,0,
11425345,952,11,1,845, 11429345,952,11,1,867,
114260,348,1,-1,3, 114300,348,1,-1,3,
1142797,0,345,3,98, 1143197,0,345,3,98,
114280,345,3,99,0, 114320,345,3,99,0,
@@ -11434,7 +11438,7 @@ public class yyLSLTokens : YyLexer {
114343,106,0,345,3, 114383,106,0,345,3,
11435107,0,345,3,108, 11439107,0,345,3,108,
114360,345,953,11,1, 114400,345,953,11,1,
11437845,0,348,1,-1, 11441867,0,348,1,-1,
114383,117,0,345,3, 114423,117,0,345,3,
11439118,0,345,3,119, 11443118,0,345,3,119,
114400,345,3,120,0, 114440,345,3,120,0,
@@ -11479,7 +11483,7 @@ public class yyLSLTokens : YyLexer {
11479105,0,345,3,106, 11483105,0,345,3,106,
114800,345,3,107,0, 114840,345,3,107,0,
11481345,3,108,0,345, 11485345,3,108,0,345,
11482954,11,1,845,0, 11486954,11,1,867,0,
11483348,1,-1,3,112, 11487348,1,-1,3,112,
114840,345,3,113,0, 114880,345,3,113,0,
11485345,3,114,0,345, 11489345,3,114,0,345,
@@ -11529,10 +11533,10 @@ public class yyLSLTokens : YyLexer {
11529345,3,106,0,345, 11533345,3,106,0,345,
115303,107,0,345,3, 115343,107,0,345,3,
11531108,0,345,955,11, 11535108,0,345,955,11,
115321,845,0,348,1, 115361,867,0,348,1,
11533-1,3,115,0,345, 11537-1,3,115,0,345,
115343,116,0,956,12, 115383,116,0,956,12,
115351,5653,957,5,63, 115391,5675,957,5,63,
115363,109,0,345,3, 115403,109,0,345,3,
11537110,0,345,3,111, 11541110,0,345,3,111,
115380,345,3,112,0, 115420,345,3,112,0,
@@ -11575,13 +11579,13 @@ public class yyLSLTokens : YyLexer {
11575345,3,90,0,345, 11579345,3,90,0,345,
115763,95,0,345,3, 115803,95,0,345,3,
1157797,0,958,12,1, 1158197,0,958,12,1,
115785696,959,5,63,3, 115825718,959,5,63,3,
11579109,0,345,3,110, 11583109,0,345,3,110,
115800,345,3,111,0, 115840,345,3,111,0,
11581345,3,112,0,345, 11585345,3,112,0,345,
115823,113,0,345,3, 115863,113,0,345,3,
11583114,0,960,12,1, 11587114,0,960,12,1,
115845729,961,5,63,3, 115885751,961,5,63,3,
11585109,0,345,3,110, 11589109,0,345,3,110,
115860,345,3,111,0, 115900,345,3,111,0,
11587345,3,112,0,345, 11591345,3,112,0,345,
@@ -11628,7 +11632,7 @@ public class yyLSLTokens : YyLexer {
116283,100,0,345,3, 116323,100,0,345,3,
11629101,0,345,3,102, 11633101,0,345,3,102,
116300,345,3,103,0, 116340,345,3,103,0,
11631962,12,1,5778,963, 11635962,12,1,5800,963,
116325,63,3,109,0, 116365,63,3,109,0,
11633345,3,110,0,345, 11637345,3,110,0,345,
116343,111,0,345,3, 116383,111,0,345,3,
@@ -11674,7 +11678,7 @@ public class yyLSLTokens : YyLexer {
116743,98,0,345,3, 116783,98,0,345,3,
1167599,0,345,3,100, 1167999,0,345,3,100,
116760,345,3,101,0, 116800,345,3,101,0,
11677964,12,1,5825,965, 11681964,12,1,5847,965,
116785,63,3,109,0, 116825,63,3,109,0,
11679345,3,110,0,345, 11683345,3,110,0,345,
116803,111,0,345,3, 116843,111,0,345,3,
@@ -11682,7 +11686,7 @@ public class yyLSLTokens : YyLexer {
116820,345,3,114,0, 116860,345,3,114,0,
11683345,3,115,0,345, 11687345,3,115,0,345,
116843,116,0,966,12, 116883,116,0,966,12,
116851,5860,967,5,63, 116891,5882,967,5,63,
116863,109,0,345,3, 116903,109,0,345,3,
11687110,0,345,3,111, 11691110,0,345,3,111,
116880,345,3,112,0, 116920,345,3,112,0,
@@ -11787,20 +11791,20 @@ public class yyLSLTokens : YyLexer {
11787105,0,345,3,106, 11791105,0,345,3,106,
117880,345,3,107,0, 117920,345,3,107,0,
11789345,3,108,0,345, 11793345,3,108,0,345,
11790970,11,1,845,0, 11794970,11,1,867,0,
11791348,1,-1,3,102, 11795348,1,-1,3,102,
117920,345,3,103,0, 117960,345,3,103,0,
11793345,3,104,0,345, 11797345,3,104,0,345,
117943,105,0,345,3, 117983,105,0,345,3,
11795106,0,345,3,107, 11799106,0,345,3,107,
117960,345,3,108,0, 118000,345,3,108,0,
11797345,971,11,1,845, 11801345,971,11,1,867,
117980,348,1,-1,3, 118020,348,1,-1,3,
11799104,0,345,3,105, 11803104,0,345,3,105,
118000,345,3,106,0, 118040,345,3,106,0,
11801345,3,107,0,345, 11805345,3,107,0,345,
118023,108,0,345,972, 118063,108,0,345,972,
1180311,1,845,0,348, 1180711,1,867,0,348,
118041,-1,3,115,0, 118081,-1,3,115,0,
11805345,3,116,0,345, 11809345,3,116,0,345,
118063,117,0,345,3, 118103,117,0,345,3,
@@ -11847,7 +11851,7 @@ public class yyLSLTokens : YyLexer {
11847105,0,345,3,106, 11851105,0,345,3,106,
118480,345,3,107,0, 118520,345,3,107,0,
11849345,3,108,0,345, 11853345,3,108,0,345,
11850973,11,1,845,0, 11854973,11,1,867,0,
11851348,1,-1,3,98, 11855348,1,-1,3,98,
118520,345,3,99,0, 118560,345,3,99,0,
11853345,3,100,0,345, 11857345,3,100,0,345,
@@ -11858,7 +11862,7 @@ public class yyLSLTokens : YyLexer {
118583,106,0,345,3, 118623,106,0,345,3,
11859107,0,345,3,108, 11863107,0,345,3,108,
118600,345,974,11,1, 118640,345,974,11,1,
11861845,0,348,1,-1, 11865867,0,348,1,-1,
118623,117,0,345,3, 118663,117,0,345,3,
11863118,0,345,3,119, 11867118,0,345,3,119,
118640,345,3,120,0, 118680,345,3,120,0,
@@ -11903,7 +11907,7 @@ public class yyLSLTokens : YyLexer {
11903105,0,345,3,106, 11907105,0,345,3,106,
119040,345,3,107,0, 119080,345,3,107,0,
11905345,3,108,0,345, 11909345,3,108,0,345,
11906975,11,1,845,0, 11910975,11,1,867,0,
11907348,1,-1,3,97, 11911348,1,-1,3,97,
119080,345,3,98,0, 119120,345,3,98,0,
11909345,3,99,0,345, 11913345,3,99,0,345,
@@ -11914,7 +11918,7 @@ public class yyLSLTokens : YyLexer {
119143,105,0,345,3, 119183,105,0,345,3,
11915106,0,345,3,107, 11919106,0,345,3,107,
119160,345,3,108,0, 119200,345,3,108,0,
11917345,976,11,1,845, 11921345,976,11,1,867,
119180,348,1,-1,3, 119220,348,1,-1,3,
11919117,0,345,3,118, 11923117,0,345,3,118,
119200,345,3,119,0, 119240,345,3,119,0,
@@ -11960,7 +11964,7 @@ public class yyLSLTokens : YyLexer {
119600,345,3,106,0, 119640,345,3,106,0,
11961345,3,107,0,345, 11965345,3,107,0,345,
119623,108,0,345,977, 119663,108,0,345,977,
1196311,1,845,0,348, 1196711,1,867,0,348,
119641,-1,3,98,0, 119681,-1,3,98,0,
11965345,3,99,0,345, 11969345,3,99,0,345,
119663,100,0,345,3, 119703,100,0,345,3,
@@ -11970,7 +11974,7 @@ public class yyLSLTokens : YyLexer {
119703,105,0,345,3, 119743,105,0,345,3,
11971106,0,345,3,107, 11975106,0,345,3,107,
119720,345,3,108,0, 119760,345,3,108,0,
11973345,978,11,1,845, 11977345,978,11,1,867,
119740,348,1,-1,3, 119780,348,1,-1,3,
1197597,0,345,3,98, 1197997,0,345,3,98,
119760,345,3,99,0, 119800,345,3,99,0,
@@ -11982,7 +11986,7 @@ public class yyLSLTokens : YyLexer {
119823,106,0,345,3, 119863,106,0,345,3,
11983107,0,345,3,108, 11987107,0,345,3,108,
119840,345,979,11,1, 119880,345,979,11,1,
11985845,0,348,1,-1, 11989867,0,348,1,-1,
119863,117,0,345,3, 119903,117,0,345,3,
11987118,0,345,3,119, 11991118,0,345,3,119,
119880,345,3,120,0, 119920,345,3,120,0,
@@ -12017,14 +12021,14 @@ public class yyLSLTokens : YyLexer {
12017345,3,88,0,345, 12021345,3,88,0,345,
120183,89,0,345,3, 120223,89,0,345,3,
1201990,0,345,3,95, 1202390,0,345,3,95,
120200,980,12,1,6739, 120240,980,12,1,6761,
12021981,5,63,3,109, 12025981,5,63,3,109,
120220,345,3,110,0, 120260,345,3,110,0,
12023345,3,111,0,345, 12027345,3,111,0,345,
120243,112,0,345,3, 120283,112,0,345,3,
12025113,0,345,3,114, 12029113,0,345,3,114,
120260,345,3,115,0, 120300,345,3,115,0,
12027982,12,1,6773,983, 12031982,12,1,6795,983,
120285,63,3,109,0, 120325,63,3,109,0,
12029345,3,110,0,345, 12033345,3,110,0,345,
120303,111,0,345,3, 120343,111,0,345,3,
@@ -12070,26 +12074,26 @@ public class yyLSLTokens : YyLexer {
120703,98,0,345,3, 120743,98,0,345,3,
1207199,0,345,3,100, 1207599,0,345,3,100,
120720,345,3,101,0, 120760,345,3,101,0,
12073984,12,1,6820,985, 12077984,12,1,6842,985,
120745,63,3,109,0, 120785,63,3,109,0,
12075345,3,110,0,986, 12079345,3,110,0,986,
1207612,1,6849,987,5, 1208012,1,6871,987,5,
1207763,3,109,0,345, 1208163,3,109,0,345,
120783,110,0,345,3, 120823,110,0,345,3,
12079111,0,345,3,112, 12083111,0,345,3,112,
120800,345,3,113,0, 120840,345,3,113,0,
12081345,3,114,0,345, 12085345,3,114,0,345,
120823,115,0,988,12, 120863,115,0,988,12,
120831,6883,989,5,63, 120871,6905,989,5,63,
120843,109,0,345,3, 120883,109,0,345,3,
12085110,0,345,3,111, 12089110,0,345,3,111,
120860,990,12,1,6913, 120900,990,12,1,6935,
12087991,5,63,3,109, 12091991,5,63,3,109,
120880,345,3,110,0, 120920,345,3,110,0,
12089345,3,111,0,345, 12093345,3,111,0,345,
120903,112,0,345,3, 120943,112,0,345,3,
12091113,0,345,3,114, 12095113,0,345,3,114,
120920,992,12,1,6946, 120960,992,12,1,6968,
12093993,5,63,3,109, 12097993,5,63,3,109,
120940,345,3,110,0, 120980,345,3,110,0,
12095345,3,111,0,345, 12099345,3,111,0,345,
@@ -12195,7 +12199,7 @@ public class yyLSLTokens : YyLexer {
12195345,3,106,0,345, 12199345,3,106,0,345,
121963,107,0,345,3, 122003,107,0,345,3,
12197108,0,345,996,11, 12201108,0,345,996,11,
121981,845,0,348,1, 122021,867,0,348,1,
12199-1,3,112,0,345, 12203-1,3,112,0,345,
122003,113,0,345,3, 122043,113,0,345,3,
12201114,0,345,3,115, 12205114,0,345,3,115,
@@ -12244,7 +12248,7 @@ public class yyLSLTokens : YyLexer {
122443,105,0,345,3, 122483,105,0,345,3,
12245106,0,345,3,107, 12249106,0,345,3,107,
122460,345,3,108,0, 122500,345,3,108,0,
12247345,997,11,1,845, 12251345,997,11,1,867,
122480,348,1,-1,3, 122520,348,1,-1,3,
12249116,0,345,3,117, 12253116,0,345,3,117,
122500,345,3,118,0, 122540,345,3,118,0,
@@ -12291,7 +12295,7 @@ public class yyLSLTokens : YyLexer {
12291345,3,106,0,345, 12295345,3,106,0,345,
122923,107,0,345,3, 122963,107,0,345,3,
12293108,0,345,998,11, 12297108,0,345,998,11,
122941,845,0,348,1, 122981,867,0,348,1,
12295-1,3,111,0,345, 12299-1,3,111,0,345,
122963,112,0,345,3, 123003,112,0,345,3,
12297113,0,345,3,114, 12301113,0,345,3,114,
@@ -12341,14 +12345,14 @@ public class yyLSLTokens : YyLexer {
12341105,0,345,3,106, 12345105,0,345,3,106,
123420,345,3,107,0, 123460,345,3,107,0,
12343345,3,108,0,345, 12347345,3,108,0,345,
12344999,11,1,845,0, 12348999,11,1,867,0,
12345348,1,-1,3,102, 12349348,1,-1,3,102,
123460,345,3,103,0, 123500,345,3,103,0,
12347345,3,104,0,345, 12351345,3,104,0,345,
123483,105,0,345,3, 123523,105,0,345,3,
12349106,0,345,3,107, 12353106,0,345,3,107,
123500,345,3,108,0, 123540,345,3,108,0,
12351345,1000,11,1,845, 12355345,1000,11,1,867,
123520,348,1,-1,3, 123560,348,1,-1,3,
12353116,0,345,3,117, 12357116,0,345,3,117,
123540,345,3,118,0, 123580,345,3,118,0,
@@ -12395,7 +12399,7 @@ public class yyLSLTokens : YyLexer {
12395345,3,106,0,345, 12399345,3,106,0,345,
123963,107,0,345,3, 124003,107,0,345,3,
12397108,0,345,1001,11, 12401108,0,345,1001,11,
123981,845,0,348,1, 124021,867,0,348,1,
12399-1,3,97,0,345, 12403-1,3,97,0,345,
124003,98,0,345,3, 124043,98,0,345,3,
1240199,0,345,3,100, 1240599,0,345,3,100,
@@ -12406,7 +12410,7 @@ public class yyLSLTokens : YyLexer {
124060,345,3,106,0, 124100,345,3,106,0,
12407345,3,107,0,345, 12411345,3,107,0,345,
124083,108,0,345,1002, 124123,108,0,345,1002,
1240911,1,845,0,348, 1241311,1,867,0,348,
124101,-1,3,112,0, 124141,-1,3,112,0,
12411345,3,113,0,345, 12415345,3,113,0,345,
124123,114,0,345,3, 124163,114,0,345,3,
@@ -12456,12 +12460,12 @@ public class yyLSLTokens : YyLexer {
124563,106,0,345,3, 124603,106,0,345,3,
12457107,0,345,3,108, 12461107,0,345,3,108,
124580,345,1003,11,1, 124620,345,1003,11,1,
12459845,0,348,1,-1, 12463867,0,348,1,-1,
124603,111,0,1004,12, 124643,111,0,1004,12,
124611,7704,1005,5,63, 124651,7726,1005,5,63,
124623,109,0,345,3, 124663,109,0,345,3,
12463110,0,1006,12,1, 12467110,0,1006,12,1,
124647733,1007,5,63,3, 124687755,1007,5,63,3,
12465109,0,345,3,110, 12469109,0,345,3,110,
124660,345,3,111,0, 124700,345,3,111,0,
12467345,3,112,0,345, 12471345,3,112,0,345,
@@ -12503,13 +12507,13 @@ public class yyLSLTokens : YyLexer {
12503345,3,89,0,345, 12507345,3,89,0,345,
125043,90,0,345,3, 125083,90,0,345,3,
1250595,0,1008,12,1, 1250995,0,1008,12,1,
125067819,1009,5,63,3, 125107841,1009,5,63,3,
12507109,0,345,3,110, 12511109,0,345,3,110,
125080,345,3,111,0, 125120,345,3,111,0,
12509345,3,112,0,345, 12513345,3,112,0,345,
125103,113,0,345,3, 125143,113,0,345,3,
12511114,0,1010,12,1, 12515114,0,1010,12,1,
125127852,1011,5,63,3, 125167874,1011,5,63,3,
12513109,0,345,3,110, 12517109,0,345,3,110,
125140,345,3,111,0, 125180,345,3,111,0,
12515345,3,112,0,345, 12519345,3,112,0,345,
@@ -12555,7 +12559,7 @@ public class yyLSLTokens : YyLexer {
12555345,3,99,0,345, 12559345,3,99,0,345,
125563,100,0,345,3, 125603,100,0,345,3,
12557101,0,1012,12,1, 12561101,0,1012,12,1,
125587899,1013,5,63,3, 125627921,1013,5,63,3,
12559109,0,345,3,110, 12563109,0,345,3,110,
125600,345,3,111,0, 125640,345,3,111,0,
12561345,3,112,0,345, 12565345,3,112,0,345,
@@ -12567,7 +12571,7 @@ public class yyLSLTokens : YyLexer {
12567119,0,345,3,120, 12571119,0,345,3,120,
125680,345,3,121,0, 125720,345,3,121,0,
12569345,3,122,0,1014, 12573345,3,122,0,1014,
1257012,1,7940,1015,5, 1257412,1,7962,1015,5,
1257163,3,109,0,345, 1257563,3,109,0,345,
125723,110,0,345,3, 125763,110,0,345,3,
12573111,0,345,3,112, 12577111,0,345,3,112,
@@ -12665,14 +12669,14 @@ public class yyLSLTokens : YyLexer {
12665345,3,106,0,345, 12669345,3,106,0,345,
126663,107,0,345,3, 126703,107,0,345,3,
12667108,0,345,1018,11, 12671108,0,345,1018,11,
126681,845,0,348,1, 126721,867,0,348,1,
12669-1,3,102,0,345, 12673-1,3,102,0,345,
126703,103,0,345,3, 126743,103,0,345,3,
12671104,0,345,3,105, 12675104,0,345,3,105,
126720,345,3,106,0, 126760,345,3,106,0,
12673345,3,107,0,345, 12677345,3,107,0,345,
126743,108,0,345,1019, 126783,108,0,345,1019,
1267511,1,845,0,348, 1267911,1,867,0,348,
126761,-1,3,115,0, 126801,-1,3,115,0,
12677345,3,116,0,345, 12681345,3,116,0,345,
126783,117,0,345,3, 126823,117,0,345,3,
@@ -12719,7 +12723,7 @@ public class yyLSLTokens : YyLexer {
12719105,0,345,3,106, 12723105,0,345,3,106,
127200,345,3,107,0, 127240,345,3,107,0,
12721345,3,108,0,345, 12725345,3,108,0,345,
127221020,11,1,845,0, 127261020,11,1,867,0,
12723348,1,-1,3,97, 12727348,1,-1,3,97,
127240,345,3,98,0, 127280,345,3,98,0,
12725345,3,99,0,345, 12729345,3,99,0,345,
@@ -12730,7 +12734,7 @@ public class yyLSLTokens : YyLexer {
127303,105,0,345,3, 127343,105,0,345,3,
12731106,0,345,3,107, 12735106,0,345,3,107,
127320,345,3,108,0, 127360,345,3,108,0,
12733345,1021,11,1,845, 12737345,1021,11,1,867,
127340,348,1,-1,3, 127380,348,1,-1,3,
12735111,0,345,3,112, 12739111,0,345,3,112,
127360,345,3,113,0, 127400,345,3,113,0,
@@ -12773,7 +12777,7 @@ public class yyLSLTokens : YyLexer {
12773345,3,95,0,345, 12777345,3,95,0,345,
127743,97,0,345,3, 127783,97,0,345,3,
1277598,0,1022,12,1, 1277998,0,1022,12,1,
127768348,1023,5,63,3, 127808370,1023,5,63,3,
12777109,0,345,3,110, 12781109,0,345,3,110,
127780,345,3,111,0, 127820,345,3,111,0,
12779345,3,112,0,345, 12783345,3,112,0,345,
@@ -12823,7 +12827,7 @@ public class yyLSLTokens : YyLexer {
12823345,3,104,0,345, 12827345,3,104,0,345,
128243,105,0,345,3, 128283,105,0,345,3,
12825106,0,1024,12,1, 12829106,0,1024,12,1,
128268400,1025,5,63,3, 128308422,1025,5,63,3,
12827109,0,345,3,110, 12831109,0,345,3,110,
128280,345,3,111,0, 128320,345,3,111,0,
12829345,3,112,0,345, 12833345,3,112,0,345,
@@ -12869,7 +12873,7 @@ public class yyLSLTokens : YyLexer {
12869345,3,99,0,345, 12873345,3,99,0,345,
128703,100,0,345,3, 128743,100,0,345,3,
12871101,0,1026,12,1, 12875101,0,1026,12,1,
128728447,1027,5,63,3, 128768469,1027,5,63,3,
12873109,0,345,3,110, 12877109,0,345,3,110,
128740,345,3,111,0, 128780,345,3,111,0,
12875345,3,112,0,345, 12879345,3,112,0,345,
@@ -12913,7 +12917,7 @@ public class yyLSLTokens : YyLexer {
1291395,0,345,3,97, 1291795,0,345,3,97,
129140,345,3,98,0, 129180,345,3,98,0,
12915345,3,99,0,1028, 12919345,3,99,0,1028,
1291612,1,8492,1029,5, 1292012,1,8514,1029,5,
1291763,3,109,0,345, 1292163,3,109,0,345,
129183,110,0,345,3, 129223,110,0,345,3,
12919111,0,345,3,112, 12923111,0,345,3,112,
@@ -12921,7 +12925,7 @@ public class yyLSLTokens : YyLexer {
12921345,3,114,0,345, 12925345,3,114,0,345,
129223,115,0,345,3, 129263,115,0,345,3,
12923116,0,1030,12,1, 12927116,0,1030,12,1,
129248527,1031,5,63,3, 129288549,1031,5,63,3,
12925109,0,345,3,110, 12929109,0,345,3,110,
129260,345,3,111,0, 129300,345,3,111,0,
12927345,3,112,0,345, 12931345,3,112,0,345,
@@ -12963,13 +12967,13 @@ public class yyLSLTokens : YyLexer {
12963345,3,89,0,345, 12967345,3,89,0,345,
129643,90,0,345,3, 129683,90,0,345,3,
1296595,0,1032,12,1, 1296995,0,1032,12,1,
129668613,1033,5,63,3, 129708635,1033,5,63,3,
12967109,0,345,3,110, 12971109,0,345,3,110,
129680,345,3,111,0, 129720,345,3,111,0,
12969345,3,112,0,345, 12973345,3,112,0,345,
129703,113,0,345,3, 129743,113,0,345,3,
12971114,0,1034,12,1, 12975114,0,1034,12,1,
129728646,1035,5,63,3, 129768668,1035,5,63,3,
12973109,0,345,3,110, 12977109,0,345,3,110,
129740,345,3,111,0, 129780,345,3,111,0,
12975345,3,112,0,345, 12979345,3,112,0,345,
@@ -13015,7 +13019,7 @@ public class yyLSLTokens : YyLexer {
13015345,3,99,0,345, 13019345,3,99,0,345,
130163,100,0,345,3, 130203,100,0,345,3,
13017101,0,1036,12,1, 13021101,0,1036,12,1,
130188693,1037,5,63,3, 130228715,1037,5,63,3,
13019109,0,345,3,110, 13023109,0,345,3,110,
130200,345,3,111,0, 130240,345,3,111,0,
13021345,3,112,0,345, 13025345,3,112,0,345,
@@ -13027,7 +13031,7 @@ public class yyLSLTokens : YyLexer {
13027119,0,345,3,120, 13031119,0,345,3,120,
130280,345,3,121,0, 130320,345,3,121,0,
13029345,3,122,0,1038, 13033345,3,122,0,1038,
1303012,1,8734,1039,5, 1303412,1,8756,1039,5,
1303163,3,109,0,345, 1303563,3,109,0,345,
130323,110,0,345,3, 130363,110,0,345,3,
13033111,0,345,3,112, 13037111,0,345,3,112,
@@ -13126,7 +13130,7 @@ public class yyLSLTokens : YyLexer {
131263,105,0,345,3, 131303,105,0,345,3,
13127106,0,345,3,107, 13131106,0,345,3,107,
131280,345,3,108,0, 131320,345,3,108,0,
13129345,1042,11,1,845, 13133345,1042,11,1,867,
131300,348,1,-1,3, 131340,348,1,-1,3,
13131102,0,345,3,103, 13135102,0,345,3,103,
131320,345,3,104,0, 131360,345,3,104,0,
@@ -13134,7 +13138,7 @@ public class yyLSLTokens : YyLexer {
131343,106,0,345,3, 131383,106,0,345,3,
13135107,0,345,3,108, 13139107,0,345,3,108,
131360,345,1043,11,1, 131400,345,1043,11,1,
13137845,0,348,1,-1, 13141867,0,348,1,-1,
131383,115,0,345,3, 131423,115,0,345,3,
13139116,0,345,3,117, 13143116,0,345,3,117,
131400,345,3,118,0, 131440,345,3,118,0,
@@ -13181,7 +13185,7 @@ public class yyLSLTokens : YyLexer {
13181345,3,106,0,345, 13185345,3,106,0,345,
131823,107,0,345,3, 131863,107,0,345,3,
13183108,0,345,1044,11, 13187108,0,345,1044,11,
131841,845,0,348,1, 131881,867,0,348,1,
13185-1,3,97,0,345, 13189-1,3,97,0,345,
131863,98,0,345,3, 131903,98,0,345,3,
1318799,0,345,3,100, 1319199,0,345,3,100,
@@ -13192,7 +13196,7 @@ public class yyLSLTokens : YyLexer {
131920,345,3,106,0, 131960,345,3,106,0,
13193345,3,107,0,345, 13197345,3,107,0,345,
131943,108,0,345,1045, 131983,108,0,345,1045,
1319511,1,845,0,348, 1319911,1,867,0,348,
131961,-1,3,117,0, 132001,-1,3,117,0,
13197345,3,118,0,345, 13201345,3,118,0,345,
131983,119,0,345,3, 132023,119,0,345,3,
@@ -13238,7 +13242,7 @@ public class yyLSLTokens : YyLexer {
132383,106,0,345,3, 132423,106,0,345,3,
13239107,0,345,3,108, 13243107,0,345,3,108,
132400,345,1046,11,1, 132440,345,1046,11,1,
13241845,0,348,1,-1, 13245867,0,348,1,-1,
132423,100,0,345,3, 132463,100,0,345,3,
13243101,0,345,3,102, 13247101,0,345,3,102,
132440,345,3,103,0, 132480,345,3,103,0,
@@ -13246,7 +13250,7 @@ public class yyLSLTokens : YyLexer {
132463,105,0,345,3, 132503,105,0,345,3,
13247106,0,345,3,107, 13251106,0,345,3,107,
132480,345,3,108,0, 132520,345,3,108,0,
13249345,1047,11,1,845, 13253345,1047,11,1,867,
132500,348,1,-1,3, 132540,348,1,-1,3,
13251102,0,345,3,103, 13255102,0,345,3,103,
132520,345,3,104,0, 132560,345,3,104,0,
@@ -13254,10 +13258,10 @@ public class yyLSLTokens : YyLexer {
132543,106,0,345,3, 132583,106,0,345,3,
13255107,0,345,3,108, 13259107,0,345,3,108,
132560,345,1048,11,1, 132600,345,1048,11,1,
13257845,0,348,1,-1, 13261867,0,348,1,-1,
132583,107,0,345,3, 132623,107,0,345,3,
13259108,0,345,1049,11, 13263108,0,345,1049,11,
132601,845,0,348,1, 132641,867,0,348,1,
13261-1,3,99,0,345, 13265-1,3,99,0,345,
132623,100,0,345,3, 132663,100,0,345,3,
13263101,0,345,3,102, 13267101,0,345,3,102,
@@ -13266,22 +13270,22 @@ public class yyLSLTokens : YyLexer {
132663,105,0,345,3, 132703,105,0,345,3,
13267106,0,345,3,107, 13271106,0,345,3,107,
132680,345,3,108,0, 132720,345,3,108,0,
13269345,1050,11,1,845, 13273345,1050,11,1,867,
132700,348,1,-1,3, 132740,348,1,-1,3,
13271112,0,343,3,113, 13275112,0,343,3,113,
132720,343,3,114,0, 132760,343,3,114,0,
132731051,12,1,9507,1052, 132771051,12,1,9529,1052,
132745,63,3,109,0, 132785,63,3,109,0,
13275345,3,110,0,345, 13279345,3,110,0,345,
132763,111,0,1053,12, 132803,111,0,1053,12,
132771,9537,1054,5,63, 132811,9559,1054,5,63,
132783,109,0,345,3, 132823,109,0,345,3,
13279110,0,345,3,111, 13283110,0,345,3,111,
132800,345,3,112,0, 132840,345,3,112,0,
13281345,3,113,0,345, 13285345,3,113,0,345,
132823,114,0,345,3, 132863,114,0,345,3,
13283115,0,345,3,116, 13287115,0,345,3,116,
132840,1055,12,1,9572, 132880,1055,12,1,9594,
132851056,5,63,3,109, 132891056,5,63,3,109,
132860,345,3,110,0, 132900,345,3,110,0,
13287345,3,111,0,345, 13291345,3,111,0,345,
@@ -13324,7 +13328,7 @@ public class yyLSLTokens : YyLexer {
133243,89,0,345,3, 133283,89,0,345,3,
1332590,0,345,3,95, 1332990,0,345,3,95,
133260,345,3,97,0, 133300,345,3,97,0,
133271057,12,1,9615,1058, 133311057,12,1,9637,1058,
133285,63,3,109,0, 133325,63,3,109,0,
13329345,3,110,0,345, 13333345,3,110,0,345,
133303,111,0,345,3, 133343,111,0,345,3,
@@ -13332,7 +13336,7 @@ public class yyLSLTokens : YyLexer {
133320,345,3,114,0, 133360,345,3,114,0,
13333345,3,115,0,345, 13337345,3,115,0,345,
133343,116,0,1059,12, 133383,116,0,1059,12,
133351,9650,1060,5,63, 133391,9672,1060,5,63,
133363,109,0,345,3, 133403,109,0,345,3,
13337110,0,345,3,111, 13341110,0,345,3,111,
133380,345,3,112,0, 133420,345,3,112,0,
@@ -13381,13 +13385,13 @@ public class yyLSLTokens : YyLexer {
13381102,0,345,3,103, 13385102,0,345,3,103,
133820,345,3,104,0, 133860,345,3,104,0,
13383345,3,105,0,1061, 13387345,3,105,0,1061,
1338412,1,9701,1062,5, 1338812,1,9723,1062,5,
1338563,3,109,0,345, 1338963,3,109,0,345,
133863,110,0,345,3, 133903,110,0,345,3,
13387111,0,1063,12,1, 13391111,0,1063,12,1,
133889731,1064,5,63,3, 133929753,1064,5,63,3,
13389109,0,345,3,110, 13393109,0,345,3,110,
133900,1065,12,1,9760, 133940,1065,12,1,9782,
133911066,5,63,3,109, 133951066,5,63,3,109,
133920,345,3,110,0, 133960,345,3,110,0,
13393345,3,111,0,345, 13397345,3,111,0,345,
@@ -13495,7 +13499,7 @@ public class yyLSLTokens : YyLexer {
13495105,0,345,3,106, 13499105,0,345,3,106,
134960,345,3,107,0, 135000,345,3,107,0,
13497345,3,108,0,345, 13501345,3,108,0,345,
134981069,11,1,845,0, 135021069,11,1,867,0,
13499348,1,-1,3,112, 13503348,1,-1,3,112,
135000,345,3,113,0, 135040,345,3,113,0,
13501345,3,114,0,345, 13505345,3,114,0,345,
@@ -13545,11 +13549,11 @@ public class yyLSLTokens : YyLexer {
13545345,3,106,0,345, 13549345,3,106,0,345,
135463,107,0,345,3, 135503,107,0,345,3,
13547108,0,345,1070,11, 13551108,0,345,1070,11,
135481,845,0,348,1, 135521,867,0,348,1,
13549-1,3,106,0,345, 13553-1,3,106,0,345,
135503,107,0,345,3, 135543,107,0,345,3,
13551108,0,345,1071,11, 13555108,0,345,1071,11,
135521,845,0,348,1, 135561,867,0,348,1,
13553-1,3,117,0,345, 13557-1,3,117,0,345,
135543,118,0,345,3, 135583,118,0,345,3,
13555119,0,345,3,120, 13559119,0,345,3,120,
@@ -13594,7 +13598,7 @@ public class yyLSLTokens : YyLexer {
135943,105,0,345,3, 135983,105,0,345,3,
13595106,0,345,3,107, 13599106,0,345,3,107,
135960,345,3,108,0, 136000,345,3,108,0,
13597345,1072,11,1,845, 13601345,1072,11,1,867,
135980,348,1,-1,3, 136020,348,1,-1,3,
1359998,0,345,3,99, 1360398,0,345,3,99,
136000,345,3,100,0, 136040,345,3,100,0,
@@ -13605,7 +13609,7 @@ public class yyLSLTokens : YyLexer {
13605345,3,106,0,345, 13609345,3,106,0,345,
136063,107,0,345,3, 136103,107,0,345,3,
13607108,0,345,1073,11, 13611108,0,345,1073,11,
136081,845,0,348,1, 136121,867,0,348,1,
13609-1,3,117,0,345, 13613-1,3,117,0,345,
136103,118,0,345,3, 136143,118,0,345,3,
13611119,0,345,3,120, 13615119,0,345,3,120,
@@ -13650,16 +13654,16 @@ public class yyLSLTokens : YyLexer {
136503,105,0,345,3, 136543,105,0,345,3,
13651106,0,345,3,107, 13655106,0,345,3,107,
136520,345,3,108,0, 136560,345,3,108,0,
13653345,1074,11,1,845, 13657345,1074,11,1,867,
136540,348,1,-1,3, 136580,348,1,-1,3,
13655112,0,345,3,113, 13659112,0,345,3,113,
136560,345,3,114,0, 136600,345,3,114,0,
13657345,3,115,0,345, 13661345,3,115,0,345,
136583,116,0,345,3, 136623,116,0,345,3,
13659117,0,1075,12,1, 13663117,0,1075,12,1,
1366010383,1076,5,63,3, 1366410405,1076,5,63,3,
13661109,0,345,3,110, 13665109,0,345,3,110,
136620,1077,12,1,10412, 136660,1077,12,1,10434,
136631078,5,63,3,109, 136671078,5,63,3,109,
136640,345,3,110,0, 136680,345,3,110,0,
13665345,3,111,0,345, 13669345,3,111,0,345,
@@ -13701,7 +13705,7 @@ public class yyLSLTokens : YyLexer {
13701345,3,88,0,345, 13705345,3,88,0,345,
137023,89,0,345,3, 137063,89,0,345,3,
1370390,0,345,3,95, 1370790,0,345,3,95,
137040,1079,12,1,10498, 137080,1079,12,1,10520,
137051080,5,63,3,109, 137091080,5,63,3,109,
137060,345,3,110,0, 137100,345,3,110,0,
13707345,3,111,0,345, 13711345,3,111,0,345,
@@ -13709,7 +13713,7 @@ public class yyLSLTokens : YyLexer {
13709113,0,345,3,114, 13713113,0,345,3,114,
137100,345,3,115,0, 137140,345,3,115,0,
13711345,3,116,0,1081, 13715345,3,116,0,1081,
1371212,1,10533,1082,5, 1371612,1,10555,1082,5,
1371363,3,109,0,345, 1371763,3,109,0,345,
137143,110,0,345,3, 137183,110,0,345,3,
13715111,0,345,3,112, 13719111,0,345,3,112,
@@ -13758,9 +13762,9 @@ public class yyLSLTokens : YyLexer {
137583,102,0,345,3, 137623,102,0,345,3,
13759103,0,345,3,104, 13763103,0,345,3,104,
137600,345,3,105,0, 137640,345,3,105,0,
137611083,12,1,10584,1084, 137651083,12,1,10606,1084,
137625,63,3,109,0, 137665,63,3,109,0,
137631085,12,1,10612,1086, 137671085,12,1,10634,1086,
137645,63,3,109,0, 137685,63,3,109,0,
13765345,3,110,0,345, 13769345,3,110,0,345,
137663,111,0,345,3, 137703,111,0,345,3,
@@ -13806,7 +13810,7 @@ public class yyLSLTokens : YyLexer {
138063,98,0,345,3, 138103,98,0,345,3,
1380799,0,345,3,100, 1381199,0,345,3,100,
138080,345,3,101,0, 138120,345,3,101,0,
138091087,12,1,10659,1088, 138131087,12,1,10681,1088,
138105,63,3,109,0, 138145,63,3,109,0,
13811345,3,110,0,345, 13815345,3,110,0,345,
138123,111,0,345,3, 138163,111,0,345,3,
@@ -13848,12 +13852,12 @@ public class yyLSLTokens : YyLexer {
138483,88,0,345,3, 138523,88,0,345,3,
1384989,0,345,3,90, 1385389,0,345,3,90,
138500,345,3,95,0, 138540,345,3,95,0,
138511089,12,1,10745,1090, 138551089,12,1,10767,1090,
138525,63,3,109,0, 138565,63,3,109,0,
13853345,3,110,0,345, 13857345,3,110,0,345,
138543,111,0,345,3, 138583,111,0,345,3,
13855112,0,1091,12,1, 13859112,0,1091,12,1,
1385610776,1092,5,63,3, 1386010798,1092,5,63,3,
13857109,0,345,3,110, 13861109,0,345,3,110,
138580,345,3,111,0, 138620,345,3,111,0,
13859345,3,112,0,345, 13863345,3,112,0,345,
@@ -13899,15 +13903,15 @@ public class yyLSLTokens : YyLexer {
13899345,3,99,0,345, 13903345,3,99,0,345,
139003,100,0,345,3, 139043,100,0,345,3,
13901101,0,1093,12,1, 13905101,0,1093,12,1,
1390210823,1094,5,63,3, 1390610845,1094,5,63,3,
13903109,0,345,3,110, 13907109,0,345,3,110,
139040,345,3,111,0, 139080,345,3,111,0,
13905345,3,112,0,345, 13909345,3,112,0,345,
139063,113,0,345,3, 139103,113,0,345,3,
13907114,0,1095,12,1, 13911114,0,1095,12,1,
1390810856,1096,5,63,3, 1391210878,1096,5,63,3,
13909109,0,1097,12,1, 13913109,0,1097,12,1,
1391010884,1098,5,63,3, 1391410906,1098,5,63,3,
13911109,0,345,3,110, 13915109,0,345,3,110,
139120,345,3,111,0, 139160,345,3,111,0,
13913345,3,112,0,345, 13917345,3,112,0,345,
@@ -13956,20 +13960,20 @@ public class yyLSLTokens : YyLexer {
139560,345,3,103,0, 139600,345,3,103,0,
13957345,3,104,0,345, 13961345,3,104,0,345,
139583,105,0,1099,12, 139623,105,0,1099,12,
139591,10935,1100,5,63, 139631,10957,1100,5,63,
139603,109,0,345,3, 139643,109,0,345,3,
13961110,0,345,3,111, 13965110,0,345,3,111,
139620,345,3,112,0, 139660,345,3,112,0,
13963345,3,113,0,345, 13967345,3,113,0,345,
139643,114,0,345,3, 139683,114,0,345,3,
13965115,0,1101,12,1, 13969115,0,1101,12,1,
1396610969,1102,5,63,3, 1397010991,1102,5,63,3,
13967109,0,345,3,110, 13971109,0,345,3,110,
139680,345,3,111,0, 139720,345,3,111,0,
13969345,3,112,0,345, 13973345,3,112,0,345,
139703,113,0,345,3, 139743,113,0,345,3,
13971114,0,345,3,115, 13975114,0,345,3,115,
139720,1103,12,1,11003, 139760,1103,12,1,11025,
139731104,5,63,3,109, 139771104,5,63,3,109,
139740,345,3,110,0, 139780,345,3,110,0,
13975345,3,111,0,345, 13979345,3,111,0,345,
@@ -14019,20 +14023,20 @@ public class yyLSLTokens : YyLexer {
14019345,3,103,0,345, 14023345,3,103,0,345,
140203,104,0,345,3, 140243,104,0,345,3,
14021105,0,1105,12,1, 14025105,0,1105,12,1,
1402211054,1106,5,63,3, 1402611076,1106,5,63,3,
14023109,0,345,3,110, 14027109,0,345,3,110,
140240,345,3,111,0, 140280,345,3,111,0,
140251107,12,1,11084,1108, 140291107,12,1,11106,1108,
140265,63,3,109,0, 140305,63,3,109,0,
14027345,3,110,0,1109, 14031345,3,110,0,1109,
1402812,1,11113,1110,5, 1403212,1,11135,1110,5,
1402963,3,109,0,345, 1403363,3,109,0,345,
140303,110,0,345,3, 140343,110,0,345,3,
14031111,0,345,3,112, 14035111,0,345,3,112,
140320,345,3,113,0, 140360,345,3,113,0,
14033345,3,114,0,345, 14037345,3,114,0,345,
140343,115,0,1111,12, 140383,115,0,1111,12,
140351,11147,1112,5,63, 140391,11169,1112,5,63,
140363,109,0,345,3, 140403,109,0,345,3,
14037110,0,345,3,111, 14041110,0,345,3,111,
140380,345,3,112,0, 140420,345,3,112,0,
@@ -14141,7 +14145,7 @@ public class yyLSLTokens : YyLexer {
14141345,3,106,0,345, 14145345,3,106,0,345,
141423,107,0,345,3, 141463,107,0,345,3,
14143108,0,345,1115,11, 14147108,0,345,1115,11,
141441,845,0,348,1, 141481,867,0,348,1,
14145-1,3,111,0,345, 14149-1,3,111,0,345,
141463,112,0,345,3, 141503,112,0,345,3,
14147113,0,345,3,114, 14151113,0,345,3,114,
@@ -14191,7 +14195,7 @@ public class yyLSLTokens : YyLexer {
14191105,0,345,3,106, 14195105,0,345,3,106,
141920,345,3,107,0, 141960,345,3,107,0,
14193345,3,108,0,345, 14197345,3,108,0,345,
141941116,11,1,845,0, 141981116,11,1,867,0,
14195348,1,-1,3,112, 14199348,1,-1,3,112,
141960,345,3,113,0, 142000,345,3,113,0,
14197345,3,114,0,345, 14201345,3,114,0,345,
@@ -14241,11 +14245,11 @@ public class yyLSLTokens : YyLexer {
14241345,3,106,0,345, 14245345,3,106,0,345,
142423,107,0,345,3, 142463,107,0,345,3,
14243108,0,345,1117,11, 14247108,0,345,1117,11,
142441,845,0,348,1, 142481,867,0,348,1,
14245-1,3,106,0,345, 14249-1,3,106,0,345,
142463,107,0,345,3, 142503,107,0,345,3,
14247108,0,345,1118,11, 14251108,0,345,1118,11,
142481,845,0,348,1, 142521,867,0,348,1,
14249-1,3,116,0,345, 14253-1,3,116,0,345,
142503,117,0,345,3, 142543,117,0,345,3,
14251118,0,345,3,119, 14255118,0,345,3,119,
@@ -14291,7 +14295,7 @@ public class yyLSLTokens : YyLexer {
14291105,0,345,3,106, 14295105,0,345,3,106,
142920,345,3,107,0, 142960,345,3,107,0,
14293345,3,108,0,345, 14297345,3,108,0,345,
142941119,11,1,845,0, 142981119,11,1,867,0,
14295348,1,-1,3,116, 14299348,1,-1,3,116,
142960,345,3,117,0, 143000,345,3,117,0,
14297345,3,118,0,345, 14301345,3,118,0,345,
@@ -14338,11 +14342,11 @@ public class yyLSLTokens : YyLexer {
143383,106,0,345,3, 143423,106,0,345,3,
14339107,0,345,3,108, 14343107,0,345,3,108,
143400,345,1120,11,1, 143440,345,1120,11,1,
14341845,0,348,1,-1, 14345867,0,348,1,-1,
143423,106,0,345,3, 143463,106,0,345,3,
14343107,0,345,3,108, 14347107,0,345,3,108,
143440,345,1121,11,1, 143480,345,1121,11,1,
14345845,0,348,1,-1, 14349867,0,348,1,-1,
143463,110,0,345,3, 143503,110,0,345,3,
14347111,0,345,3,112, 14351111,0,345,3,112,
143480,345,3,113,0, 143520,345,3,113,0,
@@ -14393,7 +14397,7 @@ public class yyLSLTokens : YyLexer {
14393345,3,106,0,345, 14397345,3,106,0,345,
143943,107,0,345,3, 143983,107,0,345,3,
14395108,0,345,1122,11, 14399108,0,345,1122,11,
143961,845,0,348,1, 144001,867,0,348,1,
14397-1,3,115,0,345, 14401-1,3,115,0,345,
143983,116,0,345,3, 144023,116,0,345,3,
14399117,0,345,3,118, 14403117,0,345,3,118,
@@ -14440,14 +14444,14 @@ public class yyLSLTokens : YyLexer {
144400,345,3,106,0, 144440,345,3,106,0,
14441345,3,107,0,345, 14445345,3,107,0,345,
144423,108,0,345,1123, 144463,108,0,345,1123,
1444311,1,845,0,348, 1444711,1,867,0,348,
144441,-1,3,102,0, 144481,-1,3,102,0,
14445345,3,103,0,345, 14449345,3,103,0,345,
144463,104,0,345,3, 144503,104,0,345,3,
14447105,0,345,3,106, 14451105,0,345,3,106,
144480,345,3,107,0, 144520,345,3,107,0,
14449345,3,108,0,345, 14453345,3,108,0,345,
144501124,11,1,845,0, 144541124,11,1,867,0,
14451348,1,-1,3,113, 14455348,1,-1,3,113,
144520,345,3,114,0, 144560,345,3,114,0,
14453345,3,115,0,345, 14457345,3,115,0,345,
@@ -14496,7 +14500,7 @@ public class yyLSLTokens : YyLexer {
144960,345,3,106,0, 145000,345,3,106,0,
14497345,3,107,0,345, 14501345,3,107,0,345,
144983,108,0,345,1125, 145023,108,0,345,1125,
1449911,1,845,0,348, 1450311,1,867,0,348,
145001,-1,3,97,0, 145041,-1,3,97,0,
14501345,3,98,0,345, 14505345,3,98,0,345,
145023,99,0,345,3, 145063,99,0,345,3,
@@ -14507,14 +14511,14 @@ public class yyLSLTokens : YyLexer {
14507105,0,345,3,106, 14511105,0,345,3,106,
145080,345,3,107,0, 145120,345,3,107,0,
14509345,3,108,0,345, 14513345,3,108,0,345,
145101126,11,1,845,0, 145141126,11,1,867,0,
14511348,1,-1,3,102, 14515348,1,-1,3,102,
145120,345,3,103,0, 145160,345,3,103,0,
14513345,3,104,0,345, 14517345,3,104,0,345,
145143,105,0,345,3, 145183,105,0,345,3,
14515106,0,345,3,107, 14519106,0,345,3,107,
145160,345,3,108,0, 145200,345,3,108,0,
14517345,1127,11,1,845, 14521345,1127,11,1,867,
145180,348,1,-1,3, 145220,348,1,-1,3,
14519110,0,345,3,111, 14523110,0,345,3,111,
145200,345,3,112,0, 145240,345,3,112,0,
@@ -14566,11 +14570,11 @@ public class yyLSLTokens : YyLexer {
145663,106,0,345,3, 145703,106,0,345,3,
14567107,0,345,3,108, 14571107,0,345,3,108,
145680,345,1128,11,1, 145720,345,1128,11,1,
14569845,0,348,1,-1, 14573867,0,348,1,-1,
145703,106,0,345,3, 145743,106,0,345,3,
14571107,0,345,3,108, 14575107,0,345,3,108,
145720,345,1129,11,1, 145760,345,1129,11,1,
14573845,0,348,1,-1, 14577867,0,348,1,-1,
145743,117,0,345,3, 145783,117,0,345,3,
14575118,0,345,3,119, 14579118,0,345,3,119,
145760,345,3,120,0, 145800,345,3,120,0,
@@ -14615,7 +14619,7 @@ public class yyLSLTokens : YyLexer {
14615105,0,345,3,106, 14619105,0,345,3,106,
146160,345,3,107,0, 146200,345,3,107,0,
14617345,3,108,0,345, 14621345,3,108,0,345,
146181130,11,1,845,0, 146221130,11,1,867,0,
14619348,1,-1,3,97, 14623348,1,-1,3,97,
146200,345,3,98,0, 146240,345,3,98,0,
14621345,3,99,0,345, 14625345,3,99,0,345,
@@ -14626,7 +14630,7 @@ public class yyLSLTokens : YyLexer {
146263,105,0,345,3, 146303,105,0,345,3,
14627106,0,345,3,107, 14631106,0,345,3,107,
146280,345,3,108,0, 146320,345,3,108,0,
14629345,1131,11,1,845, 14633345,1131,11,1,867,
146300,348,1,-1,3, 146340,348,1,-1,3,
14631111,0,345,3,112, 14635111,0,345,3,112,
146320,345,3,113,0, 146360,345,3,113,0,
@@ -14677,7 +14681,7 @@ public class yyLSLTokens : YyLexer {
14677345,3,106,0,345, 14681345,3,106,0,345,
146783,107,0,345,3, 146823,107,0,345,3,
14679108,0,345,1132,11, 14683108,0,345,1132,11,
146801,845,0,348,1, 146841,867,0,348,1,
14681-1,3,118,0,345, 14685-1,3,118,0,345,
146823,119,0,345,3, 146863,119,0,345,3,
14683120,0,345,3,121, 14687120,0,345,3,121,
@@ -14716,12 +14720,12 @@ public class yyLSLTokens : YyLexer {
147160,345,3,99,0, 147200,345,3,99,0,
14717345,3,100,0,345, 14721345,3,100,0,345,
147183,101,0,1133,12, 147223,101,0,1133,12,
147191,12674,1134,5,63, 147231,12696,1134,5,63,
147203,109,0,1135,12, 147243,109,0,1135,12,
147211,12702,1136,5,63, 147251,12724,1136,5,63,
147223,109,0,345,3, 147263,109,0,345,3,
14723110,0,345,3,111, 14727110,0,345,3,111,
147240,1137,12,1,12732, 147280,1137,12,1,12754,
147251138,5,63,3,109, 147291138,5,63,3,109,
147260,345,3,110,0, 147300,345,3,110,0,
14727345,3,111,0,345, 14731345,3,111,0,345,
@@ -14729,7 +14733,7 @@ public class yyLSLTokens : YyLexer {
14729113,0,345,3,114, 14733113,0,345,3,114,
147300,345,3,115,0, 147340,345,3,115,0,
14731345,3,116,0,1139, 14735345,3,116,0,1139,
1473212,1,12767,1140,5, 1473612,1,12789,1140,5,
1473363,3,109,0,345, 1473763,3,109,0,345,
147343,110,0,345,3, 147383,110,0,345,3,
14735111,0,345,3,112, 14739111,0,345,3,112,
@@ -14775,7 +14779,7 @@ public class yyLSLTokens : YyLexer {
1477598,0,345,3,99, 1477998,0,345,3,99,
147760,345,3,100,0, 147800,345,3,100,0,
14777345,3,101,0,1141, 14781345,3,101,0,1141,
1477812,1,12814,1142,5, 1478212,1,12836,1142,5,
1477963,3,109,0,345, 1478363,3,109,0,345,
147803,110,0,345,3, 147843,110,0,345,3,
14781111,0,345,3,112, 14785111,0,345,3,112,
@@ -14817,7 +14821,7 @@ public class yyLSLTokens : YyLexer {
1481788,0,345,3,89, 1482188,0,345,3,89,
148180,345,3,90,0, 148220,345,3,90,0,
14819345,3,95,0,1143, 14823345,3,95,0,1143,
1482012,1,12900,1144,5, 1482412,1,12922,1144,5,
1482163,3,109,0,345, 1482563,3,109,0,345,
148223,110,0,345,3, 148263,110,0,345,3,
14823111,0,345,3,112, 14827111,0,345,3,112,
@@ -14862,7 +14866,7 @@ public class yyLSLTokens : YyLexer {
148623,97,0,345,3, 148663,97,0,345,3,
1486398,0,345,3,99, 1486798,0,345,3,99,
148640,345,3,100,0, 148680,345,3,100,0,
148651145,12,1,12946,1146, 148691145,12,1,12968,1146,
148665,63,3,109,0, 148705,63,3,109,0,
14867345,3,110,0,345, 14871345,3,110,0,345,
148683,111,0,345,3, 148723,111,0,345,3,
@@ -14905,7 +14909,7 @@ public class yyLSLTokens : YyLexer {
1490589,0,345,3,90, 1490989,0,345,3,90,
149060,345,3,95,0, 149100,345,3,95,0,
14907345,3,97,0,1147, 14911345,3,97,0,1147,
1490812,1,12989,1148,5, 1491212,1,13011,1148,5,
1490963,3,109,0,345, 1491363,3,109,0,345,
149103,110,0,345,3, 149143,110,0,345,3,
14911111,0,345,3,112, 14915111,0,345,3,112,
@@ -14913,7 +14917,7 @@ public class yyLSLTokens : YyLexer {
14913345,3,114,0,345, 14917345,3,114,0,345,
149143,115,0,345,3, 149183,115,0,345,3,
14915116,0,1149,12,1, 14919116,0,1149,12,1,
1491613024,1150,5,63,3, 1492013046,1150,5,63,3,
14917109,0,345,3,110, 14921109,0,345,3,110,
149180,345,3,111,0, 149220,345,3,111,0,
14919345,3,112,0,345, 14923345,3,112,0,345,
@@ -14955,7 +14959,7 @@ public class yyLSLTokens : YyLexer {
14955345,3,89,0,345, 14959345,3,89,0,345,
149563,90,0,345,3, 149603,90,0,345,3,
1495795,0,345,3,97, 1496195,0,345,3,97,
149580,1151,12,1,13067, 149620,1151,12,1,13089,
149591152,5,63,3,109, 149631152,5,63,3,109,
149600,345,3,110,0, 149640,345,3,110,0,
14961345,3,111,0,345, 14965345,3,111,0,345,
@@ -15025,7 +15029,7 @@ public class yyLSLTokens : YyLexer {
15025345,3,106,0,345, 15029345,3,106,0,345,
150263,107,0,345,3, 150303,107,0,345,3,
15027108,0,345,1155,11, 15031108,0,345,1155,11,
150281,845,0,348,1, 150321,867,0,348,1,
15029-1,3,117,0,345, 15033-1,3,117,0,345,
150303,118,0,345,3, 150343,118,0,345,3,
15031119,0,345,3,120, 15035119,0,345,3,120,
@@ -15070,7 +15074,7 @@ public class yyLSLTokens : YyLexer {
150703,105,0,345,3, 150743,105,0,345,3,
15071106,0,345,3,107, 15075106,0,345,3,107,
150720,345,3,108,0, 150760,345,3,108,0,
15073345,1156,11,1,845, 15077345,1156,11,1,867,
150740,348,1,-1,3, 150780,348,1,-1,3,
1507598,0,345,3,99, 1507998,0,345,3,99,
150760,345,3,100,0, 150800,345,3,100,0,
@@ -15081,7 +15085,7 @@ public class yyLSLTokens : YyLexer {
15081345,3,106,0,345, 15085345,3,106,0,345,
150823,107,0,345,3, 150863,107,0,345,3,
15083108,0,345,1157,11, 15087108,0,345,1157,11,
150841,845,0,348,1, 150881,867,0,348,1,
15085-1,3,101,0,345, 15089-1,3,101,0,345,
150863,102,0,345,3, 150903,102,0,345,3,
15087103,0,345,3,104, 15091103,0,345,3,104,
@@ -15089,7 +15093,7 @@ public class yyLSLTokens : YyLexer {
15089345,3,106,0,345, 15093345,3,106,0,345,
150903,107,0,345,3, 150943,107,0,345,3,
15091108,0,345,1158,11, 15095108,0,345,1158,11,
150921,845,0,348,1, 150961,867,0,348,1,
15093-1,3,97,0,345, 15097-1,3,97,0,345,
150943,98,0,345,3, 150983,98,0,345,3,
1509599,0,345,3,100, 1509999,0,345,3,100,
@@ -15100,14 +15104,14 @@ public class yyLSLTokens : YyLexer {
151000,345,3,106,0, 151040,345,3,106,0,
15101345,3,107,0,345, 15105345,3,107,0,345,
151023,108,0,345,1159, 151063,108,0,345,1159,
1510311,1,845,0,348, 1510711,1,867,0,348,
151041,-1,3,102,0, 151081,-1,3,102,0,
15105345,3,103,0,345, 15109345,3,103,0,345,
151063,104,0,345,3, 151103,104,0,345,3,
15107105,0,345,3,106, 15111105,0,345,3,106,
151080,345,3,107,0, 151120,345,3,107,0,
15109345,3,108,0,345, 15113345,3,108,0,345,
151101160,11,1,845,0, 151141160,11,1,867,0,
15111348,1,-1,3,117, 15115348,1,-1,3,117,
151120,345,3,118,0, 151160,345,3,118,0,
15113345,3,119,0,345, 15117345,3,119,0,345,
@@ -15153,7 +15157,7 @@ public class yyLSLTokens : YyLexer {
15153345,3,106,0,345, 15157345,3,106,0,345,
151543,107,0,345,3, 151583,107,0,345,3,
15155108,0,345,1161,11, 15159108,0,345,1161,11,
151561,845,0,348,1, 151601,867,0,348,1,
15157-1,3,112,0,345, 15161-1,3,112,0,345,
151583,113,0,345,3, 151623,113,0,345,3,
15159114,0,345,3,115, 15163114,0,345,3,115,
@@ -15202,14 +15206,14 @@ public class yyLSLTokens : YyLexer {
152023,105,0,345,3, 152063,105,0,345,3,
15203106,0,345,3,107, 15207106,0,345,3,107,
152040,345,3,108,0, 152080,345,3,108,0,
15205345,1162,11,1,845, 15209345,1162,11,1,867,
152060,348,1,-1,3, 152100,348,1,-1,3,
15207110,0,345,3,111, 15211110,0,345,3,111,
152080,345,3,112,0, 152120,345,3,112,0,
15209345,3,113,0,345, 15213345,3,113,0,345,
152103,114,0,345,3, 152143,114,0,345,3,
15211115,0,345,3,116, 15215115,0,345,3,116,
152120,1163,12,1,13789, 152160,1163,12,1,13811,
152131164,5,63,3,109, 152171164,5,63,3,109,
152140,345,3,110,0, 152180,345,3,110,0,
15215345,3,111,0,345, 15219345,3,111,0,345,
@@ -15218,16 +15222,16 @@ public class yyLSLTokens : YyLexer {
152180,345,3,115,0, 152220,345,3,115,0,
15219345,3,116,0,345, 15223345,3,116,0,345,
152203,117,0,1165,12, 152243,117,0,1165,12,
152211,13825,1166,5,63, 152251,13847,1166,5,63,
152223,109,0,345,3, 152263,109,0,345,3,
15223110,0,345,3,111, 15227110,0,345,3,111,
152240,345,3,112,0, 152280,345,3,112,0,
15225345,3,113,0,345, 15229345,3,113,0,345,
152263,114,0,1167,12, 152303,114,0,1167,12,
152271,13858,1168,5,63, 152311,13880,1168,5,63,
152283,109,0,345,3, 152323,109,0,345,3,
15229110,0,1169,12,1, 15233110,0,1169,12,1,
1523013887,1170,5,63,3, 1523413909,1170,5,63,3,
15231109,0,345,3,110, 15235109,0,345,3,110,
152320,345,3,111,0, 152360,345,3,111,0,
15233345,3,112,0,345, 15237345,3,112,0,345,
@@ -15332,7 +15336,7 @@ public class yyLSLTokens : YyLexer {
153323,106,0,345,3, 153363,106,0,345,3,
15333107,0,345,3,108, 15337107,0,345,3,108,
153340,345,1173,11,1, 153380,345,1173,11,1,
15335845,0,348,1,-1, 15339867,0,348,1,-1,
153363,115,0,345,3, 153403,115,0,345,3,
15337116,0,345,3,117, 15341116,0,345,3,117,
153380,345,3,118,0, 153420,345,3,118,0,
@@ -15379,7 +15383,7 @@ public class yyLSLTokens : YyLexer {
15379345,3,106,0,345, 15383345,3,106,0,345,
153803,107,0,345,3, 153843,107,0,345,3,
15381108,0,345,1174,11, 15385108,0,345,1174,11,
153821,845,0,348,1, 153861,867,0,348,1,
15383-1,3,118,0,345, 15387-1,3,118,0,345,
153843,119,0,345,3, 153883,119,0,345,3,
15385120,0,345,3,121, 15389120,0,345,3,121,
@@ -15424,7 +15428,7 @@ public class yyLSLTokens : YyLexer {
154243,106,0,345,3, 154283,106,0,345,3,
15425107,0,345,3,108, 15429107,0,345,3,108,
154260,345,1175,11,1, 154300,345,1175,11,1,
15427845,0,348,1,-1, 15431867,0,348,1,-1,
154283,117,0,345,3, 154323,117,0,345,3,
15429118,0,345,3,119, 15433118,0,345,3,119,
154300,345,3,120,0, 154340,345,3,120,0,
@@ -15469,30 +15473,30 @@ public class yyLSLTokens : YyLexer {
15469105,0,345,3,106, 15473105,0,345,3,106,
154700,345,3,107,0, 154740,345,3,107,0,
15471345,3,108,0,345, 15475345,3,108,0,345,
154721176,11,1,845,0, 154761176,11,1,867,0,
15473348,1,-1,3,102, 15477348,1,-1,3,102,
154740,345,3,103,0, 154780,345,3,103,0,
15475345,3,104,0,345, 15479345,3,104,0,345,
154763,105,0,345,3, 154803,105,0,345,3,
15477106,0,345,3,107, 15481106,0,345,3,107,
154780,345,3,108,0, 154820,345,3,108,0,
15479345,1177,11,1,845, 15483345,1177,11,1,867,
154800,348,1,-1,3, 154840,348,1,-1,3,
15481115,0,1178,12,1, 15485115,0,1178,12,1,
1548214428,1179,5,63,3, 1548614450,1179,5,63,3,
15483109,0,345,3,110, 15487109,0,345,3,110,
154840,345,3,111,0, 154880,345,3,111,0,
15485345,3,112,0,345, 15489345,3,112,0,345,
154863,113,0,345,3, 154903,113,0,345,3,
15487114,0,345,3,115, 15491114,0,345,3,115,
154880,345,3,116,0, 154920,345,3,116,0,
154891180,12,1,14463,1181, 154931180,12,1,14485,1181,
154905,63,3,109,0, 154945,63,3,109,0,
15491345,3,110,0,345, 15495345,3,110,0,345,
154923,111,0,345,3, 154963,111,0,345,3,
15493112,0,345,3,113, 15497112,0,345,3,113,
154940,345,3,114,0, 154980,345,3,114,0,
154951182,12,1,14496,1183, 154991182,12,1,14518,1183,
154965,63,3,109,0, 155005,63,3,109,0,
15497345,3,110,0,345, 15501345,3,110,0,345,
154983,111,0,345,3, 155023,111,0,345,3,
@@ -15541,10 +15545,10 @@ public class yyLSLTokens : YyLexer {
15541345,3,102,0,345, 15545345,3,102,0,345,
155423,103,0,345,3, 155463,103,0,345,3,
15543104,0,345,3,105, 15547104,0,345,3,105,
155440,1184,12,1,14547, 155480,1184,12,1,14569,
155451185,5,63,3,109, 155491185,5,63,3,109,
155460,345,3,110,0, 155500,345,3,110,0,
155471186,12,1,14576,1187, 155511186,12,1,14598,1187,
155485,63,3,109,0, 155525,63,3,109,0,
15549345,3,110,0,345, 15553345,3,110,0,345,
155503,111,0,345,3, 155543,111,0,345,3,
@@ -15592,7 +15596,7 @@ public class yyLSLTokens : YyLexer {
155920,345,3,101,0, 155960,345,3,101,0,
15593345,3,102,0,345, 15597345,3,102,0,345,
155943,103,0,1188,12, 155983,103,0,1188,12,
155951,14625,1189,5,63, 155991,14647,1189,5,63,
155963,109,0,345,3, 156003,109,0,345,3,
15597110,0,345,3,111, 15601110,0,345,3,111,
155980,345,3,112,0, 156020,345,3,112,0,
@@ -15654,7 +15658,7 @@ public class yyLSLTokens : YyLexer {
156540,345,3,106,0, 156580,345,3,106,0,
15655345,3,107,0,345, 15659345,3,107,0,345,
156563,108,0,345,1192, 156603,108,0,345,1192,
1565711,1,845,0,348, 1566111,1,867,0,348,
156581,-1,3,111,0, 156621,-1,3,111,0,
15659345,3,112,0,345, 15663345,3,112,0,345,
156603,113,0,345,3, 156643,113,0,345,3,
@@ -15704,11 +15708,11 @@ public class yyLSLTokens : YyLexer {
157043,105,0,345,3, 157083,105,0,345,3,
15705106,0,345,3,107, 15709106,0,345,3,107,
157060,345,3,108,0, 157100,345,3,108,0,
15707345,1193,11,1,845, 15711345,1193,11,1,867,
157080,348,1,-1,3, 157120,348,1,-1,3,
15709106,0,345,3,107, 15713106,0,345,3,107,
157100,345,3,108,0, 157140,345,3,108,0,
15711345,1194,11,1,845, 15715345,1194,11,1,867,
157120,348,1,-1,3, 157160,348,1,-1,3,
15713115,0,345,3,116, 15717115,0,345,3,116,
157140,345,3,117,0, 157180,345,3,117,0,
@@ -15747,14 +15751,14 @@ public class yyLSLTokens : YyLexer {
15747345,3,90,0,345, 15751345,3,90,0,345,
157483,95,0,345,3, 157523,95,0,345,3,
1574997,0,1195,12,1, 1575397,0,1195,12,1,
1575014986,1196,5,63,3, 1575415008,1196,5,63,3,
15751109,0,345,3,110, 15755109,0,345,3,110,
157520,345,3,111,0, 157560,345,3,111,0,
15753345,3,112,0,345, 15757345,3,112,0,345,
157543,113,0,345,3, 157583,113,0,345,3,
15755114,0,345,3,115, 15759114,0,345,3,115,
157560,345,3,116,0, 157600,345,3,116,0,
157571197,12,1,15021,1198, 157611197,12,1,15043,1198,
157585,63,3,109,0, 157625,63,3,109,0,
15759345,3,110,0,345, 15763345,3,110,0,345,
157603,111,0,345,3, 157643,111,0,345,3,
@@ -15800,7 +15804,7 @@ public class yyLSLTokens : YyLexer {
158003,98,0,345,3, 158043,98,0,345,3,
1580199,0,345,3,100, 1580599,0,345,3,100,
158020,345,3,101,0, 158060,345,3,101,0,
158031199,12,1,15068,1200, 158071199,12,1,15090,1200,
158045,63,3,109,0, 158085,63,3,109,0,
15805345,3,110,0,345, 15809345,3,110,0,345,
158063,111,0,345,3, 158103,111,0,345,3,
@@ -15842,7 +15846,7 @@ public class yyLSLTokens : YyLexer {
158423,88,0,345,3, 158463,88,0,345,3,
1584389,0,345,3,90, 1584789,0,345,3,90,
158440,345,3,95,0, 158480,345,3,95,0,
158451201,12,1,15154,1202, 158491201,12,1,15176,1202,
158465,63,3,109,0, 158505,63,3,109,0,
15847345,3,110,0,345, 15851345,3,110,0,345,
158483,111,0,345,3, 158523,111,0,345,3,
@@ -15888,10 +15892,10 @@ public class yyLSLTokens : YyLexer {
158883,98,0,345,3, 158923,98,0,345,3,
1588999,0,345,3,100, 1589399,0,345,3,100,
158900,345,3,101,0, 158940,345,3,101,0,
158911203,12,1,15201,1204, 158951203,12,1,15223,1204,
158925,63,3,109,0, 158965,63,3,109,0,
15893345,3,110,0,1205, 15897345,3,110,0,1205,
1589412,1,15230,1206,5, 1589812,1,15252,1206,5,
1589563,3,109,0,345, 1589963,3,109,0,345,
158963,110,0,345,3, 159003,110,0,345,3,
15897111,0,345,3,112, 15901111,0,345,3,112,
@@ -15899,13 +15903,13 @@ public class yyLSLTokens : YyLexer {
15899345,3,114,0,345, 15903345,3,114,0,345,
159003,115,0,345,3, 159043,115,0,345,3,
15901116,0,1207,12,1, 15905116,0,1207,12,1,
1590215265,1208,5,63,3, 1590615287,1208,5,63,3,
15903109,0,345,3,110, 15907109,0,345,3,110,
159040,345,3,111,0, 159080,345,3,111,0,
15905345,3,112,0,345, 15909345,3,112,0,345,
159063,113,0,345,3, 159103,113,0,345,3,
15907114,0,1209,12,1, 15911114,0,1209,12,1,
1590815298,1210,5,63,3, 1591215320,1210,5,63,3,
15909109,0,345,3,110, 15913109,0,345,3,110,
159100,345,3,111,0, 159140,345,3,111,0,
15911345,3,112,0,345, 15915345,3,112,0,345,
@@ -15916,7 +15920,7 @@ public class yyLSLTokens : YyLexer {
159163,118,0,345,3, 159203,118,0,345,3,
15917119,0,345,3,120, 15921119,0,345,3,120,
159180,345,3,121,0, 159220,345,3,121,0,
159191211,12,1,15338,1212, 159231211,12,1,15360,1212,
159205,63,3,109,0, 159245,63,3,109,0,
15921345,3,110,0,345, 15925345,3,110,0,345,
159223,111,0,345,3, 159263,111,0,345,3,
@@ -16017,7 +16021,7 @@ public class yyLSLTokens : YyLexer {
16017345,3,106,0,345, 16021345,3,106,0,345,
160183,107,0,345,3, 160223,107,0,345,3,
16019108,0,345,1215,11, 16023108,0,345,1215,11,
160201,845,0,348,1, 160241,867,0,348,1,
16021-1,3,115,0,345, 16025-1,3,115,0,345,
160223,116,0,345,3, 160263,116,0,345,3,
16023117,0,345,3,118, 16027117,0,345,3,118,
@@ -16064,7 +16068,7 @@ public class yyLSLTokens : YyLexer {
160640,345,3,106,0, 160680,345,3,106,0,
16065345,3,107,0,345, 16069345,3,107,0,345,
160663,108,0,345,1216, 160703,108,0,345,1216,
1606711,1,845,0,348, 1607111,1,867,0,348,
160681,-1,3,117,0, 160721,-1,3,117,0,
16069345,3,118,0,345, 16073345,3,118,0,345,
160703,119,0,345,3, 160743,119,0,345,3,
@@ -16110,7 +16114,7 @@ public class yyLSLTokens : YyLexer {
161103,106,0,345,3, 161143,106,0,345,3,
16111107,0,345,3,108, 16115107,0,345,3,108,
161120,345,1217,11,1, 161160,345,1217,11,1,
16113845,0,348,1,-1, 16117867,0,348,1,-1,
161143,111,0,345,3, 161183,111,0,345,3,
16115112,0,345,3,113, 16119112,0,345,3,113,
161160,345,3,114,0, 161200,345,3,114,0,
@@ -16119,7 +16123,7 @@ public class yyLSLTokens : YyLexer {
16119117,0,345,3,118, 16123117,0,345,3,118,
161200,345,3,119,0, 161240,345,3,119,0,
16121345,3,120,0,1218, 16125345,3,120,0,1218,
1612212,1,15720,1219,5, 1612612,1,15742,1219,5,
1612363,3,109,0,345, 1612763,3,109,0,345,
161243,110,0,345,3, 161283,110,0,345,3,
16125111,0,345,3,112, 16129111,0,345,3,112,
@@ -16168,7 +16172,7 @@ public class yyLSLTokens : YyLexer {
161683,102,0,345,3, 161723,102,0,345,3,
16169103,0,345,3,104, 16173103,0,345,3,104,
161700,345,3,105,0, 161740,345,3,105,0,
161711220,12,1,15771,1221, 161751220,12,1,15793,1221,
161725,63,3,109,0, 161765,63,3,109,0,
16173345,3,110,0,345, 16177345,3,110,0,345,
161743,111,0,345,3, 161783,111,0,345,3,
@@ -16176,7 +16180,7 @@ public class yyLSLTokens : YyLexer {
161760,345,3,114,0, 161800,345,3,114,0,
16177345,3,115,0,345, 16181345,3,115,0,345,
161783,116,0,1222,12, 161823,116,0,1222,12,
161791,15806,1223,5,63, 161831,15828,1223,5,63,
161803,109,0,345,3, 161843,109,0,345,3,
16181110,0,345,3,111, 16185110,0,345,3,111,
161820,345,3,112,0, 161860,345,3,112,0,
@@ -16280,11 +16284,11 @@ public class yyLSLTokens : YyLexer {
162800,345,3,106,0, 162840,345,3,106,0,
16281345,3,107,0,345, 16285345,3,107,0,345,
162823,108,0,345,1226, 162863,108,0,345,1226,
1628311,1,845,0,348, 1628711,1,867,0,348,
162841,-1,3,106,0, 162881,-1,3,106,0,
16285345,3,107,0,345, 16289345,3,107,0,345,
162863,108,0,345,1227, 162903,108,0,345,1227,
1628711,1,845,0,348, 1629111,1,867,0,348,
162881,-1,3,121,0, 162921,-1,3,121,0,
16289345,3,122,0,345, 16293345,3,122,0,345,
162903,48,0,345,3, 162943,48,0,345,3,
@@ -16326,7 +16330,7 @@ public class yyLSLTokens : YyLexer {
163263,105,0,345,3, 163303,105,0,345,3,
16327106,0,345,3,107, 16331106,0,345,3,107,
163280,345,3,108,0, 163320,345,3,108,0,
16329345,1228,11,1,845, 16333345,1228,11,1,867,
163300,348,1,-1,3, 163340,348,1,-1,3,
16331102,0,345,3,103, 16335102,0,345,3,103,
163320,345,3,104,0, 163360,345,3,104,0,
@@ -16334,7 +16338,7 @@ public class yyLSLTokens : YyLexer {
163343,106,0,345,3, 163383,106,0,345,3,
16335107,0,345,3,108, 16339107,0,345,3,108,
163360,345,1229,11,1, 163400,345,1229,11,1,
16337845,0,348,1,-1, 16341867,0,348,1,-1,
163383,97,0,345,3, 163423,97,0,345,3,
1633998,0,345,3,99, 1634398,0,345,3,99,
163400,345,3,100,0, 163440,345,3,100,0,
@@ -16354,7 +16358,7 @@ public class yyLSLTokens : YyLexer {
163543,105,0,345,3, 163583,105,0,345,3,
16355106,0,345,3,107, 16359106,0,345,3,107,
163560,345,3,108,0, 163600,345,3,108,0,
16357345,1232,11,1,845, 16361345,1232,11,1,867,
163580,348,1,-1,3, 163620,348,1,-1,3,
16359117,0,345,3,118, 16363117,0,345,3,118,
163600,345,3,119,0, 163640,345,3,119,0,
@@ -16400,7 +16404,7 @@ public class yyLSLTokens : YyLexer {
164000,345,3,106,0, 164040,345,3,106,0,
16401345,3,107,0,345, 16405345,3,107,0,345,
164023,108,0,345,1233, 164063,108,0,345,1233,
1640311,1,845,0,348, 1640711,1,867,0,348,
164041,-1,3,98,0, 164081,-1,3,98,0,
16405345,3,99,0,345, 16409345,3,99,0,345,
164063,100,0,345,3, 164103,100,0,345,3,
@@ -16410,7 +16414,7 @@ public class yyLSLTokens : YyLexer {
164103,105,0,345,3, 164143,105,0,345,3,
16411106,0,345,3,107, 16415106,0,345,3,107,
164120,345,3,108,0, 164160,345,3,108,0,
16413345,1234,11,1,845, 16417345,1234,11,1,867,
164140,348,1,-1,3, 164180,348,1,-1,3,
16415117,0,345,3,118, 16419117,0,345,3,118,
164160,345,3,119,0, 164200,345,3,119,0,
@@ -16450,26 +16454,26 @@ public class yyLSLTokens : YyLexer {
164503,98,0,345,3, 164543,98,0,345,3,
1645199,0,345,3,100, 1645599,0,345,3,100,
164520,345,3,101,0, 164560,345,3,101,0,
164531235,12,1,16515,1236, 164571235,12,1,16537,1236,
164545,63,3,109,0, 164585,63,3,109,0,
16455345,3,110,0,1237, 16459345,3,110,0,1237,
1645612,1,16544,1238,5, 1646012,1,16566,1238,5,
1645763,3,109,0,345, 1646163,3,109,0,345,
164583,110,0,345,3, 164623,110,0,345,3,
16459111,0,345,3,112, 16463111,0,345,3,112,
164600,345,3,113,0, 164640,345,3,113,0,
16461345,3,114,0,345, 16465345,3,114,0,345,
164623,115,0,1239,12, 164663,115,0,1239,12,
164631,16578,1240,5,63, 164671,16600,1240,5,63,
164643,109,0,345,3, 164683,109,0,345,3,
16465110,0,345,3,111, 16469110,0,345,3,111,
164660,1241,12,1,16608, 164700,1241,12,1,16630,
164671242,5,63,3,109, 164711242,5,63,3,109,
164680,345,3,110,0, 164720,345,3,110,0,
16469345,3,111,0,345, 16473345,3,111,0,345,
164703,112,0,345,3, 164743,112,0,345,3,
16471113,0,345,3,114, 16475113,0,345,3,114,
164720,1243,12,1,16641, 164760,1243,12,1,16663,
164731244,5,63,3,109, 164771244,5,63,3,109,
164740,345,3,110,0, 164780,345,3,110,0,
16475345,3,111,0,345, 16479345,3,111,0,345,
@@ -16574,7 +16578,7 @@ public class yyLSLTokens : YyLexer {
165743,106,0,345,3, 165783,106,0,345,3,
16575107,0,345,3,108, 16579107,0,345,3,108,
165760,345,1247,11,1, 165800,345,1247,11,1,
16577845,0,348,1,-1, 16581867,0,348,1,-1,
165783,112,0,345,3, 165823,112,0,345,3,
16579113,0,345,3,114, 16583113,0,345,3,114,
165800,345,3,115,0, 165840,345,3,115,0,
@@ -16623,7 +16627,7 @@ public class yyLSLTokens : YyLexer {
16623105,0,345,3,106, 16627105,0,345,3,106,
166240,345,3,107,0, 166280,345,3,107,0,
16625345,3,108,0,345, 16629345,3,108,0,345,
166261248,11,1,845,0, 166301248,11,1,867,0,
16627348,1,-1,3,116, 16631348,1,-1,3,116,
166280,345,3,117,0, 166320,345,3,117,0,
16629345,3,118,0,345, 16633345,3,118,0,345,
@@ -16670,7 +16674,7 @@ public class yyLSLTokens : YyLexer {
166703,106,0,345,3, 166743,106,0,345,3,
16671107,0,345,3,108, 16675107,0,345,3,108,
166720,345,1249,11,1, 166760,345,1249,11,1,
16673845,0,348,1,-1, 16677867,0,348,1,-1,
166743,111,0,345,3, 166783,111,0,345,3,
16675112,0,345,3,113, 16679112,0,345,3,113,
166760,345,3,114,0, 166800,345,3,114,0,
@@ -16720,20 +16724,20 @@ public class yyLSLTokens : YyLexer {
167200,345,3,106,0, 167240,345,3,106,0,
16721345,3,107,0,345, 16725345,3,107,0,345,
167223,108,0,345,1250, 167263,108,0,345,1250,
1672311,1,845,0,348, 1672711,1,867,0,348,
167241,-1,3,102,0, 167281,-1,3,102,0,
16725345,3,103,0,345, 16729345,3,103,0,345,
167263,104,0,345,3, 167303,104,0,345,3,
16727105,0,345,3,106, 16731105,0,345,3,106,
167280,345,3,107,0, 167320,345,3,107,0,
16729345,3,108,0,345, 16733345,3,108,0,345,
167301251,11,1,845,0, 167341251,11,1,867,0,
16731348,1,-1,3,116, 16735348,1,-1,3,116,
167320,1252,12,1,17189, 167360,1252,12,1,17211,
167331253,5,63,3,109, 167371253,5,63,3,109,
167340,345,3,110,0, 167380,345,3,110,0,
16735345,3,111,0,1254, 16739345,3,111,0,1254,
1673612,1,17219,1255,5, 1674012,1,17241,1255,5,
1673763,3,109,0,345, 1674163,3,109,0,345,
167383,110,0,345,3, 167423,110,0,345,3,
16739111,0,345,3,112, 16743111,0,345,3,112,
@@ -16741,7 +16745,7 @@ public class yyLSLTokens : YyLexer {
16741345,3,114,0,345, 16745345,3,114,0,345,
167423,115,0,345,3, 167463,115,0,345,3,
16743116,0,345,3,117, 16747116,0,345,3,117,
167440,1256,12,1,17255, 167480,1256,12,1,17277,
167451257,5,63,3,109, 167491257,5,63,3,109,
167460,345,3,110,0, 167500,345,3,110,0,
16747345,3,111,0,345, 16751345,3,111,0,345,
@@ -16786,7 +16790,7 @@ public class yyLSLTokens : YyLexer {
167860,345,3,97,0, 167900,345,3,97,0,
16787345,3,98,0,345, 16791345,3,98,0,345,
167883,99,0,1258,12, 167923,99,0,1258,12,
167891,17300,1259,5,63, 167931,17322,1259,5,63,
167903,109,0,345,3, 167943,109,0,345,3,
16791110,0,345,3,111, 16795110,0,345,3,111,
167920,345,3,112,0, 167960,345,3,112,0,
@@ -16834,7 +16838,7 @@ public class yyLSLTokens : YyLexer {
168343,101,0,345,3, 168383,101,0,345,3,
16835102,0,345,3,103, 16839102,0,345,3,103,
168360,345,3,104,0, 168400,345,3,104,0,
168371260,12,1,17350,1261, 168411260,12,1,17372,1261,
168385,63,3,109,0, 168425,63,3,109,0,
16839345,3,110,0,345, 16843345,3,110,0,345,
168403,111,0,345,3, 168443,111,0,345,3,
@@ -16876,14 +16880,14 @@ public class yyLSLTokens : YyLexer {
168763,88,0,345,3, 168803,88,0,345,3,
1687789,0,345,3,90, 1688189,0,345,3,90,
168780,345,3,95,0, 168820,345,3,95,0,
168791262,12,1,17436,1263, 168831262,12,1,17458,1263,
168805,63,3,109,0, 168845,63,3,109,0,
16881345,3,110,0,345, 16885345,3,110,0,345,
168823,111,0,345,3, 168863,111,0,345,3,
16883112,0,345,3,113, 16887112,0,345,3,113,
168840,345,3,114,0, 168880,345,3,114,0,
16885345,3,115,0,1264, 16889345,3,115,0,1264,
1688612,1,17470,1265,5, 1689012,1,17492,1265,5,
1688763,3,109,0,345, 1689163,3,109,0,345,
168883,110,0,345,3, 168923,110,0,345,3,
16889111,0,345,3,112, 16893111,0,345,3,112,
@@ -16891,7 +16895,7 @@ public class yyLSLTokens : YyLexer {
16891345,3,114,0,345, 16895345,3,114,0,345,
168923,115,0,345,3, 168963,115,0,345,3,
16893116,0,1266,12,1, 16897116,0,1266,12,1,
1689417505,1267,5,63,3, 1689817527,1267,5,63,3,
16895109,0,345,3,110, 16899109,0,345,3,110,
168960,345,3,111,0, 169000,345,3,111,0,
16897345,3,112,0,345, 16901345,3,112,0,345,
@@ -16933,13 +16937,13 @@ public class yyLSLTokens : YyLexer {
16933345,3,89,0,345, 16937345,3,89,0,345,
169343,90,0,345,3, 169383,90,0,345,3,
1693595,0,345,3,97, 1693995,0,345,3,97,
169360,1268,12,1,17548, 169400,1268,12,1,17570,
169371269,5,63,3,109, 169411269,5,63,3,109,
169380,345,3,110,0, 169420,345,3,110,0,
16939345,3,111,0,345, 16943345,3,111,0,345,
169403,112,0,345,3, 169443,112,0,345,3,
16941113,0,345,3,114, 16945113,0,345,3,114,
169420,1270,12,1,17581, 169460,1270,12,1,17603,
169431271,5,63,3,109, 169471271,5,63,3,109,
169440,345,3,110,0, 169480,345,3,110,0,
16945345,3,111,0,345, 16949345,3,111,0,345,
@@ -16947,7 +16951,7 @@ public class yyLSLTokens : YyLexer {
16947113,0,345,3,114, 16951113,0,345,3,114,
169480,345,3,115,0, 169520,345,3,115,0,
16949345,3,116,0,1272, 16953345,3,116,0,1272,
1695012,1,17616,1273,5, 1695412,1,17638,1273,5,
1695163,3,109,0,345, 1695563,3,109,0,345,
169523,110,0,345,3, 169563,110,0,345,3,
16953111,0,345,3,112, 16957111,0,345,3,112,
@@ -17052,7 +17056,7 @@ public class yyLSLTokens : YyLexer {
170523,106,0,345,3, 170563,106,0,345,3,
17053107,0,345,3,108, 17057107,0,345,3,108,
170540,345,1276,11,1, 170580,345,1276,11,1,
17055845,0,348,1,-1, 17059867,0,348,1,-1,
170563,115,0,345,3, 170603,115,0,345,3,
17057116,0,345,3,117, 17061116,0,345,3,117,
170580,345,3,118,0, 170620,345,3,118,0,
@@ -17099,7 +17103,7 @@ public class yyLSLTokens : YyLexer {
17099345,3,106,0,345, 17103345,3,106,0,345,
171003,107,0,345,3, 171043,107,0,345,3,
17101108,0,345,1277,11, 17105108,0,345,1277,11,
171021,845,0,348,1, 171061,867,0,348,1,
17103-1,3,98,0,345, 17107-1,3,98,0,345,
171043,99,0,345,3, 171083,99,0,345,3,
17105100,0,345,3,101, 17109100,0,345,3,101,
@@ -17109,7 +17113,7 @@ public class yyLSLTokens : YyLexer {
17109105,0,345,3,106, 17113105,0,345,3,106,
171100,345,3,107,0, 171140,345,3,107,0,
17111345,3,108,0,345, 17115345,3,108,0,345,
171121278,11,1,845,0, 171161278,11,1,867,0,
17113348,1,-1,3,117, 17117348,1,-1,3,117,
171140,345,3,118,0, 171180,345,3,118,0,
17115345,3,119,0,345, 17119345,3,119,0,345,
@@ -17155,7 +17159,7 @@ public class yyLSLTokens : YyLexer {
17155345,3,106,0,345, 17159345,3,106,0,345,
171563,107,0,345,3, 171603,107,0,345,3,
17157108,0,345,1279,11, 17161108,0,345,1279,11,
171581,845,0,348,1, 171621,867,0,348,1,
17159-1,3,116,0,345, 17163-1,3,116,0,345,
171603,117,0,345,3, 171643,117,0,345,3,
17161118,0,345,3,119, 17165118,0,345,3,119,
@@ -17195,10 +17199,10 @@ public class yyLSLTokens : YyLexer {
17195345,3,98,0,345, 17199345,3,98,0,345,
171963,99,0,345,3, 172003,99,0,345,3,
17197100,0,345,3,101, 17201100,0,345,3,101,
171980,1280,12,1,18083, 172020,1280,12,1,18105,
171991281,5,63,3,109, 172031281,5,63,3,109,
172000,345,3,110,0, 172040,345,3,110,0,
172011282,12,1,18112,1283, 172051282,12,1,18134,1283,
172025,63,3,109,0, 172065,63,3,109,0,
17203345,3,110,0,345, 17207345,3,110,0,345,
172043,111,0,345,3, 172083,111,0,345,3,
@@ -17243,7 +17247,7 @@ public class yyLSLTokens : YyLexer {
17243345,3,97,0,345, 17247345,3,97,0,345,
172443,98,0,345,3, 172483,98,0,345,3,
1724599,0,345,3,100, 1724999,0,345,3,100,
172460,1284,12,1,18158, 172500,1284,12,1,18180,
172471285,5,63,3,109, 172511285,5,63,3,109,
172480,345,3,110,0, 172520,345,3,110,0,
17249345,3,111,0,345, 17253345,3,111,0,345,
@@ -17310,7 +17314,7 @@ public class yyLSLTokens : YyLexer {
173103,106,0,345,3, 173143,106,0,345,3,
17311107,0,345,3,108, 17315107,0,345,3,108,
173120,345,1288,11,1, 173160,345,1288,11,1,
17313845,0,348,1,-1, 17317867,0,348,1,-1,
173143,111,0,345,3, 173183,111,0,345,3,
17315112,0,345,3,113, 17319112,0,345,3,113,
173160,345,3,114,0, 173200,345,3,114,0,
@@ -17360,14 +17364,14 @@ public class yyLSLTokens : YyLexer {
173600,345,3,106,0, 173640,345,3,106,0,
17361345,3,107,0,345, 17365345,3,107,0,345,
173623,108,0,345,1289, 173663,108,0,345,1289,
1736311,1,845,0,348, 1736711,1,867,0,348,
173641,-1,3,102,0, 173681,-1,3,102,0,
17365345,3,103,0,345, 17369345,3,103,0,345,
173663,104,0,345,3, 173703,104,0,345,3,
17367105,0,345,3,106, 17371105,0,345,3,106,
173680,345,3,107,0, 173720,345,3,107,0,
17369345,3,108,0,345, 17373345,3,108,0,345,
173701290,11,1,845,0, 173741290,11,1,867,0,
17371348,1,-1,3,97, 17375348,1,-1,3,97,
173720,345,3,98,0, 173760,345,3,98,0,
17373345,3,99,0,345, 17377345,3,99,0,345,
@@ -17388,7 +17392,7 @@ public class yyLSLTokens : YyLexer {
173880,345,3,106,0, 173920,345,3,106,0,
17389345,3,107,0,345, 17393345,3,107,0,345,
173903,108,0,345,1293, 173943,108,0,345,1293,
1739111,1,845,0,348, 1739511,1,867,0,348,
173921,-1,3,100,0, 173961,-1,3,100,0,
17393345,3,101,0,345, 17397345,3,101,0,345,
173943,102,0,345,3, 173983,102,0,345,3,
@@ -17397,7 +17401,7 @@ public class yyLSLTokens : YyLexer {
17397345,3,106,0,345, 17401345,3,106,0,345,
173983,107,0,345,3, 174023,107,0,345,3,
17399108,0,345,1294,11, 17403108,0,345,1294,11,
174001,845,0,348,1, 174041,867,0,348,1,
17401-1,3,118,0,345, 17405-1,3,118,0,345,
174023,119,0,345,3, 174063,119,0,345,3,
17403120,0,345,3,121, 17407120,0,345,3,121,
@@ -17442,7 +17446,13 @@ public class yyLSLTokens : YyLexer {
174423,106,0,345,3, 174463,106,0,345,3,
17443107,0,345,3,108, 17447107,0,345,3,108,
174440,345,1295,11,1, 174480,345,1295,11,1,
17445845,0,348,1,-1, 17449867,0,348,1,-1,
174503,112,0,345,3,
17451113,0,345,3,114,
174520,1296,12,1,18804,
174531297,5,63,3,109,
174540,345,3,110,0,
17455345,3,111,0,345,
174463,112,0,345,3, 174563,112,0,345,3,
17447113,0,345,3,114, 17457113,0,345,3,114,
174480,345,3,115,0, 174580,345,3,115,0,
@@ -17482,16 +17492,60 @@ public class yyLSLTokens : YyLexer {
174823,89,0,345,3, 174923,89,0,345,3,
1748390,0,345,3,95, 1749390,0,345,3,95,
174840,345,3,97,0, 174940,345,3,97,0,
17485345,3,98,0,345, 174951298,12,1,18847,1299,
174863,99,0,345,3, 174965,63,3,109,0,
17487100,0,345,3,101, 17497345,3,110,0,1300,
174880,345,3,102,0, 1749812,1,18876,1301,5,
17489345,3,103,0,345, 1749963,3,109,0,345,
174903,104,0,345,3, 175003,110,0,345,3,
17491105,0,1296,12,1, 17501111,0,345,3,112,
1749218800,1297,5,63,3, 175020,345,3,113,0,
17493109,0,1298,12,1, 17503345,3,114,0,345,
1749418828,1299,5,63,3, 175043,115,0,1302,12,
175051,18910,1303,5,63,
175063,109,0,345,3,
17507110,0,345,3,111,
175080,345,3,112,0,
17509345,3,113,0,345,
175103,114,0,345,3,
17511115,0,345,3,116,
175120,345,3,117,0,
17513345,3,118,0,345,
175143,119,0,345,3,
17515120,0,345,3,121,
175160,345,3,122,0,
17517345,3,48,0,345,
175183,49,0,345,3,
1751950,0,345,3,51,
175200,345,3,52,0,
17521345,3,53,0,345,
175223,54,0,345,3,
1752355,0,345,3,56,
175240,345,3,57,0,
17525345,3,65,0,345,
175263,66,0,345,3,
1752767,0,345,3,68,
175280,345,3,69,0,
17529345,3,70,0,345,
175303,71,0,345,3,
1753172,0,345,3,73,
175320,345,3,74,0,
17533345,3,75,0,345,
175343,76,0,345,3,
1753577,0,345,3,78,
175360,345,3,79,0,
17537345,3,80,0,345,
175383,81,0,345,3,
1753982,0,345,3,83,
175400,345,3,84,0,
17541345,3,85,0,345,
175423,86,0,345,3,
1754387,0,345,3,88,
175440,345,3,89,0,
17545345,3,90,0,345,
175463,95,0,345,3,
1754797,0,1304,12,1,
1754818953,1305,5,63,3,
17495109,0,345,3,110, 17549109,0,345,3,110,
174960,345,3,111,0, 175500,345,3,111,0,
17497345,3,112,0,345, 17551345,3,112,0,345,
@@ -17534,16 +17588,240 @@ public class yyLSLTokens : YyLexer {
175343,90,0,345,3, 175883,90,0,345,3,
1753595,0,345,3,97, 1758995,0,345,3,97,
175360,345,3,98,0, 175900,345,3,98,0,
17537345,3,99,0,345, 17591345,3,99,0,1306,
175383,100,0,345,3, 1759212,1,18998,1307,5,
17539101,0,1300,12,1, 1759363,3,109,0,345,
1754018875,1301,5,63,3, 175943,110,0,345,3,
17595111,0,345,3,112,
175960,345,3,113,0,
17597345,3,114,0,345,
175983,115,0,345,3,
17599116,0,1308,12,1,
1760019033,1309,5,63,3,
17541109,0,345,3,110, 17601109,0,345,3,110,
175420,345,3,111,0, 176020,345,3,111,0,
17543345,3,112,0,345, 17603345,3,112,0,345,
175443,113,0,345,3, 176043,113,0,345,3,
17545114,0,1302,12,1, 17605114,0,345,3,115,
1754618908,1303,5,63,3, 176060,345,3,116,0,
17607345,3,117,0,345,
176083,118,0,345,3,
17609119,0,345,3,120,
176100,345,3,121,0,
17611345,3,122,0,345,
176123,48,0,345,3,
1761349,0,345,3,50,
176140,345,3,51,0,
17615345,3,52,0,345,
176163,53,0,345,3,
1761754,0,345,3,55,
176180,345,3,56,0,
17619345,3,57,0,345,
176203,65,0,345,3,
1762166,0,345,3,67,
176220,345,3,68,0,
17623345,3,69,0,345,
176243,70,0,345,3,
1762571,0,345,3,72,
176260,345,3,73,0,
17627345,3,74,0,345,
176283,75,0,345,3,
1762976,0,345,3,77,
176300,345,3,78,0,
17631345,3,79,0,345,
176323,80,0,345,3,
1763381,0,345,3,82,
176340,345,3,83,0,
17635345,3,84,0,345,
176363,85,0,345,3,
1763786,0,345,3,87,
176380,345,3,88,0,
17639345,3,89,0,345,
176403,90,0,345,3,
1764195,0,345,3,97,
176420,345,3,98,0,
17643345,3,99,0,345,
176443,100,0,345,3,
17645101,0,345,3,102,
176460,345,3,103,0,
17647345,3,104,0,345,
176483,105,0,1310,12,
176491,19084,1311,5,63,
176503,109,0,345,3,
17651110,0,345,3,111,
176520,1312,12,1,19114,
176531313,5,63,3,109,
176540,345,3,110,0,
176551314,12,1,19143,1315,
176565,63,3,109,0,
17657345,3,110,0,345,
176583,111,0,345,3,
17659112,0,345,3,113,
176600,345,3,114,0,
17661345,3,115,0,345,
176623,116,0,345,3,
17663117,0,345,3,118,
176640,345,3,119,0,
17665345,3,120,0,345,
176663,121,0,345,3,
17667122,0,345,3,48,
176680,345,3,49,0,
17669345,3,50,0,345,
176703,51,0,345,3,
1767152,0,345,3,53,
176720,345,3,54,0,
17673345,3,55,0,345,
176743,56,0,345,3,
1767557,0,345,3,65,
176760,345,3,66,0,
17677345,3,67,0,345,
176783,68,0,345,3,
1767969,0,345,3,70,
176800,345,3,71,0,
17681345,3,72,0,345,
176823,73,0,345,3,
1768374,0,345,3,75,
176840,345,3,76,0,
17685345,3,77,0,345,
176863,78,0,345,3,
1768779,0,345,3,80,
176880,345,3,81,0,
17689345,3,82,0,345,
176903,83,0,345,3,
1769184,0,345,3,85,
176920,345,3,86,0,
17693345,3,87,0,345,
176943,88,0,345,3,
1769589,0,345,3,90,
176960,345,3,95,0,
176971316,12,1,19229,1317,
176985,63,3,109,0,
17699345,3,110,0,345,
177003,111,0,345,3,
17701112,0,345,3,113,
177020,345,3,114,0,
177031318,12,1,19262,1319,
177045,63,3,109,0,
17705345,3,110,0,345,
177063,111,0,345,3,
17707112,0,345,3,113,
177080,345,3,114,0,
17709345,3,115,0,345,
177103,116,0,345,3,
17711117,0,345,3,118,
177120,345,3,119,0,
17713345,3,120,0,345,
177143,121,0,345,3,
17715122,0,345,3,48,
177160,345,3,49,0,
17717345,3,50,0,345,
177183,51,0,345,3,
1771952,0,345,3,53,
177200,345,3,54,0,
17721345,3,55,0,345,
177223,56,0,345,3,
1772357,0,345,3,65,
177240,345,3,66,0,
17725345,3,67,0,345,
177263,68,0,345,3,
1772769,0,345,3,70,
177280,345,3,71,0,
17729345,3,72,0,345,
177303,73,0,345,3,
1773174,0,345,3,75,
177320,345,3,76,0,
17733345,3,77,0,345,
177343,78,0,345,3,
1773579,0,345,3,80,
177360,345,3,81,0,
17737345,3,82,0,345,
177383,83,0,345,3,
1773984,0,345,3,85,
177400,345,3,86,0,
17741345,3,87,0,345,
177423,88,0,345,3,
1774389,0,345,3,90,
177440,345,3,95,0,
17745345,3,97,0,345,
177463,98,0,345,3,
1774799,0,345,3,100,
177480,345,3,101,0,
177491320,12,1,19309,1321,
177505,63,3,109,0,
17751345,3,110,0,345,
177523,111,0,345,3,
17753112,0,345,3,113,
177540,345,3,114,0,
17755345,3,115,0,1322,
1775612,1,19343,1323,5,
1775763,3,109,0,345,
177583,110,0,345,3,
17759111,0,345,3,112,
177600,345,3,113,0,
17761345,3,114,0,345,
177623,115,0,345,3,
17763116,0,345,3,117,
177640,1324,12,1,19379,
177651325,5,63,3,109,
177660,345,3,110,0,
17767345,3,111,0,345,
177683,112,0,345,3,
17769113,0,345,3,114,
177700,345,3,115,0,
17771345,3,116,0,345,
177723,117,0,345,3,
17773118,0,345,3,119,
177740,345,3,120,0,
17775345,3,121,0,345,
177763,122,0,345,3,
1777748,0,345,3,49,
177780,345,3,50,0,
17779345,3,51,0,345,
177803,52,0,345,3,
1778153,0,345,3,54,
177820,345,3,55,0,
17783345,3,56,0,345,
177843,57,0,345,3,
1778565,0,345,3,66,
177860,345,3,67,0,
17787345,3,68,0,345,
177883,69,0,345,3,
1778970,0,345,3,71,
177900,345,3,72,0,
17791345,3,73,0,345,
177923,74,0,345,3,
1779375,0,345,3,76,
177940,345,3,77,0,
17795345,3,78,0,345,
177963,79,0,345,3,
1779780,0,345,3,81,
177980,345,3,82,0,
17799345,3,83,0,345,
178003,84,0,345,3,
1780185,0,345,3,86,
178020,345,3,87,0,
17803345,3,88,0,345,
178043,89,0,345,3,
1780590,0,345,3,95,
178060,345,3,97,0,
17807345,3,98,0,345,
178083,99,0,345,3,
17809100,0,345,3,101,
178100,345,3,102,0,
17811345,3,103,0,345,
178123,104,0,345,3,
17813105,0,345,3,106,
178140,345,3,107,0,
17815345,3,108,0,1326,
1781612,1,19433,1327,5,
1781763,3,109,0,345,
178183,110,0,345,3,
17819111,0,345,3,112,
178200,345,3,113,0,
17821345,3,114,0,345,
178223,115,0,345,3,
17823116,0,1328,12,1,
1782419468,1329,5,63,3,
17547109,0,345,3,110, 17825109,0,345,3,110,
175480,345,3,111,0, 178260,345,3,111,0,
17549345,3,112,0,345, 17827345,3,112,0,345,
@@ -17594,15 +17872,65 @@ public class yyLSLTokens : YyLexer {
175943,105,0,345,3, 178723,105,0,345,3,
17595106,0,345,3,107, 17873106,0,345,3,107,
175960,345,3,108,0, 178740,345,3,108,0,
17597345,1304,11,1,783, 17875345,1330,11,1,845,
175980,1305,4,22,84, 178760,1331,4,48,84,
175990,73,0,77,0, 178770,82,0,65,0,
1760069,0,82,0,95, 1787878,0,83,0,65,
176010,69,0,86,0, 178790,67,0,84,0,
1760269,0,78,0,84, 1788073,0,79,0,78,
176030,1,-1,3,115, 178810,95,0,82,0,
176040,345,3,116,0, 1788269,0,83,0,85,
17605345,3,117,0,345, 178830,76,0,84,0,
1788495,0,69,0,86,
178850,69,0,78,0,
1788684,0,1,-1,3,
17887117,0,345,3,118,
178880,345,3,119,0,
17889345,3,120,0,345,
178903,121,0,345,3,
17891122,0,345,3,48,
178920,345,3,49,0,
17893345,3,50,0,345,
178943,51,0,345,3,
1789552,0,345,3,53,
178960,345,3,54,0,
17897345,3,55,0,345,
178983,56,0,345,3,
1789957,0,345,3,65,
179000,345,3,66,0,
17901345,3,67,0,345,
179023,68,0,345,3,
1790369,0,345,3,70,
179040,345,3,71,0,
17905345,3,72,0,345,
179063,73,0,345,3,
1790774,0,345,3,75,
179080,345,3,76,0,
17909345,3,77,0,345,
179103,78,0,345,3,
1791179,0,345,3,80,
179120,345,3,81,0,
17913345,3,82,0,345,
179143,83,0,345,3,
1791584,0,345,3,85,
179160,345,3,86,0,
17917345,3,87,0,345,
179183,88,0,345,3,
1791989,0,345,3,90,
179200,345,3,95,0,
17921345,3,97,0,345,
179223,98,0,345,3,
1792399,0,345,3,100,
179240,345,3,101,0,
17925345,3,102,0,345,
179263,103,0,345,3,
17927104,0,345,3,105,
179280,345,3,106,0,
17929345,3,107,0,345,
179303,108,0,345,1332,
1793111,1,867,0,348,
179321,-1,1333,11,1,
17933867,0,348,1,-1,
176063,118,0,345,3, 179343,118,0,345,3,
17607119,0,345,3,120, 17935119,0,345,3,120,
176080,345,3,121,0, 179360,345,3,121,0,
@@ -17646,20 +17974,8 @@ public class yyLSLTokens : YyLexer {
176463,105,0,345,3, 179743,105,0,345,3,
17647106,0,345,3,107, 17975106,0,345,3,107,
176480,345,3,108,0, 179760,345,3,108,0,
17649345,1306,11,1,845, 17977345,1334,11,1,867,
176500,348,1,-1,3, 179780,348,1,-1,3,
17651102,0,345,3,103,
176520,345,3,104,0,
17653345,3,105,0,345,
176543,106,0,345,3,
17655107,0,345,3,108,
176560,345,1307,11,1,
17657845,0,348,1,-1,
176583,110,0,345,3,
17659111,0,345,3,112,
176600,345,3,113,0,
17661345,3,114,0,345,
176623,115,0,345,3,
17663116,0,345,3,117, 17979116,0,345,3,117,
176640,345,3,118,0, 179800,345,3,118,0,
17665345,3,119,0,345, 17981345,3,119,0,345,
@@ -17704,179 +18020,15 @@ public class yyLSLTokens : YyLexer {
177040,345,3,105,0, 180200,345,3,105,0,
17705345,3,106,0,345, 18021345,3,106,0,345,
177063,107,0,345,3, 180223,107,0,345,3,
17707108,0,345,1308,11, 18023108,0,345,1335,11,
177081,845,0,348,1, 180241,867,0,348,1,
17709-1,3,106,0,345, 18025-1,3,102,0,345,
177103,107,0,345,3, 180263,103,0,345,3,
17711108,0,345,1309,11, 18027104,0,345,3,105,
177121,845,0,348,1, 180280,345,3,106,0,
17713-1,3,117,0,343, 18029345,3,107,0,345,
177143,118,0,1310,12, 180303,108,0,345,1336,
177151,19351,1311,5,63, 1803111,1,867,0,348,
177163,109,0,345,3,
17717110,0,345,3,111,
177180,345,3,112,0,
17719345,3,113,0,345,
177203,114,0,345,3,
17721115,0,345,3,116,
177220,345,3,117,0,
17723345,3,118,0,345,
177243,119,0,345,3,
17725120,0,345,3,121,
177260,345,3,122,0,
17727345,3,48,0,345,
177283,49,0,345,3,
1772950,0,345,3,51,
177300,345,3,52,0,
17731345,3,53,0,345,
177323,54,0,345,3,
1773355,0,345,3,56,
177340,345,3,57,0,
17735345,3,65,0,345,
177363,66,0,345,3,
1773767,0,345,3,68,
177380,345,3,69,0,
17739345,3,70,0,345,
177403,71,0,345,3,
1774172,0,345,3,73,
177420,345,3,74,0,
17743345,3,75,0,345,
177443,76,0,345,3,
1774577,0,345,3,78,
177460,345,3,79,0,
17747345,3,80,0,345,
177483,81,0,345,3,
1774982,0,345,3,83,
177500,345,3,84,0,
17751345,3,85,0,345,
177523,86,0,345,3,
1775387,0,345,3,88,
177540,345,3,89,0,
17755345,3,90,0,345,
177563,95,0,345,3,
1775797,0,345,3,98,
177580,345,3,99,0,
17759345,3,100,0,345,
177603,101,0,1312,12,
177611,19398,1313,5,63,
177623,109,0,345,3,
17763110,0,345,3,111,
177640,345,3,112,0,
17765345,3,113,0,345,
177663,114,0,345,3,
17767115,0,345,3,116,
177680,345,3,117,0,
17769345,3,118,0,345,
177703,119,0,345,3,
17771120,0,345,3,121,
177720,345,3,122,0,
17773345,3,48,0,345,
177743,49,0,345,3,
1777550,0,345,3,51,
177760,345,3,52,0,
17777345,3,53,0,345,
177783,54,0,345,3,
1777955,0,345,3,56,
177800,345,3,57,0,
17781345,3,65,0,345,
177823,66,0,345,3,
1778367,0,345,3,68,
177840,345,3,69,0,
17785345,3,70,0,345,
177863,71,0,345,3,
1778772,0,345,3,73,
177880,345,3,74,0,
17789345,3,75,0,345,
177903,76,0,345,3,
1779177,0,345,3,78,
177920,345,3,79,0,
17793345,3,80,0,345,
177943,81,0,345,3,
1779582,0,345,3,83,
177960,345,3,84,0,
17797345,3,85,0,345,
177983,86,0,345,3,
1779987,0,345,3,88,
178000,345,3,89,0,
17801345,3,90,0,345,
178023,95,0,345,3,
1780397,0,345,3,98,
178040,345,3,99,0,
178051314,12,1,19443,1315,
178065,63,3,109,0,
17807345,3,110,0,345,
178083,111,0,345,3,
17809112,0,345,3,113,
178100,345,3,114,0,
17811345,3,115,0,345,
178123,116,0,1316,12,
178131,19478,1317,5,63,
178143,109,0,345,3,
17815110,0,345,3,111,
178160,1318,12,1,19508,
178171319,5,63,3,109,
178180,345,3,110,0,
17819345,3,111,0,345,
178203,112,0,345,3,
17821113,0,345,3,114,
178220,1320,12,1,19541,
178231321,5,63,3,109,
178240,345,3,110,0,
17825345,3,111,0,345,
178263,112,0,345,3,
17827113,0,345,3,114,
178280,345,3,115,0,
17829345,3,116,0,345,
178303,117,0,345,3,
17831118,0,345,3,119,
178320,345,3,120,0,
17833345,3,121,0,345,
178343,122,0,345,3,
1783548,0,345,3,49,
178360,345,3,50,0,
17837345,3,51,0,345,
178383,52,0,345,3,
1783953,0,345,3,54,
178400,345,3,55,0,
17841345,3,56,0,345,
178423,57,0,345,3,
1784365,0,345,3,66,
178440,345,3,67,0,
17845345,3,68,0,345,
178463,69,0,345,3,
1784770,0,345,3,71,
178480,345,3,72,0,
17849345,3,73,0,345,
178503,74,0,345,3,
1785175,0,345,3,76,
178520,345,3,77,0,
17853345,3,78,0,345,
178543,79,0,345,3,
1785580,0,345,3,81,
178560,345,3,82,0,
17857345,3,83,0,345,
178583,84,0,345,3,
1785985,0,345,3,86,
178600,345,3,87,0,
17861345,3,88,0,345,
178623,89,0,345,3,
1786390,0,345,3,95,
178640,345,3,97,0,
17865345,3,98,0,345,
178663,99,0,345,3,
17867100,0,345,3,101,
178680,345,3,102,0,
17869345,3,103,0,345,
178703,104,0,345,3,
17871105,0,345,3,106,
178720,345,3,107,0,
17873345,3,108,0,345,
178741322,11,1,320,0,
178751323,4,22,86,0,
1787669,0,67,0,84,
178770,79,0,82,0,
1787895,0,84,0,89,
178790,80,0,69,0,
178801,-1,3,115,0, 180321,-1,3,115,0,
17881345,3,116,0,345, 18033345,3,116,0,345,
178823,117,0,345,3, 180343,117,0,345,3,
@@ -17923,8 +18075,20 @@ public class yyLSLTokens : YyLexer {
17923105,0,345,3,106, 18075105,0,345,3,106,
179240,345,3,107,0, 180760,345,3,107,0,
17925345,3,108,0,345, 18077345,3,108,0,345,
179261324,11,1,845,0, 180781337,11,1,867,0,
17927348,1,-1,3,112, 18079348,1,-1,3,97,
180800,345,3,98,0,
18081345,3,99,0,345,
180823,100,0,345,3,
18083101,0,345,3,102,
180840,345,3,103,0,
18085345,3,104,0,345,
180863,105,0,345,3,
18087106,0,345,3,107,
180880,345,3,108,0,
18089345,1338,11,1,867,
180900,348,1,-1,3,
18091111,0,345,3,112,
179280,345,3,113,0, 180920,345,3,113,0,
17929345,3,114,0,345, 18093345,3,114,0,345,
179303,115,0,345,3, 180943,115,0,345,3,
@@ -17972,9 +18136,13 @@ public class yyLSLTokens : YyLexer {
179720,345,3,105,0, 181360,345,3,105,0,
17973345,3,106,0,345, 18137345,3,106,0,345,
179743,107,0,345,3, 181383,107,0,345,3,
17975108,0,345,1325,11, 18139108,0,345,1339,11,
179761,845,0,348,1, 181401,867,0,348,1,
17977-1,3,117,0,345, 18141-1,3,112,0,345,
181423,113,0,345,3,
18143114,0,345,3,115,
181440,345,3,116,0,
18145345,3,117,0,345,
179783,118,0,345,3, 181463,118,0,345,3,
17979119,0,345,3,120, 18147119,0,345,3,120,
179800,345,3,121,0, 181480,345,3,121,0,
@@ -18018,8 +18186,68 @@ public class yyLSLTokens : YyLexer {
180183,105,0,345,3, 181863,105,0,345,3,
18019106,0,345,3,107, 18187106,0,345,3,107,
180200,345,3,108,0, 181880,345,3,108,0,
18021345,1326,11,1,845, 18189345,1340,11,1,867,
181900,348,1,-1,3,
18191106,0,345,3,107,
181920,345,3,108,0,
18193345,1341,11,1,867,
180220,348,1,-1,3, 181940,348,1,-1,3,
18195117,0,345,3,118,
181960,345,3,119,0,
18197345,3,120,0,345,
181983,121,0,345,3,
18199122,0,345,3,48,
182000,345,3,49,0,
18201345,3,50,0,345,
182023,51,0,345,3,
1820352,0,345,3,53,
182040,345,3,54,0,
18205345,3,55,0,345,
182063,56,0,345,3,
1820757,0,345,3,65,
182080,345,3,66,0,
18209345,3,67,0,345,
182103,68,0,345,3,
1821169,0,345,3,70,
182120,345,3,71,0,
18213345,3,72,0,345,
182143,73,0,345,3,
1821574,0,345,3,75,
182160,345,3,76,0,
18217345,3,77,0,345,
182183,78,0,345,3,
1821979,0,345,3,80,
182200,345,3,81,0,
18221345,3,82,0,345,
182223,83,0,345,3,
1822384,0,345,3,85,
182240,345,3,86,0,
18225345,3,87,0,345,
182263,88,0,345,3,
1822789,0,345,3,90,
182280,345,3,95,0,
18229345,3,97,0,345,
182303,98,0,345,3,
1823199,0,345,3,100,
182320,345,3,101,0,
18233345,3,102,0,345,
182343,103,0,345,3,
18235104,0,345,3,105,
182360,345,3,106,0,
18237345,3,107,0,345,
182383,108,0,345,1342,
1823911,1,867,0,348,
182401,-1,3,100,0,
18241345,3,101,0,345,
182423,102,0,345,3,
18243103,0,345,3,104,
182440,345,3,105,0,
18245345,3,106,0,345,
182463,107,0,345,3,
18247108,0,345,1343,11,
182481,867,0,348,1,
18249-1,3,98,0,345,
182503,99,0,345,3,
18023100,0,345,3,101, 18251100,0,345,3,101,
180240,345,3,102,0, 182520,345,3,102,0,
18025345,3,103,0,345, 18253345,3,103,0,345,
@@ -18027,65 +18255,213 @@ public class yyLSLTokens : YyLexer {
18027105,0,345,3,106, 18255105,0,345,3,106,
180280,345,3,107,0, 182560,345,3,107,0,
18029345,3,108,0,345, 18257345,3,108,0,345,
180301327,11,1,845,0, 182581344,11,1,867,0,
18031348,1,-1,3,102, 18259348,1,-1,3,116,
182600,345,3,117,0,
18261345,3,118,0,345,
182623,119,0,345,3,
18263120,0,345,3,121,
182640,345,3,122,0,
18265345,3,48,0,345,
182663,49,0,345,3,
1826750,0,345,3,51,
182680,345,3,52,0,
18269345,3,53,0,345,
182703,54,0,345,3,
1827155,0,345,3,56,
182720,345,3,57,0,
18273345,3,65,0,345,
182743,66,0,345,3,
1827567,0,345,3,68,
182760,345,3,69,0,
18277345,3,70,0,345,
182783,71,0,345,3,
1827972,0,345,3,73,
182800,345,3,74,0,
18281345,3,75,0,345,
182823,76,0,345,3,
1828377,0,345,3,78,
182840,345,3,79,0,
18285345,3,80,0,345,
182863,81,0,345,3,
1828782,0,345,3,83,
182880,345,3,84,0,
18289345,3,85,0,345,
182903,86,0,345,3,
1829187,0,345,3,88,
182920,345,3,89,0,
18293345,3,90,0,345,
182943,95,0,345,3,
1829597,0,345,3,98,
182960,345,3,99,0,
18297345,3,100,0,345,
182983,101,0,345,3,
18299102,0,345,3,103,
183000,345,3,104,0,
18301345,3,105,0,345,
183023,106,0,345,3,
18303107,0,345,3,108,
183040,345,1345,11,1,
18305867,0,348,1,-1,
183063,111,0,345,3,
18307112,0,345,3,113,
183080,345,3,114,0,
18309345,3,115,0,345,
183103,116,0,345,3,
18311117,0,345,3,118,
183120,345,3,119,0,
18313345,3,120,0,345,
183143,121,0,345,3,
18315122,0,345,3,48,
183160,345,3,49,0,
18317345,3,50,0,345,
183183,51,0,345,3,
1831952,0,345,3,53,
183200,345,3,54,0,
18321345,3,55,0,345,
183223,56,0,345,3,
1832357,0,345,3,65,
183240,345,3,66,0,
18325345,3,67,0,345,
183263,68,0,345,3,
1832769,0,345,3,70,
183280,345,3,71,0,
18329345,3,72,0,345,
183303,73,0,345,3,
1833174,0,345,3,75,
183320,345,3,76,0,
18333345,3,77,0,345,
183343,78,0,345,3,
1833579,0,345,3,80,
183360,345,3,81,0,
18337345,3,82,0,345,
183383,83,0,345,3,
1833984,0,345,3,85,
183400,345,3,86,0,
18341345,3,87,0,345,
183423,88,0,345,3,
1834389,0,345,3,90,
183440,345,3,95,0,
18345345,3,97,0,345,
183463,98,0,345,3,
1834799,0,345,3,100,
183480,345,3,101,0,
18349345,3,102,0,345,
183503,103,0,345,3,
18351104,0,345,3,105,
183520,345,3,106,0,
18353345,3,107,0,345,
183543,108,0,345,1346,
1835511,1,867,0,348,
183561,-1,3,98,0,
18357345,3,99,0,345,
183583,100,0,345,3,
18359101,0,345,3,102,
180320,345,3,103,0, 183600,345,3,103,0,
18033345,3,104,0,345, 18361345,3,104,0,345,
180343,105,0,345,3, 183623,105,0,345,3,
18035106,0,345,3,107, 18363106,0,345,3,107,
180360,345,3,108,0, 183640,345,3,108,0,
18037345,1328,11,1,845, 18365345,1347,11,1,867,
180380,348,1,-1,3, 183660,348,1,-1,3,
18039119,0,1329,12,1, 18367115,0,345,3,116,
1804020072,1330,5,63,3, 183680,345,3,117,0,
18041109,0,345,3,110, 18369345,3,118,0,345,
180420,345,3,111,0, 183703,119,0,345,3,
18043345,3,112,0,345, 18371120,0,345,3,121,
180443,113,0,345,3, 183720,345,3,122,0,
18045114,0,345,3,115, 18373345,3,48,0,345,
180460,345,3,116,0, 183743,49,0,345,3,
18047345,3,117,0,345, 1837550,0,345,3,51,
180483,118,0,345,3, 183760,345,3,52,0,
18049119,0,345,3,120, 18377345,3,53,0,345,
180500,345,3,121,0, 183783,54,0,345,3,
18051345,3,122,0,345, 1837955,0,345,3,56,
180523,48,0,345,3, 183800,345,3,57,0,
1805349,0,345,3,50, 18381345,3,65,0,345,
180540,345,3,51,0, 183823,66,0,345,3,
18055345,3,52,0,345, 1838367,0,345,3,68,
180563,53,0,345,3, 183840,345,3,69,0,
1805754,0,345,3,55, 18385345,3,70,0,345,
180580,345,3,56,0, 183863,71,0,345,3,
18059345,3,57,0,345, 1838772,0,345,3,73,
180603,65,0,345,3, 183880,345,3,74,0,
1806166,0,345,3,67, 18389345,3,75,0,345,
180620,345,3,68,0, 183903,76,0,345,3,
18063345,3,69,0,345, 1839177,0,345,3,78,
180643,70,0,345,3, 183920,345,3,79,0,
1806571,0,345,3,72, 18393345,3,80,0,345,
180660,345,3,73,0, 183943,81,0,345,3,
18067345,3,74,0,345, 1839582,0,345,3,83,
180683,75,0,345,3, 183960,345,3,84,0,
1806976,0,345,3,77, 18397345,3,85,0,345,
180700,345,3,78,0, 183983,86,0,345,3,
18071345,3,79,0,345, 1839987,0,345,3,88,
180723,80,0,345,3, 184000,345,3,89,0,
1807381,0,345,3,82, 18401345,3,90,0,345,
180740,345,3,83,0, 184023,95,0,345,3,
18075345,3,84,0,345, 1840397,0,345,3,98,
180763,85,0,345,3, 184040,345,3,99,0,
1807786,0,345,3,87, 18405345,3,100,0,345,
180780,345,3,88,0, 184063,101,0,345,3,
18079345,3,89,0,345, 18407102,0,345,3,103,
180803,90,0,345,3, 184080,345,3,104,0,
1808195,0,345,3,97, 18409345,3,105,0,1348,
180820,345,3,98,0, 1841012,1,20862,1349,5,
18083345,3,99,0,345, 1841163,3,109,0,1350,
180843,100,0,345,3, 1841212,1,20890,1351,5,
18085101,0,345,3,102, 1841363,3,109,0,345,
180860,345,3,103,0, 184143,110,0,345,3,
18087345,3,104,0,1331, 18415111,0,345,3,112,
1808812,1,20122,1332,5, 184160,345,3,113,0,
18417345,3,114,0,345,
184183,115,0,345,3,
18419116,0,345,3,117,
184200,345,3,118,0,
18421345,3,119,0,345,
184223,120,0,345,3,
18423121,0,345,3,122,
184240,345,3,48,0,
18425345,3,49,0,345,
184263,50,0,345,3,
1842751,0,345,3,52,
184280,345,3,53,0,
18429345,3,54,0,345,
184303,55,0,345,3,
1843156,0,345,3,57,
184320,345,3,65,0,
18433345,3,66,0,345,
184343,67,0,345,3,
1843568,0,345,3,69,
184360,345,3,70,0,
18437345,3,71,0,345,
184383,72,0,345,3,
1843973,0,345,3,74,
184400,345,3,75,0,
18441345,3,76,0,345,
184423,77,0,345,3,
1844378,0,345,3,79,
184440,345,3,80,0,
18445345,3,81,0,345,
184463,82,0,345,3,
1844783,0,345,3,84,
184480,345,3,85,0,
18449345,3,86,0,345,
184503,87,0,345,3,
1845188,0,345,3,89,
184520,345,3,90,0,
18453345,3,95,0,345,
184543,97,0,345,3,
1845598,0,345,3,99,
184560,345,3,100,0,
18457345,3,101,0,1352,
1845812,1,20937,1353,5,
1845963,3,109,0,345,
184603,110,0,345,3,
18461111,0,345,3,112,
184620,345,3,113,0,
18463345,3,114,0,1354,
1846412,1,20970,1355,5,
1808963,3,109,0,345, 1846563,3,109,0,345,
180903,110,0,345,3, 184663,110,0,345,3,
18091111,0,345,3,112, 18467111,0,345,3,112,
@@ -18134,7 +18510,127 @@ public class yyLSLTokens : YyLexer {
181343,102,0,345,3, 185103,102,0,345,3,
18135103,0,345,3,104, 18511103,0,345,3,104,
181360,345,3,105,0, 185120,345,3,105,0,
181371333,12,1,20173,1334, 18513345,3,106,0,345,
185143,107,0,345,3,
18515108,0,345,1356,11,
185161,783,0,1357,4,
1851722,84,0,73,0,
1851877,0,69,0,82,
185190,95,0,69,0,
1852086,0,69,0,78,
185210,84,0,1,-1,
185223,115,0,345,3,
18523116,0,345,3,117,
185240,345,3,118,0,
18525345,3,119,0,345,
185263,120,0,345,3,
18527121,0,345,3,122,
185280,345,3,48,0,
18529345,3,49,0,345,
185303,50,0,345,3,
1853151,0,345,3,52,
185320,345,3,53,0,
18533345,3,54,0,345,
185343,55,0,345,3,
1853556,0,345,3,57,
185360,345,3,65,0,
18537345,3,66,0,345,
185383,67,0,345,3,
1853968,0,345,3,69,
185400,345,3,70,0,
18541345,3,71,0,345,
185423,72,0,345,3,
1854373,0,345,3,74,
185440,345,3,75,0,
18545345,3,76,0,345,
185463,77,0,345,3,
1854778,0,345,3,79,
185480,345,3,80,0,
18549345,3,81,0,345,
185503,82,0,345,3,
1855183,0,345,3,84,
185520,345,3,85,0,
18553345,3,86,0,345,
185543,87,0,345,3,
1855588,0,345,3,89,
185560,345,3,90,0,
18557345,3,95,0,345,
185583,97,0,345,3,
1855998,0,345,3,99,
185600,345,3,100,0,
18561345,3,101,0,345,
185623,102,0,345,3,
18563103,0,345,3,104,
185640,345,3,105,0,
18565345,3,106,0,345,
185663,107,0,345,3,
18567108,0,345,1358,11,
185681,867,0,348,1,
18569-1,3,102,0,345,
185703,103,0,345,3,
18571104,0,345,3,105,
185720,345,3,106,0,
18573345,3,107,0,345,
185743,108,0,345,1359,
1857511,1,867,0,348,
185761,-1,3,110,0,
18577345,3,111,0,345,
185783,112,0,345,3,
18579113,0,345,3,114,
185800,345,3,115,0,
18581345,3,116,0,345,
185823,117,0,345,3,
18583118,0,345,3,119,
185840,345,3,120,0,
18585345,3,121,0,345,
185863,122,0,345,3,
1858748,0,345,3,49,
185880,345,3,50,0,
18589345,3,51,0,345,
185903,52,0,345,3,
1859153,0,345,3,54,
185920,345,3,55,0,
18593345,3,56,0,345,
185943,57,0,345,3,
1859565,0,345,3,66,
185960,345,3,67,0,
18597345,3,68,0,345,
185983,69,0,345,3,
1859970,0,345,3,71,
186000,345,3,72,0,
18601345,3,73,0,345,
186023,74,0,345,3,
1860375,0,345,3,76,
186040,345,3,77,0,
18605345,3,78,0,345,
186063,79,0,345,3,
1860780,0,345,3,81,
186080,345,3,82,0,
18609345,3,83,0,345,
186103,84,0,345,3,
1861185,0,345,3,86,
186120,345,3,87,0,
18613345,3,88,0,345,
186143,89,0,345,3,
1861590,0,345,3,95,
186160,345,3,97,0,
18617345,3,98,0,345,
186183,99,0,345,3,
18619100,0,345,3,101,
186200,345,3,102,0,
18621345,3,103,0,345,
186223,104,0,345,3,
18623105,0,345,3,106,
186240,345,3,107,0,
18625345,3,108,0,345,
186261360,11,1,867,0,
18627348,1,-1,3,106,
186280,345,3,107,0,
18629345,3,108,0,345,
186301361,11,1,867,0,
18631348,1,-1,3,117,
186320,343,3,118,0,
186331362,12,1,21413,1363,
181385,63,3,109,0, 186345,63,3,109,0,
18139345,3,110,0,345, 18635345,3,110,0,345,
181403,111,0,345,3, 186363,111,0,345,3,
@@ -18180,13 +18676,69 @@ public class yyLSLTokens : YyLexer {
181803,98,0,345,3, 186763,98,0,345,3,
1818199,0,345,3,100, 1867799,0,345,3,100,
181820,345,3,101,0, 186780,345,3,101,0,
18183345,3,102,0,345, 186791364,12,1,21460,1365,
181843,103,0,345,3, 186805,63,3,109,0,
18185104,0,345,3,105, 18681345,3,110,0,345,
181860,345,3,106,0, 186823,111,0,345,3,
18187345,3,107,0,345, 18683112,0,345,3,113,
181883,108,0,1335,12, 186840,345,3,114,0,
181891,20227,1336,5,63, 18685345,3,115,0,345,
186863,116,0,345,3,
18687117,0,345,3,118,
186880,345,3,119,0,
18689345,3,120,0,345,
186903,121,0,345,3,
18691122,0,345,3,48,
186920,345,3,49,0,
18693345,3,50,0,345,
186943,51,0,345,3,
1869552,0,345,3,53,
186960,345,3,54,0,
18697345,3,55,0,345,
186983,56,0,345,3,
1869957,0,345,3,65,
187000,345,3,66,0,
18701345,3,67,0,345,
187023,68,0,345,3,
1870369,0,345,3,70,
187040,345,3,71,0,
18705345,3,72,0,345,
187063,73,0,345,3,
1870774,0,345,3,75,
187080,345,3,76,0,
18709345,3,77,0,345,
187103,78,0,345,3,
1871179,0,345,3,80,
187120,345,3,81,0,
18713345,3,82,0,345,
187143,83,0,345,3,
1871584,0,345,3,85,
187160,345,3,86,0,
18717345,3,87,0,345,
187183,88,0,345,3,
1871989,0,345,3,90,
187200,345,3,95,0,
18721345,3,97,0,345,
187223,98,0,345,3,
1872399,0,1366,12,1,
1872421505,1367,5,63,3,
18725109,0,345,3,110,
187260,345,3,111,0,
18727345,3,112,0,345,
187283,113,0,345,3,
18729114,0,345,3,115,
187300,345,3,116,0,
187311368,12,1,21540,1369,
187325,63,3,109,0,
18733345,3,110,0,345,
187343,111,0,1370,12,
187351,21570,1371,5,63,
187363,109,0,345,3,
18737110,0,345,3,111,
187380,345,3,112,0,
18739345,3,113,0,345,
187403,114,0,1372,12,
187411,21603,1373,5,63,
181903,109,0,345,3, 187423,109,0,345,3,
18191110,0,345,3,111, 18743110,0,345,3,111,
181920,345,3,112,0, 187440,345,3,112,0,
@@ -18231,13 +18783,19 @@ public class yyLSLTokens : YyLexer {
1823197,0,345,3,98, 1878397,0,345,3,98,
182320,345,3,99,0, 187840,345,3,99,0,
18233345,3,100,0,345, 18785345,3,100,0,345,
182343,101,0,1337,12, 187863,101,0,345,3,
182351,20274,1338,5,63, 18787102,0,345,3,103,
182363,109,0,345,3, 187880,345,3,104,0,
18237110,0,345,3,111, 18789345,3,105,0,345,
182380,345,3,112,0, 187903,106,0,345,3,
18239345,3,113,0,345, 18791107,0,345,3,108,
182403,114,0,345,3, 187920,345,1374,11,1,
18793320,0,1375,4,22,
1879486,0,69,0,67,
187950,84,0,79,0,
1879682,0,95,0,84,
187970,89,0,80,0,
1879869,0,1,-1,3,
18241115,0,345,3,116, 18799115,0,345,3,116,
182420,345,3,117,0, 188000,345,3,117,0,
18243345,3,118,0,345, 18801345,3,118,0,345,
@@ -18283,315 +18841,676 @@ public class yyLSLTokens : YyLexer {
18283345,3,105,0,345, 18841345,3,105,0,345,
182843,106,0,345,3, 188423,106,0,345,3,
18285107,0,345,3,108, 18843107,0,345,3,108,
182860,345,1339,11,1, 188440,345,1376,11,1,
18287229,0,1340,4,10, 18845867,0,348,1,-1,
1828887,0,72,0,73, 188463,112,0,345,3,
182890,76,0,69,0, 18847113,0,345,3,114,
182901,-1,3,102,0, 188480,345,3,115,0,
18849345,3,116,0,345,
188503,117,0,345,3,
18851118,0,345,3,119,
188520,345,3,120,0,
18853345,3,121,0,345,
188543,122,0,345,3,
1885548,0,345,3,49,
188560,345,3,50,0,
18857345,3,51,0,345,
188583,52,0,345,3,
1885953,0,345,3,54,
188600,345,3,55,0,
18861345,3,56,0,345,
188623,57,0,345,3,
1886365,0,345,3,66,
188640,345,3,67,0,
18865345,3,68,0,345,
188663,69,0,345,3,
1886770,0,345,3,71,
188680,345,3,72,0,
18869345,3,73,0,345,
188703,74,0,345,3,
1887175,0,345,3,76,
188720,345,3,77,0,
18873345,3,78,0,345,
188743,79,0,345,3,
1887580,0,345,3,81,
188760,345,3,82,0,
18877345,3,83,0,345,
188783,84,0,345,3,
1887985,0,345,3,86,
188800,345,3,87,0,
18881345,3,88,0,345,
188823,89,0,345,3,
1888390,0,345,3,95,
188840,345,3,97,0,
18885345,3,98,0,345,
188863,99,0,345,3,
18887100,0,345,3,101,
188880,345,3,102,0,
18291345,3,103,0,345, 18889345,3,103,0,345,
182923,104,0,345,3, 188903,104,0,345,3,
18293105,0,345,3,106, 18891105,0,345,3,106,
182940,345,3,107,0, 188920,345,3,107,0,
18295345,3,108,0,345, 18893345,3,108,0,345,
182961341,11,1,845,0, 188941377,11,1,867,0,
18297348,1,-1,1342,11, 18895348,1,-1,3,117,
182981,845,0,348,1, 188960,345,3,118,0,
18299-1,3,106,0,345, 18897345,3,119,0,345,
188983,120,0,345,3,
18899121,0,345,3,122,
189000,345,3,48,0,
18901345,3,49,0,345,
189023,50,0,345,3,
1890351,0,345,3,52,
189040,345,3,53,0,
18905345,3,54,0,345,
189063,55,0,345,3,
1890756,0,345,3,57,
189080,345,3,65,0,
18909345,3,66,0,345,
189103,67,0,345,3,
1891168,0,345,3,69,
189120,345,3,70,0,
18913345,3,71,0,345,
189143,72,0,345,3,
1891573,0,345,3,74,
189160,345,3,75,0,
18917345,3,76,0,345,
189183,77,0,345,3,
1891978,0,345,3,79,
189200,345,3,80,0,
18921345,3,81,0,345,
189223,82,0,345,3,
1892383,0,345,3,84,
189240,345,3,85,0,
18925345,3,86,0,345,
189263,87,0,345,3,
1892788,0,345,3,89,
189280,345,3,90,0,
18929345,3,95,0,345,
189303,97,0,345,3,
1893198,0,345,3,99,
189320,345,3,100,0,
18933345,3,101,0,345,
189343,102,0,345,3,
18935103,0,345,3,104,
189360,345,3,105,0,
18937345,3,106,0,345,
183003,107,0,345,3, 189383,107,0,345,3,
18301108,0,345,1343,11, 18939108,0,345,1378,11,
183021,845,0,348,1, 189401,867,0,348,1,
18303-1,3,105,0,345, 18941-1,3,100,0,345,
189423,101,0,345,3,
18943102,0,345,3,103,
189440,345,3,104,0,
18945345,3,105,0,345,
183043,106,0,345,3, 189463,106,0,345,3,
18305107,0,345,3,108, 18947107,0,345,3,108,
183060,345,1344,11,1, 189480,345,1379,11,1,
18307845,0,348,1,-1, 18949867,0,348,1,-1,
183083,120,0,343,3, 189503,102,0,345,3,
18309121,0,343,3,122, 18951103,0,345,3,104,
183100,343,3,123,0, 189520,345,3,105,0,
183111345,12,1,41003,1346, 18953345,3,106,0,345,
183125,0,1347,11,1, 189543,107,0,345,3,
1831351,0,1348,4,20, 18955108,0,345,1380,11,
1831476,0,69,0,70, 189561,867,0,348,1,
183150,84,0,95,0, 18957-1,3,119,0,1381,
1831666,0,82,0,65, 1895812,1,22134,1382,5,
183170,67,0,69,0, 1895963,3,109,0,345,
183181,-1,3,124,0, 189603,110,0,345,3,
183191349,12,1,43906,1350, 18961111,0,345,3,112,
183205,1,3,124,0, 189620,345,3,113,0,
183211351,12,1,44018,1352, 18963345,3,114,0,345,
183225,0,1353,11,1, 189643,115,0,345,3,
18323191,0,1354,4,26, 18965116,0,345,3,117,
1832483,0,84,0,82, 189660,345,3,118,0,
183250,79,0,75,0, 18967345,3,119,0,345,
1832669,0,95,0,83, 189683,120,0,345,3,
183270,84,0,82,0, 18969121,0,345,3,122,
1832879,0,75,0,69, 189700,345,3,48,0,
183290,1,-1,1355,11, 18971345,3,49,0,345,
183301,165,0,1356,4, 189723,50,0,345,3,
1833112,83,0,84,0, 1897351,0,345,3,52,
189740,345,3,53,0,
18975345,3,54,0,345,
189763,55,0,345,3,
1897756,0,345,3,57,
189780,345,3,65,0,
18979345,3,66,0,345,
189803,67,0,345,3,
1898168,0,345,3,69,
189820,345,3,70,0,
18983345,3,71,0,345,
189843,72,0,345,3,
1898573,0,345,3,74,
189860,345,3,75,0,
18987345,3,76,0,345,
189883,77,0,345,3,
1898978,0,345,3,79,
189900,345,3,80,0,
18991345,3,81,0,345,
189923,82,0,345,3,
1899383,0,345,3,84,
189940,345,3,85,0,
18995345,3,86,0,345,
189963,87,0,345,3,
1899788,0,345,3,89,
189980,345,3,90,0,
18999345,3,95,0,345,
190003,97,0,345,3,
1900198,0,345,3,99,
190020,345,3,100,0,
19003345,3,101,0,345,
190043,102,0,345,3,
19005103,0,345,3,104,
190060,1383,12,1,22184,
190071384,5,63,3,109,
190080,345,3,110,0,
19009345,3,111,0,345,
190103,112,0,345,3,
19011113,0,345,3,114,
190120,345,3,115,0,
19013345,3,116,0,345,
190143,117,0,345,3,
19015118,0,345,3,119,
190160,345,3,120,0,
19017345,3,121,0,345,
190183,122,0,345,3,
1901948,0,345,3,49,
190200,345,3,50,0,
19021345,3,51,0,345,
190223,52,0,345,3,
1902353,0,345,3,54,
190240,345,3,55,0,
19025345,3,56,0,345,
190263,57,0,345,3,
1902765,0,345,3,66,
190280,345,3,67,0,
19029345,3,68,0,345,
190303,69,0,345,3,
1903170,0,345,3,71,
190320,345,3,72,0,
19033345,3,73,0,345,
190343,74,0,345,3,
1903575,0,345,3,76,
190360,345,3,77,0,
19037345,3,78,0,345,
190383,79,0,345,3,
1903980,0,345,3,81,
190400,345,3,82,0,
19041345,3,83,0,345,
190423,84,0,345,3,
1904385,0,345,3,86,
190440,345,3,87,0,
19045345,3,88,0,345,
190463,89,0,345,3,
1904790,0,345,3,95,
190480,345,3,97,0,
19049345,3,98,0,345,
190503,99,0,345,3,
19051100,0,345,3,101,
190520,345,3,102,0,
19053345,3,103,0,345,
190543,104,0,345,3,
19055105,0,1385,12,1,
1905622235,1386,5,63,3,
19057109,0,345,3,110,
190580,345,3,111,0,
19059345,3,112,0,345,
190603,113,0,345,3,
19061114,0,345,3,115,
190620,345,3,116,0,
19063345,3,117,0,345,
190643,118,0,345,3,
19065119,0,345,3,120,
190660,345,3,121,0,
19067345,3,122,0,345,
190683,48,0,345,3,
1906949,0,345,3,50,
190700,345,3,51,0,
19071345,3,52,0,345,
190723,53,0,345,3,
1907354,0,345,3,55,
190740,345,3,56,0,
19075345,3,57,0,345,
190763,65,0,345,3,
1907766,0,345,3,67,
190780,345,3,68,0,
19079345,3,69,0,345,
190803,70,0,345,3,
1908171,0,345,3,72,
190820,345,3,73,0,
19083345,3,74,0,345,
190843,75,0,345,3,
1908576,0,345,3,77,
190860,345,3,78,0,
19087345,3,79,0,345,
190883,80,0,345,3,
1908981,0,345,3,82,
190900,345,3,83,0,
19091345,3,84,0,345,
190923,85,0,345,3,
1909386,0,345,3,87,
190940,345,3,88,0,
19095345,3,89,0,345,
190963,90,0,345,3,
1909795,0,345,3,97,
190980,345,3,98,0,
19099345,3,99,0,345,
191003,100,0,345,3,
19101101,0,345,3,102,
191020,345,3,103,0,
19103345,3,104,0,345,
191043,105,0,345,3,
19105106,0,345,3,107,
191060,345,3,108,0,
191071387,12,1,22289,1388,
191085,63,3,109,0,
19109345,3,110,0,345,
191103,111,0,345,3,
19111112,0,345,3,113,
191120,345,3,114,0,
19113345,3,115,0,345,
191143,116,0,345,3,
19115117,0,345,3,118,
191160,345,3,119,0,
19117345,3,120,0,345,
191183,121,0,345,3,
19119122,0,345,3,48,
191200,345,3,49,0,
19121345,3,50,0,345,
191223,51,0,345,3,
1912352,0,345,3,53,
191240,345,3,54,0,
19125345,3,55,0,345,
191263,56,0,345,3,
1912757,0,345,3,65,
191280,345,3,66,0,
19129345,3,67,0,345,
191303,68,0,345,3,
1913169,0,345,3,70,
191320,345,3,71,0,
19133345,3,72,0,345,
191343,73,0,345,3,
1913574,0,345,3,75,
191360,345,3,76,0,
19137345,3,77,0,345,
191383,78,0,345,3,
1913979,0,345,3,80,
191400,345,3,81,0,
19141345,3,82,0,345,
191423,83,0,345,3,
1914384,0,345,3,85,
191440,345,3,86,0,
19145345,3,87,0,345,
191463,88,0,345,3,
1914789,0,345,3,90,
191480,345,3,95,0,
19149345,3,97,0,345,
191503,98,0,345,3,
1915199,0,345,3,100,
191520,345,3,101,0,
191531389,12,1,22336,1390,
191545,63,3,109,0,
19155345,3,110,0,345,
191563,111,0,345,3,
19157112,0,345,3,113,
191580,345,3,114,0,
19159345,3,115,0,345,
191603,116,0,345,3,
19161117,0,345,3,118,
191620,345,3,119,0,
19163345,3,120,0,345,
191643,121,0,345,3,
19165122,0,345,3,48,
191660,345,3,49,0,
19167345,3,50,0,345,
191683,51,0,345,3,
1916952,0,345,3,53,
191700,345,3,54,0,
19171345,3,55,0,345,
191723,56,0,345,3,
1917357,0,345,3,65,
191740,345,3,66,0,
19175345,3,67,0,345,
191763,68,0,345,3,
1917769,0,345,3,70,
191780,345,3,71,0,
19179345,3,72,0,345,
191803,73,0,345,3,
1918174,0,345,3,75,
191820,345,3,76,0,
19183345,3,77,0,345,
191843,78,0,345,3,
1918579,0,345,3,80,
191860,345,3,81,0,
19187345,3,82,0,345,
191883,83,0,345,3,
1918984,0,345,3,85,
191900,345,3,86,0,
19191345,3,87,0,345,
191923,88,0,345,3,
1919389,0,345,3,90,
191940,345,3,95,0,
19195345,3,97,0,345,
191963,98,0,345,3,
1919799,0,345,3,100,
191980,345,3,101,0,
19199345,3,102,0,345,
192003,103,0,345,3,
19201104,0,345,3,105,
192020,345,3,106,0,
19203345,3,107,0,345,
192043,108,0,345,1391,
1920511,1,229,0,1392,
192064,10,87,0,72,
192070,73,0,76,0,
1920869,0,1,-1,3,
19209102,0,345,3,103,
192100,345,3,104,0,
19211345,3,105,0,345,
192123,106,0,345,3,
19213107,0,345,3,108,
192140,345,1393,11,1,
19215867,0,348,1,-1,
192161394,11,1,867,0,
19217348,1,-1,3,106,
192180,345,3,107,0,
19219345,3,108,0,345,
192201395,11,1,867,0,
19221348,1,-1,3,105,
192220,345,3,106,0,
19223345,3,107,0,345,
192243,108,0,345,1396,
1922511,1,867,0,348,
192261,-1,3,120,0,
19227343,3,121,0,343,
192283,122,0,343,3,
19229123,0,1397,12,1,
1923043065,1398,5,0,1399,
1923111,1,51,0,1400,
192324,20,76,0,69,
192330,70,0,84,0,
1923495,0,66,0,82,
192350,65,0,67,0,
1923669,0,1,-1,3,
19237124,0,1401,12,1,
1923845968,1402,5,1,3,
19239124,0,1403,12,1,
1924046080,1404,5,0,1405,
1924111,1,191,0,1406,
192424,26,83,0,84,
192430,82,0,79,0,
1924475,0,69,0,95,
192450,83,0,84,0,
1833282,0,79,0,75, 1924682,0,79,0,75,
183330,69,0,1,-1, 192470,69,0,1,-1,
183343,125,0,1357,12, 192481407,11,1,165,0,
183351,41368,1358,5,0, 192491408,4,12,83,0,
183361359,11,1,56,0, 1925084,0,82,0,79,
183371360,4,22,82,0, 192510,75,0,69,0,
1833873,0,71,0,72, 192521,-1,3,125,0,
183390,84,0,95,0, 192531409,12,1,43430,1410,
1834066,0,82,0,65, 192545,0,1411,11,1,
183410,67,0,69,0, 1925556,0,1412,4,22,
183421,-1,3,126,0, 1925682,0,73,0,71,
183431361,12,1,44147,1362, 192570,72,0,84,0,
183445,0,1363,11,1, 1925895,0,66,0,82,
18345175,0,1364,4,10, 192590,65,0,67,0,
1834684,0,73,0,76, 1926069,0,1,-1,3,
183470,68,0,69,0, 19261126,0,1413,12,1,
183481,-1,0,165,1, 1926246209,1414,5,0,1415,
18349-1,1365,4,12,83, 1926311,1,175,0,1416,
183500,84,0,82,0, 192644,10,84,0,73,
1835173,0,78,0,71, 192650,76,0,68,0,
183520,1366,12,1,45715, 1926669,0,1,-1,0,
183531367,5,119,3,1, 19267165,1,-1,1417,4,
183540,1368,12,1,45716, 1926812,83,0,84,0,
183551369,5,0,1370,11, 1926982,0,73,0,78,
183561,946,0,165,1, 192700,71,0,1418,12,
18357-1,3,9,0,1368, 192711,47777,1419,5,119,
183583,10,0,1371,12, 192723,1,0,1420,12,
183591,45917,1372,5,0, 192731,47778,1421,5,0,
183601373,11,1,952,0, 192741422,11,1,968,0,
18361165,1,-1,3,13, 19275165,1,-1,3,9,
183620,1368,3,0,3, 192760,1420,3,10,0,
183631368,3,96,33,1368, 192771423,12,1,47979,1424,
183643,32,0,1368,3, 192785,0,1425,11,1,
1836533,0,1368,3,34, 19279974,0,165,1,-1,
183660,1374,12,1,46664, 192803,13,0,1420,3,
183671375,5,0,1376,11, 192810,3,1420,3,0,
183681,1010,0,165,1, 192826,1420,3,32,0,
18369-1,3,35,0,1368, 192831420,3,33,0,1420,
183703,36,0,1368,3, 192843,34,0,1426,12,
1837137,0,1368,3,38, 192851,48726,1427,5,0,
183720,1368,3,40,0, 192861428,11,1,1032,0,
183731368,3,41,0,1368, 19287165,1,-1,3,35,
183743,42,0,1368,3, 192880,1420,3,36,0,
1837543,0,1368,3,44, 192891420,3,37,0,1420,
183760,1368,3,45,0, 192903,38,0,1420,3,
183771368,3,46,0,1368, 1929140,0,1420,3,41,
183783,47,0,1368,3, 192920,1420,3,42,0,
183793,9,1368,3,49, 192931420,3,43,0,1420,
183800,1368,3,50,0, 192943,44,0,1420,3,
183811368,3,48,0,1368, 1929545,0,1420,3,46,
183823,52,0,1368,3, 192960,1420,3,47,0,
1838353,0,1368,3,51, 192971420,3,3,9,1420,
183840,1368,3,55,0, 192983,49,0,1420,3,
183851368,3,56,0,1368, 1929950,0,1420,3,48,
183863,54,0,1368,3, 193000,1420,3,52,0,
1838759,0,1368,3,57, 193011420,3,53,0,1420,
183880,1368,3,61,0, 193023,51,0,1420,3,
183891368,3,62,0,1368, 1930355,0,1420,3,56,
183903,60,0,1368,3, 193040,1420,3,54,0,
1839164,0,1368,3,65, 193051420,3,59,0,1420,
183920,1368,3,66,0, 193063,57,0,1420,3,
183931368,3,67,0,1368, 1930761,0,1420,3,62,
183943,68,0,1368,3, 193080,1420,3,60,0,
1839569,0,1368,3,70, 193091420,3,64,0,1420,
183960,1368,3,71,0, 193103,65,0,1420,3,
183971368,3,72,0,1368, 1931166,0,1420,3,67,
183983,73,0,1368,3, 193120,1420,3,68,0,
1839974,0,1368,3,75, 193131420,3,69,0,1420,
184000,1368,3,76,0, 193143,70,0,1420,3,
184011368,3,77,0,1368, 1931571,0,1420,3,72,
184023,78,0,1368,3, 193160,1420,3,73,0,
1840379,0,1368,3,80, 193171420,3,74,0,1420,
184040,1368,3,81,0, 193183,75,0,1420,3,
184051368,3,82,0,1368, 1931976,0,1420,3,77,
184063,83,0,1368,3, 193200,1420,3,78,0,
1840784,0,1368,3,85, 193211420,3,79,0,1420,
184080,1368,3,86,0, 193223,80,0,1420,3,
184091368,3,87,0,1368, 1932381,0,1420,3,82,
184103,88,0,1368,3, 193240,1420,3,83,0,
1841189,0,1368,3,90, 193251420,3,84,0,1420,
184120,1368,3,91,0, 193263,85,0,1420,3,
184131368,3,92,0,1377, 1932786,0,1420,3,87,
1841412,1,46060,1378,5, 193280,1420,3,88,0,
184154,3,110,0,1379, 193291420,3,89,0,1420,
1841612,1,46089,1380,5, 193303,90,0,1420,3,
184170,1381,11,1,957, 1933191,0,1420,3,92,
193320,1429,12,1,48122,
193331430,5,4,3,110,
193340,1431,12,1,48151,
193351432,5,0,1433,11,
193361,979,0,165,1,
19337-1,3,34,0,1434,
1933812,1,48591,1435,5,
193390,1436,11,1,1003,
184180,165,1,-1,3, 193400,165,1,-1,3,
1841934,0,1382,12,1, 1934192,0,1437,12,1,
1842046529,1383,5,0,1384, 1934248467,1438,5,0,1439,
1842111,1,981,0,165, 1934311,1,1015,0,165,
184221,-1,3,92,0, 193441,-1,3,116,0,
184231385,12,1,46405,1386, 193451440,12,1,48277,1441,
184245,0,1387,11,1, 193465,0,1442,11,1,
18425993,0,165,1,-1, 19347991,0,165,1,-1,
184263,116,0,1388,12, 193481443,11,1,1027,0,
184271,46215,1389,5,0, 19349165,1,-1,3,93,
184281390,11,1,969,0, 193500,1420,3,94,0,
18429165,1,-1,1391,11, 193511420,3,95,0,1420,
184301,1005,0,165,1, 193523,96,0,1420,3,
18431-1,3,93,0,1368, 19353238,22,1420,3,98,
184323,94,0,1368,3, 193540,1420,3,99,0,
1843395,0,1368,3,96, 193551420,3,100,0,1420,
184340,1368,3,97,0, 193563,101,0,1420,3,
184351368,3,98,0,1368, 1935797,0,1420,3,103,
184363,99,0,1368,3, 193580,1420,3,104,0,
18437100,0,1368,3,101, 193591420,3,105,0,1420,
184380,1368,3,102,0, 193603,106,0,1420,3,
184391368,3,103,0,1368, 19361102,0,1420,3,108,
184403,104,0,1368,3, 193620,1420,3,109,0,
18441105,0,1368,3,106, 193631420,3,110,0,1420,
184420,1368,3,107,0, 193643,111,0,1420,3,
184431368,3,108,0,1368, 19365112,0,1420,3,113,
184443,109,0,1368,3, 193660,1420,3,114,0,
18445110,0,1368,3,111, 193671420,3,115,0,1420,
184460,1368,3,112,0, 193683,116,0,1420,3,
184471368,3,113,0,1368, 19369117,0,1420,3,118,
184483,114,0,1368,3, 193700,1420,3,119,0,
18449115,0,1368,3,116, 193711420,3,120,0,1420,
184500,1368,3,117,0, 193723,121,0,1420,3,
184511368,3,118,0,1368, 19373122,0,1420,3,123,
184523,119,0,1368,3, 193740,1420,3,124,0,
18453120,0,1368,3,121, 193751420,3,125,0,1420,
184540,1368,3,122,0, 193763,96,6,1420,3,
184551368,3,123,0,1368, 19377107,0,1420,3,126,
184563,124,0,1368,3, 193780,1420,3,58,15,
18457125,0,1368,3,96, 193791420,3,59,15,1420,
184586,1368,3,126,0, 193803,136,4,1420,3,
184591368,3,58,15,1368, 19381160,0,1420,3,170,
184603,59,15,1368,3, 193820,1420,3,171,0,
18461136,4,1368,3,160, 193831420,3,172,0,1420,
184620,1368,3,15,7, 193843,173,0,1420,3,
184631368,3,170,0,1368, 19385178,0,1420,3,176,
184643,171,0,1368,3, 193862,1420,3,187,0,
18465172,0,1368,3,173, 193871420,3,187,1,1420,
184660,1368,3,178,0, 193883,192,0,1420,3,
184671368,3,176,2,1368, 1938941,32,1420,3,197,
184683,187,0,1368,3, 193901,1420,3,0,224,
18469187,1,1368,3,192, 193911420,3,40,32,1420,
184700,1368,3,41,32, 193923,63,32,1420,0,
184711368,3,197,1,1368, 19393165,1,-1,1444,5,
184723,0,224,1368,3, 1939494,251,1445,10,251,
1847340,32,1368,3,63, 193951,19,573,1446,10,
1847432,1368,0,165,1, 19396573,1,47,301,1447,
18475-1,1392,5,93,251, 1939710,301,1,94,1172,
184761393,10,251,1,19, 193981448,10,1172,1,50,
18477573,1394,10,573,1, 193991041,1449,10,1041,1,
1847847,301,1395,10,301, 1940080,1191,1450,10,1191,
184791,93,1172,1396,10, 194011,53,188,1451,10,
184801172,1,50,1041,1397, 19402188,1,37,602,1452,
1848110,1041,1,80,1191, 1940310,602,1,43,700,
184821398,10,1191,1,53, 194041453,10,700,1,51,
18483188,1399,10,188,1, 19405613,1454,10,613,1,
1848437,602,1400,10,602, 1940646,1331,1455,10,1331,
184851,43,700,1401,10, 194071,92,211,1456,10,
18486700,1,51,613,1402, 19408211,1,16,215,1457,
1848710,613,1,46,211, 1940910,215,1,17,672,
184881403,10,211,1,16, 194101458,10,672,1,68,
18489215,1404,10,215,1, 19411901,1459,10,901,1,
1849017,672,1405,10,672, 1941275,361,1460,10,361,
184911,68,901,1406,10, 194131,35,223,1461,10,
18492901,1,75,361,1407, 19414223,1,20,229,1462,
1849310,361,1,35,223, 1941510,229,1,6,199,
184941408,10,223,1,20, 194161463,10,199,1,22,
18495229,1409,10,229,1, 19417286,1464,10,286,1,
184966,199,1410,10,199, 1941821,265,1465,10,265,
184971,22,286,1411,10, 194191,96,1292,1466,10,
18498286,1,21,265,1412, 194201292,1,88,481,1467,
1849910,265,1,95,1292, 1942110,481,1,64,720,
185001413,10,1292,1,88, 194221468,10,720,1,49,
18501481,1414,10,481,1, 19423357,1469,10,357,1,
1850264,720,1415,10,720, 1942428,318,1470,10,318,
185031,49,357,1416,10, 194251,25,709,1471,10,
18504357,1,28,318,1417, 19426709,1,42,792,1472,
1850510,318,1,25,709, 1942710,792,1,69,1231,
185061418,10,709,1,42, 194281473,10,1231,1,48,
18507792,1419,10,792,1, 19429336,1474,10,336,1,
1850869,1231,1420,10,1231, 1943041,850,1475,10,850,
185091,48,336,1421,10, 194311,57,654,1476,10,
18510336,1,41,850,1422, 19432654,1,91,233,1477,
1851110,850,1,57,654, 1943310,233,1,4,342,
185121423,10,654,1,91, 194341478,10,342,1,23,
18513233,1424,10,233,1, 19435493,1479,10,493,1,
185144,342,1425,10,342, 1943663,1246,1480,10,1246,
185151,23,493,1426,10, 194371,84,324,1481,10,
18516493,1,63,1246,1427, 19438324,1,29,245,1482,
1851710,1246,1,84,324, 1943910,245,1,5,316,
185181428,10,324,1,29, 194401483,10,316,1,31,
18519245,1429,10,245,1, 19441624,1484,10,624,1,
185205,316,1430,10,316, 1944252,889,1485,10,889,
185211,31,624,1431,10, 194431,76,1114,1486,10,
18522624,1,52,889,1432, 194441114,1,83,1017,1487,
1852310,889,1,76,1114, 1944510,1017,1,81,995,
185241433,10,1114,1,83, 194461488,10,995,1,77,
185251017,1434,10,1017,1, 19447186,1489,10,186,1,
1852681,995,1435,10,995, 1944830,249,1490,10,249,
185271,77,186,1436,10, 194491,7,847,1491,10,
18528186,1,30,249,1437, 19450847,1,73,197,1492,
1852910,249,1,7,847, 1945110,197,1,10,353,
185301438,10,847,1,73, 194521493,10,353,1,27,
18531197,1439,10,197,1, 19453294,1494,10,294,1,
1853210,353,1440,10,353, 1945495,239,1495,10,239,
185331,27,294,1441,10, 194551,14,269,1496,10,
18534294,1,94,239,1442, 19456269,1,24,731,1497,
1853510,239,1,14,269, 1945710,731,1,54,281,
185361443,10,269,1,24, 194581498,10,281,1,9,
18537731,1444,10,731,1, 194591225,1499,10,1225,1,
1853854,281,1445,10,281, 1946086,498,1500,10,498,
185391,9,1225,1446,10, 194611,62,1501,4,30,
185401225,1,86,498,1447, 1946283,0,84,0,82,
1854110,498,1,62,1448, 194630,73,0,78,0,
185424,30,83,0,84, 1946471,0,95,0,67,
185430,82,0,73,0, 194650,79,0,78,0,
1854478,0,71,0,95, 1946683,0,84,0,65,
185450,67,0,79,0, 194670,78,0,84,0,
1854678,0,83,0,84, 194681502,10,1501,1,3,
185470,65,0,78,0, 194691392,1503,10,1392,1,
1854884,0,1449,10,1448, 1947045,348,1504,10,348,
185491,3,1340,1450,10, 194711,93,551,1505,10,
185501340,1,45,348,1451, 19472551,1,66,1068,1506,
1855110,348,1,92,551, 1947310,1068,1,56,402,
185521452,10,551,1,66, 194741507,10,402,1,58,
185531068,1453,10,1068,1, 194751400,1508,10,1400,1,
1855456,402,1454,10,402, 1947612,531,1509,10,531,
185551,58,1348,1455,10, 194771,44,312,1510,10,
185561348,1,12,531,1456, 19478312,1,40,1154,1511,
1855710,531,1,44,312, 1947910,1154,1,82,591,
185581457,10,312,1,40, 194801512,10,591,1,67,
185591154,1458,10,1154,1, 19481946,1513,10,946,1,
1856082,591,1459,10,591, 1948278,1416,1514,10,1416,
185611,67,946,1460,10, 194831,36,1408,1515,10,
18562946,1,78,1364,1461, 194841408,1,34,787,1516,
1856310,1364,1,36,1356, 1948510,787,1,70,1357,
185641462,10,1356,1,34, 194861517,10,1357,1,87,
18565787,1463,10,787,1, 19487865,1518,10,865,1,
1856670,1305,1464,10,1305, 1948874,338,1519,10,338,
185671,87,865,1465,10, 194891,26,425,1520,10,
18568865,1,74,338,1466, 19490425,1,59,207,1521,
1856910,338,1,26,425, 1949110,207,1,33,306,
185701467,10,425,1,59, 194921522,10,306,1,11,
18571207,1468,10,207,1, 19493205,1523,10,205,1,
1857233,306,1469,10,306, 1949438,519,1524,10,519,
185731,11,205,1470,10, 194951,61,828,1525,10,
18574205,1,38,519,1471, 19496828,1,72,1287,1526,
1857510,519,1,61,828, 1949710,1287,1,90,326,
185761472,10,828,1,72, 194981527,10,326,1,15,
185771287,1473,10,1287,1, 19499969,1528,10,969,1,
1857890,326,1474,10,326, 1950079,1406,1529,10,1406,
185791,15,969,1475,10, 195011,39,332,1530,10,
18580969,1,79,1354,1476, 19502332,1,32,1275,1531,
1858110,1354,1,39,332, 1950310,1275,1,89,375,
185821477,10,332,1,32, 195041532,10,375,1,60,
185831275,1478,10,1275,1, 195051375,1533,10,1375,1,
1858489,375,1479,10,375, 1950655,1412,1534,10,1412,
185851,60,1323,1480,10, 195071,13,1214,1535,10,
185861323,1,55,1360,1481, 195081214,1,85,235,1536,
1858710,1360,1,13,1214, 1950910,235,1,18,221,
185881482,10,1214,1,85, 195101537,10,221,1,8,
18589235,1483,10,235,1, 19511775,1538,10,775,1,
1859018,221,1484,10,221, 1951271,449,1539,10,449,
185911,8,775,1485,10, 195131,65,1540,5,0,0};
18592775,1,71,449,1486,
1859310,449,1,65,1487,
185945,0,0};
18595 new Tfactory(this,"MINUS",new TCreator(MINUS_factory)); 19514 new Tfactory(this,"MINUS",new TCreator(MINUS_factory));
18596 new Tfactory(this,"DEFAULT_STATE",new TCreator(DEFAULT_STATE_factory)); 19515 new Tfactory(this,"DEFAULT_STATE",new TCreator(DEFAULT_STATE_factory));
18597 new Tfactory(this,"INTEGER_CONSTANT",new TCreator(INTEGER_CONSTANT_factory)); 19516 new Tfactory(this,"INTEGER_CONSTANT",new TCreator(INTEGER_CONSTANT_factory));
@@ -18602,6 +19521,7 @@ public class yyLSLTokens : YyLexer {
18602 new Tfactory(this,"ELSE",new TCreator(ELSE_factory)); 19521 new Tfactory(this,"ELSE",new TCreator(ELSE_factory));
18603 new Tfactory(this,"INTEGER_TYPE",new TCreator(INTEGER_TYPE_factory)); 19522 new Tfactory(this,"INTEGER_TYPE",new TCreator(INTEGER_TYPE_factory));
18604 new Tfactory(this,"FOR",new TCreator(FOR_factory)); 19523 new Tfactory(this,"FOR",new TCreator(FOR_factory));
19524 new Tfactory(this,"TRANSACTION_RESULT_EVENT",new TCreator(TRANSACTION_RESULT_EVENT_factory));
18605 new Tfactory(this,"LEFT_PAREN",new TCreator(LEFT_PAREN_factory)); 19525 new Tfactory(this,"LEFT_PAREN",new TCreator(LEFT_PAREN_factory));
18606 new Tfactory(this,"RIGHT_PAREN",new TCreator(RIGHT_PAREN_factory)); 19526 new Tfactory(this,"RIGHT_PAREN",new TCreator(RIGHT_PAREN_factory));
18607 new Tfactory(this,"HTTP_RESPONSE_EVENT",new TCreator(HTTP_RESPONSE_EVENT_factory)); 19527 new Tfactory(this,"HTTP_RESPONSE_EVENT",new TCreator(HTTP_RESPONSE_EVENT_factory));
@@ -18696,6 +19616,7 @@ public static object EXCLAMATION_factory(Lexer yyl) { return new EXCLAMATION(yyl
18696public static object ELSE_factory(Lexer yyl) { return new ELSE(yyl);} 19616public static object ELSE_factory(Lexer yyl) { return new ELSE(yyl);}
18697public static object INTEGER_TYPE_factory(Lexer yyl) { return new INTEGER_TYPE(yyl);} 19617public static object INTEGER_TYPE_factory(Lexer yyl) { return new INTEGER_TYPE(yyl);}
18698public static object FOR_factory(Lexer yyl) { return new FOR(yyl);} 19618public static object FOR_factory(Lexer yyl) { return new FOR(yyl);}
19619public static object TRANSACTION_RESULT_EVENT_factory(Lexer yyl) { return new TRANSACTION_RESULT_EVENT(yyl);}
18699public static object LEFT_PAREN_factory(Lexer yyl) { return new LEFT_PAREN(yyl);} 19620public static object LEFT_PAREN_factory(Lexer yyl) { return new LEFT_PAREN(yyl);}
18700public static object RIGHT_PAREN_factory(Lexer yyl) { return new RIGHT_PAREN(yyl);} 19621public static object RIGHT_PAREN_factory(Lexer yyl) { return new RIGHT_PAREN(yyl);}
18701public static object HTTP_RESPONSE_EVENT_factory(Lexer yyl) { return new HTTP_RESPONSE_EVENT(yyl);} 19622public static object HTTP_RESPONSE_EVENT_factory(Lexer yyl) { return new HTTP_RESPONSE_EVENT(yyl);}
@@ -18782,35 +19703,35 @@ public static object CONTROL_EVENT_factory(Lexer yyl) { return new CONTROL_EVENT
18782public override TOKEN OldAction(Lexer yym,ref string yytext,int action, ref bool reject) { 19703public override TOKEN OldAction(Lexer yym,ref string yytext,int action, ref bool reject) {
18783 switch(action) { 19704 switch(action) {
18784 case -1: break; 19705 case -1: break;
18785 case 946: { ((LSLTokens)yym).str += yytext; } 19706 case 1015: { ((LSLTokens)yym).str += "\\\\"; }
18786 break; 19707 break;
18787 case 1010: { yym.yy_begin("YYINITIAL"); ((LSLTokens)yym).yytext = ((LSLTokens)yym).str; ((LSLTokens)yym).str = String.Empty; return new STRING_CONSTANT(yym); } 19708 case 991: { ((LSLTokens)yym).str += " "; }
18788 break; 19709 break;
18789 case 1015: { yym.yy_begin("COMMENT"); } 19710 case 963: { yym.yy_begin("STRING"); ((LSLTokens)yym).str = "";}
18790 break; 19711 break;
18791 case 1027: { yym.yy_begin("YYINITIAL"); } 19712 case 1037: { yym.yy_begin("COMMENT"); }
18792 break; 19713 break;
18793 case 1041: ; 19714 case 1049: { yym.yy_begin("YYINITIAL"); }
18794 break; 19715 break;
18795 case 1045: ; 19716 case 1027: { ((LSLTokens)yym).str += '\\'; }
18796 break; 19717 break;
18797 case 1054: ; 19718 case 1063: ;
18798 break; 19719 break;
18799 case 1005: { ((LSLTokens)yym).str += '\\'; } 19720 case 1076: ;
18800 break; 19721 break;
18801 case 1050: ; 19722 case 1032: { yym.yy_begin("YYINITIAL"); ((LSLTokens)yym).yytext = ((LSLTokens)yym).str; ((LSLTokens)yym).str = String.Empty; return new STRING_CONSTANT(yym); }
18802 break; 19723 break;
18803 case 941: { yym.yy_begin("STRING"); ((LSLTokens)yym).str = "";} 19724 case 1067: ;
18804 break; 19725 break;
18805 case 957: { ((LSLTokens)yym).str += "\\n"; } 19726 case 1072: ;
18806 break; 19727 break;
18807 case 969: { ((LSLTokens)yym).str += " "; } 19728 case 1003: { ((LSLTokens)yym).str += "\\\""; }
18808 break; 19729 break;
18809 case 981: { ((LSLTokens)yym).str += "\\\""; } 19730 case 974: { ((LSLTokens)yym).str += "\\n"; }
18810 break; 19731 break;
18811 case 952: { ((LSLTokens)yym).str += "\\n"; } 19732 case 979: { ((LSLTokens)yym).str += "\\n"; }
18812 break; 19733 break;
18813 case 993: { ((LSLTokens)yym).str += "\\\\"; } 19734 case 968: { ((LSLTokens)yym).str += yytext; }
18814 break; 19735 break;
18815 } 19736 }
18816 return null; 19737 return null;
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.parser.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.parser.cs
index ca56cd6..5fef83c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.parser.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.parser.cs
@@ -1,6 +1,6 @@
1using System;using Tools; 1using System;using Tools;
2namespace OpenSim.Region.ScriptEngine.Shared.CodeTools { 2namespace OpenSim.Region.ScriptEngine.Shared.CodeTools {
3//%+LSLProgramRoot+96 3//%+LSLProgramRoot+97
4public class LSLProgramRoot : SYMBOL{ 4public class LSLProgramRoot : SYMBOL{
5 public LSLProgramRoot (Parser yyp, States s ):base(((LSLSyntax 5 public LSLProgramRoot (Parser yyp, States s ):base(((LSLSyntax
6)yyp)){ while (0< s . kids . Count ) kids . Add ( s . kids . Pop ()); 6)yyp)){ while (0< s . kids . Count ) kids . Add ( s . kids . Pop ());
@@ -11,9 +11,9 @@ public class LSLProgramRoot : SYMBOL{
11} 11}
12 12
13public override string yyname { get { return "LSLProgramRoot"; }} 13public override string yyname { get { return "LSLProgramRoot"; }}
14public override int yynum { get { return 96; }} 14public override int yynum { get { return 97; }}
15public LSLProgramRoot(Parser yyp):base(yyp){}} 15public LSLProgramRoot(Parser yyp):base(yyp){}}
16//%+GlobalDefinitions+97 16//%+GlobalDefinitions+98
17public class GlobalDefinitions : SYMBOL{ 17public class GlobalDefinitions : SYMBOL{
18 public GlobalDefinitions (Parser yyp, GlobalVariableDeclaration gvd ):base(((LSLSyntax 18 public GlobalDefinitions (Parser yyp, GlobalVariableDeclaration gvd ):base(((LSLSyntax
19)yyp)){ kids . Add ( gvd ); 19)yyp)){ kids . Add ( gvd );
@@ -31,9 +31,9 @@ public class GlobalDefinitions : SYMBOL{
31} 31}
32 32
33public override string yyname { get { return "GlobalDefinitions"; }} 33public override string yyname { get { return "GlobalDefinitions"; }}
34public override int yynum { get { return 97; }} 34public override int yynum { get { return 98; }}
35public GlobalDefinitions(Parser yyp):base(yyp){}} 35public GlobalDefinitions(Parser yyp):base(yyp){}}
36//%+GlobalVariableDeclaration+98 36//%+GlobalVariableDeclaration+99
37public class GlobalVariableDeclaration : SYMBOL{ 37public class GlobalVariableDeclaration : SYMBOL{
38 public GlobalVariableDeclaration (Parser yyp, Declaration d ):base(((LSLSyntax 38 public GlobalVariableDeclaration (Parser yyp, Declaration d ):base(((LSLSyntax
39)yyp)){ kids . Add ( d ); 39)yyp)){ kids . Add ( d );
@@ -43,9 +43,9 @@ public class GlobalVariableDeclaration : SYMBOL{
43} 43}
44 44
45public override string yyname { get { return "GlobalVariableDeclaration"; }} 45public override string yyname { get { return "GlobalVariableDeclaration"; }}
46public override int yynum { get { return 98; }} 46public override int yynum { get { return 99; }}
47public GlobalVariableDeclaration(Parser yyp):base(yyp){}} 47public GlobalVariableDeclaration(Parser yyp):base(yyp){}}
48//%+GlobalFunctionDefinition+99 48//%+GlobalFunctionDefinition+100
49public class GlobalFunctionDefinition : SYMBOL{ 49public class GlobalFunctionDefinition : SYMBOL{
50 private string m_returnType ; 50 private string m_returnType ;
51 private string m_name ; 51 private string m_name ;
@@ -65,9 +65,9 @@ public class GlobalFunctionDefinition : SYMBOL{
65} 65}
66 66
67public override string yyname { get { return "GlobalFunctionDefinition"; }} 67public override string yyname { get { return "GlobalFunctionDefinition"; }}
68public override int yynum { get { return 99; }} 68public override int yynum { get { return 100; }}
69public GlobalFunctionDefinition(Parser yyp):base(yyp){}} 69public GlobalFunctionDefinition(Parser yyp):base(yyp){}}
70//%+States+100 70//%+States+101
71public class States : SYMBOL{ 71public class States : SYMBOL{
72 public States (Parser yyp, State ds ):base(((LSLSyntax 72 public States (Parser yyp, State ds ):base(((LSLSyntax
73)yyp)){ kids . Add ( ds ); 73)yyp)){ kids . Add ( ds );
@@ -78,9 +78,9 @@ public class States : SYMBOL{
78} 78}
79 79
80public override string yyname { get { return "States"; }} 80public override string yyname { get { return "States"; }}
81public override int yynum { get { return 100; }} 81public override int yynum { get { return 101; }}
82public States(Parser yyp):base(yyp){}} 82public States(Parser yyp):base(yyp){}}
83//%+State+101 83//%+State+102
84public class State : SYMBOL{ 84public class State : SYMBOL{
85 private string m_name ; 85 private string m_name ;
86 public State (Parser yyp, string name , StateBody sb ):base(((LSLSyntax 86 public State (Parser yyp, string name , StateBody sb ):base(((LSLSyntax
@@ -94,9 +94,9 @@ public class State : SYMBOL{
94} 94}
95 95
96public override string yyname { get { return "State"; }} 96public override string yyname { get { return "State"; }}
97public override int yynum { get { return 101; }} 97public override int yynum { get { return 102; }}
98public State(Parser yyp):base(yyp){}} 98public State(Parser yyp):base(yyp){}}
99//%+StateBody+102 99//%+StateBody+103
100public class StateBody : SYMBOL{ 100public class StateBody : SYMBOL{
101 public StateBody (Parser yyp, StateBody sb , StateEvent se ):base(((LSLSyntax 101 public StateBody (Parser yyp, StateBody sb , StateEvent se ):base(((LSLSyntax
102)yyp)){ while (0< sb . kids . Count ) kids . Add ( sb . kids . Pop ()); 102)yyp)){ while (0< sb . kids . Count ) kids . Add ( sb . kids . Pop ());
@@ -107,18 +107,18 @@ public class StateBody : SYMBOL{
107} 107}
108 108
109public override string yyname { get { return "StateBody"; }} 109public override string yyname { get { return "StateBody"; }}
110public override int yynum { get { return 102; }} 110public override int yynum { get { return 103; }}
111public StateBody(Parser yyp):base(yyp){}} 111public StateBody(Parser yyp):base(yyp){}}
112//%+StateEvent+103 112//%+StateEvent+104
113public class StateEvent : SYMBOL{ 113public class StateEvent : SYMBOL{
114 private string m_name ; 114 private string m_name ;
115 public StateEvent (Parser yyp, string name , CompoundStatement cs ):base(((LSLSyntax 115 public StateEvent (Parser yyp, string name , CompoundStatement cs ):base(((LSLSyntax
116)yyp)){ m_name = name ; 116)yyp)){ m_name = name ;
117 kids . Add ( cs ); 117 kids . Add ( cs );
118} 118}
119 public StateEvent (Parser yyp, string name , ArgumentDeclarationList dal , CompoundStatement cs ):base(((LSLSyntax 119 public StateEvent (Parser yyp, string name , ArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
120)yyp)){ m_name = name ; 120)yyp)){ m_name = name ;
121 if (0< dal . kids . Count ) kids . Add ( dal ); 121 if (0< adl . kids . Count ) kids . Add ( adl );
122 kids . Add ( cs ); 122 kids . Add ( cs );
123} 123}
124 public override string ToString (){ return "EVENT<"+ m_name +">"; 124 public override string ToString (){ return "EVENT<"+ m_name +">";
@@ -128,22 +128,135 @@ public class StateEvent : SYMBOL{
128} 128}
129 129
130public override string yyname { get { return "StateEvent"; }} 130public override string yyname { get { return "StateEvent"; }}
131public override int yynum { get { return 103; }} 131public override int yynum { get { return 104; }}
132public StateEvent(Parser yyp):base(yyp){}} 132public StateEvent(Parser yyp):base(yyp){}}
133//%+ArgumentDeclarationList+104 133//%+VoidArgStateEvent+105
134public class VoidArgStateEvent : StateEvent{
135 public VoidArgStateEvent (Parser yyp, string name , CompoundStatement cs ):base(((LSLSyntax
136)yyp), name , cs ){}
137
138public override string yyname { get { return "VoidArgStateEvent"; }}
139public override int yynum { get { return 105; }}
140public VoidArgStateEvent(Parser yyp):base(yyp){}}
141//%+KeyArgStateEvent+106
142public class KeyArgStateEvent : StateEvent{
143 public KeyArgStateEvent (Parser yyp, string name , KeyArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
144)yyp), name , adl , cs ){}
145
146public override string yyname { get { return "KeyArgStateEvent"; }}
147public override int yynum { get { return 106; }}
148public KeyArgStateEvent(Parser yyp):base(yyp){}}
149//%+IntArgStateEvent+107
150public class IntArgStateEvent : StateEvent{
151 public IntArgStateEvent (Parser yyp, string name , IntArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
152)yyp), name , adl , cs ){}
153
154public override string yyname { get { return "IntArgStateEvent"; }}
155public override int yynum { get { return 107; }}
156public IntArgStateEvent(Parser yyp):base(yyp){}}
157//%+VectorArgStateEvent+108
158public class VectorArgStateEvent : StateEvent{
159 public VectorArgStateEvent (Parser yyp, string name , VectorArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
160)yyp), name , adl , cs ){}
161
162public override string yyname { get { return "VectorArgStateEvent"; }}
163public override int yynum { get { return 108; }}
164public VectorArgStateEvent(Parser yyp):base(yyp){}}
165//%+IntRotRotArgStateEvent+109
166public class IntRotRotArgStateEvent : StateEvent{
167 public IntRotRotArgStateEvent (Parser yyp, string name , IntRotRotArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
168)yyp), name , adl , cs ){}
169
170public override string yyname { get { return "IntRotRotArgStateEvent"; }}
171public override int yynum { get { return 109; }}
172public IntRotRotArgStateEvent(Parser yyp):base(yyp){}}
173//%+IntVecVecArgStateEvent+110
174public class IntVecVecArgStateEvent : StateEvent{
175 public IntVecVecArgStateEvent (Parser yyp, string name , IntVecVecArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
176)yyp), name , adl , cs ){}
177
178public override string yyname { get { return "IntVecVecArgStateEvent"; }}
179public override int yynum { get { return 110; }}
180public IntVecVecArgStateEvent(Parser yyp):base(yyp){}}
181//%+KeyIntIntArgStateEvent+111
182public class KeyIntIntArgStateEvent : StateEvent{
183 public KeyIntIntArgStateEvent (Parser yyp, string name , KeyIntIntArgumentDeclarationList adl , CompoundStatement cs ):base(((LSLSyntax
184)yyp), name , adl , cs ){}
185
186public override string yyname { get { return "KeyIntIntArgStateEvent"; }}
187public override int yynum { get { return 111; }}
188public KeyIntIntArgStateEvent(Parser yyp):base(yyp){}}
189//%+ArgumentDeclarationList+112
134public class ArgumentDeclarationList : SYMBOL{ 190public class ArgumentDeclarationList : SYMBOL{
135 public ArgumentDeclarationList (Parser yyp, Declaration d ):base(((LSLSyntax 191 public ArgumentDeclarationList (Parser yyp, Declaration d ):base(((LSLSyntax
136)yyp)){ kids . Add ( d ); 192)yyp)){ kids . Add ( d );
137} 193}
194 public ArgumentDeclarationList (Parser yyp, Declaration d , Declaration d2 ):base(((LSLSyntax
195)yyp)){ kids . Add ( d );
196 kids . Add ( d2 );
197}
198 public ArgumentDeclarationList (Parser yyp, Declaration d , Declaration d2 , Declaration d3 ):base(((LSLSyntax
199)yyp)){ kids . Add ( d );
200 kids . Add ( d2 );
201 kids . Add ( d3 );
202}
138 public ArgumentDeclarationList (Parser yyp, ArgumentDeclarationList adl , Declaration d ):base(((LSLSyntax 203 public ArgumentDeclarationList (Parser yyp, ArgumentDeclarationList adl , Declaration d ):base(((LSLSyntax
139)yyp)){ while (0< adl . kids . Count ) kids . Add ( adl . kids . Pop ()); 204)yyp)){ while (0< adl . kids . Count ) kids . Add ( adl . kids . Pop ());
140 kids . Add ( d ); 205 kids . Add ( d );
141} 206}
142 207
143public override string yyname { get { return "ArgumentDeclarationList"; }} 208public override string yyname { get { return "ArgumentDeclarationList"; }}
144public override int yynum { get { return 104; }} 209public override int yynum { get { return 112; }}
145public ArgumentDeclarationList(Parser yyp):base(yyp){}} 210public ArgumentDeclarationList(Parser yyp):base(yyp){}}
146//%+Declaration+105 211//%+KeyArgumentDeclarationList+113
212public class KeyArgumentDeclarationList : ArgumentDeclarationList{
213 public KeyArgumentDeclarationList (Parser yyp, KeyDeclaration d ):base(((LSLSyntax
214)yyp), d ){}
215
216public override string yyname { get { return "KeyArgumentDeclarationList"; }}
217public override int yynum { get { return 113; }}
218public KeyArgumentDeclarationList(Parser yyp):base(yyp){}}
219//%+IntArgumentDeclarationList+114
220public class IntArgumentDeclarationList : ArgumentDeclarationList{
221 public IntArgumentDeclarationList (Parser yyp, IntDeclaration d ):base(((LSLSyntax
222)yyp), d ){}
223
224public override string yyname { get { return "IntArgumentDeclarationList"; }}
225public override int yynum { get { return 114; }}
226public IntArgumentDeclarationList(Parser yyp):base(yyp){}}
227//%+VectorArgumentDeclarationList+115
228public class VectorArgumentDeclarationList : ArgumentDeclarationList{
229 public VectorArgumentDeclarationList (Parser yyp, VecDeclaration d ):base(((LSLSyntax
230)yyp), d ){}
231
232public override string yyname { get { return "VectorArgumentDeclarationList"; }}
233public override int yynum { get { return 115; }}
234public VectorArgumentDeclarationList(Parser yyp):base(yyp){}}
235//%+IntRotRotArgumentDeclarationList+116
236public class IntRotRotArgumentDeclarationList : ArgumentDeclarationList{
237 public IntRotRotArgumentDeclarationList (Parser yyp, Declaration d1 , Declaration d2 , Declaration d3 ):base(((LSLSyntax
238)yyp), d1 , d2 , d3 ){}
239
240public override string yyname { get { return "IntRotRotArgumentDeclarationList"; }}
241public override int yynum { get { return 116; }}
242public IntRotRotArgumentDeclarationList(Parser yyp):base(yyp){}}
243//%+IntVecVecArgumentDeclarationList+117
244public class IntVecVecArgumentDeclarationList : ArgumentDeclarationList{
245 public IntVecVecArgumentDeclarationList (Parser yyp, Declaration d1 , Declaration d2 , Declaration d3 ):base(((LSLSyntax
246)yyp), d1 , d2 , d3 ){}
247
248public override string yyname { get { return "IntVecVecArgumentDeclarationList"; }}
249public override int yynum { get { return 117; }}
250public IntVecVecArgumentDeclarationList(Parser yyp):base(yyp){}}
251//%+KeyIntIntArgumentDeclarationList+118
252public class KeyIntIntArgumentDeclarationList : ArgumentDeclarationList{
253 public KeyIntIntArgumentDeclarationList (Parser yyp, Declaration d1 , Declaration d2 , Declaration d3 ):base(((LSLSyntax
254)yyp), d1 , d2 , d3 ){}
255
256public override string yyname { get { return "KeyIntIntArgumentDeclarationList"; }}
257public override int yynum { get { return 118; }}
258public KeyIntIntArgumentDeclarationList(Parser yyp):base(yyp){}}
259//%+Declaration+119
147public class Declaration : SYMBOL{ 260public class Declaration : SYMBOL{
148 private string m_datatype ; 261 private string m_datatype ;
149 private string m_id ; 262 private string m_id ;
@@ -163,9 +276,41 @@ public class Declaration : SYMBOL{
163} 276}
164 277
165public override string yyname { get { return "Declaration"; }} 278public override string yyname { get { return "Declaration"; }}
166public override int yynum { get { return 105; }} 279public override int yynum { get { return 119; }}
167public Declaration(Parser yyp):base(yyp){}} 280public Declaration(Parser yyp):base(yyp){}}
168//%+Typename+106 281//%+KeyDeclaration+120
282public class KeyDeclaration : Declaration{
283 public KeyDeclaration (Parser yyp, string type , string id ):base(((LSLSyntax
284)yyp), type , id ){}
285
286public override string yyname { get { return "KeyDeclaration"; }}
287public override int yynum { get { return 120; }}
288public KeyDeclaration(Parser yyp):base(yyp){}}
289//%+IntDeclaration+121
290public class IntDeclaration : Declaration{
291 public IntDeclaration (Parser yyp, string type , string id ):base(((LSLSyntax
292)yyp), type , id ){}
293
294public override string yyname { get { return "IntDeclaration"; }}
295public override int yynum { get { return 121; }}
296public IntDeclaration(Parser yyp):base(yyp){}}
297//%+VecDeclaration+122
298public class VecDeclaration : Declaration{
299 public VecDeclaration (Parser yyp, string type , string id ):base(((LSLSyntax
300)yyp), type , id ){}
301
302public override string yyname { get { return "VecDeclaration"; }}
303public override int yynum { get { return 122; }}
304public VecDeclaration(Parser yyp):base(yyp){}}
305//%+RotDeclaration+123
306public class RotDeclaration : Declaration{
307 public RotDeclaration (Parser yyp, string type , string id ):base(((LSLSyntax
308)yyp), type , id ){}
309
310public override string yyname { get { return "RotDeclaration"; }}
311public override int yynum { get { return 123; }}
312public RotDeclaration(Parser yyp):base(yyp){}}
313//%+Typename+124
169public class Typename : SYMBOL{ 314public class Typename : SYMBOL{
170 public string yytext ; 315 public string yytext ;
171 public Typename (Parser yyp, string text ):base(((LSLSyntax 316 public Typename (Parser yyp, string text ):base(((LSLSyntax
@@ -173,9 +318,9 @@ public class Typename : SYMBOL{
173} 318}
174 319
175public override string yyname { get { return "Typename"; }} 320public override string yyname { get { return "Typename"; }}
176public override int yynum { get { return 106; }} 321public override int yynum { get { return 124; }}
177public Typename(Parser yyp):base(yyp){}} 322public Typename(Parser yyp):base(yyp){}}
178//%+Event+107 323//%+Event+125
179public class Event : SYMBOL{ 324public class Event : SYMBOL{
180 public string yytext ; 325 public string yytext ;
181 public Event (Parser yyp, string text ):base(((LSLSyntax 326 public Event (Parser yyp, string text ):base(((LSLSyntax
@@ -183,9 +328,65 @@ public class Event : SYMBOL{
183} 328}
184 329
185public override string yyname { get { return "Event"; }} 330public override string yyname { get { return "Event"; }}
186public override int yynum { get { return 107; }} 331public override int yynum { get { return 125; }}
187public Event(Parser yyp):base(yyp){}} 332public Event(Parser yyp):base(yyp){}}
188//%+CompoundStatement+108 333//%+VoidArgEvent+126
334public class VoidArgEvent : Event{
335 public VoidArgEvent (Parser yyp, string text ):base(((LSLSyntax
336)yyp), text ){}
337
338public override string yyname { get { return "VoidArgEvent"; }}
339public override int yynum { get { return 126; }}
340public VoidArgEvent(Parser yyp):base(yyp){}}
341//%+KeyArgEvent+127
342public class KeyArgEvent : Event{
343 public KeyArgEvent (Parser yyp, string text ):base(((LSLSyntax
344)yyp), text ){}
345
346public override string yyname { get { return "KeyArgEvent"; }}
347public override int yynum { get { return 127; }}
348public KeyArgEvent(Parser yyp):base(yyp){}}
349//%+IntArgEvent+128
350public class IntArgEvent : Event{
351 public IntArgEvent (Parser yyp, string text ):base(((LSLSyntax
352)yyp), text ){}
353
354public override string yyname { get { return "IntArgEvent"; }}
355public override int yynum { get { return 128; }}
356public IntArgEvent(Parser yyp):base(yyp){}}
357//%+VectorArgEvent+129
358public class VectorArgEvent : Event{
359 public VectorArgEvent (Parser yyp, string text ):base(((LSLSyntax
360)yyp), text ){}
361
362public override string yyname { get { return "VectorArgEvent"; }}
363public override int yynum { get { return 129; }}
364public VectorArgEvent(Parser yyp):base(yyp){}}
365//%+IntRotRotArgEvent+130
366public class IntRotRotArgEvent : Event{
367 public IntRotRotArgEvent (Parser yyp, string text ):base(((LSLSyntax
368)yyp), text ){}
369
370public override string yyname { get { return "IntRotRotArgEvent"; }}
371public override int yynum { get { return 130; }}
372public IntRotRotArgEvent(Parser yyp):base(yyp){}}
373//%+IntVecVecArgEvent+131
374public class IntVecVecArgEvent : Event{
375 public IntVecVecArgEvent (Parser yyp, string text ):base(((LSLSyntax
376)yyp), text ){}
377
378public override string yyname { get { return "IntVecVecArgEvent"; }}
379public override int yynum { get { return 131; }}
380public IntVecVecArgEvent(Parser yyp):base(yyp){}}
381//%+KeyIntIntArgEvent+132
382public class KeyIntIntArgEvent : Event{
383 public KeyIntIntArgEvent (Parser yyp, string text ):base(((LSLSyntax
384)yyp), text ){}
385
386public override string yyname { get { return "KeyIntIntArgEvent"; }}
387public override int yynum { get { return 132; }}
388public KeyIntIntArgEvent(Parser yyp):base(yyp){}}
389//%+CompoundStatement+133
189public class CompoundStatement : SYMBOL{ 390public class CompoundStatement : SYMBOL{
190 public CompoundStatement (Parser yyp):base(((LSLSyntax 391 public CompoundStatement (Parser yyp):base(((LSLSyntax
191)yyp)){} 392)yyp)){}
@@ -194,9 +395,9 @@ public class CompoundStatement : SYMBOL{
194} 395}
195 396
196public override string yyname { get { return "CompoundStatement"; }} 397public override string yyname { get { return "CompoundStatement"; }}
197public override int yynum { get { return 108; }} 398public override int yynum { get { return 133; }}
198} 399}
199//%+StatementList+109 400//%+StatementList+134
200public class StatementList : SYMBOL{ 401public class StatementList : SYMBOL{
201 private void AddStatement ( Statement s ){ if ( s . kids . Top is IfStatement || s . kids . Top is WhileStatement || s . kids . Top is DoWhileStatement || s . kids . Top is ForLoop ) kids . Add ( s . kids . Pop ()); 402 private void AddStatement ( Statement s ){ if ( s . kids . Top is IfStatement || s . kids . Top is WhileStatement || s . kids . Top is DoWhileStatement || s . kids . Top is ForLoop ) kids . Add ( s . kids . Pop ());
202 else kids . Add ( s ); 403 else kids . Add ( s );
@@ -210,9 +411,9 @@ public class StatementList : SYMBOL{
210} 411}
211 412
212public override string yyname { get { return "StatementList"; }} 413public override string yyname { get { return "StatementList"; }}
213public override int yynum { get { return 109; }} 414public override int yynum { get { return 134; }}
214public StatementList(Parser yyp):base(yyp){}} 415public StatementList(Parser yyp):base(yyp){}}
215//%+Statement+110 416//%+Statement+135
216public class Statement : SYMBOL{ 417public class Statement : SYMBOL{
217 public Statement (Parser yyp, Declaration d ):base(((LSLSyntax 418 public Statement (Parser yyp, Declaration d ):base(((LSLSyntax
218)yyp)){ kids . Add ( d ); 419)yyp)){ kids . Add ( d );
@@ -258,9 +459,9 @@ public class Statement : SYMBOL{
258} 459}
259 460
260public override string yyname { get { return "Statement"; }} 461public override string yyname { get { return "Statement"; }}
261public override int yynum { get { return 110; }} 462public override int yynum { get { return 135; }}
262public Statement(Parser yyp):base(yyp){}} 463public Statement(Parser yyp):base(yyp){}}
263//%+EmptyStatement+111 464//%+EmptyStatement+136
264public class EmptyStatement : SYMBOL{ 465public class EmptyStatement : SYMBOL{
265 public EmptyStatement (Parser yyp):base(((LSLSyntax 466 public EmptyStatement (Parser yyp):base(((LSLSyntax
266)yyp)){} 467)yyp)){}
@@ -268,9 +469,9 @@ public class EmptyStatement : SYMBOL{
268} 469}
269 470
270public override string yyname { get { return "EmptyStatement"; }} 471public override string yyname { get { return "EmptyStatement"; }}
271public override int yynum { get { return 111; }} 472public override int yynum { get { return 136; }}
272} 473}
273//%+Assignment+112 474//%+Assignment+137
274public class Assignment : SYMBOL{ 475public class Assignment : SYMBOL{
275 protected string m_assignmentType ; 476 protected string m_assignmentType ;
276 public Assignment (Parser yyp, SYMBOL lhs , SYMBOL rhs , string assignmentType ):base(((LSLSyntax 477 public Assignment (Parser yyp, SYMBOL lhs , SYMBOL rhs , string assignmentType ):base(((LSLSyntax
@@ -290,9 +491,9 @@ public class Assignment : SYMBOL{
290} 491}
291 492
292public override string yyname { get { return "Assignment"; }} 493public override string yyname { get { return "Assignment"; }}
293public override int yynum { get { return 112; }} 494public override int yynum { get { return 137; }}
294public Assignment(Parser yyp):base(yyp){}} 495public Assignment(Parser yyp):base(yyp){}}
295//%+SimpleAssignment+113 496//%+SimpleAssignment+138
296public class SimpleAssignment : Assignment{ 497public class SimpleAssignment : Assignment{
297 public SimpleAssignment (Parser yyp, SYMBOL lhs , SYMBOL rhs , string assignmentType ):base(((LSLSyntax 498 public SimpleAssignment (Parser yyp, SYMBOL lhs , SYMBOL rhs , string assignmentType ):base(((LSLSyntax
298)yyp)){ m_assignmentType = assignmentType ; 499)yyp)){ m_assignmentType = assignmentType ;
@@ -302,9 +503,9 @@ public class SimpleAssignment : Assignment{
302} 503}
303 504
304public override string yyname { get { return "SimpleAssignment"; }} 505public override string yyname { get { return "SimpleAssignment"; }}
305public override int yynum { get { return 113; }} 506public override int yynum { get { return 138; }}
306public SimpleAssignment(Parser yyp):base(yyp){}} 507public SimpleAssignment(Parser yyp):base(yyp){}}
307//%+ReturnStatement+114 508//%+ReturnStatement+139
308public class ReturnStatement : SYMBOL{ 509public class ReturnStatement : SYMBOL{
309 public ReturnStatement (Parser yyp):base(((LSLSyntax 510 public ReturnStatement (Parser yyp):base(((LSLSyntax
310)yyp)){} 511)yyp)){}
@@ -314,9 +515,9 @@ public class ReturnStatement : SYMBOL{
314} 515}
315 516
316public override string yyname { get { return "ReturnStatement"; }} 517public override string yyname { get { return "ReturnStatement"; }}
317public override int yynum { get { return 114; }} 518public override int yynum { get { return 139; }}
318} 519}
319//%+JumpLabel+115 520//%+JumpLabel+140
320public class JumpLabel : SYMBOL{ 521public class JumpLabel : SYMBOL{
321 private string m_labelName ; 522 private string m_labelName ;
322 public JumpLabel (Parser yyp, string labelName ):base(((LSLSyntax 523 public JumpLabel (Parser yyp, string labelName ):base(((LSLSyntax
@@ -329,9 +530,9 @@ public class JumpLabel : SYMBOL{
329} 530}
330 531
331public override string yyname { get { return "JumpLabel"; }} 532public override string yyname { get { return "JumpLabel"; }}
332public override int yynum { get { return 115; }} 533public override int yynum { get { return 140; }}
333public JumpLabel(Parser yyp):base(yyp){}} 534public JumpLabel(Parser yyp):base(yyp){}}
334//%+JumpStatement+116 535//%+JumpStatement+141
335public class JumpStatement : SYMBOL{ 536public class JumpStatement : SYMBOL{
336 private string m_targetName ; 537 private string m_targetName ;
337 public JumpStatement (Parser yyp, string targetName ):base(((LSLSyntax 538 public JumpStatement (Parser yyp, string targetName ):base(((LSLSyntax
@@ -344,9 +545,9 @@ public class JumpStatement : SYMBOL{
344} 545}
345 546
346public override string yyname { get { return "JumpStatement"; }} 547public override string yyname { get { return "JumpStatement"; }}
347public override int yynum { get { return 116; }} 548public override int yynum { get { return 141; }}
348public JumpStatement(Parser yyp):base(yyp){}} 549public JumpStatement(Parser yyp):base(yyp){}}
349//%+StateChange+117 550//%+StateChange+142
350public class StateChange : SYMBOL{ 551public class StateChange : SYMBOL{
351 private string m_newState ; 552 private string m_newState ;
352 public StateChange (Parser yyp, string newState ):base(((LSLSyntax 553 public StateChange (Parser yyp, string newState ):base(((LSLSyntax
@@ -357,9 +558,9 @@ public class StateChange : SYMBOL{
357} 558}
358 559
359public override string yyname { get { return "StateChange"; }} 560public override string yyname { get { return "StateChange"; }}
360public override int yynum { get { return 117; }} 561public override int yynum { get { return 142; }}
361public StateChange(Parser yyp):base(yyp){}} 562public StateChange(Parser yyp):base(yyp){}}
362//%+IfStatement+118 563//%+IfStatement+143
363public class IfStatement : SYMBOL{ 564public class IfStatement : SYMBOL{
364 private void AddStatement ( Statement s ){ if (0< s . kids . Count && s . kids . Top is CompoundStatement ) kids . Add ( s . kids . Pop ()); 565 private void AddStatement ( Statement s ){ if (0< s . kids . Count && s . kids . Top is CompoundStatement ) kids . Add ( s . kids . Pop ());
365 else kids . Add ( s ); 566 else kids . Add ( s );
@@ -376,9 +577,9 @@ public class IfStatement : SYMBOL{
376} 577}
377 578
378public override string yyname { get { return "IfStatement"; }} 579public override string yyname { get { return "IfStatement"; }}
379public override int yynum { get { return 118; }} 580public override int yynum { get { return 143; }}
380public IfStatement(Parser yyp):base(yyp){}} 581public IfStatement(Parser yyp):base(yyp){}}
381//%+WhileStatement+119 582//%+WhileStatement+144
382public class WhileStatement : SYMBOL{ 583public class WhileStatement : SYMBOL{
383 public WhileStatement (Parser yyp, SYMBOL s , Statement st ):base(((LSLSyntax 584 public WhileStatement (Parser yyp, SYMBOL s , Statement st ):base(((LSLSyntax
384)yyp)){ kids . Add ( s ); 585)yyp)){ kids . Add ( s );
@@ -387,9 +588,9 @@ public class WhileStatement : SYMBOL{
387} 588}
388 589
389public override string yyname { get { return "WhileStatement"; }} 590public override string yyname { get { return "WhileStatement"; }}
390public override int yynum { get { return 119; }} 591public override int yynum { get { return 144; }}
391public WhileStatement(Parser yyp):base(yyp){}} 592public WhileStatement(Parser yyp):base(yyp){}}
392//%+DoWhileStatement+120 593//%+DoWhileStatement+145
393public class DoWhileStatement : SYMBOL{ 594public class DoWhileStatement : SYMBOL{
394 public DoWhileStatement (Parser yyp, SYMBOL s , Statement st ):base(((LSLSyntax 595 public DoWhileStatement (Parser yyp, SYMBOL s , Statement st ):base(((LSLSyntax
395)yyp)){ if (0< st . kids . Count && st . kids . Top is CompoundStatement ) kids . Add ( st . kids . Pop ()); 596)yyp)){ if (0< st . kids . Count && st . kids . Top is CompoundStatement ) kids . Add ( st . kids . Pop ());
@@ -398,9 +599,9 @@ public class DoWhileStatement : SYMBOL{
398} 599}
399 600
400public override string yyname { get { return "DoWhileStatement"; }} 601public override string yyname { get { return "DoWhileStatement"; }}
401public override int yynum { get { return 120; }} 602public override int yynum { get { return 145; }}
402public DoWhileStatement(Parser yyp):base(yyp){}} 603public DoWhileStatement(Parser yyp):base(yyp){}}
403//%+ForLoop+121 604//%+ForLoop+146
404public class ForLoop : SYMBOL{ 605public class ForLoop : SYMBOL{
405 public ForLoop (Parser yyp, ForLoopStatement flsa , Expression e , ForLoopStatement flsb , Statement s ):base(((LSLSyntax 606 public ForLoop (Parser yyp, ForLoopStatement flsa , Expression e , ForLoopStatement flsb , Statement s ):base(((LSLSyntax
406)yyp)){ kids . Add ( flsa ); 607)yyp)){ kids . Add ( flsa );
@@ -411,9 +612,9 @@ public class ForLoop : SYMBOL{
411} 612}
412 613
413public override string yyname { get { return "ForLoop"; }} 614public override string yyname { get { return "ForLoop"; }}
414public override int yynum { get { return 121; }} 615public override int yynum { get { return 146; }}
415public ForLoop(Parser yyp):base(yyp){}} 616public ForLoop(Parser yyp):base(yyp){}}
416//%+ForLoopStatement+122 617//%+ForLoopStatement+147
417public class ForLoopStatement : SYMBOL{ 618public class ForLoopStatement : SYMBOL{
418 public ForLoopStatement (Parser yyp, Expression e ):base(((LSLSyntax 619 public ForLoopStatement (Parser yyp, Expression e ):base(((LSLSyntax
419)yyp)){ kids . Add ( e ); 620)yyp)){ kids . Add ( e );
@@ -431,9 +632,9 @@ public class ForLoopStatement : SYMBOL{
431} 632}
432 633
433public override string yyname { get { return "ForLoopStatement"; }} 634public override string yyname { get { return "ForLoopStatement"; }}
434public override int yynum { get { return 122; }} 635public override int yynum { get { return 147; }}
435public ForLoopStatement(Parser yyp):base(yyp){}} 636public ForLoopStatement(Parser yyp):base(yyp){}}
436//%+FunctionCall+123 637//%+FunctionCall+148
437public class FunctionCall : SYMBOL{ 638public class FunctionCall : SYMBOL{
438 private string m_id ; 639 private string m_id ;
439 public FunctionCall (Parser yyp, string id , ArgumentList al ):base(((LSLSyntax 640 public FunctionCall (Parser yyp, string id , ArgumentList al ):base(((LSLSyntax
@@ -447,9 +648,9 @@ public class FunctionCall : SYMBOL{
447} 648}
448 649
449public override string yyname { get { return "FunctionCall"; }} 650public override string yyname { get { return "FunctionCall"; }}
450public override int yynum { get { return 123; }} 651public override int yynum { get { return 148; }}
451public FunctionCall(Parser yyp):base(yyp){}} 652public FunctionCall(Parser yyp):base(yyp){}}
452//%+ArgumentList+124 653//%+ArgumentList+149
453public class ArgumentList : SYMBOL{ 654public class ArgumentList : SYMBOL{
454 public ArgumentList (Parser yyp, Argument a ):base(((LSLSyntax 655 public ArgumentList (Parser yyp, Argument a ):base(((LSLSyntax
455)yyp)){ AddArgument ( a ); 656)yyp)){ AddArgument ( a );
@@ -463,14 +664,14 @@ public class ArgumentList : SYMBOL{
463} 664}
464 665
465public override string yyname { get { return "ArgumentList"; }} 666public override string yyname { get { return "ArgumentList"; }}
466public override int yynum { get { return 124; }} 667public override int yynum { get { return 149; }}
467public ArgumentList(Parser yyp):base(yyp){}} 668public ArgumentList(Parser yyp):base(yyp){}}
468//%+Argument+125 669//%+Argument+150
469public class Argument : SYMBOL{ 670public class Argument : SYMBOL{
470public override string yyname { get { return "Argument"; }} 671public override string yyname { get { return "Argument"; }}
471public override int yynum { get { return 125; }} 672public override int yynum { get { return 150; }}
472public Argument(Parser yyp):base(yyp){}} 673public Argument(Parser yyp):base(yyp){}}
473//%+ExpressionArgument+126 674//%+ExpressionArgument+151
474public class ExpressionArgument : Argument{ 675public class ExpressionArgument : Argument{
475 public ExpressionArgument (Parser yyp, Expression e ):base(((LSLSyntax 676 public ExpressionArgument (Parser yyp, Expression e ):base(((LSLSyntax
476)yyp)){ if ( e is ConstantExpression ) while (0< e . kids . Count ) kids . Add ( e . kids . Pop ()); 677)yyp)){ if ( e is ConstantExpression ) while (0< e . kids . Count ) kids . Add ( e . kids . Pop ());
@@ -478,9 +679,9 @@ public class ExpressionArgument : Argument{
478} 679}
479 680
480public override string yyname { get { return "ExpressionArgument"; }} 681public override string yyname { get { return "ExpressionArgument"; }}
481public override int yynum { get { return 126; }} 682public override int yynum { get { return 151; }}
482public ExpressionArgument(Parser yyp):base(yyp){}} 683public ExpressionArgument(Parser yyp):base(yyp){}}
483//%+Constant+127 684//%+Constant+152
484public class Constant : SYMBOL{ 685public class Constant : SYMBOL{
485 private string m_type ; 686 private string m_type ;
486 private string m_val ; 687 private string m_val ;
@@ -502,9 +703,9 @@ public class Constant : SYMBOL{
502} 703}
503 704
504public override string yyname { get { return "Constant"; }} 705public override string yyname { get { return "Constant"; }}
505public override int yynum { get { return 127; }} 706public override int yynum { get { return 152; }}
506public Constant(Parser yyp):base(yyp){}} 707public Constant(Parser yyp):base(yyp){}}
507//%+VectorConstant+128 708//%+VectorConstant+153
508public class VectorConstant : Constant{ 709public class VectorConstant : Constant{
509 public VectorConstant (Parser yyp, Expression valX , Expression valY , Expression valZ ):base(((LSLSyntax 710 public VectorConstant (Parser yyp, Expression valX , Expression valY , Expression valZ ):base(((LSLSyntax
510)yyp),"vector", null ){ kids . Add ( valX ); 711)yyp),"vector", null ){ kids . Add ( valX );
@@ -513,9 +714,9 @@ public class VectorConstant : Constant{
513} 714}
514 715
515public override string yyname { get { return "VectorConstant"; }} 716public override string yyname { get { return "VectorConstant"; }}
516public override int yynum { get { return 128; }} 717public override int yynum { get { return 153; }}
517public VectorConstant(Parser yyp):base(yyp){}} 718public VectorConstant(Parser yyp):base(yyp){}}
518//%+RotationConstant+129 719//%+RotationConstant+154
519public class RotationConstant : Constant{ 720public class RotationConstant : Constant{
520 public RotationConstant (Parser yyp, Expression valX , Expression valY , Expression valZ , Expression valS ):base(((LSLSyntax 721 public RotationConstant (Parser yyp, Expression valX , Expression valY , Expression valZ , Expression valS ):base(((LSLSyntax
521)yyp),"rotation", null ){ kids . Add ( valX ); 722)yyp),"rotation", null ){ kids . Add ( valX );
@@ -525,36 +726,36 @@ public class RotationConstant : Constant{
525} 726}
526 727
527public override string yyname { get { return "RotationConstant"; }} 728public override string yyname { get { return "RotationConstant"; }}
528public override int yynum { get { return 129; }} 729public override int yynum { get { return 154; }}
529public RotationConstant(Parser yyp):base(yyp){}} 730public RotationConstant(Parser yyp):base(yyp){}}
530//%+ListConstant+130 731//%+ListConstant+155
531public class ListConstant : Constant{ 732public class ListConstant : Constant{
532 public ListConstant (Parser yyp, ArgumentList al ):base(((LSLSyntax 733 public ListConstant (Parser yyp, ArgumentList al ):base(((LSLSyntax
533)yyp),"list", null ){ kids . Add ( al ); 734)yyp),"list", null ){ kids . Add ( al );
534} 735}
535 736
536public override string yyname { get { return "ListConstant"; }} 737public override string yyname { get { return "ListConstant"; }}
537public override int yynum { get { return 130; }} 738public override int yynum { get { return 155; }}
538public ListConstant(Parser yyp):base(yyp){}} 739public ListConstant(Parser yyp):base(yyp){}}
539//%+Expression+131 740//%+Expression+156
540public class Expression : SYMBOL{ 741public class Expression : SYMBOL{
541 protected void AddExpression ( Expression e ){ if ( e is ConstantExpression ) while (0< e . kids . Count ) kids . Add ( e . kids . Pop ()); 742 protected void AddExpression ( Expression e ){ if ( e is ConstantExpression ) while (0< e . kids . Count ) kids . Add ( e . kids . Pop ());
542 else kids . Add ( e ); 743 else kids . Add ( e );
543} 744}
544 745
545public override string yyname { get { return "Expression"; }} 746public override string yyname { get { return "Expression"; }}
546public override int yynum { get { return 131; }} 747public override int yynum { get { return 156; }}
547public Expression(Parser yyp):base(yyp){}} 748public Expression(Parser yyp):base(yyp){}}
548//%+ConstantExpression+132 749//%+ConstantExpression+157
549public class ConstantExpression : Expression{ 750public class ConstantExpression : Expression{
550 public ConstantExpression (Parser yyp, Constant c ):base(((LSLSyntax 751 public ConstantExpression (Parser yyp, Constant c ):base(((LSLSyntax
551)yyp)){ kids . Add ( c ); 752)yyp)){ kids . Add ( c );
552} 753}
553 754
554public override string yyname { get { return "ConstantExpression"; }} 755public override string yyname { get { return "ConstantExpression"; }}
555public override int yynum { get { return 132; }} 756public override int yynum { get { return 157; }}
556public ConstantExpression(Parser yyp):base(yyp){}} 757public ConstantExpression(Parser yyp):base(yyp){}}
557//%+IdentExpression+133 758//%+IdentExpression+158
558public class IdentExpression : Expression{ 759public class IdentExpression : Expression{
559 protected string m_name ; 760 protected string m_name ;
560 public IdentExpression (Parser yyp, string name ):base(((LSLSyntax 761 public IdentExpression (Parser yyp, string name ):base(((LSLSyntax
@@ -567,9 +768,9 @@ public class IdentExpression : Expression{
567} 768}
568 769
569public override string yyname { get { return "IdentExpression"; }} 770public override string yyname { get { return "IdentExpression"; }}
570public override int yynum { get { return 133; }} 771public override int yynum { get { return 158; }}
571public IdentExpression(Parser yyp):base(yyp){}} 772public IdentExpression(Parser yyp):base(yyp){}}
572//%+IdentDotExpression+134 773//%+IdentDotExpression+159
573public class IdentDotExpression : IdentExpression{ 774public class IdentDotExpression : IdentExpression{
574 private string m_member ; 775 private string m_member ;
575 public IdentDotExpression (Parser yyp, string name , string member ):base(((LSLSyntax 776 public IdentDotExpression (Parser yyp, string name , string member ):base(((LSLSyntax
@@ -583,18 +784,18 @@ public class IdentDotExpression : IdentExpression{
583} 784}
584 785
585public override string yyname { get { return "IdentDotExpression"; }} 786public override string yyname { get { return "IdentDotExpression"; }}
586public override int yynum { get { return 134; }} 787public override int yynum { get { return 159; }}
587public IdentDotExpression(Parser yyp):base(yyp){}} 788public IdentDotExpression(Parser yyp):base(yyp){}}
588//%+FunctionCallExpression+135 789//%+FunctionCallExpression+160
589public class FunctionCallExpression : Expression{ 790public class FunctionCallExpression : Expression{
590 public FunctionCallExpression (Parser yyp, FunctionCall fc ):base(((LSLSyntax 791 public FunctionCallExpression (Parser yyp, FunctionCall fc ):base(((LSLSyntax
591)yyp)){ kids . Add ( fc ); 792)yyp)){ kids . Add ( fc );
592} 793}
593 794
594public override string yyname { get { return "FunctionCallExpression"; }} 795public override string yyname { get { return "FunctionCallExpression"; }}
595public override int yynum { get { return 135; }} 796public override int yynum { get { return 160; }}
596public FunctionCallExpression(Parser yyp):base(yyp){}} 797public FunctionCallExpression(Parser yyp):base(yyp){}}
597//%+BinaryExpression+136 798//%+BinaryExpression+161
598public class BinaryExpression : Expression{ 799public class BinaryExpression : Expression{
599 private string m_expressionSymbol ; 800 private string m_expressionSymbol ;
600 public BinaryExpression (Parser yyp, Expression lhs , Expression rhs , string expressionSymbol ):base(((LSLSyntax 801 public BinaryExpression (Parser yyp, Expression lhs , Expression rhs , string expressionSymbol ):base(((LSLSyntax
@@ -609,9 +810,9 @@ public class BinaryExpression : Expression{
609} 810}
610 811
611public override string yyname { get { return "BinaryExpression"; }} 812public override string yyname { get { return "BinaryExpression"; }}
612public override int yynum { get { return 136; }} 813public override int yynum { get { return 161; }}
613public BinaryExpression(Parser yyp):base(yyp){}} 814public BinaryExpression(Parser yyp):base(yyp){}}
614//%+UnaryExpression+137 815//%+UnaryExpression+162
615public class UnaryExpression : Expression{ 816public class UnaryExpression : Expression{
616 private string m_unarySymbol ; 817 private string m_unarySymbol ;
617 public UnaryExpression (Parser yyp, string unarySymbol , Expression e ):base(((LSLSyntax 818 public UnaryExpression (Parser yyp, string unarySymbol , Expression e ):base(((LSLSyntax
@@ -625,9 +826,9 @@ public class UnaryExpression : Expression{
625} 826}
626 827
627public override string yyname { get { return "UnaryExpression"; }} 828public override string yyname { get { return "UnaryExpression"; }}
628public override int yynum { get { return 137; }} 829public override int yynum { get { return 162; }}
629public UnaryExpression(Parser yyp):base(yyp){}} 830public UnaryExpression(Parser yyp):base(yyp){}}
630//%+TypecastExpression+138 831//%+TypecastExpression+163
631public class TypecastExpression : Expression{ 832public class TypecastExpression : Expression{
632 private string m_typecastType ; 833 private string m_typecastType ;
633 public TypecastExpression (Parser yyp, string typecastType , SYMBOL rhs ):base(((LSLSyntax 834 public TypecastExpression (Parser yyp, string typecastType , SYMBOL rhs ):base(((LSLSyntax
@@ -641,18 +842,18 @@ public class TypecastExpression : Expression{
641} 842}
642 843
643public override string yyname { get { return "TypecastExpression"; }} 844public override string yyname { get { return "TypecastExpression"; }}
644public override int yynum { get { return 138; }} 845public override int yynum { get { return 163; }}
645public TypecastExpression(Parser yyp):base(yyp){}} 846public TypecastExpression(Parser yyp):base(yyp){}}
646//%+ParenthesisExpression+139 847//%+ParenthesisExpression+164
647public class ParenthesisExpression : Expression{ 848public class ParenthesisExpression : Expression{
648 public ParenthesisExpression (Parser yyp, SYMBOL s ):base(((LSLSyntax 849 public ParenthesisExpression (Parser yyp, SYMBOL s ):base(((LSLSyntax
649)yyp)){ kids . Add ( s ); 850)yyp)){ kids . Add ( s );
650} 851}
651 852
652public override string yyname { get { return "ParenthesisExpression"; }} 853public override string yyname { get { return "ParenthesisExpression"; }}
653public override int yynum { get { return 139; }} 854public override int yynum { get { return 164; }}
654public ParenthesisExpression(Parser yyp):base(yyp){}} 855public ParenthesisExpression(Parser yyp):base(yyp){}}
655//%+IncrementDecrementExpression+140 856//%+IncrementDecrementExpression+165
656public class IncrementDecrementExpression : Expression{ 857public class IncrementDecrementExpression : Expression{
657 private string m_name ; 858 private string m_name ;
658 private string m_operation ; 859 private string m_operation ;
@@ -680,7 +881,7 @@ public class IncrementDecrementExpression : Expression{
680} 881}
681 882
682public override string yyname { get { return "IncrementDecrementExpression"; }} 883public override string yyname { get { return "IncrementDecrementExpression"; }}
683public override int yynum { get { return 140; }} 884public override int yynum { get { return 165; }}
684public IncrementDecrementExpression(Parser yyp):base(yyp){}} 885public IncrementDecrementExpression(Parser yyp):base(yyp){}}
685 886
686public class LSLProgramRoot_1 : LSLProgramRoot { 887public class LSLProgramRoot_1 : LSLProgramRoot {
@@ -792,6 +993,90 @@ public class StateBody_2 : StateBody {
792 ((StateEvent)(yyq.StackAt(0).m_value)) 993 ((StateEvent)(yyq.StackAt(0).m_value))
793 ){}} 994 ){}}
794 995
996public class StateBody_3 : StateBody {
997 public StateBody_3(Parser yyq):base(yyq,
998 ((VoidArgStateEvent)(yyq.StackAt(0).m_value))
999 ){}}
1000
1001public class StateBody_4 : StateBody {
1002 public StateBody_4(Parser yyq):base(yyq,
1003 ((StateBody)(yyq.StackAt(1).m_value))
1004 ,
1005 ((VoidArgStateEvent)(yyq.StackAt(0).m_value))
1006 ){}}
1007
1008public class StateBody_5 : StateBody {
1009 public StateBody_5(Parser yyq):base(yyq,
1010 ((KeyArgStateEvent)(yyq.StackAt(0).m_value))
1011 ){}}
1012
1013public class StateBody_6 : StateBody {
1014 public StateBody_6(Parser yyq):base(yyq,
1015 ((StateBody)(yyq.StackAt(1).m_value))
1016 ,
1017 ((KeyArgStateEvent)(yyq.StackAt(0).m_value))
1018 ){}}
1019
1020public class StateBody_7 : StateBody {
1021 public StateBody_7(Parser yyq):base(yyq,
1022 ((IntArgStateEvent)(yyq.StackAt(0).m_value))
1023 ){}}
1024
1025public class StateBody_8 : StateBody {
1026 public StateBody_8(Parser yyq):base(yyq,
1027 ((StateBody)(yyq.StackAt(1).m_value))
1028 ,
1029 ((IntArgStateEvent)(yyq.StackAt(0).m_value))
1030 ){}}
1031
1032public class StateBody_9 : StateBody {
1033 public StateBody_9(Parser yyq):base(yyq,
1034 ((VectorArgStateEvent)(yyq.StackAt(0).m_value))
1035 ){}}
1036
1037public class StateBody_10 : StateBody {
1038 public StateBody_10(Parser yyq):base(yyq,
1039 ((StateBody)(yyq.StackAt(1).m_value))
1040 ,
1041 ((VectorArgStateEvent)(yyq.StackAt(0).m_value))
1042 ){}}
1043
1044public class StateBody_11 : StateBody {
1045 public StateBody_11(Parser yyq):base(yyq,
1046 ((IntRotRotArgStateEvent)(yyq.StackAt(0).m_value))
1047 ){}}
1048
1049public class StateBody_12 : StateBody {
1050 public StateBody_12(Parser yyq):base(yyq,
1051 ((StateBody)(yyq.StackAt(1).m_value))
1052 ,
1053 ((IntRotRotArgStateEvent)(yyq.StackAt(0).m_value))
1054 ){}}
1055
1056public class StateBody_13 : StateBody {
1057 public StateBody_13(Parser yyq):base(yyq,
1058 ((IntVecVecArgStateEvent)(yyq.StackAt(0).m_value))
1059 ){}}
1060
1061public class StateBody_14 : StateBody {
1062 public StateBody_14(Parser yyq):base(yyq,
1063 ((StateBody)(yyq.StackAt(1).m_value))
1064 ,
1065 ((IntVecVecArgStateEvent)(yyq.StackAt(0).m_value))
1066 ){}}
1067
1068public class StateBody_15 : StateBody {
1069 public StateBody_15(Parser yyq):base(yyq,
1070 ((KeyIntIntArgStateEvent)(yyq.StackAt(0).m_value))
1071 ){}}
1072
1073public class StateBody_16 : StateBody {
1074 public StateBody_16(Parser yyq):base(yyq,
1075 ((StateBody)(yyq.StackAt(1).m_value))
1076 ,
1077 ((KeyIntIntArgStateEvent)(yyq.StackAt(0).m_value))
1078 ){}}
1079
795public class StateEvent_1 : StateEvent { 1080public class StateEvent_1 : StateEvent {
796 public StateEvent_1(Parser yyq):base(yyq, 1081 public StateEvent_1(Parser yyq):base(yyq,
797 ((Event)(yyq.StackAt(4).m_value)) 1082 ((Event)(yyq.StackAt(4).m_value))
@@ -801,6 +1086,67 @@ public class StateEvent_1 : StateEvent {
801 ((CompoundStatement)(yyq.StackAt(0).m_value)) 1086 ((CompoundStatement)(yyq.StackAt(0).m_value))
802 ){}} 1087 ){}}
803 1088
1089public class VoidArgStateEvent_1 : VoidArgStateEvent {
1090 public VoidArgStateEvent_1(Parser yyq):base(yyq,
1091 ((VoidArgEvent)(yyq.StackAt(3).m_value))
1092 .yytext,
1093 ((CompoundStatement)(yyq.StackAt(0).m_value))
1094 ){}}
1095
1096public class KeyArgStateEvent_1 : KeyArgStateEvent {
1097 public KeyArgStateEvent_1(Parser yyq):base(yyq,
1098 ((KeyArgEvent)(yyq.StackAt(4).m_value))
1099 .yytext,
1100 ((KeyArgumentDeclarationList)(yyq.StackAt(2).m_value))
1101 ,
1102 ((CompoundStatement)(yyq.StackAt(0).m_value))
1103 ){}}
1104
1105public class IntArgStateEvent_1 : IntArgStateEvent {
1106 public IntArgStateEvent_1(Parser yyq):base(yyq,
1107 ((IntArgEvent)(yyq.StackAt(4).m_value))
1108 .yytext,
1109 ((IntArgumentDeclarationList)(yyq.StackAt(2).m_value))
1110 ,
1111 ((CompoundStatement)(yyq.StackAt(0).m_value))
1112 ){}}
1113
1114public class VectorArgStateEvent_1 : VectorArgStateEvent {
1115 public VectorArgStateEvent_1(Parser yyq):base(yyq,
1116 ((VectorArgEvent)(yyq.StackAt(4).m_value))
1117 .yytext,
1118 ((VectorArgumentDeclarationList)(yyq.StackAt(2).m_value))
1119 ,
1120 ((CompoundStatement)(yyq.StackAt(0).m_value))
1121 ){}}
1122
1123public class IntRotRotArgStateEvent_1 : IntRotRotArgStateEvent {
1124 public IntRotRotArgStateEvent_1(Parser yyq):base(yyq,
1125 ((IntRotRotArgEvent)(yyq.StackAt(4).m_value))
1126 .yytext,
1127 ((IntRotRotArgumentDeclarationList)(yyq.StackAt(2).m_value))
1128 ,
1129 ((CompoundStatement)(yyq.StackAt(0).m_value))
1130 ){}}
1131
1132public class IntVecVecArgStateEvent_1 : IntVecVecArgStateEvent {
1133 public IntVecVecArgStateEvent_1(Parser yyq):base(yyq,
1134 ((IntVecVecArgEvent)(yyq.StackAt(4).m_value))
1135 .yytext,
1136 ((IntVecVecArgumentDeclarationList)(yyq.StackAt(2).m_value))
1137 ,
1138 ((CompoundStatement)(yyq.StackAt(0).m_value))
1139 ){}}
1140
1141public class KeyIntIntArgStateEvent_1 : KeyIntIntArgStateEvent {
1142 public KeyIntIntArgStateEvent_1(Parser yyq):base(yyq,
1143 ((KeyIntIntArgEvent)(yyq.StackAt(4).m_value))
1144 .yytext,
1145 ((KeyIntIntArgumentDeclarationList)(yyq.StackAt(2).m_value))
1146 ,
1147 ((CompoundStatement)(yyq.StackAt(0).m_value))
1148 ){}}
1149
804public class ArgumentDeclarationList_1 : ArgumentDeclarationList { 1150public class ArgumentDeclarationList_1 : ArgumentDeclarationList {
805 public ArgumentDeclarationList_1(Parser yyq):base(yyq, 1151 public ArgumentDeclarationList_1(Parser yyq):base(yyq,
806 ((Declaration)(yyq.StackAt(0).m_value)) 1152 ((Declaration)(yyq.StackAt(0).m_value))
@@ -813,6 +1159,48 @@ public class ArgumentDeclarationList_2 : ArgumentDeclarationList {
813 ((Declaration)(yyq.StackAt(0).m_value)) 1159 ((Declaration)(yyq.StackAt(0).m_value))
814 ){}} 1160 ){}}
815 1161
1162public class KeyArgumentDeclarationList_1 : KeyArgumentDeclarationList {
1163 public KeyArgumentDeclarationList_1(Parser yyq):base(yyq,
1164 ((KeyDeclaration)(yyq.StackAt(0).m_value))
1165 ){}}
1166
1167public class IntArgumentDeclarationList_1 : IntArgumentDeclarationList {
1168 public IntArgumentDeclarationList_1(Parser yyq):base(yyq,
1169 ((IntDeclaration)(yyq.StackAt(0).m_value))
1170 ){}}
1171
1172public class VectorArgumentDeclarationList_1 : VectorArgumentDeclarationList {
1173 public VectorArgumentDeclarationList_1(Parser yyq):base(yyq,
1174 ((VecDeclaration)(yyq.StackAt(0).m_value))
1175 ){}}
1176
1177public class IntRotRotArgumentDeclarationList_1 : IntRotRotArgumentDeclarationList {
1178 public IntRotRotArgumentDeclarationList_1(Parser yyq):base(yyq,
1179 ((IntDeclaration)(yyq.StackAt(4).m_value))
1180 ,
1181 ((RotDeclaration)(yyq.StackAt(2).m_value))
1182 ,
1183 ((RotDeclaration)(yyq.StackAt(0).m_value))
1184 ){}}
1185
1186public class IntVecVecArgumentDeclarationList_1 : IntVecVecArgumentDeclarationList {
1187 public IntVecVecArgumentDeclarationList_1(Parser yyq):base(yyq,
1188 ((IntDeclaration)(yyq.StackAt(4).m_value))
1189 ,
1190 ((VecDeclaration)(yyq.StackAt(2).m_value))
1191 ,
1192 ((VecDeclaration)(yyq.StackAt(0).m_value))
1193 ){}}
1194
1195public class KeyIntIntArgumentDeclarationList_1 : KeyIntIntArgumentDeclarationList {
1196 public KeyIntIntArgumentDeclarationList_1(Parser yyq):base(yyq,
1197 ((KeyDeclaration)(yyq.StackAt(4).m_value))
1198 ,
1199 ((IntDeclaration)(yyq.StackAt(2).m_value))
1200 ,
1201 ((IntDeclaration)(yyq.StackAt(0).m_value))
1202 ){}}
1203
816public class Declaration_1 : Declaration { 1204public class Declaration_1 : Declaration {
817 public Declaration_1(Parser yyq):base(yyq, 1205 public Declaration_1(Parser yyq):base(yyq,
818 ((Typename)(yyq.StackAt(1).m_value)) 1206 ((Typename)(yyq.StackAt(1).m_value))
@@ -820,6 +1208,34 @@ public class Declaration_1 : Declaration {
820 ((IDENT)(yyq.StackAt(0).m_value)) 1208 ((IDENT)(yyq.StackAt(0).m_value))
821 .yytext){}} 1209 .yytext){}}
822 1210
1211public class KeyDeclaration_1 : KeyDeclaration {
1212 public KeyDeclaration_1(Parser yyq):base(yyq,
1213 ((KEY_TYPE)(yyq.StackAt(1).m_value))
1214 .yytext,
1215 ((IDENT)(yyq.StackAt(0).m_value))
1216 .yytext){}}
1217
1218public class IntDeclaration_1 : IntDeclaration {
1219 public IntDeclaration_1(Parser yyq):base(yyq,
1220 ((INTEGER_TYPE)(yyq.StackAt(1).m_value))
1221 .yytext,
1222 ((IDENT)(yyq.StackAt(0).m_value))
1223 .yytext){}}
1224
1225public class VecDeclaration_1 : VecDeclaration {
1226 public VecDeclaration_1(Parser yyq):base(yyq,
1227 ((VECTOR_TYPE)(yyq.StackAt(1).m_value))
1228 .yytext,
1229 ((IDENT)(yyq.StackAt(0).m_value))
1230 .yytext){}}
1231
1232public class RotDeclaration_1 : RotDeclaration {
1233 public RotDeclaration_1(Parser yyq):base(yyq,
1234 ((ROTATION_TYPE)(yyq.StackAt(1).m_value))
1235 .yytext,
1236 ((IDENT)(yyq.StackAt(0).m_value))
1237 .yytext){}}
1238
823public class CompoundStatement_1 : CompoundStatement { 1239public class CompoundStatement_1 : CompoundStatement {
824 public CompoundStatement_1(Parser yyq):base(yyq){}} 1240 public CompoundStatement_1(Parser yyq):base(yyq){}}
825 1241
@@ -1780,172 +2196,177 @@ public class Typename_7 : Typename {
1780 2196
1781public class Event_1 : Event { 2197public class Event_1 : Event {
1782 public Event_1(Parser yyq):base(yyq, 2198 public Event_1(Parser yyq):base(yyq,
1783 ((AT_ROT_TARGET_EVENT)(yyq.StackAt(0).m_value)) 2199 ((DATASERVER_EVENT)(yyq.StackAt(0).m_value))
1784 .yytext){}} 2200 .yytext){}}
1785 2201
1786public class Event_2 : Event { 2202public class Event_2 : Event {
1787 public Event_2(Parser yyq):base(yyq, 2203 public Event_2(Parser yyq):base(yyq,
1788 ((AT_TARGET_EVENT)(yyq.StackAt(0).m_value)) 2204 ((EMAIL_EVENT)(yyq.StackAt(0).m_value))
1789 .yytext){}} 2205 .yytext){}}
1790 2206
1791public class Event_3 : Event { 2207public class Event_3 : Event {
1792 public Event_3(Parser yyq):base(yyq, 2208 public Event_3(Parser yyq):base(yyq,
1793 ((ATTACH_EVENT)(yyq.StackAt(0).m_value)) 2209 ((HTTP_RESPONSE_EVENT)(yyq.StackAt(0).m_value))
1794 .yytext){}} 2210 .yytext){}}
1795 2211
1796public class Event_4 : Event { 2212public class Event_4 : Event {
1797 public Event_4(Parser yyq):base(yyq, 2213 public Event_4(Parser yyq):base(yyq,
1798 ((CHANGED_EVENT)(yyq.StackAt(0).m_value)) 2214 ((LINK_MESSAGE_EVENT)(yyq.StackAt(0).m_value))
1799 .yytext){}} 2215 .yytext){}}
1800 2216
1801public class Event_5 : Event { 2217public class Event_5 : Event {
1802 public Event_5(Parser yyq):base(yyq, 2218 public Event_5(Parser yyq):base(yyq,
1803 ((COLLISION_EVENT)(yyq.StackAt(0).m_value)) 2219 ((LISTEN_EVENT)(yyq.StackAt(0).m_value))
1804 .yytext){}} 2220 .yytext){}}
1805 2221
1806public class Event_6 : Event { 2222public class Event_6 : Event {
1807 public Event_6(Parser yyq):base(yyq, 2223 public Event_6(Parser yyq):base(yyq,
1808 ((COLLISION_END_EVENT)(yyq.StackAt(0).m_value)) 2224 ((MONEY_EVENT)(yyq.StackAt(0).m_value))
1809 .yytext){}} 2225 .yytext){}}
1810 2226
1811public class Event_7 : Event { 2227public class Event_7 : Event {
1812 public Event_7(Parser yyq):base(yyq, 2228 public Event_7(Parser yyq):base(yyq,
1813 ((COLLISION_START_EVENT)(yyq.StackAt(0).m_value)) 2229 ((REMOTE_DATA_EVENT)(yyq.StackAt(0).m_value))
1814 .yytext){}} 2230 .yytext){}}
1815 2231
1816public class Event_8 : Event { 2232public class Event_8 : Event {
1817 public Event_8(Parser yyq):base(yyq, 2233 public Event_8(Parser yyq):base(yyq,
1818 ((CONTROL_EVENT)(yyq.StackAt(0).m_value)) 2234 ((HTTP_REQUEST_EVENT)(yyq.StackAt(0).m_value))
1819 .yytext){}} 2235 .yytext){}}
1820 2236
1821public class Event_9 : Event { 2237public class Event_9 : Event {
1822 public Event_9(Parser yyq):base(yyq, 2238 public Event_9(Parser yyq):base(yyq,
1823 ((DATASERVER_EVENT)(yyq.StackAt(0).m_value)) 2239 ((TRANSACTION_RESULT_EVENT)(yyq.StackAt(0).m_value))
1824 .yytext){}} 2240 .yytext){}}
1825 2241
1826public class Event_10 : Event { 2242public class VoidArgEvent_1 : VoidArgEvent {
1827 public Event_10(Parser yyq):base(yyq, 2243 public VoidArgEvent_1(Parser yyq):base(yyq,
1828 ((EMAIL_EVENT)(yyq.StackAt(0).m_value)) 2244 ((STATE_ENTRY_EVENT)(yyq.StackAt(0).m_value))
1829 .yytext){}} 2245 .yytext){}}
1830 2246
1831public class Event_11 : Event { 2247public class VoidArgEvent_2 : VoidArgEvent {
1832 public Event_11(Parser yyq):base(yyq, 2248 public VoidArgEvent_2(Parser yyq):base(yyq,
1833 ((HTTP_RESPONSE_EVENT)(yyq.StackAt(0).m_value)) 2249 ((STATE_EXIT_EVENT)(yyq.StackAt(0).m_value))
1834 .yytext){}} 2250 .yytext){}}
1835 2251
1836public class Event_12 : Event { 2252public class VoidArgEvent_3 : VoidArgEvent {
1837 public Event_12(Parser yyq):base(yyq, 2253 public VoidArgEvent_3(Parser yyq):base(yyq,
1838 ((LAND_COLLISION_EVENT)(yyq.StackAt(0).m_value)) 2254 ((MOVING_END_EVENT)(yyq.StackAt(0).m_value))
1839 .yytext){}} 2255 .yytext){}}
1840 2256
1841public class Event_13 : Event { 2257public class VoidArgEvent_4 : VoidArgEvent {
1842 public Event_13(Parser yyq):base(yyq, 2258 public VoidArgEvent_4(Parser yyq):base(yyq,
1843 ((LAND_COLLISION_END_EVENT)(yyq.StackAt(0).m_value)) 2259 ((MOVING_START_EVENT)(yyq.StackAt(0).m_value))
1844 .yytext){}} 2260 .yytext){}}
1845 2261
1846public class Event_14 : Event { 2262public class VoidArgEvent_5 : VoidArgEvent {
1847 public Event_14(Parser yyq):base(yyq, 2263 public VoidArgEvent_5(Parser yyq):base(yyq,
1848 ((LAND_COLLISION_START_EVENT)(yyq.StackAt(0).m_value)) 2264 ((NO_SENSOR_EVENT)(yyq.StackAt(0).m_value))
1849 .yytext){}} 2265 .yytext){}}
1850 2266
1851public class Event_15 : Event { 2267public class VoidArgEvent_6 : VoidArgEvent {
1852 public Event_15(Parser yyq):base(yyq, 2268 public VoidArgEvent_6(Parser yyq):base(yyq,
1853 ((LINK_MESSAGE_EVENT)(yyq.StackAt(0).m_value)) 2269 ((NOT_AT_ROT_TARGET_EVENT)(yyq.StackAt(0).m_value))
1854 .yytext){}} 2270 .yytext){}}
1855 2271
1856public class Event_16 : Event { 2272public class VoidArgEvent_7 : VoidArgEvent {
1857 public Event_16(Parser yyq):base(yyq, 2273 public VoidArgEvent_7(Parser yyq):base(yyq,
1858 ((LISTEN_EVENT)(yyq.StackAt(0).m_value)) 2274 ((NOT_AT_TARGET_EVENT)(yyq.StackAt(0).m_value))
1859 .yytext){}} 2275 .yytext){}}
1860 2276
1861public class Event_17 : Event { 2277public class VoidArgEvent_8 : VoidArgEvent {
1862 public Event_17(Parser yyq):base(yyq, 2278 public VoidArgEvent_8(Parser yyq):base(yyq,
1863 ((MONEY_EVENT)(yyq.StackAt(0).m_value)) 2279 ((TIMER_EVENT)(yyq.StackAt(0).m_value))
1864 .yytext){}} 2280 .yytext){}}
1865 2281
1866public class Event_18 : Event { 2282public class KeyArgEvent_1 : KeyArgEvent {
1867 public Event_18(Parser yyq):base(yyq, 2283 public KeyArgEvent_1(Parser yyq):base(yyq,
1868 ((MOVING_END_EVENT)(yyq.StackAt(0).m_value)) 2284 ((ATTACH_EVENT)(yyq.StackAt(0).m_value))
1869 .yytext){}} 2285 .yytext){}}
1870 2286
1871public class Event_19 : Event { 2287public class KeyArgEvent_2 : KeyArgEvent {
1872 public Event_19(Parser yyq):base(yyq, 2288 public KeyArgEvent_2(Parser yyq):base(yyq,
1873 ((MOVING_START_EVENT)(yyq.StackAt(0).m_value)) 2289 ((OBJECT_REZ_EVENT)(yyq.StackAt(0).m_value))
1874 .yytext){}} 2290 .yytext){}}
1875 2291
1876public class Event_20 : Event { 2292public class IntArgEvent_1 : IntArgEvent {
1877 public Event_20(Parser yyq):base(yyq, 2293 public IntArgEvent_1(Parser yyq):base(yyq,
1878 ((NO_SENSOR_EVENT)(yyq.StackAt(0).m_value)) 2294 ((CHANGED_EVENT)(yyq.StackAt(0).m_value))
1879 .yytext){}} 2295 .yytext){}}
1880 2296
1881public class Event_21 : Event { 2297public class IntArgEvent_2 : IntArgEvent {
1882 public Event_21(Parser yyq):base(yyq, 2298 public IntArgEvent_2(Parser yyq):base(yyq,
1883 ((NOT_AT_ROT_TARGET_EVENT)(yyq.StackAt(0).m_value)) 2299 ((COLLISION_EVENT)(yyq.StackAt(0).m_value))
1884 .yytext){}} 2300 .yytext){}}
1885 2301
1886public class Event_22 : Event { 2302public class IntArgEvent_3 : IntArgEvent {
1887 public Event_22(Parser yyq):base(yyq, 2303 public IntArgEvent_3(Parser yyq):base(yyq,
1888 ((NOT_AT_TARGET_EVENT)(yyq.StackAt(0).m_value)) 2304 ((COLLISION_END_EVENT)(yyq.StackAt(0).m_value))
1889 .yytext){}} 2305 .yytext){}}
1890 2306
1891public class Event_23 : Event { 2307public class IntArgEvent_4 : IntArgEvent {
1892 public Event_23(Parser yyq):base(yyq, 2308 public IntArgEvent_4(Parser yyq):base(yyq,
1893 ((OBJECT_REZ_EVENT)(yyq.StackAt(0).m_value)) 2309 ((COLLISION_START_EVENT)(yyq.StackAt(0).m_value))
1894 .yytext){}} 2310 .yytext){}}
1895 2311
1896public class Event_24 : Event { 2312public class IntArgEvent_5 : IntArgEvent {
1897 public Event_24(Parser yyq):base(yyq, 2313 public IntArgEvent_5(Parser yyq):base(yyq,
1898 ((ON_REZ_EVENT)(yyq.StackAt(0).m_value)) 2314 ((ON_REZ_EVENT)(yyq.StackAt(0).m_value))
1899 .yytext){}} 2315 .yytext){}}
1900 2316
1901public class Event_25 : Event { 2317public class IntArgEvent_6 : IntArgEvent {
1902 public Event_25(Parser yyq):base(yyq, 2318 public IntArgEvent_6(Parser yyq):base(yyq,
1903 ((REMOTE_DATA_EVENT)(yyq.StackAt(0).m_value))
1904 .yytext){}}
1905
1906public class Event_26 : Event {
1907 public Event_26(Parser yyq):base(yyq,
1908 ((RUN_TIME_PERMISSIONS_EVENT)(yyq.StackAt(0).m_value)) 2319 ((RUN_TIME_PERMISSIONS_EVENT)(yyq.StackAt(0).m_value))
1909 .yytext){}} 2320 .yytext){}}
1910 2321
1911public class Event_27 : Event { 2322public class IntArgEvent_7 : IntArgEvent {
1912 public Event_27(Parser yyq):base(yyq, 2323 public IntArgEvent_7(Parser yyq):base(yyq,
1913 ((SENSOR_EVENT)(yyq.StackAt(0).m_value)) 2324 ((SENSOR_EVENT)(yyq.StackAt(0).m_value))
1914 .yytext){}} 2325 .yytext){}}
1915 2326
1916public class Event_28 : Event { 2327public class IntArgEvent_8 : IntArgEvent {
1917 public Event_28(Parser yyq):base(yyq, 2328 public IntArgEvent_8(Parser yyq):base(yyq,
1918 ((STATE_ENTRY_EVENT)(yyq.StackAt(0).m_value)) 2329 ((TOUCH_EVENT)(yyq.StackAt(0).m_value))
1919 .yytext){}} 2330 .yytext){}}
1920 2331
1921public class Event_29 : Event { 2332public class IntArgEvent_9 : IntArgEvent {
1922 public Event_29(Parser yyq):base(yyq, 2333 public IntArgEvent_9(Parser yyq):base(yyq,
1923 ((STATE_EXIT_EVENT)(yyq.StackAt(0).m_value)) 2334 ((TOUCH_END_EVENT)(yyq.StackAt(0).m_value))
1924 .yytext){}} 2335 .yytext){}}
1925 2336
1926public class Event_30 : Event { 2337public class IntArgEvent_10 : IntArgEvent {
1927 public Event_30(Parser yyq):base(yyq, 2338 public IntArgEvent_10(Parser yyq):base(yyq,
1928 ((TIMER_EVENT)(yyq.StackAt(0).m_value)) 2339 ((TOUCH_START_EVENT)(yyq.StackAt(0).m_value))
1929 .yytext){}} 2340 .yytext){}}
1930 2341
1931public class Event_31 : Event { 2342public class VectorArgEvent_1 : VectorArgEvent {
1932 public Event_31(Parser yyq):base(yyq, 2343 public VectorArgEvent_1(Parser yyq):base(yyq,
1933 ((TOUCH_EVENT)(yyq.StackAt(0).m_value)) 2344 ((LAND_COLLISION_EVENT)(yyq.StackAt(0).m_value))
1934 .yytext){}} 2345 .yytext){}}
1935 2346
1936public class Event_32 : Event { 2347public class VectorArgEvent_2 : VectorArgEvent {
1937 public Event_32(Parser yyq):base(yyq, 2348 public VectorArgEvent_2(Parser yyq):base(yyq,
1938 ((TOUCH_END_EVENT)(yyq.StackAt(0).m_value)) 2349 ((LAND_COLLISION_END_EVENT)(yyq.StackAt(0).m_value))
1939 .yytext){}} 2350 .yytext){}}
1940 2351
1941public class Event_33 : Event { 2352public class VectorArgEvent_3 : VectorArgEvent {
1942 public Event_33(Parser yyq):base(yyq, 2353 public VectorArgEvent_3(Parser yyq):base(yyq,
1943 ((TOUCH_START_EVENT)(yyq.StackAt(0).m_value)) 2354 ((LAND_COLLISION_START_EVENT)(yyq.StackAt(0).m_value))
1944 .yytext){}} 2355 .yytext){}}
1945 2356
1946public class Event_34 : Event { 2357public class IntRotRotArgEvent_1 : IntRotRotArgEvent {
1947 public Event_34(Parser yyq):base(yyq, 2358 public IntRotRotArgEvent_1(Parser yyq):base(yyq,
1948 ((HTTP_REQUEST_EVENT)(yyq.StackAt(0).m_value)) 2359 ((AT_ROT_TARGET_EVENT)(yyq.StackAt(0).m_value))
2360 .yytext){}}
2361
2362public class IntVecVecArgEvent_1 : IntVecVecArgEvent {
2363 public IntVecVecArgEvent_1(Parser yyq):base(yyq,
2364 ((AT_TARGET_EVENT)(yyq.StackAt(0).m_value))
2365 .yytext){}}
2366
2367public class KeyIntIntArgEvent_1 : KeyIntIntArgEvent {
2368 public KeyIntIntArgEvent_1(Parser yyq):base(yyq,
2369 ((CONTROL_EVENT)(yyq.StackAt(0).m_value))
1949 .yytext){}} 2370 .yytext){}}
1950public class yyLSLSyntax 2371public class yyLSLSyntax
1951: YyParser { 2372: YyParser {
@@ -1960,12 +2381,12 @@ public class ArgumentDeclarationList_3 : ArgumentDeclarationList {
1960public class ArgumentList_3 : ArgumentList { 2381public class ArgumentList_3 : ArgumentList {
1961 public ArgumentList_3(Parser yyq):base(yyq){}} 2382 public ArgumentList_3(Parser yyq):base(yyq){}}
1962 2383
1963public class ArgumentDeclarationList_4 : ArgumentDeclarationList {
1964 public ArgumentDeclarationList_4(Parser yyq):base(yyq){}}
1965
1966public class ArgumentList_4 : ArgumentList { 2384public class ArgumentList_4 : ArgumentList {
1967 public ArgumentList_4(Parser yyq):base(yyq){}} 2385 public ArgumentList_4(Parser yyq):base(yyq){}}
1968 2386
2387public class ArgumentDeclarationList_4 : ArgumentDeclarationList {
2388 public ArgumentDeclarationList_4(Parser yyq):base(yyq){}}
2389
1969public class ArgumentDeclarationList_5 : ArgumentDeclarationList { 2390public class ArgumentDeclarationList_5 : ArgumentDeclarationList {
1970 public ArgumentDeclarationList_5(Parser yyq):base(yyq){}} 2391 public ArgumentDeclarationList_5(Parser yyq):base(yyq){}}
1971public yyLSLSyntax 2392public yyLSLSyntax
@@ -1978,10 +2399,10 @@ public yyLSLSyntax
19780,103,0,114,0, 23990,103,0,114,0,
197997,0,109,0,82, 240097,0,109,0,82,
19800,111,0,111,0, 24010,111,0,111,0,
1981116,0,1,96,1, 2402116,0,1,97,1,
19822,104,18,1,2717, 24032,104,18,1,2845,
1983102,2,0,105,5, 2404102,2,0,105,5,
1984320,1,0,106,18, 2405395,1,0,106,18,
19851,0,0,2,0, 24061,0,0,2,0,
19861,1,107,18,1, 24071,1,107,18,1,
19871,108,20,109,4, 24081,108,20,109,4,
@@ -2042,12 +2463,12 @@ public yyLSLSyntax
2042121,0,112,0,101, 2463121,0,112,0,101,
20430,110,0,97,0, 24640,110,0,97,0,
2044109,0,101,0,1, 2465109,0,101,0,1,
2045106,1,2,2,0, 2466124,1,2,2,0,
20461,9,131,18,1, 24671,9,131,18,1,
20479,132,20,133,4, 24689,132,20,133,4,
204810,73,0,68,0, 246910,73,0,68,0,
204969,0,78,0,84, 247069,0,78,0,84,
20500,1,92,1,1, 24710,1,93,1,1,
20512,0,1,10,134, 24722,0,1,10,134,
205218,1,10,135,20, 247318,1,10,135,20,
2053136,4,20,76,0, 2474136,4,20,76,0,
@@ -2071,7 +2492,7 @@ public yyLSLSyntax
2071105,0,111,0,110, 2492105,0,111,0,110,
20720,76,0,105,0, 24930,76,0,105,0,
2073115,0,116,0,1, 2494115,0,116,0,1,
2074104,1,2,2,0, 2495112,1,2,2,0,
20751,21,142,18,1, 24961,21,142,18,1,
207621,143,20,144,4, 249721,143,20,144,4,
207710,67,0,79,0, 249810,67,0,79,0,
@@ -2086,222 +2507,310 @@ public yyLSLSyntax
20860,97,0,116,0, 25070,97,0,116,0,
2087101,0,109,0,101, 2508101,0,109,0,101,
20880,110,0,116,0, 25090,110,0,116,0,
20891,122,1,2,2, 25101,147,1,2,2,
20900,1,1695,148,18, 25110,1,1695,148,18,
20911,1695,143,2,0, 25121,1695,143,2,0,
20921,30,149,18,1, 25131,2811,149,18,1,
209330,150,20,151,4, 25142811,150,20,151,4,
209422,68,0,101,0, 251518,83,0,69,0,
209599,0,108,0,97, 251677,0,73,0,67,
20960,114,0,97,0, 25170,79,0,76,0,
2097116,0,105,0,111, 251879,0,78,0,1,
20980,110,0,1,105, 251911,1,1,2,0,
25201,2645,152,18,1,
25212645,153,20,154,4,
252232,73,0,110,0,
2523116,0,65,0,114,
25240,103,0,83,0,
2525116,0,97,0,116,
25260,101,0,69,0,
2527118,0,101,0,110,
25280,116,0,1,107,
20991,2,2,0,1, 25291,2,2,0,1,
210031,152,18,1,31, 25302646,155,18,1,2646,
2101153,20,154,4,22, 2531156,20,157,4,32,
210282,0,73,0,71, 253275,0,101,0,121,
21030,72,0,84,0, 25330,65,0,114,0,
210495,0,80,0,65, 2534103,0,83,0,116,
21050,82,0,69,0, 25350,97,0,116,0,
210678,0,1,17,1, 2536101,0,69,0,118,
21071,2,0,1,32,
2108155,18,1,32,156,
210920,157,4,20,76,
21100,69,0,70,0,
211184,0,95,0,66,
21120,82,0,65,0,
211367,0,69,0,1,
211412,1,1,2,0,
21151,1114,158,18,1,
21161114,132,2,0,1,
21171152,159,18,1,1152,
2118160,20,161,4,32,
211983,0,105,0,109,
21200,112,0,108,0,
2121101,0,65,0,115,
21220,115,0,105,0,
2123103,0,110,0,109,
21240,101,0,110,0, 25370,101,0,110,0,
2125116,0,1,113,1, 2538116,0,1,106,1,
21262,2,0,1,1117, 25392,2,0,1,30,
2127162,18,1,1117,163, 2540158,18,1,30,159,
212820,164,4,28,80, 254120,160,4,22,68,
21290,69,0,82,0, 25420,101,0,99,0,
213067,0,69,0,78, 2543108,0,97,0,114,
25440,97,0,116,0,
2545105,0,111,0,110,
25460,1,119,1,2,
25472,0,1,31,161,
254818,1,31,162,20,
2549163,4,22,82,0,
255073,0,71,0,72,
21310,84,0,95,0, 25510,84,0,95,0,
213269,0,81,0,85, 255280,0,65,0,82,
21330,65,0,76,0,
213483,0,1,10,1,
21351,2,0,1,40,
2136165,18,1,40,132,
21372,0,1,41,166,
213818,1,41,135,2,
21390,1,42,167,18,
21401,42,168,20,169,
21414,20,69,0,120,
21420,112,0,114,0,
2143101,0,115,0,115,
21440,105,0,111,0,
2145110,0,1,131,1,
21462,2,0,1,43,
2147170,18,1,43,171,
214820,172,4,22,82,
21490,73,0,71,0,
215072,0,84,0,95,
21510,83,0,72,0,
215273,0,70,0,84,
21530,1,41,1,1,
21542,0,1,44,173,
215518,1,44,132,2,
21560,1,1159,174,18,
21571,1159,168,2,0,
21581,46,175,18,1,
215946,176,20,177,4,
216012,80,0,69,0,
216182,0,73,0,79,
21620,68,0,1,24,
21631,1,2,0,1,
216447,178,18,1,47,
2165132,2,0,1,48,
2166179,18,1,48,180,
216720,181,4,18,68,
21680,69,0,67,0,
216982,0,69,0,77,
21700,69,0,78,0, 25530,69,0,78,0,
217184,0,1,5,1, 25541,17,1,1,2,
21721,2,0,1,49, 25550,1,32,164,18,
2173182,18,1,49,183, 25561,32,165,20,166,
217420,184,4,18,73, 25574,20,76,0,69,
21750,78,0,67,0, 25580,70,0,84,0,
217682,0,69,0,77, 255995,0,66,0,82,
25600,65,0,67,0,
256169,0,1,12,1,
25621,2,0,1,2650,
2563167,18,1,2650,168,
256420,169,4,44,75,
25650,101,0,121,0,
256673,0,110,0,116,
25670,73,0,110,0,
2568116,0,65,0,114,
25690,103,0,83,0,
2570116,0,97,0,116,
25710,101,0,69,0,
2572118,0,101,0,110,
25730,116,0,1,111,
25741,2,2,0,1,
25752651,170,18,1,2651,
2576171,20,172,4,44,
257773,0,110,0,116,
25780,86,0,101,0,
257999,0,86,0,101,
25800,99,0,65,0,
2581114,0,103,0,83,
25820,116,0,97,0,
2583116,0,101,0,69,
25840,118,0,101,0,
2585110,0,116,0,1,
2586110,1,2,2,0,
25871,1114,173,18,1,
25881114,132,2,0,1,
25892654,174,18,1,2654,
2590153,2,0,1,1152,
2591175,18,1,1152,176,
259220,177,4,32,83,
25930,105,0,109,0,
2594112,0,108,0,101,
25950,65,0,115,0,
2596115,0,105,0,103,
25970,110,0,109,0,
2598101,0,110,0,116,
25990,1,138,1,2,
26002,0,1,1117,178,
260118,1,1117,179,20,
2602180,4,28,80,0,
260369,0,82,0,67,
21770,69,0,78,0, 26040,69,0,78,0,
217884,0,1,4,1, 260584,0,95,0,69,
21791,2,0,1,50, 26060,81,0,85,0,
2180185,18,1,50,180, 260765,0,76,0,83,
21812,0,1,51,186, 26080,1,10,1,1,
218218,1,51,183,2, 26092,0,1,40,181,
21830,1,52,187,18, 261018,1,40,132,2,
21841,52,135,2,0, 26110,1,41,182,18,
21851,2281,188,18,1, 26121,41,135,2,0,
21862281,160,2,0,1, 26131,42,183,18,1,
21871730,189,18,1,1730, 261442,184,20,185,4,
2188160,2,0,1,1731, 261520,69,0,120,0,
2189190,18,1,1731,191, 2616112,0,114,0,101,
219020,192,4,18,83, 26170,115,0,115,0,
2618105,0,111,0,110,
26190,1,156,1,2,
26202,0,1,43,186,
262118,1,43,187,20,
2622188,4,22,82,0,
262373,0,71,0,72,
26240,84,0,95,0,
262583,0,72,0,73,
26260,70,0,84,0,
26271,41,1,1,2,
26280,1,44,189,18,
26291,44,132,2,0,
26301,1159,190,18,1,
26311159,184,2,0,1,
263246,191,18,1,46,
2633192,20,193,4,12,
263480,0,69,0,82,
26350,73,0,79,0,
263668,0,1,24,1,
26371,2,0,1,47,
2638194,18,1,47,132,
26392,0,1,48,195,
264018,1,48,196,20,
2641197,4,18,68,0,
264269,0,67,0,82,
21910,69,0,77,0, 26430,69,0,77,0,
219273,0,67,0,79, 264469,0,78,0,84,
21930,76,0,79,0, 26450,1,5,1,1,
219478,0,1,11,1, 26462,0,1,49,198,
21951,2,0,1,61, 264718,1,49,199,20,
2196193,18,1,61,129, 2648200,4,18,73,0,
21972,0,1,62,194, 264978,0,67,0,82,
219818,1,62,153,2, 26500,69,0,77,0,
21990,1,63,195,18, 265169,0,78,0,84,
22001,63,132,2,0, 26520,1,4,1,1,
22011,65,196,18,1, 26532,0,1,50,201,
220265,176,2,0,1, 265418,1,50,196,2,
220366,197,18,1,66, 26550,1,51,202,18,
2204132,2,0,1,67, 26561,51,199,2,0,
2205198,18,1,67,180, 26571,52,203,18,1,
22062,0,1,68,199, 265852,135,2,0,1,
220718,1,68,183,2, 26592281,204,18,1,2281,
22080,1,69,200,18, 2660176,2,0,1,2841,
22091,69,180,2,0, 2661205,18,1,2841,206,
22101,70,201,18,1, 266220,207,4,48,71,
221170,183,2,0,1, 26630,108,0,111,0,
221271,202,18,1,71, 266498,0,97,0,108,
2213135,2,0,1,73, 26650,70,0,117,0,
2214203,18,1,73,168, 2666110,0,99,0,116,
22152,0,1,74,204, 26670,105,0,111,0,
221618,1,74,153,2, 2668110,0,68,0,101,
22170,1,1189,205,18, 26690,102,0,105,0,
22181,1189,206,20,207, 2670110,0,105,0,116,
22194,22,83,0,84, 26710,105,0,111,0,
22200,65,0,82,0, 2672110,0,1,100,1,
222195,0,69,0,81, 26732,2,0,1,2842,
22220,85,0,65,0, 2674208,18,1,2842,209,
222376,0,83,0,1, 267520,210,4,50,71,
22248,1,1,2,0, 26760,108,0,111,0,
22251,76,208,18,1, 267798,0,97,0,108,
222676,209,20,210,4, 26780,86,0,97,0,
222720,76,0,69,0, 2679114,0,105,0,97,
222870,0,84,0,95, 26800,98,0,108,0,
22290,83,0,72,0, 2681101,0,68,0,101,
223073,0,70,0,84, 26820,99,0,108,0,
22310,1,40,1,1, 268397,0,114,0,97,
22322,0,1,1153,211, 26840,116,0,105,0,
223318,1,1153,212,20, 2685111,0,110,0,1,
2234213,4,24,83,0, 268699,1,2,2,0,
223576,0,65,0,83, 26871,2755,211,18,1,
22360,72,0,95,0, 26882755,212,20,213,4,
223769,0,81,0,85, 268922,82,0,73,0,
22380,65,0,76,0, 269071,0,72,0,84,
223983,0,1,9,1, 26910,95,0,66,0,
22401,2,0,1,79, 269282,0,65,0,67,
2241214,18,1,79,215, 26930,69,0,1,13,
224220,216,4,10,84, 26941,1,2,0,1,
22430,73,0,76,0, 26951730,214,18,1,1730,
224468,0,69,0,1, 2696176,2,0,1,1731,
224536,1,1,2,0, 2697215,18,1,1731,150,
22461,1195,217,18,1, 26982,0,1,61,216,
22471195,168,2,0,1, 269918,1,61,129,2,
224882,218,18,1,82, 27000,1,62,217,18,
2249168,2,0,1,1123, 27011,62,162,2,0,
2250219,18,1,1123,168, 27021,63,218,18,1,
22512,0,1,85,220, 270363,132,2,0,1,
225218,1,85,221,20, 270465,219,18,1,65,
2253222,4,26,83,0, 2705192,2,0,1,66,
225484,0,82,0,79, 2706220,18,1,66,132,
22550,75,0,69,0, 27072,0,1,67,221,
225695,0,83,0,84, 270818,1,67,196,2,
27090,1,68,222,18,
27101,68,199,2,0,
27111,69,223,18,1,
271269,196,2,0,1,
271370,224,18,1,70,
2714199,2,0,1,71,
2715225,18,1,71,135,
27162,0,1,73,226,
271718,1,73,184,2,
27180,1,74,227,18,
27191,74,162,2,0,
27201,1189,228,18,1,
27211189,229,20,230,4,
272222,83,0,84,0,
272365,0,82,0,95,
27240,69,0,81,0,
272585,0,65,0,76,
27260,83,0,1,8,
27271,1,2,0,1,
272876,231,18,1,76,
2729232,20,233,4,20,
273076,0,69,0,70,
27310,84,0,95,0,
273283,0,72,0,73,
27330,70,0,84,0,
27341,40,1,1,2,
27350,1,1153,234,18,
27361,1153,235,20,236,
27374,24,83,0,76,
27380,65,0,83,0,
273972,0,95,0,69,
27400,81,0,85,0,
274165,0,76,0,83,
27420,1,9,1,1,
27432,0,1,79,237,
274418,1,79,238,20,
2745239,4,10,84,0,
274673,0,76,0,68,
27470,69,0,1,36,
27481,1,2,0,1,
27491195,240,18,1,1195,
2750184,2,0,1,82,
2751241,18,1,82,184,
27522,0,1,1123,242,
275318,1,1123,184,2,
27540,1,85,243,18,
27551,85,244,20,245,
27564,26,83,0,84,
22570,82,0,79,0, 27570,82,0,79,0,
225875,0,69,0,1, 275875,0,69,0,95,
225939,1,1,2,0, 27590,83,0,84,0,
22601,89,223,18,1, 276082,0,79,0,75,
226189,224,20,225,4, 27610,69,0,1,39,
226210,77,0,73,0, 27621,1,2,0,1,
226378,0,85,0,83, 27632547,246,18,1,2547,
22640,1,19,1,1, 2764247,20,248,4,28,
22652,0,1,2318,226, 276582,0,111,0,116,
226618,1,2318,191,2, 27660,68,0,101,0,
22670,1,93,227,18, 276799,0,108,0,97,
22681,93,168,2,0, 27680,114,0,97,0,
22691,97,228,18,1, 2769116,0,105,0,111,
227097,229,20,230,4, 27700,110,0,1,123,
227114,65,0,77,0, 27711,2,2,0,1,
227280,0,95,0,65, 277289,249,18,1,89,
2773250,20,251,4,10,
277477,0,73,0,78,
27750,85,0,83,0,
27761,19,1,1,2,
27770,1,2318,252,18,
27781,2318,150,2,0,
27791,93,253,18,1,
278093,184,2,0,1,
27812792,254,18,1,2792,
2782184,2,0,1,97,
2783255,18,1,97,256,
278420,257,4,14,65,
22730,77,0,80,0, 27850,77,0,80,0,
22741,38,1,1,2, 278695,0,65,0,77,
22750,1,102,231,18, 27870,80,0,1,38,
22761,102,232,20,233, 27881,1,2,0,1,
22774,22,69,0,88, 2789102,258,18,1,102,
22780,67,0,76,0, 2790259,20,260,4,22,
227965,0,77,0,65, 279169,0,88,0,67,
22800,84,0,73,0, 27920,76,0,65,0,
228179,0,78,0,1, 279377,0,65,0,84,
228237,1,1,2,0, 27940,73,0,79,0,
22831,1775,234,18,1, 279578,0,1,37,1,
22841775,153,2,0,1, 27961,2,0,1,1775,
22852718,235,18,1,2718, 2797261,18,1,1775,162,
2286236,23,237,4,6, 27982,0,1,107,262,
228769,0,79,0,70, 279918,1,107,184,2,
22880,1,2,1,6, 28000,1,2337,263,18,
22892,0,1,107,238, 28011,2337,162,2,0,
229018,1,107,168,2, 28021,1224,264,18,1,
22910,1,2337,239,18, 28031224,176,2,0,1,
22921,2337,153,2,0, 28041225,265,18,1,1225,
22931,1224,240,18,1, 2805266,20,267,4,24,
22941224,160,2,0,1,
22951225,241,18,1,1225,
2296242,20,243,4,24,
229777,0,73,0,78, 280677,0,73,0,78,
22980,85,0,83,0, 28070,85,0,83,0,
229995,0,69,0,81, 280895,0,69,0,81,
23000,85,0,65,0, 28090,85,0,65,0,
230176,0,83,0,1, 281076,0,83,0,1,
23027,1,1,2,0, 28117,1,1,2,0,
23031,112,244,18,1, 28121,112,268,18,1,
2304112,245,20,246,4, 2813112,269,20,270,4,
230528,71,0,82,0, 281428,71,0,82,0,
230669,0,65,0,84, 281569,0,65,0,84,
23070,69,0,82,0, 28160,69,0,82,0,
@@ -2309,576 +2818,496 @@ public yyLSLSyntax
23090,85,0,65,0, 28180,85,0,65,0,
231076,0,83,0,1, 281976,0,83,0,1,
231132,1,1,2,0, 282032,1,1,2,0,
23121,1188,247,18,1, 28211,1188,271,18,1,
23131188,160,2,0,1, 28221188,176,2,0,1,
23141231,248,18,1,1231, 28231231,272,18,1,1231,
2315168,2,0,1,118, 2824184,2,0,1,118,
2316249,18,1,118,168, 2825273,18,1,118,184,
23172,0,1,1737,250, 28262,0,1,1737,274,
231818,1,1737,168,2, 282718,1,1737,184,2,
23190,1,124,251,18, 28280,1,124,275,18,
23201,124,252,20,253, 28291,124,276,20,277,
23214,22,76,0,69, 28304,22,76,0,69,
23220,83,0,83,0, 28310,83,0,83,0,
232395,0,69,0,81, 283295,0,69,0,81,
23240,85,0,65,0, 28330,85,0,65,0,
232576,0,83,0,1, 283476,0,83,0,1,
232631,1,1,2,0, 283531,1,1,2,0,
23271,2657,254,18,1, 28361,2657,278,18,1,
23282657,150,2,0,1, 28372657,279,20,280,4,
23292658,255,18,1,2658, 283820,83,0,116,0,
2330256,20,257,4,12, 283997,0,116,0,101,
233169,0,81,0,85, 28400,69,0,118,0,
23320,65,0,76,0, 2841101,0,110,0,116,
233383,0,1,15,1, 28420,1,104,1,2,
23341,2,0,1,130, 28432,0,1,2658,281,
2335258,18,1,130,168, 284418,1,2658,282,20,
23362,0,1,1803,259, 2845283,4,26,68,0,
233718,1,1803,260,20, 284669,0,70,0,65,
2338261,4,18,83,0, 28470,85,0,76,0,
284884,0,95,0,83,
28490,84,0,65,0,
285084,0,69,0,1,
285147,1,1,2,0,
28521,2659,284,18,1,
28532659,165,2,0,1,
2854130,285,18,1,130,
2855184,2,0,1,2843,
2856286,18,1,2843,206,
28572,0,1,1803,287,
285818,1,1803,288,20,
2859289,4,18,83,0,
2339116,0,97,0,116, 2860116,0,97,0,116,
23400,101,0,109,0, 28610,101,0,109,0,
2341101,0,110,0,116, 2862101,0,110,0,116,
23420,1,110,1,2, 28630,1,135,1,2,
23432,0,1,1804,262, 28642,0,1,1804,290,
234418,1,1804,263,20, 286518,1,1804,291,20,
2345264,4,4,68,0, 2866292,4,4,68,0,
234679,0,1,44,1, 286779,0,1,44,1,
23471,2,0,1,2364, 28681,2,0,1,2591,
2348265,18,1,2364,260, 2869293,18,1,2591,140,
23492,0,1,137,266, 28702,0,1,2364,294,
235018,1,137,267,20, 287118,1,2364,288,2,
2351268,4,36,69,0, 28720,1,137,295,18,
235288,0,67,0,76, 28731,137,296,20,297,
23530,65,0,77,0, 28744,36,69,0,88,
235465,0,84,0,73, 28750,67,0,76,0,
23550,79,0,78,0, 287665,0,77,0,65,
28770,84,0,73,0,
287879,0,78,0,95,
28790,69,0,81,0,
288085,0,65,0,76,
28810,83,0,1,30,
28821,1,2,0,1,
28832293,298,18,1,2293,
2884150,2,0,1,2834,
2885299,18,1,2834,300,
288620,301,4,12,83,
28870,116,0,97,0,
2888116,0,101,0,115,
28890,1,101,1,2,
28902,0,1,1701,302,
289118,1,1701,184,2,
28920,1,1756,303,18,
28931,1756,150,2,0,
28941,2527,304,18,1,
28952527,114,2,0,1,
2896143,305,18,1,143,
2897184,2,0,1,2299,
2898306,18,1,2299,184,
28992,0,1,1260,307,
290018,1,1260,176,2,
29010,1,1261,308,18,
29021,1261,309,20,310,
29034,22,80,0,76,
29040,85,0,83,0,
235695,0,69,0,81, 290595,0,69,0,81,
23570,85,0,65,0, 29060,85,0,65,0,
235876,0,83,0,1, 290776,0,83,0,1,
235930,1,1,2,0, 29086,1,1,2,0,
23601,2293,269,18,1, 29091,2528,311,18,1,
23612293,191,2,0,1, 29102528,132,2,0,1,
23621701,270,18,1,1701, 29112844,312,18,1,2844,
2363168,2,0,1,1756, 2912209,2,0,1,2845,
2364271,18,1,1756,191, 2913104,1,151,313,18,
23652,0,1,143,272, 29141,151,314,20,315,
236618,1,143,168,2, 29154,26,69,0,81,
23670,1,2299,273,18, 29160,85,0,65,0,
23681,2299,168,2,0, 291776,0,83,0,95,
23691,1260,274,18,1, 29180,69,0,81,0,
23701260,160,2,0,1, 291985,0,65,0,76,
23711261,275,18,1,1261, 29200,83,0,1,29,
2372276,20,277,4,22, 29211,1,2,0,1,
237380,0,76,0,85, 29221267,316,18,1,1267,
23740,83,0,95,0, 2923184,2,0,1,157,
237569,0,81,0,85, 2924317,18,1,157,184,
23760,65,0,76,0, 29252,0,1,2767,318,
237783,0,1,6,1, 292618,1,2767,319,20,
23781,2,0,1,151, 2927320,4,10,83,0,
2379278,18,1,151,279, 2928116,0,97,0,116,
238020,280,4,26,69, 29290,101,0,1,102,
23810,81,0,85,0, 29301,2,2,0,1,
238265,0,76,0,83, 29311773,321,18,1,1773,
23830,95,0,69,0,
238481,0,85,0,65,
23850,76,0,83,0,
23861,29,1,1,2,
23870,1,1267,281,18,
23881,1267,168,2,0,
23891,157,282,18,1,
2390157,168,2,0,1,
23911773,283,18,1,1773,
2392146,2,0,1,1832, 2932146,2,0,1,1832,
2393284,18,1,1832,260, 2933322,18,1,1832,288,
23942,0,1,1833,285, 29342,0,1,1833,323,
239518,1,1833,286,20, 293518,1,1833,324,20,
2396287,4,10,87,0, 2936325,4,10,87,0,
239772,0,73,0,76, 293772,0,73,0,76,
23980,69,0,1,45, 29380,69,0,1,45,
23991,1,2,0,1, 29391,1,2,0,1,
24001834,288,18,1,1834, 29401834,326,18,1,1834,
2401135,2,0,1,166, 2941135,2,0,1,166,
2402289,18,1,166,290, 2942327,18,1,166,328,
240320,291,4,20,76, 294320,329,4,20,76,
24040,69,0,70,0, 29440,69,0,70,0,
240584,0,95,0,65, 294584,0,95,0,65,
24060,78,0,71,0, 29460,78,0,71,0,
240776,0,69,0,1, 294776,0,69,0,1,
240825,1,1,2,0, 294825,1,1,2,0,
24091,1840,292,18,1, 29491,1840,330,18,1,
24101840,168,2,0,1, 29501840,184,2,0,1,
2411172,293,18,1,172, 29512779,331,18,1,2779,
2412168,2,0,1,2706, 2952140,2,0,1,172,
2413294,18,1,2706,295, 2953332,18,1,172,184,
241420,296,4,12,83, 29542,0,1,2785,333,
24150,116,0,97,0, 295518,1,2785,159,2,
2416116,0,101,0,115, 29560,1,2786,334,18,
24170,1,100,1,2, 29571,2786,335,20,336,
24182,0,1,2335,297, 29584,12,69,0,81,
241918,1,2335,146,2, 29590,85,0,65,0,
24200,1,1296,298,18, 296076,0,83,0,1,
24211,1296,160,2,0, 296115,1,1,2,0,
24221,1297,299,18,1, 29621,2335,337,18,1,
24231297,256,2,0,1, 29632335,146,2,0,1,
24242413,300,18,1,2413, 29641296,338,18,1,1296,
2425301,20,302,4,26, 2965176,2,0,1,1297,
242683,0,116,0,97, 2966339,18,1,1297,335,
24270,116,0,101,0, 29672,0,1,2413,340,
2428109,0,101,0,110, 296818,1,2413,341,20,
24290,116,0,76,0, 2969342,4,26,83,0,
2430105,0,115,0,116, 2970116,0,97,0,116,
24310,1,109,1,2, 29710,101,0,109,0,
24322,0,1,1859,303, 2972101,0,110,0,116,
243318,1,1859,153,2, 29730,76,0,105,0,
24340,1,1860,304,18, 2974115,0,116,0,1,
24351,1860,191,2,0, 2975134,1,2,2,0,
24361,188,305,18,1, 29761,1859,343,18,1,
2437188,168,2,0,1, 29771859,162,2,0,1,
2438182,306,18,1,182, 29781860,344,18,1,1860,
2439307,20,308,4,22, 2979150,2,0,1,188,
244082,0,73,0,71, 2980345,18,1,188,184,
24410,72,0,84,0, 29812,0,1,182,346,
244295,0,65,0,78, 298218,1,182,347,20,
24430,71,0,76,0, 2983348,4,22,82,0,
244469,0,1,26,1, 298473,0,71,0,72,
24451,2,0,1,199, 29850,84,0,95,0,
2446309,18,1,199,310, 298665,0,78,0,71,
244720,311,4,10,67, 29870,76,0,69,0,
24480,65,0,82,0, 29881,26,1,1,2,
244969,0,84,0,1, 29890,1,199,349,18,
245035,1,1,2,0, 29901,199,350,20,351,
24511,1871,312,18,1, 29914,10,67,0,65,
24521871,160,2,0,1, 29920,82,0,69,0,
24531872,313,18,1,1872, 299384,0,1,35,1,
2454153,2,0,1,1873, 29941,2,0,1,1871,
2455314,18,1,1873,191, 2995352,18,1,1871,176,
24562,0,1,1875,315, 29962,0,1,1872,353,
245718,1,1875,286,2, 299718,1,1872,162,2,
24580,1,205,316,18, 29980,1,1873,354,18,
24591,205,168,2,0, 29991,1873,150,2,0,
24601,2515,317,18,1, 30001,1875,355,18,1,
24612515,140,2,0,1, 30011875,324,2,0,1,
24621882,318,18,1,1882, 3002205,356,18,1,205,
2463168,2,0,1,2227, 3003184,2,0,1,2581,
2464319,18,1,2227,260, 3004357,18,1,2581,358,
24652,0,1,217,320, 300520,359,4,10,69,
246618,1,217,321,20, 30060,118,0,101,0,
2467322,4,12,83,0, 3007110,0,116,0,1,
3008125,1,2,2,0,
30091,2515,360,18,1,
30102515,143,2,0,1,
30111882,361,18,1,1882,
3012184,2,0,1,2227,
3013362,18,1,2227,288,
30142,0,1,217,363,
301518,1,217,364,20,
3016365,4,12,83,0,
246884,0,82,0,79, 301784,0,82,0,79,
24690,75,0,69,0, 30180,75,0,69,0,
24701,34,1,1,2, 30191,34,1,1,2,
24710,1,1332,323,18, 30200,1,1332,366,18,
24721,1332,160,2,0, 30211,1332,176,2,0,
24731,1335,324,18,1, 30221,1335,367,18,1,
24741335,163,2,0,1, 30231335,179,2,0,1,
2475223,325,18,1,223, 3024223,368,18,1,223,
2476168,2,0,1,1341, 3025184,2,0,1,2846,
2477326,18,1,1341,168, 3026369,18,1,2846,370,
24782,0,1,1901,327, 302723,371,4,6,69,
247918,1,1901,153,2, 30280,79,0,70,0,
24800,1,1303,328,18, 30291,2,1,6,2,
24811,1303,168,2,0, 30300,1,1341,372,18,
24821,2462,329,18,1, 30311,1341,184,2,0,
24832462,260,2,0,1, 30321,1901,373,18,1,
2484236,330,18,1,236, 30331901,162,2,0,1,
2485331,20,332,4,6, 30341303,374,18,1,1303,
248665,0,77,0,80, 3035184,2,0,1,2462,
24870,1,33,1,1, 3036375,18,1,2462,288,
24882,0,1,2466,333, 30372,0,1,236,376,
248918,1,2466,334,20, 303818,1,236,377,20,
2490335,4,34,67,0, 3039378,4,6,65,0,
2491111,0,109,0,112, 304077,0,80,0,1,
24920,111,0,117,0, 304133,1,1,2,0,
2493110,0,100,0,83, 30421,2466,379,18,1,
24940,116,0,97,0, 30432466,380,20,381,4,
2495116,0,101,0,109, 304434,67,0,111,0,
24960,101,0,110,0, 3045109,0,112,0,111,
2497116,0,1,108,1, 30460,117,0,110,0,
24982,2,0,1,2467, 3047100,0,83,0,116,
2499336,18,1,2467,150, 30480,97,0,116,0,
25002,0,1,2468,337, 3049101,0,109,0,101,
250118,1,2468,338,20, 30500,110,0,116,0,
2502339,4,10,83,0, 30511,133,1,2,2,
250384,0,65,0,84, 30520,1,2467,382,18,
25040,69,0,1,48, 30531,2467,159,2,0,
25051,1,2,0,1, 30541,2468,383,18,1,
25062469,340,18,1,2469, 30552468,384,20,385,4,
2507132,2,0,1,242, 305610,83,0,84,0,
2508341,18,1,242,168, 305765,0,84,0,69,
25092,0,1,2471,342, 30580,1,48,1,1,
251018,1,2471,343,20, 30592,0,1,2469,386,
2511344,4,36,72,0, 306018,1,2469,132,2,
251284,0,84,0,80, 30610,1,242,387,18,
25130,95,0,82,0, 30621,242,184,2,0,
251469,0,81,0,85, 30631,2471,388,18,1,
25150,69,0,83,0, 30642471,389,20,390,4,
306526,67,0,79,0,
306678,0,84,0,82,
30670,79,0,76,0,
306895,0,69,0,86,
30690,69,0,78,0,
307084,0,1,65,1,
30711,2,0,1,2472,
3072391,18,1,2472,392,
307320,393,4,30,65,
30740,84,0,95,0,
307584,0,65,0,82,
30760,71,0,69,0,
251684,0,95,0,69, 307784,0,95,0,69,
25170,86,0,69,0, 30780,86,0,69,0,
251878,0,84,0,1, 307978,0,84,0,1,
251991,1,1,2,0, 308059,1,1,2,0,
25201,2472,345,18,1, 30811,2473,394,18,1,
25212472,346,20,347,4, 30822473,395,20,396,4,
252234,84,0,79,0, 308338,65,0,84,0,
252385,0,67,0,72, 308495,0,82,0,79,
25240,95,0,83,0,
252584,0,65,0,82,
25260,84,0,95,0, 30850,84,0,95,0,
252769,0,86,0,69, 308684,0,65,0,82,
25280,78,0,84,0, 30870,71,0,69,0,
25291,89,1,1,2,
25300,1,2473,348,18,
25311,2473,349,20,350,
25324,30,84,0,79,
25330,85,0,67,0,
253472,0,95,0,69,
25350,78,0,68,0,
253695,0,69,0,86,
25370,69,0,78,0,
253884,0,1,90,1,
25391,2,0,1,2474,
2540351,18,1,2474,352,
254120,353,4,22,84,
25420,79,0,85,0,
254367,0,72,0,95,
25440,69,0,86,0,
254569,0,78,0,84,
25460,1,88,1,1,
25472,0,1,2475,354,
254818,1,2475,355,20,
2549356,4,22,84,0,
255073,0,77,0,69,
25510,82,0,95,0,
255269,0,86,0,69,
25530,78,0,84,0,
25541,87,1,1,2,
25550,1,2476,357,18,
25561,2476,358,20,359,
25574,32,83,0,84,
25580,65,0,84,0,
255969,0,95,0,69,
25600,88,0,73,0,
256184,0,95,0,69, 308884,0,95,0,69,
25620,86,0,69,0, 30890,86,0,69,0,
256378,0,84,0,1, 309078,0,84,0,1,
256486,1,1,2,0, 309158,1,1,2,0,
25651,2477,360,18,1, 30921,2474,397,18,1,
25662477,361,20,362,4, 30932474,398,20,399,4,
256734,83,0,84,0, 309452,76,0,65,0,
256865,0,84,0,69, 309578,0,68,0,95,
30960,67,0,79,0,
309776,0,76,0,73,
30980,83,0,73,0,
309979,0,78,0,95,
31000,83,0,84,0,
310165,0,82,0,84,
25690,95,0,69,0, 31020,95,0,69,0,
257078,0,84,0,82, 310386,0,69,0,78,
25710,89,0,95,0, 31040,84,0,1,71,
257269,0,86,0,69, 31051,1,2,0,1,
25730,78,0,84,0, 31062475,400,18,1,2475,
25741,85,1,1,2, 3107401,20,402,4,48,
25750,1,2478,363,18, 310876,0,65,0,78,
25761,2478,364,20,365, 31090,68,0,95,0,
25774,24,83,0,69, 311067,0,79,0,76,
25780,78,0,83,0, 31110,76,0,73,0,
257979,0,82,0,95, 311283,0,73,0,79,
25800,69,0,86,0, 31130,78,0,95,0,
258169,0,78,0,84, 311469,0,78,0,68,
25820,1,84,1,1, 31150,95,0,69,0,
25832,0,1,2479,366, 311686,0,69,0,78,
258418,1,2479,367,20, 31170,84,0,1,70,
2585368,4,52,82,0, 31181,1,2,0,1,
258685,0,78,0,95, 31192476,403,18,1,2476,
25870,84,0,73,0, 3120404,20,405,4,40,
258877,0,69,0,95, 312176,0,65,0,78,
25890,80,0,69,0, 31220,68,0,95,0,
259082,0,77,0,73, 312367,0,79,0,76,
25910,83,0,83,0, 31240,76,0,73,0,
259273,0,79,0,78, 312583,0,73,0,79,
25930,83,0,95,0, 31260,78,0,95,0,
259469,0,86,0,69, 312769,0,86,0,69,
25950,78,0,84,0, 31280,78,0,84,0,
25961,83,1,1,2, 31291,69,1,1,2,
25970,1,2480,369,18, 31300,1,2477,406,18,
25981,2480,370,20,371, 31311,2477,407,20,408,
25994,34,82,0,69, 31324,34,84,0,79,
26000,77,0,79,0, 31330,85,0,67,0,
260184,0,69,0,95, 313472,0,95,0,83,
26020,68,0,65,0, 31350,84,0,65,0,
260384,0,65,0,95, 313682,0,84,0,95,
26040,69,0,86,0, 31370,69,0,86,0,
260569,0,78,0,84, 313869,0,78,0,84,
26060,1,82,1,1, 31390,1,89,1,1,
26072,0,1,2481,372, 31402,0,1,2478,409,
260818,1,2481,373,20, 314118,1,2478,410,20,
2609374,4,24,79,0, 3142411,4,30,84,0,
261078,0,95,0,82, 314379,0,85,0,67,
26110,69,0,90,0, 31440,72,0,95,0,
314569,0,78,0,68,
31460,95,0,69,0,
314786,0,69,0,78,
31480,84,0,1,90,
31491,1,2,0,1,
31502479,412,18,1,2479,
3151413,20,414,4,22,
315284,0,79,0,85,
31530,67,0,72,0,
261295,0,69,0,86, 315495,0,69,0,86,
26130,69,0,78,0, 31550,69,0,78,0,
261484,0,1,81,1, 315684,0,1,88,1,
26151,2,0,1,2482, 31571,2,0,1,2480,
2616375,18,1,2482,376, 3158415,18,1,2480,416,
261720,377,4,32,79, 315920,417,4,24,83,
26180,66,0,74,0,
261969,0,67,0,84,
26200,95,0,82,0,
262169,0,90,0,95,
26220,69,0,86,0,
262369,0,78,0,84,
26240,1,80,1,1,
26252,0,1,2483,378,
262618,1,2483,379,20,
2627380,4,38,78,0,
262879,0,84,0,95,
26290,65,0,84,0,
263095,0,84,0,65,
26310,82,0,71,0,
263269,0,84,0,95,
26330,69,0,86,0,
263469,0,78,0,84,
26350,1,79,1,1,
26362,0,1,256,381,
263718,1,256,382,20,
2638383,4,14,80,0,
263969,0,82,0,67,
26400,69,0,78,0, 31600,69,0,78,0,
264184,0,1,22,1, 316183,0,79,0,82,
26421,2,0,1,1371,
2643384,18,1,1371,212,
26442,0,1,2486,385,
264518,1,2486,386,20,
2646387,4,36,77,0,
264779,0,86,0,73,
26480,78,0,71,0,
264995,0,83,0,84,
26500,65,0,82,0,
265184,0,95,0,69,
26520,86,0,69,0,
265378,0,84,0,1,
265476,1,1,2,0,
26551,2487,388,18,1,
26562487,389,20,390,4,
265732,77,0,79,0,
265886,0,73,0,78,
26590,71,0,95,0,
266069,0,78,0,68,
26610,95,0,69,0, 31620,95,0,69,0,
266286,0,69,0,78, 316386,0,69,0,78,
26630,84,0,1,75, 31640,84,0,1,84,
26641,1,2,0,1,
26651931,391,18,1,1931,
2666260,2,0,1,1932,
2667392,18,1,1932,393,
266820,394,4,4,73,
26690,70,0,1,42,
26701,1,2,0,1, 31651,1,2,0,1,
2671262,395,18,1,262, 31662481,418,18,1,2481,
2672168,2,0,1,1377, 3167419,20,420,4,52,
2673396,18,1,1377,168, 316882,0,85,0,78,
26742,0,1,2492,397, 31690,95,0,84,0,
267518,1,2492,398,20, 317073,0,77,0,69,
2676399,4,48,76,0, 31710,95,0,80,0,
267765,0,78,0,68, 317269,0,82,0,77,
26780,95,0,67,0,
267979,0,76,0,76,
26800,73,0,83,0, 31730,73,0,83,0,
268173,0,79,0,78, 317483,0,73,0,79,
31750,78,0,83,0,
317695,0,69,0,86,
31770,69,0,78,0,
317884,0,1,83,1,
31791,2,0,1,2482,
3180421,18,1,2482,422,
318120,423,4,24,79,
31820,78,0,95,0,
318382,0,69,0,90,
26820,95,0,69,0, 31840,95,0,69,0,
268378,0,68,0,95, 318586,0,69,0,78,
26840,69,0,86,0, 31860,84,0,1,81,
268569,0,78,0,84, 31871,1,2,0,1,
26860,1,70,1,1, 31882483,424,18,1,2483,
26872,0,1,1876,400, 3189425,20,426,4,42,
268818,1,1876,135,2, 319067,0,79,0,76,
26890,1,2494,401,18, 31910,76,0,73,0,
26901,2494,402,20,403, 319283,0,73,0,79,
26914,38,72,0,84, 31930,78,0,95,0,
26920,84,0,80,0, 319483,0,84,0,65,
269395,0,82,0,69, 31950,82,0,84,0,
26940,83,0,80,0,
269579,0,78,0,83,
26960,69,0,95,0,
269769,0,86,0,69,
26980,78,0,84,0,
26991,68,1,1,2,
27000,1,2495,404,18,
27011,2495,405,20,406,
27024,22,69,0,77,
27030,65,0,73,0,
270476,0,95,0,69,
27050,86,0,69,0,
270678,0,84,0,1,
270767,1,1,2,0,
27081,1939,407,18,1,
27091939,168,2,0,1,
27102497,408,18,1,2497,
2711409,20,410,4,26,
271267,0,79,0,78,
27130,84,0,82,0,
271479,0,76,0,95,
27150,69,0,86,0,
271669,0,78,0,84,
27170,1,65,1,1,
27182,0,1,827,411,
271918,1,827,168,2,
27200,1,2499,412,18,
27211,2499,413,20,414,
27224,38,67,0,79,
27230,76,0,76,0,
272473,0,83,0,73,
27250,79,0,78,0,
272695,0,69,0,78,
27270,68,0,95,0,
272869,0,86,0,69,
27290,78,0,84,0,
27301,63,1,1,2,
27310,1,2500,415,18,
27321,2500,416,20,417,
27334,30,67,0,79,
27340,76,0,76,0,
273573,0,83,0,73,
27360,79,0,78,0,
273795,0,69,0,86, 319695,0,69,0,86,
27380,69,0,78,0, 31970,69,0,78,0,
273984,0,1,62,1, 319884,0,1,64,1,
27401,2,0,1,2501, 31991,2,0,1,256,
2741418,18,1,2501,419, 3200427,18,1,256,428,
274220,420,4,26,67, 320120,429,4,14,80,
32020,69,0,82,0,
320367,0,69,0,78,
32040,84,0,1,22,
32051,1,2,0,1,
32061371,430,18,1,1371,
3207235,2,0,1,2486,
3208431,18,1,2486,432,
320920,433,4,26,67,
27430,72,0,65,0, 32100,72,0,65,0,
274478,0,71,0,69, 321178,0,71,0,69,
27450,68,0,95,0, 32120,68,0,95,0,
274669,0,86,0,69, 321369,0,86,0,69,
27470,78,0,84,0, 32140,78,0,84,0,
27481,61,1,1,2, 32151,61,1,1,2,
27490,1,2502,421,18, 32160,1,2487,434,18,
27501,2502,422,20,423, 32171,2487,435,20,436,
27514,24,65,0,84, 32184,32,79,0,66,
32190,74,0,69,0,
322067,0,84,0,95,
32210,82,0,69,0,
322290,0,95,0,69,
32230,86,0,69,0,
322478,0,84,0,1,
322580,1,1,2,0,
32261,1931,437,18,1,
32271931,288,2,0,1,
32281932,438,18,1,1932,
3229439,20,440,4,4,
323073,0,70,0,1,
323142,1,1,2,0,
32321,262,441,18,1,
3233262,184,2,0,1,
32341377,442,18,1,1377,
3235184,2,0,1,2492,
3236443,18,1,2492,444,
323720,445,4,30,78,
32380,79,0,95,0,
323983,0,69,0,78,
32400,83,0,79,0,
324182,0,95,0,69,
32420,86,0,69,0,
324378,0,84,0,1,
324477,1,1,2,0,
32451,1876,446,18,1,
32461876,135,2,0,1,
32472494,447,18,1,2494,
3248448,20,449,4,32,
324977,0,79,0,86,
32500,73,0,78,0,
325171,0,95,0,69,
32520,78,0,68,0,
325395,0,69,0,86,
32540,69,0,78,0,
325584,0,1,75,1,
32561,2,0,1,2495,
3257450,18,1,2495,451,
325820,452,4,32,83,
27520,84,0,65,0, 32590,84,0,65,0,
275367,0,72,0,95, 326084,0,69,0,95,
32610,69,0,88,0,
326273,0,84,0,95,
27540,69,0,86,0, 32630,69,0,86,0,
275569,0,78,0,84, 326469,0,78,0,84,
27560,1,60,1,1, 32650,1,86,1,1,
27572,0,1,2503,424, 32662,0,1,1939,453,
275818,1,2503,425,20, 326718,1,1939,184,2,
2759426,4,30,65,0, 32680,1,2497,454,18,
276084,0,95,0,84, 32691,2497,455,20,456,
27610,65,0,82,0, 32704,48,84,0,82,
276271,0,69,0,84, 32710,65,0,78,0,
27630,95,0,69,0, 327283,0,65,0,67,
276486,0,69,0,78, 32730,84,0,73,0,
27650,84,0,1,59, 327479,0,78,0,95,
27661,1,2,0,1, 32750,82,0,69,0,
27672504,427,18,1,2504, 327683,0,85,0,76,
2768428,20,429,4,38,
276965,0,84,0,95,
27700,82,0,79,0,
277184,0,95,0,84,
27720,65,0,82,0,
277371,0,69,0,84,
27740,95,0,69,0,
277586,0,69,0,78,
27760,84,0,1,58,
27771,1,2,0,1,
2778277,430,18,1,277,
2779431,20,432,4,10,
278083,0,76,0,65,
27810,83,0,72,0,
27821,21,1,1,2,
27830,1,2506,433,18,
27841,2506,135,2,0,
27851,283,434,18,1,
2786283,168,2,0,1,
27871958,435,18,1,1958,
2788153,2,0,1,2517,
2789436,18,1,2517,153,
27902,0,1,2519,437,
279118,1,2519,334,2,
27920,1,1406,438,18,
27931,1406,160,2,0,
27941,1407,439,18,1,
27951407,206,2,0,1,
2796299,440,18,1,299,
2797441,20,442,4,8,
279883,0,84,0,65,
27990,82,0,1,20,
28001,1,2,0,1,
28011370,443,18,1,1370,
2802160,2,0,1,305,
2803444,18,1,305,168,
28042,0,1,2458,445,
280518,1,2458,260,2,
28060,1,2459,446,18,
28071,2459,447,20,448,
28084,22,82,0,73,
28090,71,0,72,0,
281084,0,95,0,66,
28110,82,0,65,0,
281267,0,69,0,1,
281313,1,1,2,0,
28141,2464,449,18,1,
28152464,447,2,0,1,
28161989,450,18,1,1989,
2817260,2,0,1,1990,
2818451,18,1,1990,452,
281920,453,4,8,69,
28200,76,0,83,0,
282169,0,1,43,1,
28221,2,0,1,2470,
2823454,18,1,2470,156,
28242,0,1,322,455,
282518,1,322,224,2,
28260,1,1933,456,18,
28271,1933,135,2,0,
28281,883,457,18,1,
2829883,168,2,0,1,
2830328,458,18,1,328,
2831168,2,0,1,1443,
2832459,18,1,1443,242,
28332,0,1,2558,460,
283418,1,2558,447,2,
28350,1,2559,461,18,
28361,2559,462,20,463,
28374,20,83,0,116,
28380,97,0,116,0,
2839101,0,69,0,118,
28400,101,0,110,0,
2841116,0,1,103,1,
28422,2,0,1,2560,
2843464,18,1,2560,465,
284420,466,4,26,68,
28450,69,0,70,0,
284665,0,85,0,76,
28470,84,0,95,0, 32770,84,0,95,0,
284883,0,84,0,65,
28490,84,0,69,0,
28501,47,1,1,2,
28510,1,2561,467,18,
28521,2561,156,2,0,
28531,1449,468,18,1,
28541449,168,2,0,1,
28552485,469,18,1,2485,
2856470,20,471,4,30,
285778,0,79,0,95,
28580,83,0,69,0,
285978,0,83,0,79,
28600,82,0,95,0,
286169,0,86,0,69, 327869,0,86,0,69,
28620,78,0,84,0, 32790,78,0,84,0,
28631,77,1,1,2, 32801,92,1,1,2,
28640,1,2488,472,18, 32810,1,827,457,18,
28651,2488,473,20,474, 32821,827,184,2,0,
32831,2499,458,18,1,
32842499,459,20,460,4,
328534,82,0,69,0,
328677,0,79,0,84,
32870,69,0,95,0,
328868,0,65,0,84,
32890,65,0,95,0,
329069,0,86,0,69,
32910,78,0,84,0,
32921,82,1,1,2,
32930,1,2500,461,18,
32941,2500,462,20,463,
28664,22,77,0,79, 32954,22,77,0,79,
28670,78,0,69,0, 32960,78,0,69,0,
286889,0,95,0,69, 329789,0,95,0,69,
28690,86,0,69,0, 32980,86,0,69,0,
287078,0,84,0,1, 329978,0,84,0,1,
287174,1,1,2,0, 330074,1,1,2,0,
28721,2489,475,18,1, 33011,2501,464,18,1,
28732489,476,20,477,4, 33022501,465,20,466,4,
287424,76,0,73,0, 330324,76,0,73,0,
287583,0,84,0,69, 330483,0,84,0,69,
28760,78,0,95,0, 33050,78,0,95,0,
287769,0,86,0,69, 330669,0,86,0,69,
28780,78,0,84,0, 33070,78,0,84,0,
28791,73,1,1,2, 33081,73,1,1,2,
28800,1,2490,478,18, 33090,1,2502,467,18,
28811,2490,479,20,480, 33101,2502,468,20,469,
28824,36,76,0,73, 33114,36,76,0,73,
28830,78,0,75,0, 33120,78,0,75,0,
288495,0,77,0,69, 331395,0,77,0,69,
@@ -2888,746 +3317,1109 @@ public yyLSLSyntax
288886,0,69,0,78, 331786,0,69,0,78,
28890,84,0,1,72, 33180,84,0,1,72,
28901,1,2,0,1, 33191,1,2,0,1,
28912491,481,18,1,2491, 33202503,470,18,1,2503,
2892482,20,483,4,52, 3321471,20,472,4,38,
289376,0,65,0,78, 332272,0,84,0,84,
28940,68,0,95,0, 33230,80,0,95,0,
289567,0,79,0,76, 332482,0,69,0,83,
28960,76,0,73,0, 33250,80,0,79,0,
289783,0,73,0,79, 332678,0,83,0,69,
28980,78,0,95,0, 33270,95,0,69,0,
289983,0,84,0,65, 332886,0,69,0,78,
29000,82,0,84,0, 33290,84,0,1,68,
290195,0,69,0,86,
29020,69,0,78,0,
290384,0,1,71,1,
29041,2,0,1,2493,
2905484,18,1,2493,485,
290620,486,4,40,76,
29070,65,0,78,0,
290868,0,95,0,67,
29090,79,0,76,0,
291076,0,73,0,83,
29110,73,0,79,0,
291278,0,95,0,69,
29130,86,0,69,0,
291478,0,84,0,1,
291569,1,1,2,0,
29161,1413,487,18,1,
29171413,168,2,0,1,
2918346,488,18,1,346,
2919489,20,490,4,8,
292080,0,76,0,85,
29210,83,0,1,18,
29221,1,2,0,1, 33301,1,2,0,1,
29232496,491,18,1,2496, 33312504,473,18,1,2504,
2924492,20,493,4,32, 3332474,20,475,4,22,
292568,0,65,0,84, 333369,0,77,0,65,
29260,65,0,83,0, 33340,73,0,76,0,
292769,0,82,0,86,
29280,69,0,82,0,
292995,0,69,0,86, 333595,0,69,0,86,
29300,69,0,78,0, 33360,69,0,78,0,
293184,0,1,66,1, 333784,0,1,67,1,
29321,2,0,1,2021, 33381,2,0,1,277,
2933494,18,1,2021,260, 3339476,18,1,277,477,
29342,0,1,2022,495, 334020,478,4,10,83,
293518,1,2022,338,2, 33410,76,0,65,0,
29360,1,352,496,18, 334283,0,72,0,1,
29371,352,168,2,0, 334321,1,1,2,0,
29381,2024,497,18,1, 33441,2506,479,18,1,
29392024,132,2,0,1, 33452506,480,20,481,4,
29402025,498,18,1,2025, 334634,75,0,101,0,
2941499,20,500,4,8, 3347121,0,73,0,110,
294274,0,85,0,77, 33480,116,0,73,0,
29430,80,0,1,49, 3349110,0,116,0,65,
29441,1,2,0,1, 33500,114,0,103,0,
29452026,501,18,1,2026, 335169,0,118,0,101,
2946132,2,0,1,2027, 33520,110,0,116,0,
2947502,18,1,2027,503, 33531,132,1,2,2,
294820,504,4,4,65, 33540,1,2507,482,18,
29490,84,0,1,23, 33551,2507,135,2,0,
29501,1,2,0,1, 33561,2508,483,18,1,
29512028,505,18,1,2028, 33572508,117,2,0,1,
2952132,2,0,1,2029, 33582509,484,18,1,2509,
2953506,18,1,2029,334, 3359132,2,0,1,2510,
29542,0,1,2030,507, 3360485,18,1,2510,486,
295518,1,2030,508,20, 336120,487,4,28,75,
2956509,4,14,70,0, 33620,101,0,121,0,
2957111,0,114,0,76, 336368,0,101,0,99,
29580,111,0,111,0, 33640,108,0,97,0,
2959112,0,1,121,1, 3365114,0,97,0,116,
29602,2,0,1,2031, 33660,105,0,111,0,
2961510,18,1,2031,511, 3367110,0,1,120,1,
296220,512,4,32,68, 33682,2,0,1,283,
29630,111,0,87,0, 3369488,18,1,283,184,
2964104,0,105,0,108, 33702,0,1,2512,489,
29650,101,0,83,0, 337118,1,2512,126,2,
2966116,0,97,0,116, 33720,1,2513,490,18,
29670,101,0,109,0, 33731,2513,132,2,0,
2968101,0,110,0,116, 33741,2514,491,18,1,
29690,1,120,1,2, 33752514,492,20,493,4,
29702,0,1,2032,513, 337628,73,0,110,0,
297118,1,2032,514,20, 3377116,0,68,0,101,
2972515,4,28,87,0, 33780,99,0,108,0,
2973104,0,105,0,108, 337997,0,114,0,97,
29740,101,0,83,0, 33800,116,0,105,0,
2975116,0,97,0,116, 3381111,0,110,0,1,
29760,101,0,109,0, 3382121,1,2,2,0,
33831,1958,494,18,1,
33841958,162,2,0,1,
33852517,495,18,1,2517,
3386492,2,0,1,2518,
3387496,18,1,2518,497,
338820,498,4,64,75,
33890,101,0,121,0,
339073,0,110,0,116,
33910,73,0,110,0,
3392116,0,65,0,114,
33930,103,0,117,0,
3394109,0,101,0,110,
33950,116,0,68,0,
3396101,0,99,0,108,
33970,97,0,114,0,
339897,0,116,0,105,
33990,111,0,110,0,
340076,0,105,0,115,
34010,116,0,1,118,
34021,2,2,0,1,
34032519,499,18,1,2519,
3404162,2,0,1,1406,
3405500,18,1,1406,176,
34062,0,1,1407,501,
340718,1,1407,229,2,
34080,1,2522,502,18,
34091,2522,503,20,504,
34104,34,73,0,110,
34110,116,0,86,0,
3412101,0,99,0,86,
34130,101,0,99,0,
341465,0,114,0,103,
34150,69,0,118,0,
2977101,0,110,0,116, 3416101,0,110,0,116,
29780,1,119,1,2, 34170,1,131,1,2,
29792,0,1,2033,516, 34182,0,1,2523,505,
298018,1,2033,517,20, 341918,1,2523,135,2,
2981518,4,22,73,0, 34200,1,2525,506,18,
2982102,0,83,0,116, 34211,2525,492,2,0,
29830,97,0,116,0, 34221,2526,507,18,1,
2984101,0,109,0,101, 34232526,143,2,0,1,
3424299,508,18,1,299,
3425509,20,510,4,8,
342683,0,84,0,65,
34270,82,0,1,20,
34281,1,2,0,1,
34291370,511,18,1,1370,
3430176,2,0,1,2529,
3431512,18,1,2529,513,
343220,514,4,28,86,
34330,101,0,99,0,
343468,0,101,0,99,
34350,108,0,97,0,
3436114,0,97,0,116,
34370,105,0,111,0,
3438110,0,1,122,1,
34392,2,0,1,2530,
3440515,18,1,2530,143,
34412,0,1,2532,516,
344218,1,2532,513,2,
34430,1,305,517,18,
34441,305,184,2,0,
34451,2534,518,18,1,
34462534,162,2,0,1,
34472822,519,18,1,2822,
3448150,2,0,1,2458,
3449520,18,1,2458,288,
34502,0,1,2459,521,
345118,1,2459,212,2,
34520,1,2538,522,18,
34531,2538,135,2,0,
34541,2540,523,18,1,
34552540,492,2,0,1,
34562541,524,18,1,2541,
3457143,2,0,1,2542,
3458525,18,1,2542,111,
34592,0,1,2464,526,
346018,1,2464,212,2,
34610,1,2544,527,18,
34621,2544,247,2,0,
34631,2545,528,18,1,
34642545,143,2,0,1,
34651989,529,18,1,1989,
3466288,2,0,1,1990,
3467530,18,1,1990,531,
346820,532,4,8,69,
34690,76,0,83,0,
347069,0,1,43,1,
34711,2,0,1,2548,
3472533,18,1,2548,534,
347320,535,4,64,73,
29850,110,0,116,0, 34740,110,0,116,0,
29861,118,1,2,2, 347582,0,111,0,116,
29870,1,2034,519,18, 34760,82,0,111,0,
29881,2034,520,20,521, 3477116,0,65,0,114,
29894,22,83,0,116, 34780,103,0,117,0,
29900,97,0,116,0, 3479109,0,101,0,110,
2991101,0,67,0,104, 34800,116,0,68,0,
29920,97,0,110,0, 3481101,0,99,0,108,
2993103,0,101,0,1, 34820,97,0,114,0,
2994117,1,2,2,0, 348397,0,116,0,105,
29951,1478,522,18,1, 34840,111,0,110,0,
29961478,160,2,0,1, 348576,0,105,0,115,
29971479,523,18,1,1479, 34860,116,0,1,116,
2998276,2,0,1,2037, 34871,2,2,0,1,
2999524,18,1,2037,191, 34882470,536,18,1,2470,
30002,0,1,2038,525, 3489165,2,0,1,322,
300118,1,2038,526,20, 3490537,18,1,322,250,
3002527,4,18,74,0, 34912,0,1,2551,538,
3003117,0,109,0,112, 349218,1,2551,380,2,
30040,76,0,97,0, 34930,1,1933,539,18,
300598,0,101,0,108, 34941,1933,135,2,0,
30060,1,115,1,2, 34951,2553,540,18,1,
30072,0,1,2039,528, 34962553,135,2,0,1,
300818,1,2039,191,2, 3497883,541,18,1,883,
30090,1,2040,529,18, 3498184,2,0,1,2555,
30101,2040,530,20,531, 3499542,18,1,2555,513,
30114,30,82,0,101, 35002,0,1,328,543,
30120,116,0,117,0, 350118,1,328,184,2,
3013114,0,110,0,83, 35020,1,1443,544,18,
35031,1443,266,2,0,
35041,2559,545,18,1,
35052559,380,2,0,1,
35062560,546,18,1,2560,
3507547,20,548,4,22,
350873,0,110,0,116,
35090,65,0,114,0,
3510103,0,69,0,118,
35110,101,0,110,0,
3512116,0,1,128,1,
35132,2,0,1,2561,
3514549,18,1,2561,135,
35152,0,1,1449,550,
351618,1,1449,184,2,
35170,1,2485,551,18,
35181,2485,552,20,553,
35194,30,67,0,79,
35200,76,0,76,0,
352173,0,83,0,73,
35220,79,0,78,0,
352395,0,69,0,86,
35240,69,0,78,0,
352584,0,1,62,1,
35261,2,0,1,2565,
3527554,18,1,2565,162,
35282,0,1,2488,555,
352918,1,2488,556,20,
3530557,4,24,65,0,
353184,0,84,0,65,
35320,67,0,72,0,
353395,0,69,0,86,
35340,69,0,78,0,
353584,0,1,60,1,
35361,2,0,1,2489,
3537558,18,1,2489,559,
353820,560,4,22,84,
35390,73,0,77,0,
354069,0,82,0,95,
35410,69,0,86,0,
354269,0,78,0,84,
35430,1,87,1,1,
35442,0,1,2490,561,
354518,1,2490,562,20,
3546563,4,38,78,0,
354779,0,84,0,95,
35480,65,0,84,0,
354995,0,84,0,65,
35500,82,0,71,0,
355169,0,84,0,95,
35520,69,0,86,0,
355369,0,78,0,84,
35540,1,79,1,1,
35552,0,1,2491,564,
355618,1,2491,565,20,
3557566,4,46,78,0,
355879,0,84,0,95,
35590,65,0,84,0,
356095,0,82,0,79,
35610,84,0,95,0,
356284,0,65,0,82,
35630,71,0,69,0,
356484,0,95,0,69,
35650,86,0,69,0,
356678,0,84,0,1,
356778,1,1,2,0,
35681,2571,567,18,1,
35692571,486,2,0,1,
35702493,568,18,1,2493,
3571569,20,570,4,36,
357277,0,79,0,86,
35730,73,0,78,0,
357471,0,95,0,83,
35750,84,0,65,0,
357682,0,84,0,95,
35770,69,0,86,0,
357869,0,78,0,84,
35790,1,76,1,1,
35802,0,1,1413,571,
358118,1,1413,184,2,
35820,1,346,572,18,
35831,346,573,20,574,
35844,8,80,0,76,
35850,85,0,83,0,
35861,18,1,1,2,
35870,1,2575,575,18,
35881,2575,380,2,0,
35891,2496,576,18,1,
35902496,577,20,578,4,
359134,83,0,84,0,
359265,0,84,0,69,
35930,95,0,69,0,
359478,0,84,0,82,
35950,89,0,95,0,
359669,0,86,0,69,
35970,78,0,84,0,
35981,85,1,1,2,
35990,1,2577,579,18,
36001,2577,135,2,0,
36011,2021,580,18,1,
36022021,288,2,0,1,
36032022,581,18,1,2022,
3604384,2,0,1,352,
3605582,18,1,352,184,
36062,0,1,2024,583,
360718,1,2024,132,2,
36080,1,2025,584,18,
36091,2025,585,20,586,
36104,8,74,0,85,
36110,77,0,80,0,
36121,49,1,1,2,
36130,1,2026,587,18,
36141,2026,132,2,0,
36151,2027,588,18,1,
36162027,589,20,590,4,
36174,65,0,84,0,
36181,23,1,1,2,
36190,1,2028,591,18,
36201,2028,132,2,0,
36211,2029,592,18,1,
36222029,380,2,0,1,
36232030,593,18,1,2030,
3624594,20,595,4,14,
362570,0,111,0,114,
36260,76,0,111,0,
3627111,0,112,0,1,
3628146,1,2,2,0,
36291,2031,596,18,1,
36302031,597,20,598,4,
363132,68,0,111,0,
363287,0,104,0,105,
36330,108,0,101,0,
363483,0,116,0,97,
36350,116,0,101,0,
3636109,0,101,0,110,
36370,116,0,1,145,
36381,2,2,0,1,
36392032,599,18,1,2032,
3640600,20,601,4,28,
364187,0,104,0,105,
36420,108,0,101,0,
364383,0,116,0,97,
36440,116,0,101,0,
3645109,0,101,0,110,
36460,116,0,1,144,
36471,2,2,0,1,
36482033,602,18,1,2033,
3649603,20,604,4,22,
365073,0,102,0,83,
30140,116,0,97,0, 36510,116,0,97,0,
3015116,0,101,0,109, 3652116,0,101,0,109,
30160,101,0,110,0, 36530,101,0,110,0,
3017116,0,1,114,1, 3654116,0,1,143,1,
30182,2,0,1,2041, 36552,2,0,1,2034,
3019532,18,1,2041,191, 3656605,18,1,2034,606,
30202,0,1,1485,533, 365720,607,4,22,83,
302118,1,1485,168,2, 36580,116,0,97,0,
30220,1,372,534,18, 3659116,0,101,0,67,
30231,372,180,2,0, 36600,104,0,97,0,
30241,373,535,18,1, 3661110,0,103,0,101,
3025373,132,2,0,1, 36620,1,142,1,2,
3026374,536,18,1,374, 36632,0,1,1478,608,
3027176,2,0,1,375, 366418,1,1478,176,2,
3028537,18,1,375,132, 36650,1,1479,609,18,
30292,0,1,376,538, 36661,1479,309,2,0,
303018,1,376,183,2, 36671,2037,610,18,1,
30310,1,377,539,18, 36682037,150,2,0,1,
30321,377,132,2,0, 36692038,611,18,1,2038,
30331,378,540,18,1, 3670612,20,613,4,18,
3034378,176,2,0,1, 367174,0,117,0,109,
3035379,541,18,1,379, 36720,112,0,76,0,
3036132,2,0,1,380, 367397,0,98,0,101,
3037542,18,1,380,543, 36740,108,0,1,140,
303820,544,4,16,67, 36751,2,2,0,1,
30390,111,0,110,0, 36762039,614,18,1,2039,
3040115,0,116,0,97, 3677150,2,0,1,2040,
30410,110,0,116,0, 3678615,18,1,2040,616,
30421,127,1,2,2, 367920,617,4,30,82,
30430,1,381,545,18, 36800,101,0,116,0,
30441,381,290,2,0, 3681117,0,114,0,110,
30451,371,546,18,1, 36820,83,0,116,0,
3046371,547,20,548,4, 368397,0,116,0,101,
304724,70,0,117,0, 36840,109,0,101,0,
3048110,0,99,0,116, 3685110,0,116,0,1,
30490,105,0,111,0, 3686139,1,2,2,0,
3050110,0,67,0,97, 36871,2041,618,18,1,
30510,108,0,108,0, 36882041,150,2,0,1,
30521,123,1,2,2, 36891485,619,18,1,1485,
30530,1,942,549,18, 3690184,2,0,1,372,
30541,942,168,2,0, 3691620,18,1,372,196,
30551,387,550,18,1, 36922,0,1,373,621,
3056387,168,2,0,1, 369318,1,373,132,2,
30571514,551,18,1,1514, 36940,1,374,622,18,
3058160,2,0,1,1515, 36951,374,192,2,0,
3059552,18,1,1515,256, 36961,375,623,18,1,
30602,0,1,2074,553, 3697375,132,2,0,1,
306118,1,2074,160,2, 3698376,624,18,1,376,
30620,1,2075,554,18, 3699199,2,0,1,377,
30631,2075,153,2,0, 3700625,18,1,377,132,
30641,406,555,18,1, 37012,0,1,378,626,
3065406,143,2,0,1, 370218,1,378,192,2,
30661521,556,18,1,1521, 37030,1,379,627,18,
3067168,2,0,1,2636, 37041,379,132,2,0,
3068557,18,1,2636,295, 37051,380,628,18,1,
30692,0,1,2557,558, 3706380,629,20,630,4,
307018,1,2557,462,2, 370716,67,0,111,0,
30710,1,2639,559,18, 3708110,0,115,0,116,
30721,2639,560,20,561, 37090,97,0,110,0,
30734,10,83,0,116, 3710116,0,1,152,1,
37112,2,0,1,381,
3712631,18,1,381,328,
37132,0,1,371,632,
371418,1,371,633,20,
3715634,4,24,70,0,
3716117,0,110,0,99,
37170,116,0,105,0,
3718111,0,110,0,67,
37190,97,0,108,0,
3720108,0,1,148,1,
37212,2,0,1,942,
3722635,18,1,942,184,
37232,0,1,2533,636,
372418,1,2533,637,20,
3725638,4,64,73,0,
3726110,0,116,0,86,
37270,101,0,99,0,
372886,0,101,0,99,
37290,65,0,114,0,
3730103,0,117,0,109,
37310,101,0,110,0,
3732116,0,68,0,101,
37330,99,0,108,0,
373497,0,114,0,97,
37350,116,0,105,0,
3736111,0,110,0,76,
37370,105,0,115,0,
3738116,0,1,117,1,
37392,2,0,1,387,
3740639,18,1,387,184,
37412,0,1,2536,640,
374218,1,2536,380,2,
37430,1,2537,641,18,
37441,2537,642,20,643,
37454,34,73,0,110,
37460,116,0,82,0,
3747111,0,116,0,82,
37480,111,0,116,0,
374965,0,114,0,103,
37500,69,0,118,0,
3751101,0,110,0,116,
37520,1,130,1,2,
37532,0,1,2543,644,
375418,1,2543,132,2,
37550,1,2823,645,18,
37561,2823,646,20,647,
37574,34,71,0,108,
37580,111,0,98,0,
375997,0,108,0,68,
37600,101,0,102,0,
3761105,0,110,0,105,
37620,116,0,105,0,
3763111,0,110,0,115,
37640,1,98,1,2,
37652,0,1,1514,648,
376618,1,1514,176,2,
37670,1,1515,649,18,
37681,1515,335,2,0,
37691,2549,650,18,1,
37702549,162,2,0,1,
37712074,651,18,1,2074,
3772176,2,0,1,2075,
3773652,18,1,2075,162,
37742,0,1,2552,653,
377518,1,2552,654,20,
3776655,4,28,86,0,
3777101,0,99,0,116,
37780,111,0,114,0,
377965,0,114,0,103,
37800,69,0,118,0,
3781101,0,110,0,116,
37820,1,129,1,2,
37832,0,1,406,656,
378418,1,406,143,2,
37850,1,1521,657,18,
37861,1521,184,2,0,
37871,2556,658,18,1,
37882556,659,20,660,4,
378958,86,0,101,0,
379099,0,116,0,111,
37910,114,0,65,0,
3792114,0,103,0,117,
37930,109,0,101,0,
3794110,0,116,0,68,
37950,101,0,99,0,
3796108,0,97,0,114,
30740,97,0,116,0, 37970,97,0,116,0,
3075101,0,1,101,1, 3798105,0,111,0,110,
30762,2,0,1,412, 37990,76,0,105,0,
3077562,18,1,412,168, 3800115,0,116,0,1,
30782,0,1,2641,563, 3801115,1,2,2,0,
307918,1,2641,132,2, 38021,2557,661,18,1,
30800,1,2484,564,18, 38032557,162,2,0,1,
30811,2484,565,20,566, 3804412,662,18,1,412,
30824,46,78,0,79, 3805184,2,0,1,2641,
30830,84,0,95,0, 3806663,18,1,2641,168,
308465,0,84,0,95, 38072,0,1,2484,664,
30850,82,0,79,0, 380818,1,2484,665,20,
308684,0,95,0,84, 3809666,4,38,67,0,
30870,65,0,82,0, 381079,0,76,0,76,
308871,0,69,0,84, 38110,73,0,83,0,
381273,0,79,0,78,
30890,95,0,69,0, 38130,95,0,69,0,
309086,0,69,0,78, 381478,0,68,0,95,
30910,84,0,1,78, 38150,69,0,86,0,
30921,1,2,0,1, 381669,0,78,0,84,
30932023,567,18,1,2023, 38170,1,63,1,1,
3094465,2,0,1,1442, 38182,0,1,2643,667,
3095568,18,1,1442,160, 381918,1,2643,668,20,
30962,0,1,2651,569, 3820669,4,44,73,0,
309718,1,2651,140,2, 3821110,0,116,0,82,
30980,1,2653,570,18, 38220,111,0,116,0,
30991,2653,153,2,0, 382382,0,111,0,116,
31001,2655,571,18,1, 38240,65,0,114,0,
31012655,334,2,0,1, 3825103,0,83,0,116,
31022035,572,18,1,2035,
3103191,2,0,1,2036,
3104573,18,1,2036,574,
310520,575,4,26,74,
31060,117,0,109,0,
3107112,0,83,0,116,
31080,97,0,116,0, 38260,97,0,116,0,
3109101,0,109,0,101, 3827101,0,69,0,118,
31100,110,0,116,0, 38280,101,0,110,0,
31111,116,1,2,2, 3829116,0,1,109,1,
31120,1,431,576,18, 38302,2,0,1,2644,
31131,431,143,2,0, 3831670,18,1,2644,671,
31141,2105,577,18,1, 383220,672,4,38,86,
31152105,260,2,0,1, 38330,101,0,99,0,
31162106,578,18,1,2106, 3834116,0,111,0,114,
3117452,2,0,1,1550, 38350,65,0,114,0,
3118579,18,1,1550,160, 3836103,0,83,0,116,
31192,0,1,437,580,
312018,1,437,168,2,
31210,1,2044,581,18,
31221,2044,582,20,583,
31234,28,69,0,109,
31240,112,0,116,0,
3125121,0,83,0,116,
31260,97,0,116,0, 38370,97,0,116,0,
3127101,0,109,0,101, 3838101,0,69,0,118,
38390,101,0,110,0,
3840116,0,1,108,1,
38412,2,0,1,2023,
3842673,18,1,2023,282,
38432,0,1,2564,674,
384418,1,2564,675,20,
3845676,4,52,73,0,
3846110,0,116,0,65,
38470,114,0,103,0,
3848117,0,109,0,101,
31280,110,0,116,0, 38490,110,0,116,0,
31291,111,1,2,2, 385068,0,101,0,99,
31300,1,2045,584,18, 38510,108,0,97,0,
31311,2045,191,2,0, 3852114,0,97,0,116,
31321,1555,585,18,1, 38530,105,0,111,0,
31331555,168,2,0,1, 3854110,0,76,0,105,
31341001,586,18,1,1001, 38550,115,0,116,0,
3135547,2,0,1,1002, 38561,114,1,2,2,
3136587,18,1,1002,543, 38570,1,2647,677,18,
31372,0,1,447,588, 38581,2647,678,20,679,
313818,1,447,307,2, 38594,34,86,0,111,
31390,1,2597,589,18, 38600,105,0,100,0,
31401,2597,590,20,591, 386165,0,114,0,103,
38620,83,0,116,0,
386397,0,116,0,101,
38640,69,0,118,0,
3865101,0,110,0,116,
38660,1,105,1,2,
38672,0,1,2648,680,
386818,1,2648,279,2,
38690,1,2567,681,18,
38701,2567,380,2,0,
38711,1442,682,18,1,
38721442,176,2,0,1,
38732569,683,18,1,2569,
3874135,2,0,1,2652,
3875684,18,1,2652,668,
38762,0,1,2653,685,
387718,1,2653,671,2,
38780,1,2572,686,18,
38791,2572,687,20,688,
38804,52,75,0,101,
38810,121,0,65,0,
3882114,0,103,0,117,
38830,109,0,101,0,
3884110,0,116,0,68,
38850,101,0,99,0,
3886108,0,97,0,114,
38870,97,0,116,0,
3888105,0,111,0,110,
38890,76,0,105,0,
3890115,0,116,0,1,
3891113,1,2,2,0,
38921,2573,689,18,1,
38932573,162,2,0,1,
38942656,690,18,1,2656,
3895678,2,0,1,2035,
3896691,18,1,2035,150,
38972,0,1,2036,692,
389818,1,2036,693,20,
3899694,4,26,74,0,
3900117,0,109,0,112,
39010,83,0,116,0,
390297,0,116,0,101,
39030,109,0,101,0,
3904110,0,116,0,1,
3905141,1,2,2,0,
39061,431,695,18,1,
3907431,143,2,0,1,
39082578,696,18,1,2578,
3909162,2,0,1,2105,
3910697,18,1,2105,288,
39112,0,1,2106,698,
391218,1,2106,531,2,
39130,1,1550,699,18,
39141,1550,176,2,0,
39151,437,700,18,1,
3916437,184,2,0,1,
39172044,701,18,1,2044,
3918702,20,703,4,28,
391969,0,109,0,112,
39200,116,0,121,0,
392183,0,116,0,97,
39220,116,0,101,0,
3923109,0,101,0,110,
39240,116,0,1,136,
39251,2,2,0,1,
39262045,704,18,1,2045,
3927150,2,0,1,1555,
3928705,18,1,1555,184,
39292,0,1,2511,706,
393018,1,2511,143,2,
39310,1,1001,707,18,
39321,1001,633,2,0,
39331,1002,708,18,1,
39341002,629,2,0,1,
3935447,709,18,1,447,
3936347,2,0,1,2593,
3937710,18,1,2593,162,
39382,0,1,2595,711,
393918,1,2595,380,2,
39400,1,2597,712,18,
39411,2597,713,20,714,
31414,18,83,0,116, 39424,18,83,0,116,
31420,97,0,116,0, 39430,97,0,116,0,
3143101,0,66,0,111, 3944101,0,66,0,111,
31440,100,0,121,0, 39450,100,0,121,0,
31451,102,1,2,2, 39461,103,1,2,2,
31460,1,1010,592,18, 39470,1,1010,715,18,
31471,1010,160,2,0, 39481,1010,176,2,0,
31481,1011,593,18,1, 39491,1011,716,18,1,
31491011,153,2,0,1, 39501011,162,2,0,1,
31501012,594,18,1,1012, 39511012,717,18,1,1012,
3151168,2,0,1,1013, 3952184,2,0,1,1013,
3152595,18,1,1013,153, 3953718,18,1,1013,162,
31532,0,1,459,596, 39542,0,1,459,719,
315418,1,459,597,20, 395518,1,459,720,20,
3155598,4,24,76,0, 3956721,4,24,76,0,
315669,0,70,0,84, 395769,0,70,0,84,
31570,95,0,66,0, 39580,95,0,66,0,
315882,0,65,0,67, 395982,0,65,0,67,
31590,75,0,69,0, 39600,75,0,69,0,
316084,0,1,27,1, 396184,0,1,27,1,
31611,2,0,1,1574, 39621,2,0,1,1574,
3162599,18,1,1574,191, 3963722,18,1,1574,150,
31632,0,1,461,600, 39642,0,1,461,723,
316418,1,461,601,20, 396518,1,461,724,20,
3165602,4,24,65,0, 3966725,4,24,65,0,
3166114,0,103,0,117, 3967114,0,103,0,117,
31670,109,0,101,0, 39680,109,0,101,0,
3168110,0,116,0,76, 3969110,0,116,0,76,
31690,105,0,115,0, 39700,105,0,115,0,
3170116,0,1,124,1, 3971116,0,1,149,1,
31712,2,0,1,462, 39722,2,0,1,462,
3172603,18,1,462,143, 3973726,18,1,462,143,
31732,0,1,464,604, 39742,0,1,464,727,
317418,1,464,605,20, 397518,1,464,728,20,
3175606,4,16,65,0, 3976729,4,16,65,0,
3176114,0,103,0,117, 3977114,0,103,0,117,
31770,109,0,101,0, 39780,109,0,101,0,
3178110,0,116,0,1, 3979110,0,116,0,1,
3179125,1,2,2,0, 3980150,1,2,2,0,
31801,2136,607,18,1, 39811,2136,730,18,1,
31812136,260,2,0,1, 39822136,288,2,0,1,
31822694,608,18,1,2694, 39831585,731,18,1,1585,
3183191,2,0,1,2695, 3984732,20,733,4,12,
3184609,18,1,2695,610,
318520,611,4,34,71,
31860,108,0,111,0,
318798,0,97,0,108,
31880,68,0,101,0,
3189102,0,105,0,110,
31900,105,0,116,0,
3191105,0,111,0,110,
31920,115,0,1,97,
31931,2,2,0,1,
31941585,612,18,1,1585,
3195613,20,614,4,12,
319682,0,69,0,84, 398582,0,69,0,84,
31970,85,0,82,0, 39860,85,0,82,0,
319878,0,1,50,1, 398778,0,1,50,1,
31991,2,0,1,476, 39881,2,0,1,2703,
3200615,18,1,476,616, 3989734,18,1,2703,713,
320120,617,4,30,83, 39902,0,1,476,735,
32020,84,0,82,0, 399118,1,476,736,20,
320373,0,78,0,71, 3992737,4,30,83,0,
32040,95,0,67,0, 399384,0,82,0,73,
320579,0,78,0,83, 39940,78,0,71,0,
32060,84,0,65,0, 399595,0,67,0,79,
320778,0,84,0,1, 39960,78,0,83,0,
32083,1,1,2,0, 399784,0,65,0,78,
32091,477,618,18,1, 39980,84,0,1,3,
3210477,619,20,620,4, 39991,1,2,0,1,
321128,70,0,76,0, 4000477,738,18,1,477,
321279,0,65,0,84, 4001739,20,740,4,28,
32130,95,0,67,0, 400270,0,76,0,79,
321479,0,78,0,83, 40030,65,0,84,0,
32150,84,0,65,0, 400495,0,67,0,79,
321678,0,84,0,1, 40050,78,0,83,0,
321795,1,1,2,0, 400684,0,65,0,78,
32181,478,621,18,1, 40070,84,0,1,96,
3219478,622,20,623,4, 40081,1,2,0,1,
322040,72,0,69,0, 4009478,741,18,1,478,
322188,0,95,0,73, 4010742,20,743,4,40,
32220,78,0,84,0, 401172,0,69,0,88,
322369,0,71,0,69, 40120,95,0,73,0,
32240,82,0,95,0,
322567,0,79,0,78,
32260,83,0,84,0,
322765,0,78,0,84,
32280,1,94,1,1,
32292,0,1,479,624,
323018,1,479,625,20,
3231626,4,32,73,0,
323278,0,84,0,69, 401378,0,84,0,69,
32330,71,0,69,0, 40140,71,0,69,0,
323482,0,95,0,67, 401582,0,95,0,67,
32350,79,0,78,0, 40160,79,0,78,0,
323683,0,84,0,65, 401783,0,84,0,65,
32370,78,0,84,0, 40180,78,0,84,0,
32381,93,1,1,2, 40191,95,1,1,2,
32390,1,480,627,18, 40200,1,479,744,18,
32401,480,628,20,629, 40211,479,745,20,746,
32414,26,82,0,73, 40224,32,73,0,78,
32420,71,0,72,0, 40230,84,0,69,0,
324384,0,95,0,66, 402471,0,69,0,82,
32440,82,0,65,0, 40250,95,0,67,0,
324567,0,75,0,69, 402679,0,78,0,83,
32460,84,0,1,28, 40270,84,0,65,0,
32471,1,2,0,1, 402878,0,84,0,1,
3248481,630,18,1,481, 402994,1,1,2,0,
3249605,2,0,1,2713, 40301,480,747,18,1,
3250631,18,1,2713,632, 4031480,748,20,749,4,
325120,633,4,48,71, 403226,82,0,73,0,
32520,108,0,111,0, 403371,0,72,0,84,
325398,0,97,0,108, 40340,95,0,66,0,
32540,70,0,117,0, 403582,0,65,0,67,
3255110,0,99,0,116, 40360,75,0,69,0,
32560,105,0,111,0, 403784,0,1,28,1,
3257110,0,68,0,101, 40381,2,0,1,481,
32580,102,0,105,0, 4039750,18,1,481,728,
3259110,0,105,0,116, 40402,0,1,1048,751,
32600,105,0,111,0, 404118,1,1048,184,2,
3261110,0,1,99,1, 40420,1,2642,752,18,
32622,2,0,1,2714, 40431,2642,171,2,0,
3263634,18,1,2714,635, 40441,2563,753,18,1,
326420,636,4,50,71, 40452563,492,2,0,1,
32650,108,0,111,0, 40462042,754,18,1,2042,
326698,0,97,0,108, 4047755,20,756,4,20,
32670,86,0,97,0, 404865,0,115,0,115,
3268114,0,105,0,97, 40490,105,0,103,0,
32690,98,0,108,0, 4050110,0,109,0,101,
3270101,0,68,0,101, 40510,110,0,116,0,
32710,99,0,108,0, 40521,137,1,2,2,
327297,0,114,0,97, 40530,1,2043,757,18,
32730,116,0,105,0, 40541,2043,150,2,0,
3274111,0,110,0,1, 40551,2568,758,18,1,
327598,1,2,2,0, 40562568,759,20,760,4,
32761,2715,637,18,1, 405722,75,0,101,0,
32772715,632,2,0,1, 4058121,0,65,0,114,
32782716,638,18,1,2716, 40590,103,0,69,0,
3279635,2,0,1,2717, 4060118,0,101,0,110,
3280104,1,2634,639,18, 40610,116,0,1,127,
32811,2634,447,2,0,
32821,1048,640,18,1,
32831048,168,2,0,1,
32842640,641,18,1,2640,
3285560,2,0,1,2642,
3286642,18,1,2642,135,
32872,0,1,2042,643,
328818,1,2042,644,20,
3289645,4,20,65,0,
3290115,0,115,0,105,
32910,103,0,110,0,
3292109,0,101,0,110,
32930,116,0,1,112,
32941,2,2,0,1, 40621,2,2,0,1,
32952043,646,18,1,2043, 40632649,761,18,1,2649,
3296191,2,0,1,1620, 4064212,2,0,1,1620,
3297647,18,1,1620,160, 4065762,18,1,1620,176,
32982,0,1,1621,648, 40662,0,1,1621,763,
329918,1,1621,150,2, 406718,1,1621,159,2,
33000,1,1622,649,18, 40680,1,1622,764,18,
33011,1622,256,2,0, 40691,1622,335,2,0,
33021,509,650,18,1, 40701,509,765,18,1,
3303509,143,2,0,1, 4071509,143,2,0,1,
33042498,651,18,1,2498, 40722498,766,18,1,2498,
3305652,20,653,4,42, 4073767,20,768,4,36,
330667,0,79,0,76, 407472,0,84,0,84,
33070,76,0,73,0, 40750,80,0,95,0,
330883,0,73,0,79, 407682,0,69,0,81,
33090,78,0,95,0, 40770,85,0,69,0,
331083,0,84,0,65, 407883,0,84,0,95,
33110,82,0,84,0, 40790,69,0,86,0,
408069,0,78,0,84,
40810,1,91,1,1,
40822,0,1,2655,769,
408318,1,2655,156,2,
40840,1,2576,770,18,
40851,2576,771,20,772,
40864,24,86,0,111,
40870,105,0,100,0,
408865,0,114,0,103,
40890,69,0,118,0,
4090101,0,110,0,116,
40910,1,126,1,2,
40922,0,1,1628,773,
409318,1,1628,184,2,
40940,1,515,774,18,
40951,515,184,2,0,
40961,2580,775,18,1,
40972580,380,2,0,1,
40982505,776,18,1,2505,
4099777,20,778,4,32,
410068,0,65,0,84,
41010,65,0,83,0,
410269,0,82,0,86,
41030,69,0,82,0,
331295,0,69,0,86, 410495,0,69,0,86,
33130,69,0,78,0, 41050,69,0,78,0,
331484,0,1,64,1, 410684,0,1,66,1,
33151,2,0,1,1628, 41071,2,0,1,2582,
3316654,18,1,1628,168, 4108779,18,1,2582,135,
33172,0,1,515,655, 41092,0,1,525,780,
331818,1,515,168,2, 411018,1,525,347,2,
33190,1,2505,656,18, 41110,1,2197,781,18,
33201,2505,657,20,658, 41121,2197,176,2,0,
33214,10,69,0,118, 41131,2198,782,18,1,
33220,101,0,110,0, 41142198,162,2,0,1,
3323116,0,1,107,1, 41151591,783,18,1,1591,
33242,2,0,1,2664, 4116184,2,0,1,2521,
3325659,18,1,2664,168, 4117784,18,1,2521,380,
33262,0,1,525,660, 41182,0,1,2764,785,
332718,1,525,307,2, 411918,1,2764,300,2,
33280,1,2197,661,18, 41200,1,1094,786,18,
33291,2197,160,2,0, 41211,1094,724,2,0,
33301,2198,662,18,1, 41221,1096,787,18,1,
33312198,153,2,0,1, 41231096,162,2,0,1,
33321591,663,18,1,1591, 41242768,788,18,1,2768,
3333168,2,0,1,2521, 4125319,2,0,1,2769,
3334664,18,1,2521,590, 4126789,18,1,2769,132,
33352,0,1,1094,665, 41272,0,1,2770,790,
333618,1,1094,601,2, 412818,1,2770,135,2,
33370,1,1096,666,18, 41290,1,1657,791,18,
33381,1096,153,2,0, 41301,1657,150,2,0,
33391,2683,667,18,1, 41311,1658,792,18,1,
33402683,191,2,0,1, 41321658,793,20,794,4,
33411657,668,18,1,1657, 41336,70,0,79,0,
3342191,2,0,1,1658, 413482,0,1,46,1,
3343669,18,1,1658,670, 41351,2,0,1,1659,
334420,671,4,6,70, 4136795,18,1,1659,135,
33450,79,0,82,0, 41372,0,1,1665,796,
33461,46,1,1,2, 413818,1,1665,184,2,
33470,1,1659,672,18, 41390,1,2781,797,18,
33481,1659,135,2,0, 41401,2781,162,2,0,
33491,1665,673,18,1, 41411,2783,798,18,1,
33501665,168,2,0,1, 41422783,380,2,0,1,
33511113,674,18,1,1113, 41431113,799,18,1,1113,
3352176,2,0,675,5, 4144192,2,0,800,5,
33530,676,5,324,1, 41450,801,5,381,1,
33542,677,19,237,1, 41462,802,19,371,1,
33552,678,5,6,1, 41472,803,5,6,1,
33562706,679,17,680,15, 41482764,804,17,805,15,
3357681,4,30,37,0, 4149806,4,30,37,0,
335876,0,83,0,76, 415076,0,83,0,76,
33590,80,0,114,0, 41510,80,0,114,0,
3360111,0,103,0,114, 4152111,0,103,0,114,
33610,97,0,109,0, 41530,97,0,109,0,
336282,0,111,0,111, 415482,0,111,0,111,
33630,116,0,1,-1, 41550,116,0,1,-1,
33641,5,682,20,683, 41561,5,807,20,808,
33654,32,76,0,83, 41574,32,76,0,83,
33660,76,0,80,0, 41580,76,0,80,0,
3367114,0,111,0,103, 4159114,0,111,0,103,
33680,114,0,97,0, 41600,114,0,97,0,
3369109,0,82,0,111, 4161109,0,82,0,111,
33700,111,0,116,0, 41620,111,0,116,0,
337195,0,49,0,1, 416395,0,50,0,1,
3372142,1,3,1,3, 4164168,1,3,1,2,
33731,2,684,22,1, 41651,1,809,22,1,
33741,1,2640,685,17, 41662,1,2768,810,17,
3375686,15,687,4,14, 4167811,15,812,4,14,
337637,0,83,0,116, 416837,0,83,0,116,
33770,97,0,116,0, 41690,97,0,116,0,
3378101,0,115,0,1, 4170101,0,115,0,1,
3379-1,1,5,688,20, 4171-1,1,5,813,20,
3380689,4,16,83,0, 4172814,4,16,83,0,
3381116,0,97,0,116, 4173116,0,97,0,116,
33820,101,0,115,0, 41740,101,0,115,0,
338395,0,49,0,1, 417595,0,49,0,1,
3384152,1,3,1,2, 4176177,1,3,1,2,
33851,1,690,22,1, 41771,1,815,22,1,
338611,1,2634,691,17, 417811,1,2755,816,17,
3387692,15,693,4,12, 4179817,15,818,4,12,
338837,0,83,0,116, 418037,0,83,0,116,
33890,97,0,116,0, 41810,97,0,116,0,
3390101,0,1,-1,1, 4182101,0,1,-1,1,
33915,694,20,695,4, 41835,819,20,820,4,
339214,83,0,116,0, 418414,83,0,116,0,
339397,0,116,0,101, 418597,0,116,0,101,
33940,95,0,49,0, 41860,95,0,49,0,
33951,154,1,3,1, 41871,179,1,3,1,
33965,1,4,696,22, 41885,1,4,821,22,
33971,13,1,2558,697, 41891,13,1,2767,822,
339817,698,15,693,1, 419017,823,15,812,1,
3399-1,1,5,699,20, 4191-1,1,5,824,20,
3400700,4,14,83,0, 4192825,4,16,83,0,
3401116,0,97,0,116, 4193116,0,97,0,116,
34020,101,0,95,0, 41940,101,0,115,0,
340350,0,1,155,1, 419595,0,50,0,1,
34043,1,6,1,5, 4196178,1,3,1,3,
3405701,22,1,14,1, 41971,2,826,22,1,
34062636,702,17,703,15, 419812,1,2834,827,17,
3407681,1,-1,1,5, 4199828,15,806,1,-1,
3408704,20,705,4,32, 42001,5,829,20,830,
340976,0,83,0,76, 42014,32,76,0,83,
34100,80,0,114,0, 42020,76,0,80,0,
3411111,0,103,0,114, 4203114,0,111,0,103,
34120,97,0,109,0, 42040,114,0,97,0,
341382,0,111,0,111, 4205109,0,82,0,111,
34140,116,0,95,0, 42060,111,0,116,0,
341550,0,1,143,1, 420795,0,49,0,1,
34163,1,2,1,1, 4208167,1,3,1,3,
3417706,22,1,2,1, 42091,2,831,22,1,
34182639,707,17,708,15, 42101,1,2649,832,17,
3419687,1,-1,1,5, 4211833,15,818,1,-1,
3420709,20,710,4,16, 42121,5,834,20,835,
342183,0,116,0,97, 42134,14,83,0,116,
34220,116,0,101,0, 42140,97,0,116,0,
3423115,0,95,0,50, 4215101,0,95,0,50,
34240,1,153,1,3, 42160,1,180,1,3,
34251,3,1,2,711, 42171,6,1,5,836,
342622,1,12,1,3, 421822,1,14,1,3,
3427712,19,617,1,3, 4219837,19,737,1,3,
3428713,5,95,1,256, 4220838,5,95,1,256,
3429714,16,0,615,1, 4221839,16,0,735,1,
34301261,715,16,0,615, 42221261,840,16,0,735,
34311,509,716,16,0, 42231,509,841,16,0,
3432615,1,1515,717,16, 4224735,1,1515,842,16,
34330,615,1,2021,718, 42250,735,1,2021,843,
343417,719,15,720,4, 422617,844,15,845,4,
343524,37,0,73,0, 422724,37,0,73,0,
3436102,0,83,0,116, 4228102,0,83,0,116,
34370,97,0,116,0, 42290,97,0,116,0,
3438101,0,109,0,101, 4230101,0,109,0,101,
34390,110,0,116,0, 42310,110,0,116,0,
34401,-1,1,5,721, 42321,-1,1,5,846,
344120,722,4,26,73, 423320,847,4,26,73,
34420,102,0,83,0, 42340,102,0,83,0,
3443116,0,97,0,116, 4235116,0,97,0,116,
34440,101,0,109,0, 42360,101,0,109,0,
3445101,0,110,0,116, 4237101,0,110,0,116,
34460,95,0,50,0, 42380,95,0,50,0,
34471,185,1,3,1, 42391,241,1,3,1,
34488,1,7,723,22, 42408,1,7,848,22,
34491,45,1,1775,724, 42411,76,1,1775,849,
345016,0,615,1,2029, 424216,0,735,1,2029,
3451725,17,726,15,727, 4243850,17,851,15,852,
34524,20,37,0,83, 42444,20,37,0,83,
34530,116,0,97,0, 42450,116,0,97,0,
3454116,0,101,0,109, 4246116,0,101,0,109,
34550,101,0,110,0, 42470,101,0,110,0,
3456116,0,1,-1,1, 4248116,0,1,-1,1,
34575,728,20,729,4, 42495,853,20,854,4,
345824,83,0,116,0, 425024,83,0,116,0,
345997,0,116,0,101, 425197,0,116,0,101,
34600,109,0,101,0, 42520,109,0,101,0,
3461110,0,116,0,95, 4253110,0,116,0,95,
34620,49,0,51,0, 42540,49,0,51,0,
34631,179,1,3,1, 42551,235,1,3,1,
34642,1,1,730,22, 42562,1,1,855,22,
34651,39,1,2030,731, 42571,70,1,2030,856,
346617,732,15,727,1, 425817,857,15,852,1,
3467-1,1,5,733,20, 4259-1,1,5,858,20,
3468734,4,24,83,0, 4260859,4,24,83,0,
3469116,0,97,0,116, 4261116,0,97,0,116,
34700,101,0,109,0, 42620,101,0,109,0,
3471101,0,110,0,116, 4263101,0,110,0,116,
34720,95,0,49,0, 42640,95,0,49,0,
347350,0,1,178,1, 426550,0,1,234,1,
34743,1,2,1,1, 42663,1,2,1,1,
3475735,22,1,38,1, 4267860,22,1,69,1,
34762031,736,17,737,15, 42682031,861,17,862,15,
3477727,1,-1,1,5, 4269852,1,-1,1,5,
3478738,20,739,4,24, 4270863,20,864,4,24,
347983,0,116,0,97, 427183,0,116,0,97,
34800,116,0,101,0, 42720,116,0,101,0,
3481109,0,101,0,110, 4273109,0,101,0,110,
34820,116,0,95,0, 42740,116,0,95,0,
348349,0,49,0,1, 427549,0,49,0,1,
3484177,1,3,1,2, 4276233,1,3,1,2,
34851,1,740,22,1, 42771,1,865,22,1,
348637,1,2032,741,17, 427868,1,2032,866,17,
3487742,15,727,1,-1, 4279867,15,852,1,-1,
34881,5,743,20,744, 42801,5,868,20,869,
34894,24,83,0,116, 42814,24,83,0,116,
34900,97,0,116,0, 42820,97,0,116,0,
3491101,0,109,0,101, 4283101,0,109,0,101,
34920,110,0,116,0, 42840,110,0,116,0,
349395,0,49,0,48, 428595,0,49,0,48,
34940,1,176,1,3, 42860,1,232,1,3,
34951,2,1,1,745, 42871,2,1,1,870,
349622,1,36,1,2033, 428822,1,67,1,2033,
3497746,17,747,15,727, 4289871,17,872,15,852,
34981,-1,1,5,748, 42901,-1,1,5,873,
349920,749,4,22,83, 429120,874,4,22,83,
35000,116,0,97,0, 42920,116,0,97,0,
3501116,0,101,0,109, 4293116,0,101,0,109,
35020,101,0,110,0, 42940,101,0,110,0,
3503116,0,95,0,57, 4295116,0,95,0,57,
35040,1,175,1,3, 42960,1,231,1,3,
35051,2,1,1,750, 42971,2,1,1,875,
350622,1,35,1,277, 429822,1,66,1,277,
3507751,16,0,615,1, 4299876,16,0,735,1,
35082035,752,17,753,15, 43002035,877,17,878,15,
3509727,1,-1,1,5, 4301852,1,-1,1,5,
3510754,20,755,4,22, 4302879,20,880,4,22,
351183,0,116,0,97, 430383,0,116,0,97,
35120,116,0,101,0, 43040,116,0,101,0,
3513109,0,101,0,110, 4305109,0,101,0,110,
35140,116,0,95,0, 43060,116,0,95,0,
351556,0,1,174,1, 430756,0,1,230,1,
35163,1,3,1,2, 43083,1,3,1,2,
3517756,22,1,34,1, 4309881,22,1,65,1,
35182037,757,17,758,15, 43102037,882,17,883,15,
3519727,1,-1,1,5, 4311852,1,-1,1,5,
3520759,20,760,4,22, 4312884,20,885,4,22,
352183,0,116,0,97, 431383,0,116,0,97,
35220,116,0,101,0, 43140,116,0,101,0,
3523109,0,101,0,110, 4315109,0,101,0,110,
35240,116,0,95,0, 43160,116,0,95,0,
352555,0,1,173,1, 431755,0,1,229,1,
35263,1,3,1,2, 43183,1,3,1,2,
3527761,22,1,33,1, 4319886,22,1,64,1,
35282039,762,17,763,15, 43202039,887,17,888,15,
3529727,1,-1,1,5, 4321852,1,-1,1,5,
3530764,20,765,4,22, 4322889,20,890,4,22,
353183,0,116,0,97, 432383,0,116,0,97,
35320,116,0,101,0, 43240,116,0,101,0,
3533109,0,101,0,110, 4325109,0,101,0,110,
35340,116,0,95,0, 43260,116,0,95,0,
353554,0,1,172,1, 432754,0,1,228,1,
35363,1,3,1,2, 43283,1,3,1,2,
3537766,22,1,32,1, 4329891,22,1,63,1,
353832,767,16,0,615, 433032,892,16,0,735,
35391,2041,768,17,769, 43311,2041,893,17,894,
354015,727,1,-1,1, 433215,852,1,-1,1,
35415,770,20,771,4, 43335,895,20,896,4,
354222,83,0,116,0, 433422,83,0,116,0,
354397,0,116,0,101, 433597,0,116,0,101,
35440,109,0,101,0, 43360,109,0,101,0,
3545110,0,116,0,95, 4337110,0,116,0,95,
35460,53,0,1,171, 43380,53,0,1,227,
35471,3,1,3,1, 43391,3,1,3,1,
35482,772,22,1,31, 43402,897,22,1,62,
35491,2293,773,16,0, 43411,2293,898,16,0,
3550615,1,2043,774,17, 4342735,1,2043,899,17,
3551775,15,727,1,-1, 4343900,15,852,1,-1,
35521,5,776,20,777, 43441,5,901,20,902,
35534,22,83,0,116, 43454,22,83,0,116,
35540,97,0,116,0, 43460,97,0,116,0,
3555101,0,109,0,101, 4347101,0,109,0,101,
35560,110,0,116,0, 43480,110,0,116,0,
355795,0,51,0,1, 434995,0,51,0,1,
3558169,1,3,1,3, 4350225,1,3,1,3,
35591,2,778,22,1, 43511,2,903,22,1,
356029,1,2045,779,17, 435260,1,2045,904,17,
3561780,15,727,1,-1, 4353905,15,852,1,-1,
35621,5,781,20,782, 43541,5,906,20,907,
35634,22,83,0,116, 43554,22,83,0,116,
35640,97,0,116,0, 43560,97,0,116,0,
3565101,0,109,0,101, 4357101,0,109,0,101,
35660,110,0,116,0, 43580,110,0,116,0,
356795,0,49,0,1, 435995,0,49,0,1,
3568167,1,3,1,3, 4360223,1,3,1,3,
35691,2,783,22,1, 43611,2,908,22,1,
357027,1,41,784,16, 436258,1,41,909,16,
35710,615,1,1297,785, 43630,735,1,1297,910,
357216,0,615,1,43, 436416,0,735,1,43,
3573786,16,0,615,1, 4365911,16,0,735,1,
35741803,787,17,788,15, 43661803,912,17,913,15,
3575789,4,16,37,0, 4367914,4,16,37,0,
357670,0,111,0,114, 436870,0,111,0,114,
35770,76,0,111,0, 43690,76,0,111,0,
3578111,0,112,0,1, 4370111,0,112,0,1,
3579-1,1,5,790,20, 4371-1,1,5,915,20,
3580791,4,18,70,0, 4372916,4,18,70,0,
3581111,0,114,0,76, 4373111,0,114,0,76,
35820,111,0,111,0, 43740,111,0,111,0,
3583112,0,95,0,49, 4375112,0,95,0,49,
35840,1,192,1,3, 43760,1,248,1,3,
35851,10,1,9,792, 43771,10,1,9,917,
358622,1,52,1,1804, 437822,1,83,1,1804,
3587793,16,0,615,1, 4379918,16,0,735,1,
3588299,794,16,0,615, 4380299,919,16,0,735,
35891,52,795,16,0, 43811,52,920,16,0,
3590615,1,2318,796,16, 4382735,1,2318,921,16,
35910,615,1,62,797, 43830,735,1,62,922,
359216,0,615,1,2075, 438416,0,735,1,2075,
3593798,16,0,615,1, 4385923,16,0,735,1,
35941574,799,17,800,15, 43861574,924,17,925,15,
3595727,1,-1,1,5, 4387852,1,-1,1,5,
3596801,20,802,4,22, 4388926,20,927,4,22,
359783,0,116,0,97, 438983,0,116,0,97,
35980,116,0,101,0, 43900,116,0,101,0,
3599109,0,101,0,110, 4391109,0,101,0,110,
36000,116,0,95,0, 43920,116,0,95,0,
360152,0,1,170,1, 439352,0,1,226,1,
36023,1,3,1,2, 43943,1,3,1,2,
3603803,22,1,30,1, 4395928,22,1,61,1,
360471,804,16,0,615, 439671,929,16,0,735,
36051,76,805,16,0, 43971,76,930,16,0,
3606615,1,1834,806,16, 4398735,1,1834,931,16,
36070,615,1,2337,807, 43990,735,1,2337,932,
360816,0,615,1,79, 440016,0,735,1,79,
3609808,16,0,615,1, 4401933,16,0,735,1,
36101335,809,16,0,615, 44021335,934,16,0,735,
36111,322,810,16,0, 44031,322,935,16,0,
3612615,1,85,811,16, 4404735,1,85,936,16,
36130,615,1,89,812, 44050,735,1,89,937,
361416,0,615,1,346, 440616,0,735,1,346,
3615813,16,0,615,1, 4407938,16,0,735,1,
36162105,814,17,815,15, 44082105,939,17,940,15,
3617720,1,-1,1,5, 4409845,1,-1,1,5,
3618816,20,817,4,26, 4410941,20,942,4,26,
361973,0,102,0,83, 441173,0,102,0,83,
36200,116,0,97,0, 44120,116,0,97,0,
3621116,0,101,0,109, 4413116,0,101,0,109,
36220,101,0,110,0, 44140,101,0,110,0,
3623116,0,95,0,51, 4415116,0,95,0,51,
36240,1,186,1,3, 44160,1,242,1,3,
36251,6,1,5,818, 44171,6,1,5,943,
362622,1,46,1,2106, 441822,1,77,1,2106,
3627819,16,0,615,1, 4419944,16,0,735,1,
362897,820,16,0,615, 442097,945,16,0,735,
36291,1860,821,17,822, 44211,1860,946,17,947,
363015,823,4,34,37, 442215,948,4,34,37,
36310,68,0,111,0, 44230,68,0,111,0,
363287,0,104,0,105, 442487,0,104,0,105,
36330,108,0,101,0, 44250,108,0,101,0,
@@ -3635,7 +4427,7 @@ public yyLSLSyntax
36350,116,0,101,0, 44270,116,0,101,0,
3636109,0,101,0,110, 4428109,0,101,0,110,
36370,116,0,1,-1, 44290,116,0,1,-1,
36381,5,824,20,825, 44301,5,949,20,950,
36394,36,68,0,111, 44314,36,68,0,111,
36400,87,0,104,0, 44320,87,0,104,0,
3641105,0,108,0,101, 4433105,0,108,0,101,
@@ -3643,66 +4435,66 @@ public yyLSLSyntax
364397,0,116,0,101, 443597,0,116,0,101,
36440,109,0,101,0, 44360,109,0,101,0,
3645110,0,116,0,95, 4437110,0,116,0,95,
36460,49,0,1,190, 44380,49,0,1,246,
36471,3,1,8,1, 44391,3,1,8,1,
36487,826,22,1,50, 44407,951,22,1,81,
36491,2364,827,17,828, 44411,2364,952,17,953,
365015,789,1,-1,1, 444215,914,1,-1,1,
36515,829,20,830,4, 44435,954,20,955,4,
365218,70,0,111,0, 444418,70,0,111,0,
3653114,0,76,0,111, 4445114,0,76,0,111,
36540,111,0,112,0, 44460,111,0,112,0,
365595,0,50,0,1, 444795,0,50,0,1,
3656193,1,3,1,9, 4448249,1,3,1,9,
36571,8,831,22,1, 44491,8,956,22,1,
365853,1,102,832,16, 445084,1,102,957,16,
36590,615,1,112,833, 44510,735,1,112,958,
366016,0,615,1,1117, 445216,0,735,1,1117,
3661834,16,0,615,1, 4453959,16,0,735,1,
36621873,835,17,836,15, 44542786,960,16,0,735,
3663823,1,-1,1,5, 44551,1873,961,17,962,
3664837,20,838,4,36, 445615,948,1,-1,1,
366568,0,111,0,87, 44575,963,20,964,4,
36660,104,0,105,0, 445836,68,0,111,0,
3667108,0,101,0,83, 445987,0,104,0,105,
36680,116,0,97,0, 44600,108,0,101,0,
3669116,0,101,0,109,
36700,101,0,110,0,
3671116,0,95,0,50,
36720,1,191,1,3,
36731,8,1,7,839,
367422,1,51,1,1876,
3675840,16,0,615,1,
3676124,841,16,0,615,
36771,2136,842,17,843,
367815,720,1,-1,1,
36795,844,20,845,4,
368026,73,0,102,0,
368183,0,116,0,97, 446183,0,116,0,97,
36820,116,0,101,0, 44620,116,0,101,0,
3683109,0,101,0,110, 4463109,0,101,0,110,
36840,116,0,95,0, 44640,116,0,95,0,
368552,0,1,187,1, 446550,0,1,247,1,
36863,1,8,1,7, 44663,1,8,1,7,
3687846,22,1,47,1, 4467965,22,1,82,1,
3688381,847,16,0,615, 44681876,966,16,0,735,
36891,525,848,16,0, 44691,124,967,16,0,
3690615,1,137,849,16, 4470735,1,2136,968,17,
36910,615,1,1901,850, 4471969,15,845,1,-1,
369216,0,615,1,2658, 44721,5,970,20,971,
3693851,16,0,615,1, 44734,26,73,0,102,
36941153,852,16,0,615, 44740,83,0,116,0,
36951,151,853,16,0, 447597,0,116,0,101,
3696615,1,1407,854,16, 44760,109,0,101,0,
36970,615,1,1659,855, 4477110,0,116,0,95,
369816,0,615,1,2413, 44780,52,0,1,243,
3699856,16,0,615,1, 44791,3,1,8,1,
3700406,857,16,0,615, 44807,972,22,1,78,
37011,1371,858,16,0, 44811,381,973,16,0,
3702615,1,166,859,16, 4482735,1,525,974,16,
37030,615,1,1622,860, 44830,735,1,137,975,
370416,0,615,1,1931, 448416,0,735,1,1901,
3705861,17,862,15,863, 4485976,16,0,735,1,
44861153,977,16,0,735,
44871,151,978,16,0,
4488735,1,1407,979,16,
44890,735,1,1659,980,
449016,0,735,1,2413,
4491981,16,0,735,1,
4492406,982,16,0,735,
44931,1371,983,16,0,
4494735,1,166,984,16,
44950,735,1,1622,985,
449616,0,735,1,1931,
4497986,17,987,15,988,
37064,30,37,0,87, 44984,30,37,0,87,
37070,104,0,105,0, 44990,104,0,105,0,
3708108,0,101,0,83, 4500108,0,101,0,83,
@@ -3710,46 +4502,46 @@ public yyLSLSyntax
3710116,0,101,0,109, 4502116,0,101,0,109,
37110,101,0,110,0, 45030,101,0,110,0,
3712116,0,1,-1,1, 4504116,0,1,-1,1,
37135,864,20,865,4, 45055,989,20,990,4,
371432,87,0,104,0, 450632,87,0,104,0,
3715105,0,108,0,101, 4507105,0,108,0,101,
37160,83,0,116,0, 45080,83,0,116,0,
371797,0,116,0,101, 450997,0,116,0,101,
37180,109,0,101,0, 45100,109,0,101,0,
3719110,0,116,0,95, 4511110,0,116,0,95,
37200,49,0,1,188, 45120,49,0,1,244,
37211,3,1,6,1, 45131,3,1,6,1,
37225,866,22,1,48, 45145,991,22,1,79,
37231,1933,867,16,0, 45151,1933,992,16,0,
3724615,1,431,868,16, 4516735,1,431,993,16,
37250,615,1,1585,869, 45170,735,1,1585,994,
372616,0,615,1,182, 451816,0,735,1,182,
3727870,16,0,615,1, 4519995,16,0,735,1,
37281189,871,16,0,615, 45201189,996,16,0,735,
37291,1443,872,16,0, 45211,1443,997,16,0,
3730615,1,1695,873,16, 4522735,1,1695,998,16,
37310,615,1,2198,874, 45230,735,1,2198,999,
373216,0,615,1,447, 452416,0,735,1,447,
3733875,16,0,615,1, 45251000,16,0,735,1,
37342458,876,17,877,15, 45262458,1001,17,1002,15,
3735878,4,28,37,0, 45271003,4,28,37,0,
373683,0,116,0,97, 452883,0,116,0,97,
37370,116,0,101,0, 45290,116,0,101,0,
3738109,0,101,0,110, 4530109,0,101,0,110,
37390,116,0,76,0, 45310,116,0,76,0,
3740105,0,115,0,116, 4532105,0,115,0,116,
37410,1,-1,1,5, 45330,1,-1,1,5,
3742879,20,880,4,30, 45341004,20,1005,4,30,
374383,0,116,0,97, 453583,0,116,0,97,
37440,116,0,101,0, 45360,116,0,101,0,
3745109,0,101,0,110, 4537109,0,101,0,110,
37460,116,0,76,0, 45380,116,0,76,0,
3747105,0,115,0,116, 4539105,0,115,0,116,
37480,95,0,50,0, 45400,95,0,50,0,
37491,165,1,3,1, 45411,221,1,3,1,
37503,1,2,881,22, 45423,1,2,1006,22,
37511,25,1,2459,882, 45431,56,1,2459,1007,
375217,883,15,884,4, 454417,1008,15,1009,4,
375336,37,0,67,0, 454536,37,0,67,0,
3754111,0,109,0,112, 4546111,0,109,0,112,
37550,111,0,117,0, 45470,111,0,117,0,
@@ -3758,7 +4550,7 @@ public yyLSLSyntax
3758116,0,101,0,109, 4550116,0,101,0,109,
37590,101,0,110,0, 45510,101,0,110,0,
3760116,0,1,-1,1, 4552116,0,1,-1,1,
37615,885,20,886,4, 45535,1010,20,1011,4,
376238,67,0,111,0, 455438,67,0,111,0,
3763109,0,112,0,111, 4555109,0,112,0,111,
37640,117,0,110,0, 45560,117,0,110,0,
@@ -3767,34 +4559,34 @@ public yyLSLSyntax
3767101,0,109,0,101, 4559101,0,109,0,101,
37680,110,0,116,0, 45600,110,0,116,0,
376995,0,50,0,1, 456195,0,50,0,1,
3770163,1,3,1,4, 4562219,1,3,1,4,
37711,3,887,22,1, 45631,3,1012,22,1,
377223,1,1958,888,16, 456454,1,1958,1013,16,
37730,615,1,2462,889, 45650,735,1,2462,1014,
377417,890,15,878,1, 456617,1015,15,1003,1,
3775-1,1,5,891,20, 4567-1,1,5,1016,20,
3776892,4,30,83,0, 45681017,4,30,83,0,
3777116,0,97,0,116, 4569116,0,97,0,116,
37780,101,0,109,0, 45700,101,0,109,0,
3779101,0,110,0,116, 4571101,0,110,0,116,
37800,76,0,105,0, 45720,76,0,105,0,
3781115,0,116,0,95, 4573115,0,116,0,95,
37820,49,0,1,164, 45740,49,0,1,220,
37831,3,1,2,1, 45751,3,1,2,1,
37841,893,22,1,24, 45761,1018,22,1,55,
37851,1657,894,17,895, 45771,1657,1019,17,1020,
378615,727,1,-1,1, 457815,852,1,-1,1,
37875,896,20,897,4, 45795,1021,20,1022,4,
378822,83,0,116,0, 458022,83,0,116,0,
378997,0,116,0,101, 458197,0,116,0,101,
37900,109,0,101,0, 45820,109,0,101,0,
3791110,0,116,0,95, 4583110,0,116,0,95,
37920,50,0,1,168, 45840,50,0,1,224,
37931,3,1,3,1, 45851,3,1,3,1,
37942,898,22,1,28, 45862,1023,22,1,59,
37951,2464,899,17,900, 45871,2464,1024,17,1025,
379615,884,1,-1,1, 458815,1009,1,-1,1,
37975,901,20,902,4, 45895,1026,20,1027,4,
379838,67,0,111,0, 459038,67,0,111,0,
3799109,0,112,0,111, 4591109,0,112,0,111,
38000,117,0,110,0, 45920,117,0,110,0,
@@ -3803,280 +4595,280 @@ public yyLSLSyntax
3803101,0,109,0,101, 4595101,0,109,0,101,
38040,110,0,116,0, 45960,110,0,116,0,
380595,0,49,0,1, 459795,0,49,0,1,
3806162,1,3,1,3, 4598218,1,3,1,3,
38071,2,903,22,1, 45991,2,1028,22,1,
380822,1,199,904,16, 460053,1,199,1029,16,
38090,615,1,459,905, 46010,735,1,459,1030,
381016,0,615,1,462, 460216,0,735,1,462,
3811906,16,0,615,1, 46031031,16,0,735,1,
3812217,907,16,0,615, 4604217,1032,16,0,735,
38131,2227,908,17,909, 46051,2227,1033,17,1034,
381415,863,1,-1,1, 460615,988,1,-1,1,
38155,910,20,911,4, 46075,1035,20,1036,4,
381632,87,0,104,0, 460832,87,0,104,0,
3817105,0,108,0,101, 4609105,0,108,0,101,
38180,83,0,116,0, 46100,83,0,116,0,
381997,0,116,0,101, 461197,0,116,0,101,
38200,109,0,101,0, 46120,109,0,101,0,
3821110,0,116,0,95, 4613110,0,116,0,95,
38220,50,0,1,189, 46140,50,0,1,245,
38231,3,1,6,1, 46151,3,1,6,1,
38245,912,22,1,49, 46165,1037,22,1,80,
38251,1225,913,16,0, 46171,1225,1038,16,0,
3826615,1,1479,914,16, 4618735,1,1479,1039,16,
38270,615,1,1731,915, 46190,735,1,1731,1040,
382816,0,615,1,1989, 462016,0,735,1,1989,
3829916,17,917,15,720, 46211041,17,1042,15,845,
38301,-1,1,5,918, 46221,-1,1,5,1043,
383120,919,4,26,73, 462320,1044,4,26,73,
38320,102,0,83,0, 46240,102,0,83,0,
3833116,0,97,0,116, 4625116,0,97,0,116,
38340,101,0,109,0, 46260,101,0,109,0,
3835101,0,110,0,116, 4627101,0,110,0,116,
38360,95,0,49,0, 46280,95,0,49,0,
38371,184,1,3,1, 46291,240,1,3,1,
38386,1,5,920,22, 46306,1,5,1045,22,
38391,44,1,1990,921, 46311,75,1,1990,1046,
384016,0,615,1,236, 463216,0,735,1,236,
3841922,16,0,615,1, 46331047,16,0,735,1,
38421756,923,16,0,615, 46341756,1048,16,0,735,
38431,4,924,19,184, 46351,4,1049,19,200,
38441,4,925,5,100, 46361,4,1050,5,100,
38451,256,926,16,0, 46371,256,1051,16,0,
3846538,1,1261,927,16, 4638624,1,1261,1052,16,
38470,538,1,509,928, 46390,624,1,509,1053,
384816,0,538,1,1515, 464016,0,624,1,1515,
3849929,16,0,538,1, 46411054,16,0,624,1,
38502021,718,1,1775,930, 46422021,843,1,1775,1055,
385116,0,538,1,2029, 464316,0,624,1,2029,
3852725,1,2030,731,1, 4644850,1,2030,856,1,
38532031,736,1,2032,741, 46452031,861,1,2032,866,
38541,2033,746,1,277, 46461,2033,871,1,277,
3855931,16,0,538,1, 46471056,16,0,624,1,
38562035,752,1,2037,757, 46482035,877,1,2037,882,
38571,2039,762,1,32, 46491,2039,887,1,32,
3858932,16,0,538,1, 46501057,16,0,624,1,
38592041,768,1,2293,933, 46512041,893,1,2293,1058,
386016,0,538,1,2043, 465216,0,624,1,2043,
3861774,1,2045,779,1, 4653899,1,2045,904,1,
386240,934,16,0,186, 465440,1059,16,0,202,
38631,41,935,16,0, 46551,41,1060,16,0,
3864538,1,1297,936,16, 4656624,1,1297,1061,16,
38650,538,1,43,937, 46570,624,1,43,1062,
386616,0,538,1,44, 465816,0,624,1,44,
3867938,16,0,186,1, 46591063,16,0,202,1,
38681803,787,1,1804,939, 46601803,912,1,1804,1064,
386916,0,538,1,299, 466116,0,624,1,299,
3870940,16,0,538,1, 46621065,16,0,624,1,
387147,941,16,0,182, 466347,1066,16,0,198,
38721,52,942,16,0, 46641,52,1067,16,0,
3873538,1,2318,943,16, 4665624,1,2318,1068,16,
38740,538,1,63,944, 46660,624,1,63,1069,
387516,0,201,1,66, 466716,0,224,1,66,
3876945,16,0,199,1, 46681070,16,0,222,1,
38772075,946,16,0,538, 46692075,1071,16,0,624,
38781,1574,799,1,71, 46701,1574,924,1,71,
3879947,16,0,538,1, 46711072,16,0,624,1,
388076,948,16,0,538, 467276,1073,16,0,624,
38811,1834,949,16,0, 46731,1834,1074,16,0,
3882538,1,2337,950,16, 4674624,1,2337,1075,16,
38830,538,1,79,951, 46750,624,1,79,1076,
388416,0,538,1,1335, 467616,0,624,1,1335,
3885952,16,0,538,1, 46771077,16,0,624,1,
3886322,953,16,0,538, 4678322,1078,16,0,624,
38871,85,954,16,0, 46791,85,1079,16,0,
3888538,1,89,955,16, 4680624,1,89,1080,16,
38890,538,1,346,956, 46810,624,1,346,1081,
389016,0,538,1,97, 468216,0,624,1,97,
3891957,16,0,538,1, 46831082,16,0,624,1,
38922106,958,16,0,538, 46842106,1083,16,0,624,
38931,102,959,16,0, 46851,102,1084,16,0,
3894538,1,1860,821,1, 4686624,1,1860,946,1,
38952364,827,1,1114,960, 46872364,952,1,1114,1085,
389616,0,182,1,112, 468816,0,198,1,112,
3897961,16,0,538,1, 46891086,16,0,624,1,
38981117,962,16,0,538, 46901117,1087,16,0,624,
38991,1873,835,1,1876, 46911,2786,1088,16,0,
3900963,16,0,538,1, 4692624,1,1873,961,1,
3901124,964,16,0,538, 46931876,1089,16,0,624,
39021,2136,842,1,381, 46941,124,1090,16,0,
3903965,16,0,538,1, 4695624,1,2136,968,1,
3904525,966,16,0,538, 4696381,1091,16,0,624,
39051,137,967,16,0, 46971,525,1092,16,0,
3906538,1,1901,968,16, 4698624,1,137,1093,16,
39070,538,1,2658,969, 46990,624,1,1901,1094,
390816,0,538,1,1153, 470016,0,624,1,1153,
3909970,16,0,538,1, 47011095,16,0,624,1,
3910151,971,16,0,538, 4702151,1096,16,0,624,
39111,1407,972,16,0, 47031,1407,1097,16,0,
3912538,1,1659,973,16, 4704624,1,1659,1098,16,
39130,538,1,2413,974, 47050,624,1,2413,1099,
391416,0,538,1,406, 470616,0,624,1,406,
3915975,16,0,538,1, 47071100,16,0,624,1,
39161371,976,16,0,538, 47081371,1101,16,0,624,
39171,2105,814,1,166, 47091,2105,939,1,166,
3918977,16,0,538,1, 47101102,16,0,624,1,
39191622,978,16,0,538, 47111622,1103,16,0,624,
39201,1931,861,1,1933, 47121,1931,986,1,1933,
3921979,16,0,538,1, 47131104,16,0,624,1,
3922431,980,16,0,538, 4714431,1105,16,0,624,
39231,1585,981,16,0, 47151,1585,1106,16,0,
3924538,1,182,982,16, 4716624,1,182,1107,16,
39250,538,1,1189,983, 47170,624,1,1189,1108,
392616,0,538,1,1443, 471816,0,624,1,1443,
3927984,16,0,538,1, 47191109,16,0,624,1,
39281695,985,16,0,538, 47201695,1110,16,0,624,
39291,2198,986,16,0, 47211,2198,1111,16,0,
3930538,1,447,987,16, 4722624,1,447,1112,16,
39310,538,1,2458,876, 47230,624,1,2458,1001,
39321,2459,882,1,1958, 47241,2459,1007,1,1958,
3933988,16,0,538,1, 47251113,16,0,624,1,
39342462,889,1,1657,894, 47262462,1014,1,1657,1019,
39351,2464,899,1,199, 47271,2464,1024,1,199,
3936989,16,0,538,1, 47281114,16,0,624,1,
3937459,990,16,0,538, 4729459,1115,16,0,624,
39381,462,991,16,0, 47301,462,1116,16,0,
3939538,1,217,992,16, 4731624,1,217,1117,16,
39400,538,1,2227,908, 47320,624,1,2227,1033,
39411,1225,993,16,0, 47331,1225,1118,16,0,
3942538,1,1479,994,16, 4734624,1,1479,1119,16,
39430,538,1,1731,995, 47350,624,1,1731,1120,
394416,0,538,1,1989, 473616,0,624,1,1989,
3945916,1,1990,996,16, 47371041,1,1990,1121,16,
39460,538,1,236,997, 47380,624,1,236,1122,
394716,0,538,1,1756, 473916,0,624,1,1756,
3948998,16,0,538,1, 47401123,16,0,624,1,
39495,999,19,181,1, 47415,1124,19,197,1,
39505,1000,5,100,1, 47425,1125,5,100,1,
3951256,1001,16,0,534, 4743256,1126,16,0,620,
39521,1261,1002,16,0, 47441,1261,1127,16,0,
3953534,1,509,1003,16, 4745620,1,509,1128,16,
39540,534,1,1515,1004, 47460,620,1,1515,1129,
395516,0,534,1,2021, 474716,0,620,1,2021,
3956718,1,1775,1005,16, 4748843,1,1775,1130,16,
39570,534,1,2029,725, 47490,620,1,2029,850,
39581,2030,731,1,2031, 47501,2030,856,1,2031,
3959736,1,2032,741,1, 4751861,1,2032,866,1,
39602033,746,1,277,1006, 47522033,871,1,277,1131,
396116,0,534,1,2035, 475316,0,620,1,2035,
3962752,1,2037,757,1, 4754877,1,2037,882,1,
39632039,762,1,32,1007, 47552039,887,1,32,1132,
396416,0,534,1,2041, 475616,0,620,1,2041,
3965768,1,2293,1008,16, 4757893,1,2293,1133,16,
39660,534,1,2043,774, 47580,620,1,2043,899,
39671,2045,779,1,40, 47591,2045,904,1,40,
39681009,16,0,185,1, 47601134,16,0,201,1,
396941,1010,16,0,534, 476141,1135,16,0,620,
39701,1297,1011,16,0, 47621,1297,1136,16,0,
3971534,1,43,1012,16, 4763620,1,43,1137,16,
39720,534,1,44,1013, 47640,620,1,44,1138,
397316,0,185,1,1803, 476516,0,201,1,1803,
3974787,1,1804,1014,16, 4766912,1,1804,1139,16,
39750,534,1,299,1015, 47670,620,1,299,1140,
397616,0,534,1,47, 476816,0,620,1,47,
39771016,16,0,179,1, 47691141,16,0,195,1,
397852,1017,16,0,534, 477052,1142,16,0,620,
39791,2318,1018,16,0, 47711,2318,1143,16,0,
3980534,1,63,1019,16, 4772620,1,63,1144,16,
39810,200,1,66,1020, 47730,223,1,66,1145,
398216,0,198,1,2075, 477416,0,221,1,2075,
39831021,16,0,534,1, 47751146,16,0,620,1,
39841574,799,1,71,1022, 47761574,924,1,71,1147,
398516,0,534,1,76, 477716,0,620,1,76,
39861023,16,0,534,1, 47781148,16,0,620,1,
39871834,1024,16,0,534, 47791834,1149,16,0,620,
39881,2337,1025,16,0, 47801,2337,1150,16,0,
3989534,1,79,1026,16, 4781620,1,79,1151,16,
39900,534,1,1335,1027, 47820,620,1,1335,1152,
399116,0,534,1,322, 478316,0,620,1,322,
39921028,16,0,534,1, 47841153,16,0,620,1,
399385,1029,16,0,534, 478585,1154,16,0,620,
39941,89,1030,16,0, 47861,89,1155,16,0,
3995534,1,346,1031,16, 4787620,1,346,1156,16,
39960,534,1,97,1032, 47880,620,1,97,1157,
399716,0,534,1,2106, 478916,0,620,1,2106,
39981033,16,0,534,1, 47901158,16,0,620,1,
3999102,1034,16,0,534, 4791102,1159,16,0,620,
40001,1860,821,1,2364, 47921,1860,946,1,2364,
4001827,1,1114,1035,16, 4793952,1,1114,1160,16,
40020,179,1,112,1036, 47940,195,1,112,1161,
400316,0,534,1,1117, 479516,0,620,1,1117,
40041037,16,0,534,1, 47961162,16,0,620,1,
40051873,835,1,1876,1038, 47972786,1163,16,0,620,
400616,0,534,1,124, 47981,1873,961,1,1876,
40071039,16,0,534,1, 47991164,16,0,620,1,
40082136,842,1,381,1040, 4800124,1165,16,0,620,
400916,0,534,1,525, 48011,2136,968,1,381,
40101041,16,0,534,1, 48021166,16,0,620,1,
4011137,1042,16,0,534, 4803525,1167,16,0,620,
40121,1901,1043,16,0, 48041,137,1168,16,0,
4013534,1,2658,1044,16, 4805620,1,1901,1169,16,
40140,534,1,1153,1045, 48060,620,1,1153,1170,
401516,0,534,1,151, 480716,0,620,1,151,
40161046,16,0,534,1, 48081171,16,0,620,1,
40171407,1047,16,0,534, 48091407,1172,16,0,620,
40181,1659,1048,16,0, 48101,1659,1173,16,0,
4019534,1,2413,1049,16, 4811620,1,2413,1174,16,
40200,534,1,406,1050, 48120,620,1,406,1175,
402116,0,534,1,1371, 481316,0,620,1,1371,
40221051,16,0,534,1, 48141176,16,0,620,1,
40232105,814,1,166,1052, 48152105,939,1,166,1177,
402416,0,534,1,1622, 481616,0,620,1,1622,
40251053,16,0,534,1, 48171178,16,0,620,1,
40261931,861,1,1933,1054, 48181931,986,1,1933,1179,
402716,0,534,1,431, 481916,0,620,1,431,
40281055,16,0,534,1, 48201180,16,0,620,1,
40291585,1056,16,0,534, 48211585,1181,16,0,620,
40301,182,1057,16,0, 48221,182,1182,16,0,
4031534,1,1189,1058,16, 4823620,1,1189,1183,16,
40320,534,1,1443,1059, 48240,620,1,1443,1184,
403316,0,534,1,1695, 482516,0,620,1,1695,
40341060,16,0,534,1, 48261185,16,0,620,1,
40352198,1061,16,0,534, 48272198,1186,16,0,620,
40361,447,1062,16,0, 48281,447,1187,16,0,
4037534,1,2458,876,1, 4829620,1,2458,1001,1,
40382459,882,1,1958,1063, 48302459,1007,1,1958,1188,
403916,0,534,1,2462, 483116,0,620,1,2462,
4040889,1,1657,894,1, 48321014,1,1657,1019,1,
40412464,899,1,199,1064, 48332464,1024,1,199,1189,
404216,0,534,1,459, 483416,0,620,1,459,
40431065,16,0,534,1, 48351190,16,0,620,1,
4044462,1066,16,0,534, 4836462,1191,16,0,620,
40451,217,1067,16,0, 48371,217,1192,16,0,
4046534,1,2227,908,1, 4838620,1,2227,1033,1,
40471225,1068,16,0,534, 48391225,1193,16,0,620,
40481,1479,1069,16,0, 48401,1479,1194,16,0,
4049534,1,1731,1070,16, 4841620,1,1731,1195,16,
40500,534,1,1989,916, 48420,620,1,1989,1041,
40511,1990,1071,16,0, 48431,1990,1196,16,0,
4052534,1,236,1072,16, 4844620,1,236,1197,16,
40530,534,1,1756,1073, 48450,620,1,1756,1198,
405416,0,534,1,6, 484616,0,620,1,6,
40551074,19,277,1,6, 48471199,19,310,1,6,
40561075,5,2,1,1114, 48481200,5,2,1,1114,
40571076,16,0,275,1, 48491201,16,0,308,1,
405840,1077,16,0,523, 485040,1202,16,0,609,
40591,7,1078,19,243, 48511,7,1203,19,267,
40601,7,1079,5,2, 48521,7,1204,5,2,
40611,1114,1080,16,0, 48531,1114,1205,16,0,
4062241,1,40,1081,16, 4854265,1,40,1206,16,
40630,459,1,8,1082, 48550,544,1,8,1207,
406419,207,1,8,1083, 485619,230,1,8,1208,
40655,2,1,1114,1084, 48575,2,1,1114,1209,
406616,0,205,1,40, 485816,0,228,1,40,
40671085,16,0,439,1, 48591210,16,0,501,1,
40689,1086,19,213,1, 48609,1211,19,236,1,
40699,1087,5,2,1, 48619,1212,5,2,1,
40701114,1088,16,0,211, 48621114,1213,16,0,234,
40711,40,1089,16,0, 48631,40,1214,16,0,
4072384,1,10,1090,19, 4864430,1,10,1215,19,
4073164,1,10,1091,5, 4865180,1,10,1216,5,
40742,1,1114,1092,16, 48662,1,1114,1217,16,
40750,162,1,40,1093, 48670,178,1,40,1218,
407616,0,324,1,11, 486816,0,367,1,11,
40771094,19,192,1,11, 48691219,19,151,1,11,
40781095,5,146,1,1260, 48701220,5,146,1,1260,
40791096,17,1097,15,1098, 48711221,17,1222,15,1223,
40804,34,37,0,83, 48724,34,37,0,83,
40810,105,0,109,0, 48730,105,0,109,0,
4082112,0,108,0,101, 4874112,0,108,0,101,
@@ -4085,7 +4877,7 @@ public yyLSLSyntax
40850,110,0,109,0, 48770,110,0,109,0,
4086101,0,110,0,116, 4878101,0,110,0,116,
40870,1,-1,1,5, 48790,1,-1,1,5,
40881099,20,1100,4,38, 48801224,20,1225,4,38,
408983,0,105,0,109, 488183,0,105,0,109,
40900,112,0,108,0, 48820,112,0,108,0,
4091101,0,65,0,115, 4883101,0,65,0,115,
@@ -4093,11 +4885,11 @@ public yyLSLSyntax
4093103,0,110,0,109, 4885103,0,110,0,109,
40940,101,0,110,0, 48860,101,0,110,0,
4095116,0,95,0,50, 4887116,0,95,0,50,
40960,49,0,1,220, 48880,49,0,1,276,
40971,3,1,6,1, 48891,3,1,6,1,
40985,1101,22,1,80, 48905,1226,22,1,111,
40991,1011,1102,17,1103, 48911,1011,1227,17,1228,
410015,1104,4,44,37, 489215,1229,4,44,37,
41010,80,0,97,0, 48930,80,0,97,0,
4102114,0,101,0,110, 4894114,0,101,0,110,
41030,116,0,104,0, 48950,116,0,104,0,
@@ -4107,7 +4899,7 @@ public yyLSLSyntax
41070,101,0,115,0, 48990,101,0,115,0,
4108115,0,105,0,111, 4900115,0,105,0,111,
41090,110,0,1,-1, 49010,110,0,1,-1,
41101,5,1105,20,1106, 49021,5,1230,20,1231,
41114,46,80,0,97, 49034,46,80,0,97,
41120,114,0,101,0, 49040,114,0,101,0,
4113110,0,116,0,104, 4905110,0,116,0,104,
@@ -4117,12 +4909,12 @@ public yyLSLSyntax
4117114,0,101,0,115, 4909114,0,101,0,115,
41180,115,0,105,0, 49100,115,0,105,0,
4119111,0,110,0,95, 4911111,0,110,0,95,
41200,50,0,1,267, 49120,50,0,1,323,
41211,3,1,4,1, 49131,3,1,4,1,
41223,1107,22,1,127, 49143,1232,22,1,158,
41231,1514,1108,17,1109, 49151,1514,1233,17,1234,
412415,1098,1,-1,1, 491615,1223,1,-1,1,
41255,1110,20,1111,4, 49175,1235,20,1236,4,
412638,83,0,105,0, 491838,83,0,105,0,
4127109,0,112,0,108, 4919109,0,112,0,108,
41280,101,0,65,0, 49200,101,0,65,0,
@@ -4131,26 +4923,26 @@ public yyLSLSyntax
4131109,0,101,0,110, 4923109,0,101,0,110,
41320,116,0,95,0, 49240,116,0,95,0,
413349,0,52,0,1, 492549,0,52,0,1,
4134213,1,3,1,4, 4926269,1,3,1,4,
41351,3,1112,22,1, 49271,3,1237,22,1,
413673,1,9,1113,17, 4928104,1,9,1238,17,
41371114,15,1115,4,24, 49291239,15,1240,4,24,
413837,0,68,0,101, 493037,0,68,0,101,
41390,99,0,108,0, 49310,99,0,108,0,
414097,0,114,0,97, 493297,0,114,0,97,
41410,116,0,105,0, 49330,116,0,105,0,
4142111,0,110,0,1, 4934111,0,110,0,1,
4143-1,1,5,1116,20, 4935-1,1,5,1241,20,
41441117,4,26,68,0, 49361242,4,26,68,0,
4145101,0,99,0,108, 4937101,0,99,0,108,
41460,97,0,114,0, 49380,97,0,114,0,
414797,0,116,0,105, 493997,0,116,0,105,
41480,111,0,110,0, 49400,111,0,110,0,
414995,0,49,0,1, 494195,0,49,0,1,
4150161,1,3,1,3, 4942213,1,3,1,3,
41511,2,1118,22,1, 49431,2,1243,22,1,
415221,1,262,1119,17, 494448,1,262,1244,17,
41531120,15,1121,4,34, 49451245,15,1246,4,34,
415437,0,66,0,105, 494637,0,66,0,105,
41550,110,0,97,0, 49470,110,0,97,0,
4156114,0,121,0,69, 4948114,0,121,0,69,
@@ -4158,8 +4950,8 @@ public yyLSLSyntax
4158114,0,101,0,115, 4950114,0,101,0,115,
41590,115,0,105,0, 49510,115,0,105,0,
4160111,0,110,0,1, 4952111,0,110,0,1,
4161-1,1,5,1122,20, 4953-1,1,5,1247,20,
41621123,4,36,66,0, 49541248,4,36,66,0,
4163105,0,110,0,97, 4955105,0,110,0,97,
41640,114,0,121,0, 49560,114,0,121,0,
416569,0,120,0,112, 495769,0,120,0,112,
@@ -4167,11 +4959,11 @@ public yyLSLSyntax
4167115,0,115,0,105, 4959115,0,115,0,105,
41680,111,0,110,0, 49600,111,0,110,0,
416995,0,53,0,1, 496195,0,53,0,1,
4170249,1,3,1,4, 4962305,1,3,1,4,
41711,3,1124,22,1, 49631,3,1249,22,1,
4172109,1,1267,1125,17, 4964140,1,1267,1250,17,
41731126,15,1098,1,-1, 49651251,15,1223,1,-1,
41741,5,1127,20,1128, 49661,5,1252,20,1253,
41754,36,83,0,105, 49674,36,83,0,105,
41760,109,0,112,0, 49680,109,0,112,0,
4177108,0,101,0,65, 4969108,0,101,0,65,
@@ -4179,13 +4971,13 @@ public yyLSLSyntax
4179105,0,103,0,110, 4971105,0,103,0,110,
41800,109,0,101,0, 49720,109,0,101,0,
4181110,0,116,0,95, 4973110,0,116,0,95,
41820,56,0,1,207, 49740,56,0,1,263,
41831,3,1,6,1, 49751,3,1,6,1,
41845,1129,22,1,67, 49765,1254,22,1,98,
41851,2021,718,1,1521, 49771,2021,843,1,1521,
41861130,17,1131,15,1098, 49781255,17,1256,15,1223,
41871,-1,1,5,1132, 49791,-1,1,5,1257,
418820,1133,4,36,83, 498020,1258,4,36,83,
41890,105,0,109,0, 49810,105,0,109,0,
4190112,0,108,0,101, 4982112,0,108,0,101,
41910,65,0,115,0, 49830,65,0,115,0,
@@ -4193,26 +4985,26 @@ public yyLSLSyntax
41930,110,0,109,0, 49850,110,0,109,0,
4194101,0,110,0,116, 4986101,0,110,0,116,
41950,95,0,49,0, 49870,95,0,49,0,
41961,200,1,3,1, 49881,256,1,3,1,
41974,1,3,1134,22, 49894,1,3,1259,22,
41981,60,1,2024,1135, 49901,91,1,2024,1260,
419917,1136,15,1137,4, 499117,1261,15,1262,4,
420024,37,0,83,0, 499224,37,0,83,0,
4201116,0,97,0,116, 4993116,0,97,0,116,
42020,101,0,67,0, 49940,101,0,67,0,
4203104,0,97,0,110, 4995104,0,97,0,110,
42040,103,0,101,0, 49960,103,0,101,0,
42051,-1,1,5,1138, 49971,-1,1,5,1263,
420620,1139,4,26,83, 499820,1264,4,26,83,
42070,116,0,97,0, 49990,116,0,97,0,
4208116,0,101,0,67, 5000116,0,101,0,67,
42090,104,0,97,0, 50010,104,0,97,0,
4210110,0,103,0,101, 5002110,0,103,0,101,
42110,95,0,49,0, 50030,95,0,49,0,
42121,182,1,3,1, 50041,238,1,3,1,
42133,1,2,1140,22, 50053,1,2,1265,22,
42141,42,1,1775,1141, 50061,73,1,1775,1266,
421517,1142,15,1143,4, 500717,1267,15,1268,4,
421630,37,0,69,0, 500830,37,0,69,0,
4217109,0,112,0,116, 5009109,0,112,0,116,
42180,121,0,83,0, 50100,121,0,83,0,
@@ -4220,34 +5012,34 @@ public yyLSLSyntax
42200,101,0,109,0, 50120,101,0,109,0,
4221101,0,110,0,116, 5013101,0,110,0,116,
42220,1,-1,1,5, 50140,1,-1,1,5,
42231144,20,1145,4,32, 50151269,20,1270,4,32,
422469,0,109,0,112, 501669,0,109,0,112,
42250,116,0,121,0, 50170,116,0,121,0,
422683,0,116,0,97, 501883,0,116,0,97,
42270,116,0,101,0, 50190,116,0,101,0,
4228109,0,101,0,110, 5020109,0,101,0,110,
42290,116,0,95,0, 50210,116,0,95,0,
423049,0,1,166,1, 502249,0,1,222,1,
42313,1,1,1,0, 50233,1,1,1,0,
42321146,22,1,26,1, 50241271,22,1,57,1,
423319,1147,17,1114,1, 502519,1272,17,1239,1,
42342,1118,1,2028,1148, 50262,1243,1,2028,1273,
423517,1149,15,1150,4, 502717,1274,15,1275,4,
423620,37,0,74,0, 502820,37,0,74,0,
4237117,0,109,0,112, 5029117,0,109,0,112,
42380,76,0,97,0, 50300,76,0,97,0,
423998,0,101,0,108, 503198,0,101,0,108,
42400,1,-1,1,5, 50320,1,-1,1,5,
42411151,20,1152,4,22, 50331276,20,1277,4,22,
424274,0,117,0,109, 503474,0,117,0,109,
42430,112,0,76,0, 50350,112,0,76,0,
424497,0,98,0,101, 503697,0,98,0,101,
42450,108,0,95,0, 50370,108,0,95,0,
424649,0,1,180,1, 503849,0,1,236,1,
42473,1,3,1,2, 50393,1,3,1,2,
42481153,22,1,40,1, 50401278,22,1,71,1,
42492029,725,1,2281,1154, 50412029,850,1,2281,1279,
425017,1155,15,1156,4, 504217,1280,15,1281,4,
425134,37,0,70,0, 504334,37,0,70,0,
4252111,0,114,0,76, 5044111,0,114,0,76,
42530,111,0,111,0, 50450,111,0,111,0,
@@ -4255,8 +5047,8 @@ public yyLSLSyntax
42550,97,0,116,0, 50470,97,0,116,0,
4256101,0,109,0,101, 5048101,0,109,0,101,
42570,110,0,116,0, 50490,110,0,116,0,
42581,-1,1,5,1157, 50501,-1,1,5,1282,
425920,1158,4,36,70, 505120,1283,4,36,70,
42600,111,0,114,0, 50520,111,0,114,0,
426176,0,111,0,111, 505376,0,111,0,111,
42620,112,0,83,0, 50540,112,0,83,0,
@@ -4264,142 +5056,95 @@ public yyLSLSyntax
42640,101,0,109,0, 50560,101,0,109,0,
4265101,0,110,0,116, 5057101,0,110,0,116,
42660,95,0,50,0, 50580,95,0,50,0,
42671,195,1,3,1, 50591,251,1,3,1,
42682,1,1,1159,22, 50602,1,1,1284,22,
42691,55,1,2031,736, 50611,86,1,2031,861,
42701,2032,741,1,2033, 50621,2785,1285,16,0,
4271746,1,2034,1160,16, 5063519,1,2033,871,1,
42720,572,1,2035,752, 50642034,1286,16,0,691,
42731,2036,1161,16,0, 50651,2035,877,1,2036,
4274524,1,2037,757,1, 50661287,16,0,610,1,
42752038,1162,16,0,528, 50672037,882,1,2038,1288,
42761,2039,762,1,32, 506816,0,614,1,2792,
42771163,17,1142,1,0, 50691289,16,0,149,1,
42781146,1,2041,768,1, 507032,1290,17,1267,1,
42792042,1164,16,0,646, 50710,1271,1,2032,866,
42801,2043,774,1,2044, 50721,2042,1291,16,0,
42811165,16,0,584,1, 5073757,1,2043,899,1,
42822045,779,1,2299,1166, 50742044,1292,16,0,704,
428316,0,226,1,1296, 50751,2045,904,1,2299,
42841167,17,1168,15,1098, 50761293,16,0,252,1,
42851,-1,1,5,1169, 50771296,1294,17,1295,15,
428620,1170,4,38,83, 50781223,1,-1,1,5,
42870,105,0,109,0, 50791296,20,1297,4,38,
4288112,0,108,0,101, 508083,0,105,0,109,
42890,65,0,115,0, 50810,112,0,108,0,
4290115,0,105,0,103, 5082101,0,65,0,115,
42910,110,0,109,0,
4292101,0,110,0,116,
42930,95,0,50,0,
429448,0,1,219,1,
42953,1,6,1,5,
42961171,22,1,79,1,
4297283,1172,17,1173,15,
42981121,1,-1,1,5,
42991174,20,1175,4,36,
430066,0,105,0,110,
43010,97,0,114,0,
4302121,0,69,0,120,
43030,112,0,114,0,
4304101,0,115,0,115,
43050,105,0,111,0,
4306110,0,95,0,52,
43070,1,248,1,3,
43081,4,1,3,1176,
430922,1,108,1,40,
43101177,17,1178,15,1179,
43114,32,37,0,73,
43120,100,0,101,0,
4313110,0,116,0,69,
43140,120,0,112,0,
4315114,0,101,0,115,
43160,115,0,105,0, 50830,115,0,105,0,
4317111,0,110,0,1, 5084103,0,110,0,109,
4318-1,1,5,1180,20, 50850,101,0,110,0,
43191181,4,34,73,0, 5086116,0,95,0,50,
4320100,0,101,0,110, 50870,48,0,1,275,
43210,116,0,69,0, 50881,3,1,6,1,
50895,1298,22,1,110,
50901,283,1299,17,1300,
509115,1246,1,-1,1,
50925,1301,20,1302,4,
509336,66,0,105,0,
5094110,0,97,0,114,
50950,121,0,69,0,
4322120,0,112,0,114, 5096120,0,112,0,114,
43230,101,0,115,0, 50970,101,0,115,0,
4324115,0,105,0,111, 5098115,0,105,0,111,
43250,110,0,95,0, 50990,110,0,95,0,
432649,0,1,234,1, 510052,0,1,304,1,
43273,1,2,1,1, 51013,1,4,1,3,
43281182,22,1,94,1, 51021303,22,1,139,1,
432944,1183,17,1178,1, 510340,1304,17,1305,15,
43301,1182,1,1803,787, 51041306,4,32,37,0,
43311,47,1184,17,1185, 510573,0,100,0,101,
433215,1186,4,38,37,
43330,73,0,100,0,
4334101,0,110,0,116,
43350,68,0,111,0,
4336116,0,69,0,120,
43370,112,0,114,0,
4338101,0,115,0,115,
43390,105,0,111,0,
4340110,0,1,-1,1,
43415,1187,20,1188,4,
434240,73,0,100,0,
4343101,0,110,0,116,
43440,68,0,111,0,
4345116,0,69,0,120,
43460,112,0,114,0,
4347101,0,115,0,115,
43480,105,0,111,0,
4349110,0,95,0,49,
43500,1,235,1,3,
43511,4,1,3,1189,
435222,1,95,1,48,
43531190,17,1191,15,1192,
43544,58,37,0,73,
43550,110,0,99,0,
4356114,0,101,0,109,
43570,101,0,110,0,
4358116,0,68,0,101,
43590,99,0,114,0,
4360101,0,109,0,101,
43610,110,0,116,0, 51060,110,0,116,0,
436269,0,120,0,112, 510769,0,120,0,112,
43630,114,0,101,0, 51080,114,0,101,0,
4364115,0,115,0,105, 5109115,0,115,0,105,
43650,111,0,110,0, 51100,111,0,110,0,
43661,-1,1,5,1193, 51111,-1,1,5,1307,
436720,1194,4,60,73, 511220,1308,4,34,73,
43680,110,0,99,0, 51130,100,0,101,0,
4369114,0,101,0,109, 5114110,0,116,0,69,
51150,120,0,112,0,
5116114,0,101,0,115,
51170,115,0,105,0,
5118111,0,110,0,95,
51190,49,0,1,290,
51201,3,1,2,1,
51211,1309,22,1,125,
51221,44,1310,17,1305,
51231,1,1309,1,1803,
5124912,1,47,1311,17,
51251312,15,1313,4,38,
512637,0,73,0,100,
43700,101,0,110,0, 51270,101,0,110,0,
4371116,0,68,0,101, 5128116,0,68,0,111,
43720,99,0,114,0, 51290,116,0,69,0,
4373101,0,109,0,101, 5130120,0,112,0,114,
43740,110,0,116,0, 51310,101,0,115,0,
437569,0,120,0,112, 5132115,0,105,0,111,
43760,114,0,101,0, 51330,110,0,1,-1,
4377115,0,115,0,105, 51341,5,1314,20,1315,
43780,111,0,110,0, 51354,40,73,0,100,
437995,0,52,0,1, 51360,101,0,110,0,
4380239,1,3,1,5, 5137116,0,68,0,111,
43811,4,1195,22,1,
438299,1,49,1196,17,
43831197,15,1192,1,-1,
43841,5,1198,20,1199,
43854,60,73,0,110,
43860,99,0,114,0,
4387101,0,109,0,101,
43880,110,0,116,0,
438968,0,101,0,99,
43900,114,0,101,0,
4391109,0,101,0,110,
43920,116,0,69,0, 51380,116,0,69,0,
4393120,0,112,0,114, 5139120,0,112,0,114,
43940,101,0,115,0, 51400,101,0,115,0,
4395115,0,105,0,111, 5141115,0,105,0,111,
43960,110,0,95,0, 51420,110,0,95,0,
439751,0,1,238,1, 514349,0,1,291,1,
43983,1,5,1,4, 51443,1,4,1,3,
43991200,22,1,98,1, 51451316,22,1,126,1,
440050,1201,17,1202,15, 514648,1317,17,1318,15,
44011192,1,-1,1,5, 51471319,4,58,37,0,
44021203,20,1204,4,60,
440373,0,110,0,99, 514873,0,110,0,99,
44040,114,0,101,0, 51490,114,0,101,0,
4405109,0,101,0,110, 5150109,0,101,0,110,
@@ -4411,13 +5156,26 @@ public yyLSLSyntax
4411112,0,114,0,101, 5156112,0,114,0,101,
44120,115,0,115,0, 51570,115,0,115,0,
4413105,0,111,0,110, 5158105,0,111,0,110,
44140,95,0,50,0, 51590,1,-1,1,5,
44151,237,1,3,1, 51601320,20,1321,4,60,
44163,1,2,1205,22, 516173,0,110,0,99,
44171,97,1,51,1206, 51620,114,0,101,0,
441817,1207,15,1192,1, 5163109,0,101,0,110,
4419-1,1,5,1208,20, 51640,116,0,68,0,
44201209,4,60,73,0, 5165101,0,99,0,114,
51660,101,0,109,0,
5167101,0,110,0,116,
51680,69,0,120,0,
5169112,0,114,0,101,
51700,115,0,115,0,
5171105,0,111,0,110,
51720,95,0,52,0,
51731,295,1,3,1,
51745,1,4,1322,22,
51751,130,1,49,1323,
517617,1324,15,1319,1,
5177-1,1,5,1325,20,
51781326,4,60,73,0,
4421110,0,99,0,114, 5179110,0,99,0,114,
44220,101,0,109,0, 51800,101,0,109,0,
4423101,0,110,0,116, 5181101,0,110,0,116,
@@ -4429,80 +5187,88 @@ public yyLSLSyntax
4429114,0,101,0,115, 5187114,0,101,0,115,
44300,115,0,105,0, 51880,115,0,105,0,
4431111,0,110,0,95, 5189111,0,110,0,95,
44320,49,0,1,236, 51900,51,0,1,294,
44331,3,1,3,1, 51911,3,1,5,1,
44342,1210,22,1,96, 51924,1327,22,1,129,
44351,305,1211,17,1212, 51931,50,1328,17,1329,
443615,1121,1,-1,1, 519415,1319,1,-1,1,
44375,1213,20,1214,4, 51955,1330,20,1331,4,
443836,66,0,105,0, 519660,73,0,110,0,
4439110,0,97,0,114, 519799,0,114,0,101,
44400,121,0,69,0, 51980,109,0,101,0,
4441120,0,112,0,114, 5199110,0,116,0,68,
44420,101,0,115,0,
4443115,0,105,0,111,
44440,110,0,95,0,
444551,0,1,247,1,
44463,1,4,1,3,
44471215,22,1,107,1,
4448525,1216,17,1217,15,
44491218,4,34,37,0,
445082,0,111,0,116,
44510,97,0,116,0,
4452105,0,111,0,110,
44530,67,0,111,0,
4454110,0,115,0,116,
44550,97,0,110,0,
4456116,0,1,-1,1,
44575,1219,20,1220,4,
445836,82,0,111,0,
4459116,0,97,0,116,
44600,105,0,111,0,
4461110,0,67,0,111,
44620,110,0,115,0,
4463116,0,97,0,110,
44640,116,0,95,0,
446549,0,1,232,1,
44663,1,10,1,9,
44671221,22,1,92,1,
446863,1222,17,1223,15,
44691224,4,38,37,0,
447084,0,121,0,112,
44710,101,0,99,0,
447297,0,115,0,116,
44730,69,0,120,0,
4474112,0,114,0,101,
44750,115,0,115,0,
4476105,0,111,0,110,
44770,1,-1,1,5,
44781225,20,1226,4,40,
447984,0,121,0,112,
44800,101,0,99,0, 52000,101,0,99,0,
448197,0,115,0,116, 5201114,0,101,0,109,
44820,69,0,120,0, 52020,101,0,110,0,
4483112,0,114,0,101, 5203116,0,69,0,120,
44840,115,0,115,0, 52040,112,0,114,0,
4485105,0,111,0,110, 5205101,0,115,0,115,
44860,95,0,50,0, 52060,105,0,111,0,
44871,269,1,3,1, 5207110,0,95,0,50,
44885,1,4,1227,22, 52080,1,293,1,3,
44891,129,1,66,1228, 52091,3,1,2,1332,
449017,1229,15,1224,1, 521022,1,128,1,51,
4491-1,1,5,1230,20, 52111333,17,1334,15,1319,
44921231,4,40,84,0, 52121,-1,1,5,1335,
4493121,0,112,0,101, 521320,1336,4,60,73,
44940,99,0,97,0, 52140,110,0,99,0,
4495115,0,116,0,69, 5215114,0,101,0,109,
52160,101,0,110,0,
5217116,0,68,0,101,
52180,99,0,114,0,
5219101,0,109,0,101,
52200,110,0,116,0,
522169,0,120,0,112,
52220,114,0,101,0,
5223115,0,115,0,105,
52240,111,0,110,0,
522595,0,49,0,1,
5226292,1,3,1,3,
52271,2,1337,22,1,
5228127,1,305,1338,17,
52291339,15,1246,1,-1,
52301,5,1340,20,1341,
52314,36,66,0,105,
52320,110,0,97,0,
5233114,0,121,0,69,
44960,120,0,112,0, 52340,120,0,112,0,
4497114,0,101,0,115, 5235114,0,101,0,115,
44980,115,0,105,0, 52360,115,0,105,0,
4499111,0,110,0,95, 5237111,0,110,0,95,
45000,51,0,1,270, 52380,51,0,1,303,
45011,3,1,7,1, 52391,3,1,4,1,
45026,1232,22,1,130, 52403,1342,22,1,138,
45031,67,1233,17,1234, 52411,525,1343,17,1344,
450415,1224,1,-1,1, 524215,1345,4,34,37,
45055,1235,20,1236,4, 52430,82,0,111,0,
5244116,0,97,0,116,
52450,105,0,111,0,
5246110,0,67,0,111,
52470,110,0,115,0,
5248116,0,97,0,110,
52490,116,0,1,-1,
52501,5,1346,20,1347,
52514,36,82,0,111,
52520,116,0,97,0,
5253116,0,105,0,111,
52540,110,0,67,0,
5255111,0,110,0,115,
52560,116,0,97,0,
5257110,0,116,0,95,
52580,49,0,1,288,
52591,3,1,10,1,
52609,1348,22,1,123,
52611,63,1349,17,1350,
526215,1351,4,38,37,
52630,84,0,121,0,
5264112,0,101,0,99,
52650,97,0,115,0,
5266116,0,69,0,120,
52670,112,0,114,0,
5268101,0,115,0,115,
52690,105,0,111,0,
5270110,0,1,-1,1,
52715,1352,20,1353,4,
450640,84,0,121,0, 527240,84,0,121,0,
4507112,0,101,0,99, 5273112,0,101,0,99,
45080,97,0,115,0, 52740,97,0,115,0,
@@ -4510,13 +5276,13 @@ public yyLSLSyntax
45100,112,0,114,0, 52760,112,0,114,0,
4511101,0,115,0,115, 5277101,0,115,0,115,
45120,105,0,111,0, 52780,105,0,111,0,
4513110,0,95,0,55, 5279110,0,95,0,50,
45140,1,274,1,3, 52800,1,325,1,3,
45151,8,1,7,1237, 52811,5,1,4,1354,
451622,1,134,1,68, 528222,1,160,1,66,
45171238,17,1239,15,1224, 52831355,17,1356,15,1351,
45181,-1,1,5,1240, 52841,-1,1,5,1357,
451920,1241,4,40,84, 528520,1358,4,40,84,
45200,121,0,112,0, 52860,121,0,112,0,
4521101,0,99,0,97, 5287101,0,99,0,97,
45220,115,0,116,0, 52880,115,0,116,0,
@@ -4524,12 +5290,12 @@ public yyLSLSyntax
45240,114,0,101,0, 52900,114,0,101,0,
4525115,0,115,0,105, 5291115,0,115,0,105,
45260,111,0,110,0, 52920,111,0,110,0,
452795,0,53,0,1, 529395,0,51,0,1,
4528272,1,3,1,8, 5294326,1,3,1,7,
45291,7,1242,22,1, 52951,6,1359,22,1,
4530132,1,69,1243,17, 5296161,1,67,1360,17,
45311244,15,1224,1,-1, 52971361,15,1351,1,-1,
45321,5,1245,20,1246, 52981,5,1362,20,1363,
45334,40,84,0,121, 52994,40,84,0,121,
45340,112,0,101,0, 53000,112,0,101,0,
453599,0,97,0,115, 530199,0,97,0,115,
@@ -4538,12 +5304,12 @@ public yyLSLSyntax
45380,101,0,115,0, 53040,101,0,115,0,
4539115,0,105,0,111, 5305115,0,105,0,111,
45400,110,0,95,0, 53060,110,0,95,0,
454154,0,1,273,1, 530755,0,1,330,1,
45423,1,6,1,5, 53083,1,8,1,7,
45431247,22,1,133,1, 53091364,22,1,165,1,
454470,1248,17,1249,15, 531068,1365,17,1366,15,
45451224,1,-1,1,5, 53111351,1,-1,1,5,
45461250,20,1251,4,40, 53121367,20,1368,4,40,
454784,0,121,0,112, 531384,0,121,0,112,
45480,101,0,99,0, 53140,101,0,99,0,
454997,0,115,0,116, 531597,0,115,0,116,
@@ -4551,13 +5317,13 @@ public yyLSLSyntax
4551112,0,114,0,101, 5317112,0,114,0,101,
45520,115,0,115,0, 53180,115,0,115,0,
4553105,0,111,0,110, 5319105,0,111,0,110,
45540,95,0,52,0, 53200,95,0,53,0,
45551,271,1,3,1, 53211,328,1,3,1,
45566,1,5,1252,22, 53228,1,7,1369,22,
45571,131,1,74,1253, 53231,163,1,69,1370,
455817,1254,15,1224,1, 532417,1371,15,1351,1,
4559-1,1,5,1255,20, 5325-1,1,5,1372,20,
45601256,4,40,84,0, 53261373,4,40,84,0,
4561121,0,112,0,101, 5327121,0,112,0,101,
45620,99,0,97,0, 53280,99,0,97,0,
4563115,0,116,0,69, 5329115,0,116,0,69,
@@ -4565,251 +5331,234 @@ public yyLSLSyntax
4565114,0,101,0,115, 5331114,0,101,0,115,
45660,115,0,105,0, 53320,115,0,105,0,
4567111,0,110,0,95, 5333111,0,110,0,95,
45680,57,0,1,276, 53340,54,0,1,329,
45691,3,1,7,1,
45706,1257,22,1,136,
45711,1013,1258,17,1259,
457215,1104,1,-1,1,
45735,1260,20,1261,4,
457446,80,0,97,0,
4575114,0,101,0,110,
45760,116,0,104,0,
4577101,0,115,0,105,
45780,115,0,69,0,
4579120,0,112,0,114,
45800,101,0,115,0,
4581115,0,105,0,111,
45820,110,0,95,0,
458349,0,1,266,1,
45843,1,4,1,3,
45851262,22,1,126,1,
45861332,1263,17,1264,15,
45871098,1,-1,1,5,
45881265,20,1266,4,38,
458983,0,105,0,109,
45900,112,0,108,0,
4591101,0,65,0,115,
45920,115,0,105,0,
4593103,0,110,0,109,
45940,101,0,110,0,
4595116,0,95,0,49,
45960,57,0,1,218,
45971,3,1,6,1, 53351,3,1,6,1,
45985,1267,22,1,78, 53365,1374,22,1,164,
45991,2337,1268,17,1142, 53371,70,1375,17,1376,
46001,0,1146,1,1585, 533815,1351,1,-1,1,
46011269,17,1270,15,1271, 53395,1377,20,1378,4,
46024,32,37,0,82, 534040,84,0,121,0,
46030,101,0,116,0, 5341112,0,101,0,99,
4604117,0,114,0,110, 53420,97,0,115,0,
46050,83,0,116,0, 5343116,0,69,0,120,
460697,0,116,0,101,
46070,109,0,101,0,
4608110,0,116,0,1,
4609-1,1,5,1272,20,
46101273,4,34,82,0,
4611101,0,116,0,117,
46120,114,0,110,0,
461383,0,116,0,97,
46140,116,0,101,0,
4615109,0,101,0,110,
46160,116,0,95,0,
461750,0,1,225,1,
46183,1,2,1,1,
46191274,22,1,85,1,
46202023,1275,17,1276,15,
46211137,1,-1,1,5,
46221277,20,1278,4,26,
462383,0,116,0,97,
46240,116,0,101,0,
462567,0,104,0,97,
46260,110,0,103,0,
4627101,0,95,0,50,
46280,1,183,1,3,
46291,3,1,2,1279,
463022,1,43,1,2136,
4631842,1,82,1280,17,
46321281,15,1282,4,32,
463337,0,85,0,110,
46340,97,0,114,0,
4635121,0,69,0,120,
46360,112,0,114,0, 53440,112,0,114,0,
4637101,0,115,0,115, 5345101,0,115,0,115,
46380,105,0,111,0, 53460,105,0,111,0,
4639110,0,1,-1,1, 5347110,0,95,0,52,
46405,1283,20,1284,4, 53480,1,327,1,3,
464134,85,0,110,0, 53491,6,1,5,1379,
464297,0,114,0,121, 535022,1,162,1,74,
46430,69,0,120,0, 53511380,17,1381,15,1351,
4644112,0,114,0,101, 53521,-1,1,5,1382,
46450,115,0,115,0, 535320,1383,4,40,84,
4646105,0,111,0,110, 53540,121,0,112,0,
46470,95,0,51,0, 5355101,0,99,0,97,
46481,265,1,3,1, 53560,115,0,116,0,
46493,1,2,1285,22, 535769,0,120,0,112,
46501,125,1,2026,1286, 53580,114,0,101,0,
465117,1287,15,1288,4, 5359115,0,115,0,105,
465228,37,0,74,0, 53600,111,0,110,0,
4653117,0,109,0,112, 536195,0,57,0,1,
46540,83,0,116,0, 5362332,1,3,1,7,
465597,0,116,0,101, 53631,6,1384,22,1,
46560,109,0,101,0, 5364167,1,1013,1385,17,
4657110,0,116,0,1, 53651386,15,1229,1,-1,
4658-1,1,5,1289,20, 53661,5,1387,20,1388,
46591290,4,30,74,0, 53674,46,80,0,97,
4660117,0,109,0,112, 53680,114,0,101,0,
5369110,0,116,0,104,
53700,101,0,115,0,
5371105,0,115,0,69,
53720,120,0,112,0,
5373114,0,101,0,115,
53740,115,0,105,0,
5375111,0,110,0,95,
53760,49,0,1,322,
53771,3,1,4,1,
53783,1389,22,1,157,
53791,1332,1390,17,1391,
538015,1223,1,-1,1,
53815,1392,20,1393,4,
538238,83,0,105,0,
5383109,0,112,0,108,
53840,101,0,65,0,
5385115,0,115,0,105,
53860,103,0,110,0,
5387109,0,101,0,110,
53880,116,0,95,0,
538949,0,57,0,1,
5390274,1,3,1,6,
53911,5,1394,22,1,
5392109,1,2337,1395,17,
53931267,1,0,1271,1,
53941585,1396,17,1397,15,
53951398,4,32,37,0,
539682,0,101,0,116,
53970,117,0,114,0,
5398110,0,83,0,116,
53990,97,0,116,0,
5400101,0,109,0,101,
54010,110,0,116,0,
54021,-1,1,5,1399,
540320,1400,4,34,82,
54040,101,0,116,0,
5405117,0,114,0,110,
46610,83,0,116,0, 54060,83,0,116,0,
466297,0,116,0,101, 540797,0,116,0,101,
46630,109,0,101,0, 54080,109,0,101,0,
4664110,0,116,0,95, 5409110,0,116,0,95,
46650,49,0,1,181, 54100,50,0,1,281,
46661,3,1,3,1, 54111,3,1,2,1,
46672,1291,22,1,41, 54121,1401,22,1,116,
46681,1591,1292,17,1293, 54131,2023,1402,17,1403,
466915,1271,1,-1,1, 541415,1262,1,-1,1,
46705,1294,20,1295,4, 54155,1404,20,1405,4,
467134,82,0,101,0, 541626,83,0,116,0,
4672116,0,117,0,114, 541797,0,116,0,101,
46730,110,0,83,0, 54180,67,0,104,0,
4674116,0,97,0,116, 541997,0,110,0,103,
46750,101,0,109,0, 54200,101,0,95,0,
4676101,0,110,0,116, 542150,0,1,239,1,
46770,95,0,49,0, 54223,1,3,1,2,
46781,224,1,3,1, 54231406,22,1,74,1,
46793,1,2,1296,22, 54242136,968,1,82,1407,
46801,84,1,1341,1297, 542517,1408,15,1409,4,
468117,1298,15,1098,1, 542632,37,0,85,0,
4682-1,1,5,1299,20, 5427110,0,97,0,114,
46831300,4,36,83,0, 54280,121,0,69,0,
4684105,0,109,0,112, 5429120,0,112,0,114,
46850,108,0,101,0, 54300,101,0,115,0,
468665,0,115,0,115, 5431115,0,105,0,111,
46870,105,0,103,0, 54320,110,0,1,-1,
4688110,0,109,0,101, 54331,5,1410,20,1411,
46890,110,0,116,0,
469095,0,54,0,1,
4691205,1,3,1,4,
46921,3,1301,22,1,
469365,1,2030,731,1,
4694328,1302,17,1303,15,
46951121,1,-1,1,5,
46961304,20,1305,4,36,
469766,0,105,0,110,
46980,97,0,114,0,
4699121,0,69,0,120,
47000,112,0,114,0,
4701101,0,115,0,115,
47020,105,0,111,0,
4703110,0,95,0,50,
47040,1,246,1,3,
47051,4,1,3,1306,
470622,1,106,1,1303,
47071307,17,1308,15,1098,
47081,-1,1,5,1309,
470920,1310,4,36,83,
47100,105,0,109,0,
4711112,0,108,0,101,
47120,65,0,115,0,
4713115,0,105,0,103,
47140,110,0,109,0,
4715101,0,110,0,116,
47160,95,0,55,0,
47171,206,1,3,1,
47186,1,5,1311,22,
47191,66,1,1096,1312,
472017,1313,15,1314,4,
472126,37,0,70,0,
4722117,0,110,0,99,
47230,116,0,105,0,
4724111,0,110,0,67,
47250,97,0,108,0,
4726108,0,1,-1,1,
47275,1315,20,1316,4,
472828,70,0,117,0,
4729110,0,99,0,116,
47300,105,0,111,0,
4731110,0,67,0,97,
47320,108,0,108,0,
473395,0,49,0,1,
4734277,1,3,1,5,
47351,4,1317,22,1,
4736137,1,93,1318,17,
47371319,15,1282,1,-1,
47381,5,1320,20,1321,
47394,34,85,0,110, 54344,34,85,0,110,
47400,97,0,114,0, 54350,97,0,114,0,
4741121,0,69,0,120, 5436121,0,69,0,120,
47420,112,0,114,0, 54370,112,0,114,0,
4743101,0,115,0,115, 5438101,0,115,0,115,
47440,105,0,111,0, 54390,105,0,111,0,
4745110,0,95,0,50, 5440110,0,95,0,51,
47460,1,264,1,3, 54410,1,321,1,3,
47471,3,1,2,1322, 54421,3,1,2,1412,
474822,1,124,1,1550, 544322,1,156,1,2026,
47491323,17,1324,15,1098, 54441413,17,1414,15,1415,
47501,-1,1,5,1325, 54454,28,37,0,74,
475120,1326,4,38,83, 54460,117,0,109,0,
5447112,0,83,0,116,
54480,97,0,116,0,
5449101,0,109,0,101,
54500,110,0,116,0,
54511,-1,1,5,1416,
545220,1417,4,30,74,
54530,117,0,109,0,
5454112,0,83,0,116,
54550,97,0,116,0,
5456101,0,109,0,101,
54570,110,0,116,0,
545895,0,49,0,1,
5459237,1,3,1,3,
54601,2,1418,22,1,
546172,1,1591,1419,17,
54621420,15,1398,1,-1,
54631,5,1421,20,1422,
54644,34,82,0,101,
54650,116,0,117,0,
5466114,0,110,0,83,
54670,116,0,97,0,
5468116,0,101,0,109,
54690,101,0,110,0,
5470116,0,95,0,49,
54710,1,280,1,3,
54721,3,1,2,1423,
547322,1,115,1,1341,
54741424,17,1425,15,1223,
54751,-1,1,5,1426,
547620,1427,4,36,83,
47520,105,0,109,0, 54770,105,0,109,0,
4753112,0,108,0,101, 5478112,0,108,0,101,
47540,65,0,115,0, 54790,65,0,115,0,
4755115,0,105,0,103, 5480115,0,105,0,103,
47560,110,0,109,0, 54810,110,0,109,0,
4757101,0,110,0,116, 5482101,0,110,0,116,
47580,95,0,49,0, 54830,95,0,54,0,
475951,0,1,212,1, 54841,261,1,3,1,
54854,1,3,1428,22,
54861,96,1,2030,856,
54871,328,1429,17,1430,
548815,1246,1,-1,1,
54895,1431,20,1432,4,
549036,66,0,105,0,
5491110,0,97,0,114,
54920,121,0,69,0,
5493120,0,112,0,114,
54940,101,0,115,0,
5495115,0,105,0,111,
54960,110,0,95,0,
549750,0,1,302,1,
47603,1,4,1,3, 54983,1,4,1,3,
47611327,22,1,72,1, 54991433,22,1,137,1,
47622040,1328,16,0,532, 55001303,1434,17,1435,15,
47631,2106,1329,17,1142, 55011223,1,-1,1,5,
47641,0,1146,1,1555, 55021436,20,1437,4,36,
47651330,16,0,599,1, 550383,0,105,0,109,
4766827,1331,17,1332,15, 55040,112,0,108,0,
47671121,1,-1,1,5, 5505101,0,65,0,115,
47681333,20,1334,4,38, 55060,115,0,105,0,
476966,0,105,0,110, 5507103,0,110,0,109,
47700,97,0,114,0, 55080,101,0,110,0,
4771121,0,69,0,120, 5509116,0,95,0,55,
47720,112,0,114,0, 55100,1,262,1,3,
4773101,0,115,0,115, 55111,6,1,5,1438,
47740,105,0,111,0, 551222,1,97,1,1096,
4775110,0,95,0,49, 55131439,17,1440,15,1441,
47760,53,0,1,259, 55144,26,37,0,70,
47771,3,1,4,1, 55150,117,0,110,0,
47783,1335,22,1,119, 551699,0,116,0,105,
47791,1859,1336,16,0, 55170,111,0,110,0,
4780304,1,1860,821,1, 551867,0,97,0,108,
47811804,1337,17,1142,1, 55190,108,0,1,-1,
47820,1146,1,107,1338, 55201,5,1442,20,1443,
478317,1339,15,1282,1, 55214,28,70,0,117,
4784-1,1,5,1340,20, 55220,110,0,99,0,
47851341,4,34,85,0, 5523116,0,105,0,111,
55240,110,0,67,0,
552597,0,108,0,108,
55260,95,0,49,0,
55271,333,1,3,1,
55285,1,4,1444,22,
55291,168,1,93,1445,
553017,1446,15,1409,1,
5531-1,1,5,1447,20,
55321448,4,34,85,0,
4786110,0,97,0,114, 5533110,0,97,0,114,
47870,121,0,69,0, 55340,121,0,69,0,
4788120,0,112,0,114, 5535120,0,112,0,114,
47890,101,0,115,0, 55360,101,0,115,0,
4790115,0,105,0,111, 5537115,0,105,0,111,
47910,110,0,95,0, 55380,110,0,95,0,
479249,0,1,263,1, 553950,0,1,320,1,
47933,1,3,1,2, 55403,1,3,1,2,
47941342,22,1,123,1, 55411449,22,1,155,1,
47951114,1343,17,1185,1, 55421550,1450,17,1451,15,
47963,1189,1,1048,1344, 55431223,1,-1,1,5,
479717,1345,15,1121,1, 55441452,20,1453,4,38,
4798-1,1,5,1346,20, 554583,0,105,0,109,
47991347,4,38,66,0, 55460,112,0,108,0,
4800105,0,110,0,97, 5547101,0,65,0,115,
48010,114,0,121,0, 55480,115,0,105,0,
480269,0,120,0,112, 5549103,0,110,0,109,
48030,114,0,101,0, 55500,101,0,110,0,
4804115,0,115,0,105, 5551116,0,95,0,49,
48050,111,0,110,0, 55520,51,0,1,268,
480695,0,49,0,56, 55531,3,1,4,1,
48070,1,262,1,3, 55543,1454,22,1,103,
48081,4,1,3,1348, 55551,2039,887,1,2040,
480922,1,122,1,352, 55561455,16,0,618,1,
48101349,17,1350,15,1121, 55572041,893,1,1555,1456,
48111,-1,1,5,1351, 555816,0,722,1,827,
481220,1352,4,36,66, 55591457,17,1458,15,1246,
55601,-1,1,5,1459,
556120,1460,4,38,66,
48130,105,0,110,0, 55620,105,0,110,0,
481497,0,114,0,121, 556397,0,114,0,121,
48150,69,0,120,0, 55640,69,0,120,0,
@@ -4817,13 +5566,29 @@ public yyLSLSyntax
48170,115,0,115,0, 55660,115,0,115,0,
4818105,0,111,0,110, 5567105,0,111,0,110,
48190,95,0,49,0, 55680,95,0,49,0,
48201,245,1,3,1, 556953,0,1,315,1,
48214,1,3,1353,22, 55703,1,4,1,3,
48221,105,1,1872,1354, 55711461,22,1,150,1,
482316,0,314,1,1873, 55721859,1462,16,0,344,
4824835,1,118,1355,17, 55731,1860,946,1,1804,
48251356,15,1121,1,-1, 55741463,17,1267,1,0,
48261,5,1357,20,1358, 55751271,1,107,1464,17,
55761465,15,1409,1,-1,
55771,5,1466,20,1467,
55784,34,85,0,110,
55790,97,0,114,0,
5580121,0,69,0,120,
55810,112,0,114,0,
5582101,0,115,0,115,
55830,105,0,111,0,
5584110,0,95,0,49,
55850,1,319,1,3,
55861,3,1,2,1468,
558722,1,154,1,1114,
55881469,17,1312,1,3,
55891316,1,1048,1470,17,
55901471,15,1246,1,-1,
55911,5,1472,20,1473,
48274,38,66,0,105, 55924,38,66,0,105,
48280,110,0,97,0, 55930,110,0,97,0,
4829114,0,121,0,69, 5594114,0,121,0,69,
@@ -4831,63 +5596,126 @@ public yyLSLSyntax
4831114,0,101,0,115, 5596114,0,101,0,115,
48320,115,0,105,0, 55970,115,0,105,0,
4833111,0,110,0,95, 5598111,0,110,0,95,
48340,49,0,52,0, 55990,49,0,56,0,
48351,258,1,3,1, 56001,318,1,3,1,
48364,1,3,1359,22, 56014,1,3,1474,22,
48371,118,1,1123,1360, 56021,153,1,352,1475,
483817,1361,15,1098,1, 560317,1476,15,1246,1,
4839-1,1,5,1362,20, 5604-1,1,5,1477,20,
48401363,4,38,83,0, 56051478,4,36,66,0,
4841105,0,109,0,112, 5606105,0,110,0,97,
48420,108,0,101,0, 56070,114,0,121,0,
484365,0,115,0,115, 560869,0,120,0,112,
48440,105,0,103,0, 56090,114,0,101,0,
4845110,0,109,0,101, 5610115,0,115,0,105,
48460,110,0,116,0,
484795,0,49,0,50,
48480,1,211,1,3,
48491,6,1,5,1364,
485022,1,71,1,371,
48511365,17,1366,15,1367,
48524,46,37,0,70,
48530,117,0,110,0,
485499,0,116,0,105,
48550,111,0,110,0, 56110,111,0,110,0,
485667,0,97,0,108, 561295,0,49,0,1,
48570,108,0,69,0, 5613301,1,3,1,4,
56141,3,1479,22,1,
5615136,1,1872,1480,16,
56160,354,1,1873,961,
56171,118,1481,17,1482,
561815,1246,1,-1,1,
56195,1483,20,1484,4,
562038,66,0,105,0,
5621110,0,97,0,114,
56220,121,0,69,0,
4858120,0,112,0,114, 5623120,0,112,0,114,
48590,101,0,115,0, 56240,101,0,115,0,
4860115,0,105,0,111, 5625115,0,105,0,111,
48610,110,0,1,-1, 56260,110,0,95,0,
48621,5,1368,20,1369, 562749,0,52,0,1,
48634,48,70,0,117, 5628314,1,3,1,4,
48640,110,0,99,0, 56291,3,1485,22,1,
4865116,0,105,0,111, 5630149,1,1123,1486,17,
48660,110,0,67,0, 56311487,15,1223,1,-1,
486797,0,108,0,108, 56321,5,1488,20,1489,
48680,69,0,120,0, 56334,38,83,0,105,
4869112,0,114,0,101, 56340,109,0,112,0,
5635108,0,101,0,65,
48700,115,0,115,0, 56360,115,0,115,0,
4871105,0,111,0,110, 5637105,0,103,0,110,
48720,95,0,49,0, 56380,109,0,101,0,
48731,244,1,3,1, 5639110,0,116,0,95,
48742,1,1,1370,22, 56400,49,0,50,0,
48751,104,1,1377,1371, 56411,267,1,3,1,
487617,1372,15,1098,1, 56426,1,5,1490,22,
4877-1,1,5,1373,20, 56431,102,1,371,1491,
48781374,4,36,83,0, 564417,1492,15,1493,4,
4879105,0,109,0,112, 564546,37,0,70,0,
48800,108,0,101,0, 5646117,0,110,0,99,
488165,0,115,0,115, 56470,116,0,105,0,
48820,105,0,103,0, 5648111,0,110,0,67,
4883110,0,109,0,101, 56490,97,0,108,0,
5650108,0,69,0,120,
56510,112,0,114,0,
5652101,0,115,0,115,
56530,105,0,111,0,
5654110,0,1,-1,1,
56555,1494,20,1495,4,
565648,70,0,117,0,
5657110,0,99,0,116,
56580,105,0,111,0,
5659110,0,67,0,97,
56600,108,0,108,0,
566169,0,120,0,112,
56620,114,0,101,0,
5663115,0,115,0,105,
56640,111,0,110,0,
566595,0,49,0,1,
5666300,1,3,1,2,
56671,1,1496,22,1,
5668135,1,1377,1497,17,
56691498,15,1223,1,-1,
56701,5,1499,20,1500,
56714,36,83,0,105,
56720,109,0,112,0,
5673108,0,101,0,65,
56740,115,0,115,0,
5675105,0,103,0,110,
56760,109,0,101,0,
5677110,0,116,0,95,
56780,53,0,1,260,
56791,3,1,4,1,
56803,1501,22,1,95,
56811,375,1502,17,1503,
568215,1319,1,-1,1,
56835,1504,20,1505,4,
568460,73,0,110,0,
568599,0,114,0,101,
56860,109,0,101,0,
5687110,0,116,0,68,
56880,101,0,99,0,
5689114,0,101,0,109,
56900,101,0,110,0,
5691116,0,69,0,120,
56920,112,0,114,0,
5693101,0,115,0,115,
56940,105,0,111,0,
5695110,0,95,0,56,
56960,1,299,1,3,
56971,5,1,4,1506,
569822,1,134,1,377,
56991507,17,1508,15,1319,
57001,-1,1,5,1509,
570120,1510,4,60,73,
57020,110,0,99,0,
5703114,0,101,0,109,
57040,101,0,110,0,
5705116,0,68,0,101,
57060,99,0,114,0,
5707101,0,109,0,101,
48840,110,0,116,0, 57080,110,0,116,0,
570969,0,120,0,112,
57100,114,0,101,0,
5711115,0,115,0,105,
57120,111,0,110,0,
488595,0,53,0,1, 571395,0,53,0,1,
4886204,1,3,1,4, 5714296,1,3,1,3,
48871,3,1375,22,1, 57151,2,1511,22,1,
488864,1,375,1376,17, 5716131,1,379,1512,17,
48891377,15,1192,1,-1, 57171513,15,1319,1,-1,
48901,5,1378,20,1379, 57181,5,1514,20,1515,
48914,60,73,0,110, 57194,60,73,0,110,
48920,99,0,114,0, 57200,99,0,114,0,
4893101,0,109,0,101, 5721101,0,109,0,101,
@@ -4900,30 +5728,64 @@ public yyLSLSyntax
49000,101,0,115,0, 57280,101,0,115,0,
4901115,0,105,0,111, 5729115,0,105,0,111,
49020,110,0,95,0, 57300,110,0,95,0,
490356,0,1,243,1, 573155,0,1,298,1,
49043,1,5,1,4, 57323,1,5,1,4,
49051380,22,1,103,1, 57331516,22,1,133,1,
4906377,1381,17,1382,15, 5734380,1517,17,1518,15,
49071192,1,-1,1,5, 57351519,4,38,37,0,
49081383,20,1384,4,60, 573667,0,111,0,110,
490973,0,110,0,99, 57370,115,0,116,0,
49100,114,0,101,0, 573897,0,110,0,116,
4911109,0,101,0,110,
49120,116,0,68,0,
4913101,0,99,0,114,
49140,101,0,109,0,
4915101,0,110,0,116,
49160,69,0,120,0, 57390,69,0,120,0,
4917112,0,114,0,101, 5740112,0,114,0,101,
49180,115,0,115,0, 57410,115,0,115,0,
4919105,0,111,0,110, 5742105,0,111,0,110,
49200,95,0,53,0, 57430,1,-1,1,5,
49211,240,1,3,1, 57441520,20,1521,4,40,
49223,1,2,1385,22, 574567,0,111,0,110,
49231,100,1,379,1386, 57460,115,0,116,0,
492417,1387,15,1192,1, 574797,0,110,0,116,
4925-1,1,5,1388,20, 57480,69,0,120,0,
49261389,4,60,73,0, 5749112,0,114,0,101,
57500,115,0,115,0,
5751105,0,111,0,110,
57520,95,0,49,0,
57531,289,1,3,1,
57542,1,1,1522,22,
57551,124,1,883,1523,
575617,1524,15,1246,1,
5757-1,1,5,1525,20,
57581526,4,38,66,0,
5759105,0,110,0,97,
57600,114,0,121,0,
576169,0,120,0,112,
57620,114,0,101,0,
5763115,0,115,0,105,
57640,111,0,110,0,
576595,0,49,0,54,
57660,1,316,1,3,
57671,4,1,3,1527,
576822,1,151,1,1628,
57691528,17,1529,15,1530,
57704,22,37,0,65,
57710,115,0,115,0,
5772105,0,103,0,110,
57730,109,0,101,0,
5774110,0,116,0,1,
5775-1,1,5,1531,20,
57761532,4,24,65,0,
5777115,0,115,0,105,
57780,103,0,110,0,
5779109,0,101,0,110,
57800,116,0,95,0,
578149,0,1,254,1,
57823,1,4,1,3,
57831533,22,1,89,1,
57842075,1534,17,1267,1,
57850,1271,1,373,1535,
578617,1536,15,1319,1,
5787-1,1,5,1537,20,
57881538,4,60,73,0,
4927110,0,99,0,114, 5789110,0,99,0,114,
49280,101,0,109,0, 57900,101,0,109,0,
4929101,0,110,0,116, 5791101,0,110,0,116,
@@ -4935,81 +5797,25 @@ public yyLSLSyntax
4935114,0,101,0,115, 5797114,0,101,0,115,
49360,115,0,105,0, 57980,115,0,105,0,
4937111,0,110,0,95, 5799111,0,110,0,95,
49380,55,0,1,242, 58000,54,0,1,297,
49391,3,1,5,1, 58011,3,1,3,1,
49404,1390,22,1,102, 58022,1539,22,1,132,
49411,380,1391,17,1392, 58031,130,1540,17,1541,
494215,1393,4,38,37, 580415,1246,1,-1,1,
49430,67,0,111,0, 58055,1542,20,1543,4,
4944110,0,115,0,116, 580638,66,0,105,0,
49450,97,0,110,0, 5807110,0,97,0,114,
4946116,0,69,0,120, 58080,121,0,69,0,
49470,112,0,114,0, 5809120,0,112,0,114,
4948101,0,115,0,115, 58100,101,0,115,0,
49490,105,0,111,0, 5811115,0,105,0,111,
4950110,0,1,-1,1, 58120,110,0,95,0,
49515,1394,20,1395,4, 581349,0,51,0,1,
495240,67,0,111,0, 5814313,1,3,1,4,
4953110,0,115,0,116, 58151,3,1544,22,1,
49540,97,0,110,0, 5816148,1,143,1545,17,
4955116,0,69,0,120, 58171546,15,1246,1,-1,
49560,112,0,114,0, 58181,5,1547,20,1548,
4957101,0,115,0,115,
49580,105,0,111,0,
4959110,0,95,0,49,
49600,1,233,1,3,
49611,2,1,1,1396,
496222,1,93,1,883,
49631397,17,1398,15,1121,
49641,-1,1,5,1399,
496520,1400,4,38,66,
49660,105,0,110,0,
496797,0,114,0,121,
49680,69,0,120,0,
4969112,0,114,0,101,
49700,115,0,115,0,
4971105,0,111,0,110,
49720,95,0,49,0,
497354,0,1,260,1,
49743,1,4,1,3,
49751401,22,1,120,1,
49761628,1402,17,1403,15,
49771404,4,22,37,0,
497865,0,115,0,115,
49790,105,0,103,0,
4980110,0,109,0,101,
49810,110,0,116,0,
49821,-1,1,5,1405,
498320,1406,4,24,65,
49840,115,0,115,0,
4985105,0,103,0,110,
49860,109,0,101,0,
4987110,0,116,0,95,
49880,49,0,1,198,
49891,3,1,4,1,
49903,1407,22,1,58,
49911,2075,1408,17,1142,
49921,0,1146,1,373,
49931409,17,1410,15,1192,
49941,-1,1,5,1411,
499520,1412,4,60,73,
49960,110,0,99,0,
4997114,0,101,0,109,
49980,101,0,110,0,
4999116,0,68,0,101,
50000,99,0,114,0,
5001101,0,109,0,101,
50020,110,0,116,0,
500369,0,120,0,112,
50040,114,0,101,0,
5005115,0,115,0,105,
50060,111,0,110,0,
500795,0,54,0,1,
5008241,1,3,1,3,
50091,2,1413,22,1,
5010101,1,130,1414,17,
50111415,15,1121,1,-1,
50121,5,1416,20,1417,
50134,38,66,0,105, 58194,38,66,0,105,
50140,110,0,97,0, 58200,110,0,97,0,
5015114,0,121,0,69, 5821114,0,121,0,69,
@@ -5017,42 +5823,96 @@ public yyLSLSyntax
5017114,0,101,0,115, 5823114,0,101,0,115,
50180,115,0,105,0, 58240,115,0,105,0,
5019111,0,110,0,95, 5825111,0,110,0,95,
50200,49,0,51,0, 58260,49,0,50,0,
50211,257,1,3,1, 58271,312,1,3,1,
50224,1,3,1418,22, 58284,1,3,1549,22,
50231,117,1,143,1419, 58291,147,1,1901,1550,
502417,1420,15,1121,1, 583017,1267,1,0,1271,
5025-1,1,5,1421,20, 58311,1152,1551,17,1552,
50261422,4,38,66,0, 583215,1223,1,-1,1,
58335,1553,20,1554,4,
583438,83,0,105,0,
5835109,0,112,0,108,
58360,101,0,65,0,
5837115,0,115,0,105,
58380,103,0,110,0,
5839109,0,101,0,110,
58400,116,0,95,0,
584150,0,52,0,1,
5842279,1,3,1,6,
58431,5,1555,22,1,
5844114,1,1406,1556,17,
58451557,15,1223,1,-1,
58461,5,1558,20,1559,
58474,38,83,0,105,
58480,109,0,112,0,
5849108,0,101,0,65,
58500,115,0,115,0,
5851105,0,103,0,110,
58520,109,0,101,0,
5853110,0,116,0,95,
58540,49,0,55,0,
58551,272,1,3,1,
58564,1,3,1560,22,
58571,107,1,1659,1561,
585816,0,298,1,2413,
58591562,17,1267,1,0,
58601271,1,1159,1563,17,
58611564,15,1223,1,-1,
58621,5,1565,20,1566,
58634,38,83,0,105,
58640,109,0,112,0,
5865108,0,101,0,65,
58660,115,0,115,0,
5867105,0,103,0,110,
58680,109,0,101,0,
5869110,0,116,0,95,
58700,49,0,49,0,
58711,266,1,3,1,
58726,1,5,1567,22,
58731,101,1,157,1568,
587417,1569,15,1246,1,
5875-1,1,5,1570,20,
58761571,4,38,66,0,
5027105,0,110,0,97, 5877105,0,110,0,97,
50280,114,0,121,0, 58780,114,0,121,0,
502969,0,120,0,112, 587969,0,120,0,112,
50300,114,0,101,0, 58800,114,0,101,0,
5031115,0,115,0,105, 5881115,0,115,0,105,
50320,111,0,110,0, 58820,111,0,110,0,
503395,0,49,0,50, 588395,0,49,0,49,
50340,1,256,1,3, 58840,1,311,1,3,
50351,4,1,3,1423, 58851,4,1,3,1572,
503622,1,116,1,1901, 588622,1,146,1,1413,
50371424,17,1142,1,0, 58871573,17,1574,15,1223,
50381146,1,2657,1425,16, 58881,-1,1,5,1575,
50390,608,1,1152,1426, 588920,1576,4,36,83,
504017,1427,15,1098,1, 58900,105,0,109,0,
5041-1,1,5,1428,20, 5891112,0,108,0,101,
50421429,4,38,83,0, 58920,65,0,115,0,
5893115,0,105,0,103,
58940,110,0,109,0,
5895101,0,110,0,116,
58960,95,0,52,0,
58971,259,1,3,1,
58984,1,3,1577,22,
58991,94,1,1370,1578,
590017,1579,15,1223,1,
5901-1,1,5,1580,20,
59021581,4,38,83,0,
5043105,0,109,0,112, 5903105,0,109,0,112,
50440,108,0,101,0, 59040,108,0,101,0,
504565,0,115,0,115, 590565,0,115,0,115,
50460,105,0,103,0, 59060,105,0,103,0,
5047110,0,109,0,101, 5907110,0,109,0,101,
50480,110,0,116,0, 59080,110,0,116,0,
504995,0,50,0,52, 590995,0,49,0,56,
50500,1,223,1,3, 59100,1,273,1,3,
50511,6,1,5,1430, 59111,4,1,3,1582,
505222,1,83,1,1406, 591222,1,108,1,1478,
50531431,17,1432,15,1098, 59131583,17,1584,15,1223,
50541,-1,1,5,1433, 59141,-1,1,5,1585,
505520,1434,4,38,83, 591520,1586,4,38,83,
50560,105,0,109,0, 59160,105,0,109,0,
5057112,0,108,0,101, 5917112,0,108,0,101,
50580,65,0,115,0, 59180,65,0,115,0,
@@ -5060,15 +5920,67 @@ public yyLSLSyntax
50600,110,0,109,0, 59200,110,0,109,0,
5061101,0,110,0,116, 5921101,0,110,0,116,
50620,95,0,49,0, 59220,95,0,49,0,
506355,0,1,216,1, 592353,0,1,270,1,
50643,1,4,1,3, 59243,1,4,1,3,
50651435,22,1,76,1, 59251587,22,1,105,1,
50661659,1436,16,0,269, 59262106,1588,17,1267,1,
50671,2413,1437,17,1142, 59270,1271,1,1620,1589,
50681,0,1146,1,1159, 592817,1590,15,1530,1,
50691438,17,1439,15,1098, 5929-1,1,5,1591,20,
50701,-1,1,5,1440, 59301592,4,24,65,0,
507120,1441,4,38,83, 5931115,0,115,0,105,
59320,103,0,110,0,
5933109,0,101,0,110,
59340,116,0,95,0,
593550,0,1,255,1,
59363,1,2,1,1,
59371593,22,1,90,1,
59381621,1594,16,0,791,
59391,1574,924,1,172,
59401595,17,1596,15,1246,
59411,-1,1,5,1597,
594220,1598,4,38,66,
59430,105,0,110,0,
594497,0,114,0,121,
59450,69,0,120,0,
5946112,0,114,0,101,
59470,115,0,115,0,
5948105,0,111,0,110,
59490,95,0,49,0,
595048,0,1,310,1,
59513,1,4,1,3,
59521599,22,1,145,1,
59531931,986,1,1665,1600,
595417,1601,15,1281,1,
5955-1,1,5,1602,20,
59561603,4,36,70,0,
5957111,0,114,0,76,
59580,111,0,111,0,
5959112,0,83,0,116,
59600,97,0,116,0,
5961101,0,109,0,101,
59620,110,0,116,0,
596395,0,49,0,1,
5964250,1,3,1,2,
59651,1,1604,22,1,
596685,1,2364,952,1,
59672105,939,1,1188,1605,
596817,1606,15,1223,1,
5969-1,1,5,1607,20,
59701608,4,38,83,0,
5971105,0,109,0,112,
59720,108,0,101,0,
597365,0,115,0,115,
59740,105,0,103,0,
5975110,0,109,0,101,
59760,110,0,116,0,
597795,0,50,0,51,
59780,1,278,1,3,
59791,6,1,5,1609,
598022,1,113,1,1442,
59811610,17,1611,15,1223,
59821,-1,1,5,1612,
598320,1613,4,38,83,
50720,105,0,109,0, 59840,105,0,109,0,
5073112,0,108,0,101, 5985112,0,108,0,101,
50740,65,0,115,0, 59860,65,0,115,0,
@@ -5076,38 +5988,28 @@ public yyLSLSyntax
50760,110,0,109,0, 59880,110,0,109,0,
5077101,0,110,0,116, 5989101,0,110,0,116,
50780,95,0,49,0, 59900,95,0,49,0,
507949,0,1,210,1, 599154,0,1,271,1,
50803,1,6,1,5,
50811442,22,1,70,1,
5082157,1443,17,1444,15,
50831121,1,-1,1,5,
50841445,20,1446,4,38,
508566,0,105,0,110,
50860,97,0,114,0,
5087121,0,69,0,120,
50880,112,0,114,0,
5089101,0,115,0,115,
50900,105,0,111,0,
5091110,0,95,0,49,
50920,49,0,1,255,
50931,3,1,4,1,
50943,1447,22,1,115,
50951,1413,1448,17,1449,
509615,1098,1,-1,1,
50975,1450,20,1451,4,
509836,83,0,105,0,
5099109,0,112,0,108,
51000,101,0,65,0,
5101115,0,115,0,105,
51020,103,0,110,0,
5103109,0,101,0,110,
51040,116,0,95,0,
510552,0,1,203,1,
51063,1,4,1,3, 59923,1,4,1,3,
51071452,22,1,63,1, 59931614,22,1,106,1,
51081370,1453,17,1454,15, 59941694,1615,16,0,215,
51091098,1,-1,1,5, 59951,942,1616,17,1617,
51101455,20,1456,4,38, 599615,1246,1,-1,1,
59975,1618,20,1619,4,
599838,66,0,105,0,
5999110,0,97,0,114,
60000,121,0,69,0,
6001120,0,112,0,114,
60020,101,0,115,0,
6003115,0,105,0,111,
60040,110,0,95,0,
600549,0,55,0,1,
6006317,1,3,1,4,
60071,3,1620,22,1,
6008152,1,2198,1621,17,
60091267,1,0,1271,1,
60101195,1622,17,1623,15,
60111223,1,-1,1,5,
60121624,20,1625,4,38,
511183,0,105,0,109, 601383,0,105,0,109,
51120,112,0,108,0, 60140,112,0,108,0,
5113101,0,65,0,115, 6015101,0,65,0,115,
@@ -5115,314 +6017,204 @@ public yyLSLSyntax
5115103,0,110,0,109, 6017103,0,110,0,109,
51160,101,0,110,0, 60180,101,0,110,0,
5117116,0,95,0,49, 6019116,0,95,0,49,
51180,56,0,1,217, 60200,48,0,1,265,
51191,3,1,4,1, 60211,3,1,6,1,
51203,1457,22,1,77, 60225,1626,22,1,100,
51211,1478,1458,17,1459, 60231,1449,1627,17,1628,
512215,1098,1,-1,1, 602415,1223,1,-1,1,
51235,1460,20,1461,4, 60255,1629,20,1630,4,
512438,83,0,105,0, 602636,83,0,105,0,
5125109,0,112,0,108, 6027109,0,112,0,108,
51260,101,0,65,0, 60280,101,0,65,0,
5127115,0,115,0,105, 6029115,0,115,0,105,
51280,103,0,110,0, 60300,103,0,110,0,
5129109,0,101,0,110, 6031109,0,101,0,110,
51300,116,0,95,0, 60320,116,0,95,0,
513149,0,53,0,1, 603351,0,1,258,1,
5132214,1,3,1,4, 60343,1,4,1,3,
51331,3,1462,22,1, 60351631,22,1,93,1,
513474,1,1620,1463,17, 60361701,1632,17,1633,15,
51351464,15,1404,1,-1, 60371281,1,-1,1,5,
51361,5,1465,20,1466, 60381634,20,1635,4,36,
51374,24,65,0,115, 603970,0,111,0,114,
51380,115,0,105,0, 60400,76,0,111,0,
5139103,0,110,0,109, 6041111,0,112,0,83,
60420,116,0,97,0,
6043116,0,101,0,109,
51400,101,0,110,0, 60440,101,0,110,0,
5141116,0,95,0,50, 6045116,0,95,0,51,
51420,1,199,1,3, 60460,1,252,1,3,
51431,2,1,1,1467, 60471,4,1,3,1636,
514422,1,59,1,1621, 604822,1,87,1,447,
51451468,16,0,668,1, 60491637,17,1638,15,1639,
51461574,799,1,172,1469, 60504,30,37,0,86,
514717,1470,15,1121,1, 60510,101,0,99,0,
5148-1,1,5,1471,20, 6052116,0,111,0,114,
51491472,4,38,66,0, 60530,67,0,111,0,
5150105,0,110,0,97, 6054110,0,115,0,116,
51510,114,0,121,0, 60550,97,0,110,0,
515269,0,120,0,112, 6056116,0,1,-1,1,
51530,114,0,101,0, 60575,1640,20,1641,4,
5154115,0,115,0,105, 605832,86,0,101,0,
51550,111,0,110,0, 605999,0,116,0,111,
515695,0,49,0,48, 60600,114,0,67,0,
51570,1,254,1,3, 6061111,0,110,0,115,
51581,4,1,3,1473, 60620,116,0,97,0,
515922,1,114,1,1931,
5160861,1,1665,1474,17,
51611475,15,1156,1,-1,
51621,5,1476,20,1477,
51634,36,70,0,111,
51640,114,0,76,0,
5165111,0,111,0,112,
51660,83,0,116,0,
516797,0,116,0,101,
51680,109,0,101,0,
5169110,0,116,0,95,
51700,49,0,1,194,
51711,3,1,2,1,
51721,1478,22,1,54,
51731,2364,827,1,2105,
5174814,1,1188,1479,17,
51751480,15,1098,1,-1,
51761,5,1481,20,1482,
51774,38,83,0,105,
51780,109,0,112,0,
5179108,0,101,0,65,
51800,115,0,115,0,
5181105,0,103,0,110,
51820,109,0,101,0,
5183110,0,116,0,95, 6063110,0,116,0,95,
51840,50,0,51,0, 60640,49,0,1,287,
51851,222,1,3,1, 60651,3,1,8,1,
51866,1,5,1483,22, 60667,1642,22,1,122,
51871,82,1,1442,1484, 60671,2458,1001,1,2459,
518817,1485,15,1098,1, 60681007,1,1958,1643,17,
5189-1,1,5,1486,20, 60691267,1,0,1271,1,
51901487,4,38,83,0, 6070188,1644,17,1645,15,
5191105,0,109,0,112, 60711246,1,-1,1,5,
51920,108,0,101,0, 60721646,20,1647,4,36,
519365,0,115,0,115,
51940,105,0,103,0,
5195110,0,109,0,101,
51960,110,0,116,0,
519795,0,49,0,54,
51980,1,215,1,3,
51991,4,1,3,1488,
520022,1,75,1,1694,
52011489,16,0,190,1,
5202942,1490,17,1491,15,
52031121,1,-1,1,5,
52041492,20,1493,4,38,
520566,0,105,0,110, 607366,0,105,0,110,
52060,97,0,114,0, 60740,97,0,114,0,
5207121,0,69,0,120, 6075121,0,69,0,120,
52080,112,0,114,0, 60760,112,0,114,0,
5209101,0,115,0,115, 6077101,0,115,0,115,
52100,105,0,111,0, 60780,105,0,111,0,
5211110,0,95,0,49, 6079110,0,95,0,57,
52120,55,0,1,261, 60800,1,309,1,3,
52131,3,1,4,1, 60811,4,1,3,1648,
52143,1494,22,1,121, 608222,1,144,1,2462,
52151,2198,1495,17,1142, 60831014,1,1657,1019,1,
52161,0,1146,1,1195, 60842464,1024,1,205,1649,
52171496,17,1497,15,1098, 608517,1650,15,1246,1,
52181,-1,1,5,1498, 6086-1,1,5,1651,20,
521920,1499,4,38,83, 60871652,4,36,66,0,
52200,105,0,109,0, 6088105,0,110,0,97,
5221112,0,108,0,101, 60890,114,0,121,0,
52220,65,0,115,0, 609069,0,120,0,112,
5223115,0,105,0,103, 60910,114,0,101,0,
52240,110,0,109,0, 6092115,0,115,0,105,
5225101,0,110,0,116, 60930,111,0,110,0,
52260,95,0,49,0, 609495,0,56,0,1,
522748,0,1,209,1, 6095308,1,3,1,4,
52283,1,6,1,5, 60961,3,1653,22,1,
52291500,22,1,69,1, 6097143,1,2227,1033,1,
52301449,1501,17,1502,15, 60981224,1654,17,1655,15,
52311098,1,-1,1,5, 60991223,1,-1,1,5,
52321503,20,1504,4,36, 61001656,20,1657,4,38,
523383,0,105,0,109, 610183,0,105,0,109,
52340,112,0,108,0, 61020,112,0,108,0,
5235101,0,65,0,115, 6103101,0,65,0,115,
52360,115,0,105,0, 61040,115,0,105,0,
5237103,0,110,0,109, 6105103,0,110,0,109,
52380,101,0,110,0, 61060,101,0,110,0,
5239116,0,95,0,51, 6107116,0,95,0,50,
52400,1,202,1,3, 61080,50,0,1,277,
52411,4,1,3,1505, 61091,3,1,6,1,
524222,1,62,1,1701, 61105,1658,22,1,112,
52431506,17,1507,15,1156, 61111,223,1659,17,1660,
52441,-1,1,5,1508, 611215,1246,1,-1,1,
524520,1509,4,36,70, 61135,1661,20,1662,4,
52460,111,0,114,0, 611436,66,0,105,0,
524776,0,111,0,111, 6115110,0,97,0,114,
52480,112,0,83,0, 61160,121,0,69,0,
5249116,0,97,0,116, 6117120,0,112,0,114,
52500,101,0,109,0, 61180,101,0,115,0,
5251101,0,110,0,116, 6119115,0,105,0,111,
52520,95,0,51,0, 61200,110,0,95,0,
52531,196,1,3,1, 612155,0,1,307,1,
52544,1,3,1510,22, 61223,1,4,1,3,
52551,56,1,447,1511, 61231663,22,1,142,1,
525617,1512,15,1513,4, 61241730,1664,17,1665,15,
525730,37,0,86,0, 61251281,1,-1,1,5,
5258101,0,99,0,116, 61261666,20,1667,4,36,
52590,111,0,114,0, 612770,0,111,0,114,
526067,0,111,0,110, 61280,76,0,111,0,
52610,115,0,116,0, 6129111,0,112,0,83,
526297,0,110,0,116,
52630,1,-1,1,5,
52641514,20,1515,4,32,
526586,0,101,0,99,
52660,116,0,111,0,
5267114,0,67,0,111,
52680,110,0,115,0,
5269116,0,97,0,110,
52700,116,0,95,0,
527149,0,1,231,1,
52723,1,8,1,7,
52731516,22,1,91,1,
52742458,876,1,2459,882,
52751,1958,1517,17,1142,
52761,0,1146,1,188,
52771518,17,1519,15,1121,
52781,-1,1,5,1520,
527920,1521,4,36,66,
52800,105,0,110,0,
528197,0,114,0,121,
52820,69,0,120,0,
5283112,0,114,0,101,
52840,115,0,115,0,
5285105,0,111,0,110,
52860,95,0,57,0,
52871,253,1,3,1,
52884,1,3,1522,22,
52891,113,1,2462,889,
52901,1657,894,1,2464,
5291899,1,205,1523,17,
52921524,15,1121,1,-1,
52931,5,1525,20,1526,
52944,36,66,0,105,
52950,110,0,97,0,
5296114,0,121,0,69,
52970,120,0,112,0,
5298114,0,101,0,115,
52990,115,0,105,0,
5300111,0,110,0,95,
53010,56,0,1,252,
53021,3,1,4,1,
53033,1527,22,1,112,
53041,2227,908,1,1224,
53051528,17,1529,15,1098,
53061,-1,1,5,1530,
530720,1531,4,38,83,
53080,105,0,109,0,
5309112,0,108,0,101,
53100,65,0,115,0,
5311115,0,105,0,103,
53120,110,0,109,0,
5313101,0,110,0,116,
53140,95,0,50,0,
531550,0,1,221,1,
53163,1,6,1,5,
53171532,22,1,81,1,
5318223,1533,17,1534,15,
53191121,1,-1,1,5,
53201535,20,1536,4,36,
532166,0,105,0,110,
53220,97,0,114,0,
5323121,0,69,0,120,
53240,112,0,114,0,
5325101,0,115,0,115,
53260,105,0,111,0,
5327110,0,95,0,55,
53280,1,251,1,3,
53291,4,1,3,1537,
533022,1,111,1,1730,
53311538,17,1539,15,1156,
53321,-1,1,5,1540,
533320,1541,4,36,70,
53340,111,0,114,0,
533576,0,111,0,111,
53360,112,0,83,0,
5337116,0,97,0,116,
53380,101,0,109,0,
5339101,0,110,0,116,
53400,95,0,52,0,
53411,197,1,3,1,
53424,1,3,1542,22,
53431,57,1,476,1543,
534417,1544,15,1545,4,
534518,37,0,67,0,
5346111,0,110,0,115,
53470,116,0,97,0,
5348110,0,116,0,1,
5349-1,1,5,1546,20,
53501547,4,20,67,0,
5351111,0,110,0,115,
53520,116,0,97,0,
5353110,0,116,0,95,
53540,52,0,1,229,
53551,3,1,2,1,
53561,1548,22,1,89,
53571,477,1549,17,1550,
535815,1545,1,-1,1,
53595,1551,20,1552,4,
536020,67,0,111,0,
5361110,0,115,0,116,
53620,97,0,110,0,
5363116,0,95,0,51,
53640,1,228,1,3,
53651,2,1,1,1553,
536622,1,88,1,1231,
53671554,17,1555,15,1098,
53681,-1,1,5,1556,
536920,1557,4,36,83,
53700,105,0,109,0,
5371112,0,108,0,101,
53720,65,0,115,0,
5373115,0,105,0,103,
53740,110,0,109,0,
5375101,0,110,0,116,
53760,95,0,57,0,
53771,208,1,3,1,
53786,1,5,1558,22,
53791,68,1,479,1559,
538017,1560,15,1545,1,
5381-1,1,5,1561,20,
53821562,4,20,67,0,
5383111,0,110,0,115,
53840,116,0,97,0, 61300,116,0,97,0,
5385110,0,116,0,95, 6131116,0,101,0,109,
53860,49,0,1,226, 61320,101,0,110,0,
53871,3,1,2,1, 6133116,0,95,0,52,
53881,1563,22,1,86, 61340,1,253,1,3,
53891,480,1564,17,1565, 61351,4,1,3,1668,
539015,1566,4,26,37, 613622,1,88,1,476,
53910,76,0,105,0, 61371669,17,1670,15,1671,
5392115,0,116,0,67, 61384,18,37,0,67,
53930,111,0,110,0, 61390,111,0,110,0,
5394115,0,116,0,97, 6140115,0,116,0,97,
53950,110,0,116,0, 61410,110,0,116,0,
53961,-1,1,5,1567, 61421,-1,1,5,1672,
539720,1568,4,28,76, 614320,1673,4,20,67,
53980,105,0,115,0, 61440,111,0,110,0,
5399116,0,67,0,111, 6145115,0,116,0,97,
61460,110,0,116,0,
614795,0,52,0,1,
6148285,1,3,1,2,
61491,1,1674,22,1,
6150120,1,477,1675,17,
61511676,15,1671,1,-1,
61521,5,1677,20,1678,
61534,20,67,0,111,
54000,110,0,115,0, 61540,110,0,115,0,
5401116,0,97,0,110, 6155116,0,97,0,110,
54020,116,0,95,0, 61560,116,0,95,0,
540349,0,1,230,1, 615751,0,1,284,1,
54043,1,4,1,3, 61583,1,2,1,1,
54051569,22,1,90,1, 61591679,22,1,119,1,
54061485,1570,17,1571,15, 61601231,1680,17,1681,15,
54071098,1,-1,1,5, 61611223,1,-1,1,5,
54081572,20,1573,4,36, 61621682,20,1683,4,36,
540983,0,105,0,109, 616383,0,105,0,109,
54100,112,0,108,0, 61640,112,0,108,0,
5411101,0,65,0,115, 6165101,0,65,0,115,
54120,115,0,105,0, 61660,115,0,105,0,
5413103,0,110,0,109, 6167103,0,110,0,109,
54140,101,0,110,0, 61680,101,0,110,0,
5415116,0,95,0,50, 6169116,0,95,0,57,
54160,1,201,1,3, 61700,1,264,1,3,
54171,4,1,3,1574, 61711,6,1,5,1684,
541822,1,61,1,1737, 617222,1,99,1,479,
54191575,16,0,271,1, 61731685,17,1686,15,1671,
54201989,916,1,1990,1576, 61741,-1,1,5,1687,
542117,1142,1,0,1146, 617520,1688,4,20,67,
54221,2664,1577,16,0, 61760,111,0,110,0,
5423667,1,242,1578,17, 6177115,0,116,0,97,
54241579,15,1121,1,-1, 61780,110,0,116,0,
54251,5,1580,20,1581, 617995,0,49,0,1,
6180282,1,3,1,2,
61811,1,1689,22,1,
6182117,1,480,1690,17,
61831691,15,1692,4,26,
618437,0,76,0,105,
61850,115,0,116,0,
618667,0,111,0,110,
61870,115,0,116,0,
618897,0,110,0,116,
61890,1,-1,1,5,
61901693,20,1694,4,28,
619176,0,105,0,115,
61920,116,0,67,0,
6193111,0,110,0,115,
61940,116,0,97,0,
6195110,0,116,0,95,
61960,49,0,1,286,
61971,3,1,4,1,
61983,1695,22,1,121,
61991,1485,1696,17,1697,
620015,1223,1,-1,1,
62015,1698,20,1699,4,
620236,83,0,105,0,
6203109,0,112,0,108,
62040,101,0,65,0,
6205115,0,115,0,105,
62060,103,0,110,0,
6207109,0,101,0,110,
62080,116,0,95,0,
620950,0,1,257,1,
62103,1,4,1,3,
62111700,22,1,92,1,
62121737,1701,16,0,303,
62131,1989,1041,1,1990,
62141702,17,1267,1,0,
62151271,1,242,1703,17,
62161704,15,1246,1,-1,
62171,5,1705,20,1706,
54264,36,66,0,105, 62184,36,66,0,105,
54270,110,0,97,0, 62190,110,0,97,0,
5428114,0,121,0,69, 6220114,0,121,0,69,
@@ -5430,22 +6222,22 @@ public yyLSLSyntax
5430114,0,101,0,115, 6222114,0,101,0,115,
54310,115,0,105,0, 62230,115,0,105,0,
5432111,0,110,0,95, 6224111,0,110,0,95,
54330,54,0,1,250, 62250,54,0,1,306,
54341,3,1,4,1, 62261,3,1,4,1,
54353,1582,22,1,110, 62273,1707,22,1,141,
54361,478,1583,17,1584, 62281,478,1708,17,1709,
543715,1545,1,-1,1, 622915,1671,1,-1,1,
54385,1585,20,1586,4, 62305,1710,20,1711,4,
543920,67,0,111,0, 623120,67,0,111,0,
5440110,0,115,0,116, 6232110,0,115,0,116,
54410,97,0,110,0, 62330,97,0,110,0,
5442116,0,95,0,50, 6234116,0,95,0,50,
54430,1,227,1,3, 62350,1,283,1,3,
54441,2,1,1,1587, 62361,2,1,1,1712,
544522,1,87,1,1001, 623722,1,118,1,1001,
54461588,17,1589,15,1224, 62381713,17,1714,15,1351,
54471,-1,1,5,1590, 62391,-1,1,5,1715,
544820,1591,4,40,84, 624020,1716,4,40,84,
54490,121,0,112,0, 62410,121,0,112,0,
5450101,0,99,0,97, 6242101,0,99,0,97,
54510,115,0,116,0, 62430,115,0,116,0,
@@ -5454,11 +6246,11 @@ public yyLSLSyntax
5454115,0,115,0,105, 6246115,0,115,0,105,
54550,111,0,110,0, 62470,111,0,110,0,
545695,0,56,0,1, 624895,0,56,0,1,
5457275,1,3,1,5, 6249331,1,3,1,5,
54581,4,1592,22,1, 62501,4,1717,22,1,
5459135,1,1002,1593,17, 6251166,1,1002,1718,17,
54601594,15,1224,1,-1, 62521719,15,1351,1,-1,
54611,5,1595,20,1596, 62531,5,1720,20,1721,
54624,40,84,0,121, 62544,40,84,0,121,
54630,112,0,101,0, 62550,112,0,101,0,
546499,0,97,0,115, 625699,0,97,0,115,
@@ -5467,116 +6259,445 @@ public yyLSLSyntax
54670,101,0,115,0, 62590,101,0,115,0,
5468115,0,105,0,111, 6260115,0,105,0,111,
54690,110,0,95,0, 62610,110,0,95,0,
547049,0,1,268,1, 626249,0,1,324,1,
54713,1,5,1,4, 62633,1,5,1,4,
54721597,22,1,128,1, 62641722,22,1,159,1,
547312,1598,19,157,1, 626512,1723,19,166,1,
547412,1599,5,43,1, 626612,1724,5,50,1,
54751901,1600,16,0,155, 62671901,1725,16,0,164,
54761,2075,1601,16,0, 62681,2075,1726,16,0,
5477155,1,1860,821,1, 6269164,1,1860,946,1,
54781803,787,1,1804,1602, 62701803,912,1,1804,1727,
547916,0,155,1,2517, 627116,0,164,1,2519,
54801603,16,0,155,1, 62721728,16,0,164,1,
54812413,1604,16,0,155, 62732549,1729,16,0,164,
54821,2198,1605,16,0, 62741,2413,1730,16,0,
5483155,1,1873,835,1, 6275164,1,2198,1731,16,
54841657,894,1,1989,916, 62760,164,1,1873,961,
54851,1990,1606,16,0, 62771,1657,1019,1,2534,
5486155,1,31,1607,16, 62781732,16,0,164,1,
54870,155,1,32,1608, 62791990,1733,16,0,164,
548816,0,155,1,2105, 62801,31,1734,16,0,
5489814,1,2106,1609,16, 6281164,1,32,1735,16,
54900,155,1,2653,1610, 62820,164,1,2105,939,
549116,0,155,1,2227, 62831,2106,1736,16,0,
5492908,1,2337,1611,16, 6284164,1,2573,1737,16,
54930,155,1,2560,1612, 62850,164,1,2658,1738,
549416,0,467,1,2021, 628616,0,284,1,2578,
5495718,1,2458,876,1, 62871739,16,0,164,1,
54962459,882,1,2462,889, 62882227,1033,1,2337,1740,
54971,2136,842,1,2464, 628916,0,164,1,2557,
5498899,1,2029,725,1, 62901741,16,0,164,1,
54992030,731,1,2031,736, 62912781,1742,16,0,164,
55001,2032,741,1,2469, 62921,2565,1743,16,0,
55011613,16,0,454,1, 6293164,1,2021,843,1,
55022035,752,1,2364,827, 62942458,1001,1,2459,1007,
55031,2039,762,1,1931, 62951,2462,1014,1,2136,
5504861,1,2041,768,1, 6296968,1,2464,1024,1,
55052043,774,1,2045,779, 62972029,850,1,2030,856,
55061,1775,1614,16,0, 62981,2031,861,1,2032,
5507155,1,2033,746,1, 6299866,1,2469,1744,16,
55082037,757,1,1574,799, 63000,536,1,2035,877,
55091,1958,1615,16,0, 63011,2364,952,1,2039,
5510155,1,13,1616,19, 6302887,1,1931,986,1,
5511448,1,13,1617,5, 63032041,893,1,2043,899,
551234,1,1860,821,1, 63041,2045,904,1,2593,
55131803,787,1,2519,1618, 63051745,16,0,164,1,
551417,1619,15,1620,4, 63061775,1746,16,0,164,
551522,37,0,83,0, 63071,1989,1041,1,2033,
6308871,1,2037,882,1,
63091574,924,1,1958,1747,
631016,0,164,1,13,
63111748,19,213,1,13,
63121749,5,55,1,2536,
63131750,17,1751,15,1752,
63144,46,37,0,73,
63150,110,0,116,0,
631686,0,101,0,99,
63170,86,0,101,0,
631899,0,65,0,114,
63190,103,0,83,0,
5516116,0,97,0,116, 6320116,0,97,0,116,
55170,101,0,69,0, 63210,101,0,69,0,
5518118,0,101,0,110, 6322118,0,101,0,110,
55190,116,0,1,-1, 63230,116,0,1,-1,
55201,5,1621,20,1622, 63241,5,1753,20,1754,
55214,24,83,0,116, 63254,48,73,0,110,
55220,97,0,116,0, 63260,116,0,86,0,
5523101,0,69,0,118, 6327101,0,99,0,86,
55240,101,0,110,0, 63280,101,0,99,0,
5525116,0,95,0,49, 632965,0,114,0,103,
55260,1,158,1,3, 63300,83,0,116,0,
55271,6,1,5,1623, 633197,0,116,0,101,
552822,1,17,1,2521, 63320,69,0,118,0,
55291624,16,0,460,1, 6333101,0,110,0,116,
55302413,1625,16,0,446, 63340,95,0,49,0,
55311,1873,835,1,1657, 63351,203,1,3,1,
5532894,1,1989,916,1, 63366,1,5,1755,22,
553332,1626,16,0,449, 63371,37,1,2643,1756,
55341,2105,814,1,2364, 633817,1757,15,1758,4,
5535827,1,2227,908,1,
55361574,799,1,2557,1627,
553717,1628,15,1629,4,
553820,37,0,83,0, 633920,37,0,83,0,
5539116,0,97,0,116, 6340116,0,97,0,116,
55400,101,0,66,0, 63410,101,0,66,0,
5541111,0,100,0,121, 6342111,0,100,0,121,
55420,1,-1,1,5, 63430,1,-1,1,5,
55431630,20,1631,4,22, 63441759,20,1760,4,24,
554483,0,116,0,97, 634583,0,116,0,97,
55450,116,0,101,0, 63460,116,0,101,0,
554666,0,111,0,100, 634766,0,111,0,100,
55470,121,0,95,0, 63480,121,0,95,0,
554850,0,1,157,1, 634949,0,50,0,1,
55493,1,3,1,2, 6350192,1,3,1,3,
55501632,22,1,16,1, 63511,2,1761,22,1,
55512559,1633,17,1634,15, 635226,1,2647,1762,17,
55521629,1,-1,1,5, 63531763,15,1758,1,-1,
55531635,20,1636,4,22, 63541,5,1764,20,1765,
63554,22,83,0,116,
63560,97,0,116,0,
6357101,0,66,0,111,
63580,100,0,121,0,
635995,0,52,0,1,
6360184,1,3,1,3,
63611,2,1766,22,1,
636218,1,1860,946,1,
63631803,912,1,2521,1767,
636417,1768,15,1769,4,
636546,37,0,75,0,
6366101,0,121,0,73,
63670,110,0,116,0,
636873,0,110,0,116,
63690,65,0,114,0,
6370103,0,83,0,116,
63710,97,0,116,0,
6372101,0,69,0,118,
63730,101,0,110,0,
6374116,0,1,-1,1,
63755,1770,20,1771,4,
637648,75,0,101,0,
6377121,0,73,0,110,
63780,116,0,73,0,
6379110,0,116,0,65,
63800,114,0,103,0,
555483,0,116,0,97, 638183,0,116,0,97,
55550,116,0,101,0, 63820,116,0,101,0,
555666,0,111,0,100, 638369,0,118,0,101,
55570,121,0,95,0, 63840,110,0,116,0,
555849,0,1,156,1, 638595,0,49,0,1,
55593,1,2,1,1, 6386204,1,3,1,6,
55601637,22,1,15,1, 63871,5,1772,22,1,
55612021,718,1,2458,876, 638838,1,2413,1773,16,
55621,2459,882,1,2462, 63890,521,1,2657,1774,
5563889,1,2136,842,1, 639017,1775,15,1758,1,
55642464,899,1,2029,725, 6391-1,1,5,1776,20,
55651,2030,731,1,2031, 63921777,4,22,83,0,
5566736,1,2032,741,1, 6393116,0,97,0,116,
55672033,746,1,2035,752, 63940,101,0,66,0,
55681,2037,757,1,2039, 6395111,0,100,0,121,
5569762,1,1931,861,1, 63960,95,0,49,0,
55702041,768,1,2043,774, 63971,181,1,3,1,
55711,2045,779,1,2597, 63982,1,1,1778,22,
55721638,16,0,639,1, 63991,15,1,1873,961,
557314,1639,19,144,1, 64001,1657,1019,1,2641,
557414,1640,5,105,1, 64011779,17,1780,15,1758,
55752515,1641,16,0,142, 64021,-1,1,5,1781,
55761,1011,1102,1,1514, 640320,1782,4,24,83,
55771108,1,9,1113,1, 64040,116,0,97,0,
557810,1642,17,1643,15, 6405116,0,101,0,66,
55791644,4,48,37,0, 64060,111,0,100,0,
6407121,0,95,0,49,
64080,54,0,1,196,
64091,3,1,3,1,
64102,1783,22,1,30,
64111,2642,1784,17,1785,
641215,1758,1,-1,1,
64135,1786,20,1787,4,
641424,83,0,116,0,
641597,0,116,0,101,
64160,66,0,111,0,
6417100,0,121,0,95,
64180,49,0,52,0,
64191,194,1,3,1,
64203,1,2,1788,22,
64211,28,1,1989,1041,
64221,2644,1789,17,1790,
642315,1758,1,-1,1,
64245,1791,20,1792,4,
642524,83,0,116,0,
642697,0,116,0,101,
64270,66,0,111,0,
6428100,0,121,0,95,
64290,49,0,48,0,
64301,190,1,3,1,
64313,1,2,1793,22,
64321,24,1,2645,1794,
643317,1795,15,1758,1,
6434-1,1,5,1796,20,
64351797,4,22,83,0,
6436116,0,97,0,116,
64370,101,0,66,0,
6438111,0,100,0,121,
64390,95,0,56,0,
64401,188,1,3,1,
64413,1,2,1798,22,
64421,22,1,2646,1799,
644317,1800,15,1758,1,
6444-1,1,5,1801,20,
64451802,4,22,83,0,
6446116,0,97,0,116,
64470,101,0,66,0,
6448111,0,100,0,121,
64490,95,0,54,0,
64501,186,1,3,1,
64513,1,2,1803,22,
64521,20,1,2037,882,
64531,32,1804,16,0,
6454526,1,2567,1805,17,
64551806,15,1807,4,34,
645637,0,73,0,110,
64570,116,0,65,0,
6458114,0,103,0,83,
64590,116,0,97,0,
6460116,0,101,0,69,
64610,118,0,101,0,
6462110,0,116,0,1,
6463-1,1,5,1808,20,
64641809,4,36,73,0,
6465110,0,116,0,65,
64660,114,0,103,0,
646783,0,116,0,97,
64680,116,0,101,0,
646969,0,118,0,101,
64700,110,0,116,0,
647195,0,49,0,1,
6472200,1,3,1,6,
64731,5,1810,22,1,
647434,1,2650,1811,17,
64751812,15,1758,1,-1,
64761,5,1813,20,1814,
64774,24,83,0,116,
64780,97,0,116,0,
6479101,0,66,0,111,
64800,100,0,121,0,
648195,0,49,0,53,
64820,1,195,1,3,
64831,2,1,1,1815,
648422,1,29,1,2651,
64851816,17,1817,15,1758,
64861,-1,1,5,1818,
648720,1819,4,24,83,
64880,116,0,97,0,
6489116,0,101,0,66,
64900,111,0,100,0,
6491121,0,95,0,49,
64920,51,0,1,193,
64931,3,1,2,1,
64941,1820,22,1,27,
64951,2652,1821,17,1822,
649615,1758,1,-1,1,
64975,1823,20,1824,4,
649824,83,0,116,0,
649997,0,116,0,101,
65000,66,0,111,0,
6501100,0,121,0,95,
65020,49,0,49,0,
65031,191,1,3,1,
65042,1,1,1825,22,
65051,25,1,2653,1826,
650617,1827,15,1758,1,
6507-1,1,5,1828,20,
65081829,4,22,83,0,
6509116,0,97,0,116,
65100,101,0,66,0,
6511111,0,100,0,121,
65120,95,0,57,0,
65131,189,1,3,1,
65142,1,1,1830,22,
65151,23,1,2654,1831,
651617,1832,15,1758,1,
6517-1,1,5,1833,20,
65181834,4,22,83,0,
6519116,0,97,0,116,
65200,101,0,66,0,
6521111,0,100,0,121,
65220,95,0,55,0,
65231,187,1,3,1,
65242,1,1,1835,22,
65251,21,1,2655,1836,
652617,1837,15,1758,1,
6527-1,1,5,1838,20,
65281839,4,22,83,0,
6529116,0,97,0,116,
65300,101,0,66,0,
6531111,0,100,0,121,
65320,95,0,53,0,
65331,185,1,3,1,
65342,1,1,1840,22,
65351,19,1,2656,1841,
653617,1842,15,1758,1,
6537-1,1,5,1843,20,
65381844,4,22,83,0,
6539116,0,97,0,116,
65400,101,0,66,0,
6541111,0,100,0,121,
65420,95,0,51,0,
65431,183,1,3,1,
65442,1,1,1845,22,
65451,17,1,2575,1846,
654617,1847,15,1848,4,
654734,37,0,75,0,
6548101,0,121,0,65,
65490,114,0,103,0,
655083,0,116,0,97,
65510,116,0,101,0,
655269,0,118,0,101,
65530,110,0,116,0,
65541,-1,1,5,1849,
655520,1850,4,36,75,
65560,101,0,121,0,
655765,0,114,0,103,
65580,83,0,116,0,
655997,0,116,0,101,
65600,69,0,118,0,
6561101,0,110,0,116,
65620,95,0,49,0,
65631,199,1,3,1,
65646,1,5,1851,22,
65651,33,1,2551,1852,
656617,1853,15,1854,4,
656746,37,0,73,0,
6568110,0,116,0,82,
65690,111,0,116,0,
657082,0,111,0,116,
65710,65,0,114,0,
6572103,0,83,0,116,
65730,97,0,116,0,
6574101,0,69,0,118,
65750,101,0,110,0,
6576116,0,1,-1,1,
65775,1855,20,1856,4,
657848,73,0,110,0,
6579116,0,82,0,111,
65800,116,0,82,0,
6581111,0,116,0,65,
65820,114,0,103,0,
658383,0,116,0,97,
65840,116,0,101,0,
658569,0,118,0,101,
65860,110,0,116,0,
658795,0,49,0,1,
6588202,1,3,1,6,
65891,5,1857,22,1,
659036,1,2580,1858,17,
65911859,15,1860,4,36,
659237,0,86,0,111,
65930,105,0,100,0,
659465,0,114,0,103,
65950,83,0,116,0,
659697,0,116,0,101,
65970,69,0,118,0,
6598101,0,110,0,116,
65990,1,-1,1,5,
66001861,20,1862,4,38,
660186,0,111,0,105,
66020,100,0,65,0,
6603114,0,103,0,83,
66040,116,0,97,0,
6605116,0,101,0,69,
66060,118,0,101,0,
6607110,0,116,0,95,
66080,49,0,1,198,
66091,3,1,5,1,
66104,1863,22,1,32,
66111,2227,1033,1,1574,
6612924,1,2559,1864,17,
66131865,15,1866,4,40,
661437,0,86,0,101,
66150,99,0,116,0,
6616111,0,114,0,65,
66170,114,0,103,0,
661883,0,116,0,97,
66190,116,0,101,0,
662069,0,118,0,101,
66210,110,0,116,0,
66221,-1,1,5,1867,
662320,1868,4,42,86,
66240,101,0,99,0,
6625116,0,111,0,114,
66260,65,0,114,0,
6627103,0,83,0,116,
66280,97,0,116,0,
6629101,0,69,0,118,
66300,101,0,110,0,
6631116,0,95,0,49,
66320,1,201,1,3,
66331,6,1,5,1869,
663422,1,35,1,2021,
6635843,1,2458,1001,1,
66362459,1007,1,2462,1014,
66371,2136,968,1,2464,
66381024,1,2029,850,1,
66392030,856,1,2031,861,
66401,2032,866,1,2033,
6641871,1,2035,877,1,
66422364,952,1,2039,887,
66431,1931,986,1,2041,
6644893,1,2043,899,1,
66452045,904,1,2703,1870,
664616,0,211,1,2595,
66471871,17,1872,15,1873,
66484,22,37,0,83,
66490,116,0,97,0,
6650116,0,101,0,69,
66510,118,0,101,0,
6652110,0,116,0,1,
6653-1,1,5,1874,20,
66541875,4,24,83,0,
6655116,0,97,0,116,
66560,101,0,69,0,
6657118,0,101,0,110,
66580,116,0,95,0,
665949,0,1,197,1,
66603,1,6,1,5,
66611876,22,1,31,1,
66622597,1877,16,0,761,
66631,2648,1878,17,1879,
666415,1758,1,-1,1,
66655,1880,20,1881,4,
666622,83,0,116,0,
666797,0,116,0,101,
66680,66,0,111,0,
6669100,0,121,0,95,
66700,50,0,1,182,
66711,3,1,3,1,
66722,1882,22,1,16,
66731,2105,939,1,14,
66741883,19,144,1,14,
66751884,5,115,1,2510,
66761885,16,0,706,1,
66772513,1886,17,1887,15,
66781888,4,30,37,0,
667973,0,110,0,116,
66800,68,0,101,0,
668199,0,108,0,97,
66820,114,0,97,0,
6683116,0,105,0,111,
66840,110,0,1,-1,
66851,5,1889,20,1890,
66864,32,73,0,110,
66870,116,0,68,0,
6688101,0,99,0,108,
66890,97,0,114,0,
669097,0,116,0,105,
66910,111,0,110,0,
669295,0,49,0,1,
6693215,1,3,1,3,
66941,2,1891,22,1,
669550,1,2514,1892,16,
66960,360,1,1260,1221,
66971,1011,1227,1,1514,
66981233,1,9,1238,1,
669910,1893,17,1894,15,
67001895,4,48,37,0,
558065,0,114,0,103, 670165,0,114,0,103,
55810,117,0,109,0, 67020,117,0,109,0,
5582101,0,110,0,116, 6703101,0,110,0,116,
@@ -5588,2885 +6709,3266 @@ public yyLSLSyntax
5588105,0,115,0,116, 6709105,0,115,0,116,
55890,1,-1,1,5, 67100,1,-1,1,5,
5590140,1,0,1,0, 6711140,1,0,1,0,
55911645,22,1,18,1, 67121896,22,1,39,1,
5592262,1119,1,1267,1125, 6713262,1244,1,1267,1250,
55931,481,1646,17,1647, 67141,2525,1897,16,0,
559415,1648,4,26,37, 6715507,1,1773,1898,16,
67160,148,1,2779,1899,
671716,0,142,1,19,
67181272,1,20,1900,16,
67190,142,1,2281,1279,
67201,525,1343,1,30,
67211901,17,1902,15,1895,
67221,-1,1,5,1903,
672320,1904,4,50,65,
67240,114,0,103,0,
6725117,0,109,0,101,
67260,110,0,116,0,
672768,0,101,0,99,
67280,108,0,97,0,
6729114,0,97,0,116,
67300,105,0,111,0,
6731110,0,76,0,105,
67320,115,0,116,0,
673395,0,50,0,1,
6734206,1,3,1,4,
67351,3,1905,22,1,
673641,1,283,1299,1,
67372543,1906,17,1907,15,
67381908,4,30,37,0,
673982,0,111,0,116,
67400,68,0,101,0,
674199,0,108,0,97,
67420,114,0,97,0,
6743116,0,105,0,111,
67440,110,0,1,-1,
67451,5,1909,20,1910,
67464,32,82,0,111,
67470,116,0,68,0,
6748101,0,99,0,108,
67490,97,0,114,0,
675097,0,116,0,105,
67510,111,0,110,0,
675295,0,49,0,1,
6753217,1,3,1,3,
67541,2,1911,22,1,
675552,1,2544,1912,16,
67560,528,1,40,1304,
67571,41,1913,17,1914,
675815,1915,4,26,37,
55950,65,0,114,0, 67590,65,0,114,0,
5596103,0,117,0,109, 6760103,0,117,0,109,
55970,101,0,110,0, 67610,101,0,110,0,
5598116,0,76,0,105, 6762116,0,76,0,105,
55990,115,0,116,0, 67630,115,0,116,0,
56001,-1,1,5,1649, 67641,-1,1,5,724,
560120,1650,4,28,65, 67651,0,1,0,1916,
676622,1,169,1,42,
67671917,17,1918,15,1919,
67684,38,37,0,69,
67690,120,0,112,0,
6770114,0,101,0,115,
67710,115,0,105,0,
6772111,0,110,0,65,
56020,114,0,103,0, 67730,114,0,103,0,
5603117,0,109,0,101, 6774117,0,109,0,101,
56040,110,0,116,0, 67750,110,0,116,0,
560576,0,105,0,115, 67761,-1,1,5,1920,
56060,116,0,95,0, 677720,1921,4,40,69,
560749,0,1,278,1, 67780,120,0,112,0,
56083,1,2,1,1, 6779114,0,101,0,115,
56091651,22,1,139,1, 67800,115,0,105,0,
56101521,1130,1,1773,1652, 6781111,0,110,0,65,
561116,0,148,1,19,
56121147,1,20,1653,16,
56130,142,1,2281,1154,
56141,525,1216,1,30,
56151654,17,1655,15,1644,
56161,-1,1,5,1656,
561720,1657,4,50,65,
56180,114,0,103,0, 67820,114,0,103,0,
5619117,0,109,0,101, 6783117,0,109,0,101,
56200,110,0,116,0, 67840,110,0,116,0,
678595,0,49,0,1,
6786336,1,3,1,2,
67871,1,1922,22,1,
6788172,1,44,1310,1,
678947,1311,1,48,1317,
67901,49,1323,1,50,
67911328,1,51,1333,1,
6792305,1338,1,63,1349,
67931,1521,1255,1,66,
67941355,1,67,1360,1,
67951478,1583,1,69,1370,
67961,70,1375,1,68,
67971365,1,74,1380,1,
67981013,1385,1,2335,1923,
679916,0,148,1,1332,
68001390,1,1048,1470,1,
68012591,1924,16,0,142,
68021,82,1407,1,1296,
68031294,1,1341,1424,1,
6804328,1429,1,1303,1434,
68051,1096,1439,1,93,
68061445,1,1550,1450,1,
68072770,1925,17,1926,15,
68081895,1,-1,1,5,
6809140,1,0,1,0,
68101896,1,2528,1927,17,
68111928,15,1929,4,30,
681237,0,86,0,101,
68130,99,0,68,0,
6814101,0,99,0,108,
68150,97,0,114,0,
681697,0,116,0,105,
68170,111,0,110,0,
68181,-1,1,5,1930,
681920,1931,4,32,86,
68200,101,0,99,0,
562168,0,101,0,99, 682168,0,101,0,99,
56220,108,0,97,0, 68220,108,0,97,0,
5623114,0,97,0,116, 6823114,0,97,0,116,
56240,105,0,111,0, 68240,105,0,111,0,
5625110,0,76,0,105, 6825110,0,95,0,49,
68260,1,216,1,3,
68271,3,1,2,1932,
682822,1,51,1,2529,
68291933,16,0,515,1,
6830352,1475,1,107,1464,
68311,1114,1469,1,2540,
68321934,16,0,524,1,
68331370,1578,1,118,1481,
68341,1123,1486,1,371,
68351491,1,1377,1497,1,
6836375,1502,1,377,1507,
68371,827,1457,1,380,
68381517,1,883,1523,1,
6839373,1535,1,130,1540,
68401,379,1512,1,143,
68411545,1,1152,1551,1,
6842387,1935,16,0,656,
68431,1406,1556,1,2582,
68441936,17,1937,15,1895,
68451,-1,1,5,140,
68461,0,1,0,1896,
68471,1159,1563,1,157,
68481568,1,1413,1573,1,
68491665,1600,1,412,1938,
685016,0,695,1,1094,
68511939,16,0,726,1,
6852172,1595,1,1188,1605,
68531,437,1940,16,0,
6854765,1,1442,1610,1,
68551694,1941,16,0,148,
68561,942,1616,1,1195,
68571622,1,1449,1627,1,
68581701,1632,1,447,1637,
68591,188,1644,1,205,
68601649,1,2467,1942,17,
68611943,15,1895,1,-1,
68621,5,1944,20,1945,
68634,50,65,0,114,
68640,103,0,117,0,
6865109,0,101,0,110,
68660,116,0,68,0,
6867101,0,99,0,108,
68680,97,0,114,0,
686997,0,116,0,105,
68700,111,0,110,0,
687176,0,105,0,115,
68720,116,0,95,0,
687349,0,1,205,1,
68743,1,2,1,1,
68751946,22,1,40,1,
6876461,1947,16,0,726,
68771,464,1948,17,1949,
687815,1915,1,-1,1,
68795,1950,20,1951,4,
688028,65,0,114,0,
6881103,0,117,0,109,
68820,101,0,110,0,
6883116,0,76,0,105,
56260,115,0,116,0, 68840,115,0,116,0,
562795,0,50,0,1, 688595,0,50,0,1,
5628160,1,3,1,4, 6886335,1,3,1,4,
56291,3,1658,22,1, 68871,3,1952,22,1,
563020,1,283,1172,1, 6888171,1,1224,1654,1,
563140,1177,1,41,1659, 6889223,1659,1,1730,1664,
563217,1660,15,1648,1, 68901,476,1669,1,477,
5633-1,1,5,601,1, 68911675,1,1231,1680,1,
56340,1,0,1661,22, 6892479,1685,1,480,1690,
56351,138,1,42,1662, 68931,1485,1696,1,459,
563617,1663,15,1664,4, 68941953,17,1954,15,1915,
563738,37,0,69,0, 68951,-1,1,5,724,
5638120,0,112,0,114, 68961,0,1,0,1916,
56390,101,0,115,0, 68971,242,1703,1,478,
5640115,0,105,0,111, 68981708,1,481,1955,17,
56410,110,0,65,0, 68991956,15,1915,1,-1,
5642114,0,103,0,117, 69001,5,1957,20,1958,
56430,109,0,101,0, 69014,28,65,0,114,
5644110,0,116,0,1, 69020,103,0,117,0,
5645-1,1,5,1665,20, 6903109,0,101,0,110,
56461666,4,40,69,0, 69040,116,0,76,0,
5647120,0,112,0,114,
56480,101,0,115,0,
5649115,0,105,0,111,
56500,110,0,65,0,
5651114,0,103,0,117,
56520,109,0,101,0,
5653110,0,116,0,95,
56540,49,0,1,280,
56551,3,1,2,1,
56561,1667,22,1,141,
56571,44,1183,1,1260,
56581096,1,47,1184,1,
565948,1190,1,49,1196,
56601,50,1201,1,51,
56611206,1,305,1211,1,
566263,1222,1,66,1228,
56631,67,1233,1,1478,
56641458,1,69,1243,1,
566570,1248,1,68,1238,
56661,74,1253,1,1013,
56671258,1,2335,1668,16,
56680,148,1,1332,1263,
56691,1048,1344,1,82,
56701280,1,1296,1167,1,
56711341,1297,1,328,1302,
56721,1303,1307,1,1096,
56731312,1,93,1318,1,
56741550,1323,1,352,1349,
56751,107,1338,1,1114,
56761343,1,1370,1453,1,
5677118,1355,1,1123,1360,
56781,371,1365,1,1377,
56791371,1,375,1376,1,
5680377,1381,1,379,1386,
56811,380,1391,1,883,
56821397,1,2642,1669,17,
56831670,15,1644,1,-1,
56841,5,140,1,0,
56851,0,1645,1,373,
56861409,1,130,1414,1,
56872651,1671,16,0,142,
56881,143,1419,1,1152,
56891426,1,387,1672,16,
56900,555,1,1406,1431,
56911,1159,1438,1,157,
56921443,1,1413,1448,1,
56931665,1474,1,412,1673,
569416,0,576,1,1094,
56951674,16,0,603,1,
5696172,1469,1,827,1331,
56971,1188,1479,1,437,
56981675,16,0,650,1,
56991442,1484,1,1694,1676,
570016,0,148,1,942,
57011490,1,1195,1496,1,
57021449,1501,1,1701,1506,
57031,447,1511,1,188,
57041518,1,205,1523,1,
57052467,1677,17,1678,15,
57061644,1,-1,1,5,
57071679,20,1680,4,50,
570865,0,114,0,103,
57090,117,0,109,0,
5710101,0,110,0,116,
57110,68,0,101,0,
571299,0,108,0,97,
57130,114,0,97,0,
5714116,0,105,0,111,
57150,110,0,76,0,
5716105,0,115,0,116, 6905105,0,115,0,116,
57170,95,0,49,0, 69060,95,0,49,0,
57181,159,1,3,1, 69071,334,1,3,1,
57192,1,1,1681,22, 69082,1,1,1959,22,
57201,19,1,461,1682, 69091,170,1,1001,1713,
572116,0,603,1,464, 69101,1002,1718,1,2509,
57221683,17,1684,15,1648, 69111960,17,1961,15,1962,
57231,-1,1,5,1685, 69124,30,37,0,75,
572420,1686,4,28,65, 69130,101,0,121,0,
691468,0,101,0,99,
69150,108,0,97,0,
6916114,0,97,0,116,
69170,105,0,111,0,
6918110,0,1,-1,1,
69195,1963,20,1964,4,
692032,75,0,101,0,
6921121,0,68,0,101,
69220,99,0,108,0,
692397,0,114,0,97,
69240,116,0,105,0,
6925111,0,110,0,95,
69260,49,0,1,214,
69271,3,1,3,1,
69282,1965,22,1,49,
69291,15,1966,19,336,
69301,15,1967,5,6,
69311,2785,1968,16,0,
6932334,1,1114,1969,16,
69330,339,1,1621,1970,
693416,0,764,1,40,
69351971,16,0,649,1,
693619,1272,1,9,1238,
69371,16,1972,19,136,
69381,16,1973,5,147,
69391,256,1974,16,0,
6940203,1,1261,1975,16,
69410,203,1,509,1976,
694216,0,203,1,2769,
69431977,16,0,790,1,
69449,1978,16,0,134,
69451,2522,1979,16,0,
6946505,1,2021,843,1,
69471775,1980,16,0,203,
69481,2029,850,1,2030,
6949856,1,2031,861,1,
69502032,866,1,2786,1981,
695116,0,203,1,277,
69521982,16,0,203,1,
69532537,1983,16,0,522,
69541,2037,882,1,2039,
6955887,1,32,1984,16,
69560,203,1,2041,893,
69571,2293,1985,16,0,
6958203,1,2043,899,1,
69592045,904,1,40,1986,
696016,0,182,1,41,
69611987,16,0,203,1,
69621297,1988,16,0,203,
69631,43,1989,16,0,
6964203,1,44,1990,16,
69650,182,1,1803,912,
69661,1804,1991,16,0,
6967203,1,299,1992,16,
69680,203,1,2480,1993,
696917,1994,15,1995,4,
697024,37,0,73,0,
6971110,0,116,0,65,
57250,114,0,103,0, 69720,114,0,103,0,
5726117,0,109,0,101, 697369,0,118,0,101,
57270,110,0,116,0, 69740,110,0,116,0,
572876,0,105,0,115, 69751,-1,1,5,1996,
57290,116,0,95,0, 697620,1997,4,26,73,
573050,0,1,279,1, 69770,110,0,116,0,
57313,1,4,1,3, 697865,0,114,0,103,
57321687,22,1,140,1, 69790,69,0,118,0,
57331224,1528,1,223,1533,
57341,1730,1538,1,476,
57351543,1,477,1549,1,
57361231,1554,1,479,1559,
57371,480,1564,1,1485,
57381570,1,459,1688,17,
57391689,15,1648,1,-1,
57401,5,601,1,0,
57411,0,1661,1,242,
57421578,1,478,1583,1,
57432506,1690,17,1691,15,
57441644,1,-1,1,5,
5745140,1,0,1,0,
57461645,1,1001,1588,1,
57471002,1593,1,15,1692,
574819,257,1,15,1693,
57495,6,1,1114,1694,
575016,0,299,1,1621,
57511695,16,0,649,1,
57522657,1696,16,0,255,
57531,40,1697,16,0,
5754552,1,19,1147,1,
57559,1113,1,16,1698,
575619,136,1,16,1699,
57575,139,1,256,1700,
575816,0,187,1,1261,
57591701,16,0,187,1,
5760509,1702,16,0,187,
57611,9,1703,16,0,
5762134,1,2021,718,1,
57631775,1704,16,0,187,
57641,2029,725,1,2030,
5765731,1,2031,736,1,
57662032,741,1,2033,746,
57671,277,1705,16,0,
5768187,1,2035,752,1,
57692037,757,1,2039,762,
57701,32,1706,16,0,
5771187,1,2041,768,1,
57722293,1707,16,0,187,
57731,2043,774,1,2045,
5774779,1,40,1708,16,
57750,166,1,41,1709,
577616,0,187,1,1297,
57771710,16,0,187,1,
577843,1711,16,0,187,
57791,44,1712,16,0,
5780166,1,1803,787,1,
57811804,1713,16,0,187,
57821,299,1714,16,0,
5783187,1,2480,1715,17,
57841716,15,1717,4,12,
578537,0,69,0,118,
57860,101,0,110,0,
5787116,0,1,-1,1,
57885,1718,20,1719,4,
578916,69,0,118,0,
5790101,0,110,0,116, 6980101,0,110,0,116,
57910,95,0,50,0, 69810,95,0,55,0,
579253,0,1,312,1, 69821,369,1,3,1,
69832,1,1,1998,22,
69841,205,1,2560,1999,
698516,0,549,1,52,
69862000,16,0,203,1,
69872484,2001,17,2002,15,
69881995,1,-1,1,5,
69892003,20,2004,4,26,
699073,0,110,0,116,
69910,65,0,114,0,
6992103,0,69,0,118,
69930,101,0,110,0,
6994116,0,95,0,51,
69950,1,365,1,3,
69961,2,1,1,2005,
699722,1,201,1,1515,
69982006,16,0,203,1,
69992318,2007,16,0,203,
70001,2491,2008,17,2009,
700115,2010,4,26,37,
70020,86,0,111,0,
7003105,0,100,0,65,
70040,114,0,103,0,
700569,0,118,0,101,
70060,110,0,116,0,
70071,-1,1,5,2011,
700820,2012,4,28,86,
70090,111,0,105,0,
7010100,0,65,0,114,
70110,103,0,69,0,
7012118,0,101,0,110,
70130,116,0,95,0,
701454,0,1,358,1,
57933,1,2,1,1, 70153,1,2,1,1,
57941720,22,1,173,1, 70162013,22,1,194,1,
579552,1721,16,0,187, 701762,2014,16,0,225,
57961,2484,1722,17,1723, 70181,63,2015,16,0,
579715,1717,1,-1,1, 7019182,1,2495,2016,17,
57985,1724,20,1725,4, 70202017,15,2010,1,-1,
579916,69,0,118,0, 70211,5,2018,20,2019,
70224,28,86,0,111,
70230,105,0,100,0,
702465,0,114,0,103,
70250,69,0,118,0,
5800101,0,110,0,116, 7026101,0,110,0,116,
58010,95,0,50,0, 70270,95,0,50,0,
580249,0,1,308,1, 70281,354,1,3,1,
58033,1,2,1,1, 70292,1,1,2020,22,
58041726,22,1,169,1, 70301,190,1,2576,2021,
58051515,1727,16,0,187, 703116,0,579,1,2075,
58061,2318,1728,16,0, 70322022,16,0,203,1,
5807187,1,2491,1729,17, 70331574,924,1,1479,2023,
58081730,15,1717,1,-1, 703416,0,203,1,71,
58091,5,1731,20,1732, 70352024,16,0,203,1,
58104,16,69,0,118, 70361658,2025,16,0,795,
70371,1833,2026,16,0,
7038326,1,1834,2027,16,
70390,203,1,2337,2028,
704016,0,203,1,79,
70412029,16,0,203,1,
70421335,2030,16,0,203,
70431,322,2031,16,0,
7044203,1,76,2032,16,
70450,203,1,85,2033,
704616,0,203,1,89,
70472034,16,0,203,1,
70482033,871,1,2035,877,
70491,346,2035,16,0,
7050203,1,97,2036,16,
70510,203,1,2106,2037,
705216,0,203,1,102,
70532038,16,0,203,1,
70541860,946,1,2458,1001,
70551,2364,952,1,1990,
70562039,16,0,203,1,
7057112,2040,16,0,203,
70581,1117,2041,16,0,
7059203,1,1873,961,1,
70601875,2042,16,0,446,
70611,1876,2043,16,0,
7062203,1,2552,2044,16,
70630,540,1,124,2045,
706416,0,203,1,2478,
70652046,17,2047,15,1995,
70661,-1,1,5,2048,
706720,2049,4,26,73,
70680,110,0,116,0,
706965,0,114,0,103,
70700,69,0,118,0,
7071101,0,110,0,116,
70720,95,0,57,0,
70731,371,1,3,1,
70742,1,1,2050,22,
70751,207,1,2136,968,
70761,381,2051,16,0,
7077203,1,525,2052,16,
70780,203,1,137,2053,
707916,0,203,1,2568,
70802054,16,0,683,1,
70811901,2055,16,0,203,
70821,1153,2056,16,0,
7083203,1,151,2057,16,
70840,203,1,1407,2058,
708516,0,203,1,2581,
70862059,16,0,779,1,
70872413,2060,16,0,203,
70881,406,2061,16,0,
7089203,1,1371,2062,16,
70900,203,1,2105,939,
70911,166,2063,16,0,
7092203,1,1622,2064,16,
70930,203,1,1931,986,
70941,1932,2065,16,0,
7095539,1,1933,2066,16,
70960,203,1,431,2067,
709716,0,203,1,1585,
70982068,16,0,203,1,
7099182,2069,16,0,203,
71001,1189,2070,16,0,
7101203,1,1443,2071,16,
71020,203,1,1695,2072,
710316,0,203,1,2198,
71042073,16,0,203,1,
7105447,2074,16,0,203,
71061,199,2075,16,0,
7107203,1,2459,1007,1,
71081958,2076,16,0,203,
71091,2462,1014,1,1657,
71101019,1,2464,1024,1,
71111659,2077,16,0,203,
71121,459,2078,16,0,
7113203,1,462,2079,16,
71140,203,1,2471,2080,
711517,2081,15,2082,4,
711636,37,0,75,0,
7117101,0,121,0,73,
71180,110,0,116,0,
711973,0,110,0,116,
71200,65,0,114,0,
7121103,0,69,0,118,
58110,101,0,110,0, 71220,101,0,110,0,
5812116,0,95,0,49, 7123116,0,1,-1,1,
58130,52,0,1,301, 71245,2083,20,2084,4,
58141,3,1,2,1, 712538,75,0,101,0,
58151,1733,22,1,162, 7126121,0,73,0,110,
58161,62,1734,16,0, 71270,116,0,73,0,
5817202,1,63,1735,16, 7128110,0,116,0,65,
58180,166,1,2495,1736, 71290,114,0,103,0,
581917,1737,15,1717,1,
5820-1,1,5,1738,20,
58211739,4,16,69,0,
5822118,0,101,0,110,
58230,116,0,95,0,
582449,0,48,0,1,
5825297,1,3,1,2,
58261,1,1740,22,1,
5827158,1,2075,1741,16,
58280,187,1,1574,799,
58291,1479,1742,16,0,
5830187,1,71,1743,16,
58310,187,1,1658,1744,
583216,0,672,1,1833,
58331745,16,0,288,1,
58341834,1746,16,0,187,
58351,2337,1747,16,0,
5836187,1,79,1748,16,
58370,187,1,1335,1749,
583816,0,187,1,322,
58391750,16,0,187,1,
584076,1751,16,0,187,
58411,85,1752,16,0,
5842187,1,89,1753,16,
58430,187,1,346,1754,
584416,0,187,1,97,
58451755,16,0,187,1,
58462106,1756,16,0,187,
58471,102,1757,16,0,
5848187,1,1860,821,1,
58492458,876,1,2364,827,
58501,1990,1758,16,0,
5851187,1,112,1759,16,
58520,187,1,1117,1760,
585316,0,187,1,1873,
5854835,1,1875,1761,16,
58550,400,1,1876,1762,
585616,0,187,1,124,
58571763,16,0,187,1,
58582478,1764,17,1765,15,
58591717,1,-1,1,5,
58601766,20,1767,4,16,
586169,0,118,0,101, 713069,0,118,0,101,
58620,110,0,116,0, 71310,110,0,116,0,
586395,0,50,0,55, 713295,0,49,0,1,
58640,1,314,1,3, 7133378,1,3,1,2,
58651,2,1,1,1768, 71341,1,2085,22,1,
586622,1,175,1,2136, 7135214,1,2472,2086,17,
5867842,1,381,1769,16, 71362087,15,2088,4,36,
58680,187,1,2641,1770, 713737,0,73,0,110,
586916,0,642,1,137, 71380,116,0,86,0,
58701771,16,0,187,1, 7139101,0,99,0,86,
58711901,1772,16,0,187, 71400,101,0,99,0,
58721,2658,1773,16,0, 714165,0,114,0,103,
5873187,1,1153,1774,16, 71420,69,0,118,0,
58740,187,1,151,1775, 7143101,0,110,0,116,
587516,0,187,1,1407, 71440,1,-1,1,5,
58761776,16,0,187,1, 71452089,20,2090,4,38,
58771659,1777,16,0,187, 714673,0,110,0,116,
58781,2413,1778,16,0, 71470,86,0,101,0,
5879187,1,406,1779,16, 714899,0,86,0,101,
58800,187,1,1371,1780, 71490,99,0,65,0,
588116,0,187,1,2105, 7150114,0,103,0,69,
5882814,1,166,1781,16,
58830,187,1,525,1782,
588416,0,187,1,1622,
58851783,16,0,187,1,
58861931,861,1,1932,1784,
588716,0,456,1,1933,
58881785,16,0,187,1,
5889431,1786,16,0,187,
58901,1585,1787,16,0,
5891187,1,182,1788,16,
58920,187,1,1189,1789,
589316,0,187,1,1443,
58941790,16,0,187,1,
58951695,1791,16,0,187,
58961,2198,1792,16,0,
5897187,1,447,1793,16,
58980,187,1,199,1794,
589916,0,187,1,2459,
5900882,1,1958,1795,16,
59010,187,1,2462,889,
59021,1657,894,1,2464,
5903899,1,459,1796,16,
59040,187,1,462,1797,
590516,0,187,1,2471,
59061798,17,1799,15,1717,
59071,-1,1,5,1800,
590820,1801,4,16,69,
59090,118,0,101,0, 71510,118,0,101,0,
5910110,0,116,0,95, 7152110,0,116,0,95,
59110,51,0,52,0, 71530,49,0,1,377,
59121,321,1,3,1,
59132,1,1,1802,22,
59141,182,1,2472,1803,
591517,1804,15,1717,1,
5916-1,1,5,1805,20,
59171806,4,16,69,0,
5918118,0,101,0,110,
59190,116,0,95,0,
592051,0,51,0,1,
5921320,1,3,1,2,
59221,1,1807,22,1,
5923181,1,2473,1808,17,
59241809,15,1717,1,-1,
59251,5,1810,20,1811,
59264,16,69,0,118,
59270,101,0,110,0,
5928116,0,95,0,51,
59290,50,0,1,319,
59301,3,1,2,1, 71541,3,1,2,1,
59311,1812,22,1,180, 71551,2091,22,1,213,
59321,2474,1813,17,1814, 71561,2473,2092,17,2093,
593315,1717,1,-1,1, 715715,2094,4,36,37,
59345,1815,20,1816,4, 71580,73,0,110,0,
593516,69,0,118,0, 7159116,0,82,0,111,
5936101,0,110,0,116, 71600,116,0,82,0,
59370,95,0,51,0, 7161111,0,116,0,65,
593849,0,1,318,1, 71620,114,0,103,0,
59393,1,2,1,1,
59401817,22,1,179,1,
59412475,1818,17,1819,15,
59421717,1,-1,1,5,
59431820,20,1821,4,16,
594469,0,118,0,101, 716369,0,118,0,101,
59450,110,0,116,0, 71640,110,0,116,0,
594695,0,51,0,48, 71651,-1,1,5,2095,
59470,1,317,1,3, 716620,2096,4,38,73,
59481,2,1,1,1822, 71670,110,0,116,0,
594922,1,178,1,2476, 716882,0,111,0,116,
59501823,17,1824,15,1717, 71690,82,0,111,0,
59511,-1,1,5,1825, 7170116,0,65,0,114,
595220,1826,4,16,69, 71710,103,0,69,0,
59530,118,0,101,0,
5954110,0,116,0,95,
59550,50,0,57,0,
59561,316,1,3,1,
59572,1,1,1827,22,
59581,177,1,2477,1828,
595917,1829,15,1717,1,
5960-1,1,5,1830,20,
59611831,4,16,69,0,
5962118,0,101,0,110, 7172118,0,101,0,110,
59630,116,0,95,0, 71730,116,0,95,0,
596450,0,56,0,1, 717449,0,1,376,1,
5965315,1,3,1,2, 71753,1,2,1,1,
59661,1,1832,22,1, 71762097,22,1,212,1,
5967176,1,2227,908,1, 71772474,2098,17,2099,15,
59682479,1833,17,1834,15, 71782100,4,30,37,0,
59691717,1,-1,1,5, 717986,0,101,0,99,
59701835,20,1836,4,16, 71800,116,0,111,0,
7181114,0,65,0,114,
71820,103,0,69,0,
7183118,0,101,0,110,
71840,116,0,1,-1,
71851,5,2101,20,2102,
71864,32,86,0,101,
71870,99,0,116,0,
7188111,0,114,0,65,
71890,114,0,103,0,
597169,0,118,0,101, 719069,0,118,0,101,
59720,110,0,116,0, 71910,110,0,116,0,
597395,0,50,0,54, 719295,0,51,0,1,
59740,1,313,1,3, 7193375,1,3,1,2,
59751,2,1,1,1837, 71941,1,2103,22,1,
597622,1,174,1,1225, 7195211,1,2475,2104,17,
59771838,16,0,187,1, 71962105,15,2100,1,-1,
59782481,1839,17,1840,15, 71971,5,2106,20,2107,
59791717,1,-1,1,5, 71984,32,86,0,101,
59801841,20,1842,4,16, 71990,99,0,116,0,
7200111,0,114,0,65,
72010,114,0,103,0,
598169,0,118,0,101, 720269,0,118,0,101,
59820,110,0,116,0, 72030,110,0,116,0,
598395,0,50,0,52, 720495,0,50,0,1,
59840,1,311,1,3, 7205374,1,3,1,2,
59851,2,1,1,1843, 72061,1,2108,22,1,
598622,1,172,1,2482, 7207210,1,2476,2109,17,
59871844,17,1845,15,1717, 72082110,15,2100,1,-1,
59881,-1,1,5,1846, 72091,5,2111,20,2112,
598920,1847,4,16,69, 72104,32,86,0,101,
72110,99,0,116,0,
7212111,0,114,0,65,
72130,114,0,103,0,
721469,0,118,0,101,
72150,110,0,116,0,
721695,0,49,0,1,
7217373,1,3,1,2,
72181,1,2113,22,1,
7219209,1,2477,2114,17,
72202115,15,1995,1,-1,
72211,5,2116,20,2117,
72224,28,73,0,110,
72230,116,0,65,0,
7224114,0,103,0,69,
59900,118,0,101,0, 72250,118,0,101,0,
5991110,0,116,0,95, 7226110,0,116,0,95,
59920,50,0,51,0, 72270,49,0,48,0,
59931,310,1,3,1, 72281,372,1,3,1,
59942,1,1,1848,22, 72292,1,1,2118,22,
59951,171,1,2483,1849, 72301,208,1,2227,1033,
599617,1850,15,1717,1, 72311,2479,2119,17,2120,
5997-1,1,5,1851,20, 723215,1995,1,-1,1,
59981852,4,16,69,0, 72335,2121,20,2122,4,
723426,73,0,110,0,
7235116,0,65,0,114,
72360,103,0,69,0,
5999118,0,101,0,110, 7237118,0,101,0,110,
60000,116,0,95,0, 72380,116,0,95,0,
600150,0,50,0,1, 723956,0,1,370,1,
6002309,1,3,1,2, 72403,1,2,1,1,
60031,1,1853,22,1, 72412123,22,1,206,1,
6004170,1,1731,1854,16, 72421225,2124,16,0,203,
60050,187,1,2485,1855, 72431,2481,2125,17,2126,
600617,1856,15,1717,1, 724415,1995,1,-1,1,
6007-1,1,5,1857,20, 72455,2127,20,2128,4,
60081858,4,16,69,0, 724626,73,0,110,0,
7247116,0,65,0,114,
72480,103,0,69,0,
6009118,0,101,0,110, 7249118,0,101,0,110,
60100,116,0,95,0, 72500,116,0,95,0,
601150,0,48,0,1, 725154,0,1,368,1,
6012307,1,3,1,2, 72523,1,2,1,1,
60131,1,1859,22,1, 72532129,22,1,204,1,
6014168,1,2486,1860,17, 72542482,2130,17,2131,15,
60151861,15,1717,1,-1, 72551995,1,-1,1,5,
60161,5,1862,20,1863, 72562132,20,2133,4,26,
60174,16,69,0,118, 725773,0,110,0,116,
72580,65,0,114,0,
7259103,0,69,0,118,
60180,101,0,110,0, 72600,101,0,110,0,
6019116,0,95,0,49, 7261116,0,95,0,53,
60200,57,0,1,306, 72620,1,367,1,3,
60211,3,1,2,1, 72631,2,1,1,2134,
60221,1864,22,1,167, 726422,1,203,1,2483,
60231,2487,1865,17,1866, 72652135,17,2136,15,1995,
602415,1717,1,-1,1, 72661,-1,1,5,2137,
60255,1867,20,1868,4, 726720,2138,4,26,73,
602616,69,0,118,0, 72680,110,0,116,0,
726965,0,114,0,103,
72700,69,0,118,0,
6027101,0,110,0,116, 7271101,0,110,0,116,
60280,95,0,49,0, 72720,95,0,52,0,
602956,0,1,305,1, 72731,366,1,3,1,
60303,1,2,1,1, 72742,1,1,2139,22,
60311869,22,1,166,1, 72751,202,1,1731,2140,
60322488,1870,17,1871,15, 727616,0,203,1,2485,
60331717,1,-1,1,5, 72772141,17,2142,15,1995,
60341872,20,1873,4,16, 72781,-1,1,5,2143,
727920,2144,4,26,73,
72800,110,0,116,0,
728165,0,114,0,103,
72820,69,0,118,0,
7283101,0,110,0,116,
72840,95,0,50,0,
72851,364,1,3,1,
72862,1,1,2145,22,
72871,200,1,2486,2146,
728817,2147,15,1995,1,
7289-1,1,5,2148,20,
72902149,4,26,73,0,
7291110,0,116,0,65,
72920,114,0,103,0,
603569,0,118,0,101, 729369,0,118,0,101,
60360,110,0,116,0, 72940,110,0,116,0,
603795,0,49,0,55, 729595,0,49,0,1,
60380,1,304,1,3, 7296363,1,3,1,2,
60391,2,1,1,1874, 72971,1,2150,22,1,
604022,1,165,1,2489, 7298199,1,2487,2151,17,
60411875,17,1876,15,1717, 72992152,15,2153,4,24,
60421,-1,1,5,1877, 730037,0,75,0,101,
604320,1878,4,16,69, 73010,121,0,65,0,
7302114,0,103,0,69,
60440,118,0,101,0, 73030,118,0,101,0,
6045110,0,116,0,95, 7304110,0,116,0,1,
60460,49,0,54,0, 7305-1,1,5,2154,20,
60471,303,1,3,1, 73062155,4,26,75,0,
60482,1,1,1879,22, 7307101,0,121,0,65,
60491,164,1,2490,1880, 73080,114,0,103,0,
605017,1881,15,1717,1,
6051-1,1,5,1882,20,
60521883,4,16,69,0,
6053118,0,101,0,110,
60540,116,0,95,0,
605549,0,53,0,1,
6056302,1,3,1,2,
60571,1,1884,22,1,
6058163,1,1989,916,1,
60592492,1885,17,1886,15,
60601717,1,-1,1,5,
60611887,20,1888,4,16,
606269,0,118,0,101, 730969,0,118,0,101,
60630,110,0,116,0, 73100,110,0,116,0,
606495,0,49,0,51, 731195,0,50,0,1,
60650,1,300,1,3, 7312362,1,3,1,2,
60661,2,1,1,1889, 73131,1,2156,22,1,
606722,1,161,1,2493, 7314198,1,2488,2157,17,
60681890,17,1891,15,1717, 73152158,15,2153,1,-1,
60691,-1,1,5,1892, 73161,5,2159,20,2160,
607020,1893,4,16,69, 73174,26,75,0,101,
73180,121,0,65,0,
7319114,0,103,0,69,
60710,118,0,101,0, 73200,118,0,101,0,
6072110,0,116,0,95, 7321110,0,116,0,95,
60730,49,0,50,0, 73220,49,0,1,361,
60741,299,1,3,1, 73231,3,1,2,1,
60752,1,1,1894,22, 73241,2161,22,1,197,
60761,160,1,2494,1895, 73251,2489,2162,17,2163,
607717,1896,15,1717,1, 732615,2010,1,-1,1,
6078-1,1,5,1897,20, 73275,2164,20,2165,4,
60791898,4,16,69,0, 732828,86,0,111,0,
6080118,0,101,0,110, 7329105,0,100,0,65,
60810,116,0,95,0, 73300,114,0,103,0,
608249,0,49,0,1,
6083298,1,3,1,2,
60841,1,1899,22,1,
6085159,1,236,1900,16,
60860,187,1,2496,1901,
608717,1902,15,1717,1,
6088-1,1,5,1903,20,
60891904,4,14,69,0,
6090118,0,101,0,110,
60910,116,0,95,0,
609257,0,1,296,1,
60933,1,2,1,1,
60941905,22,1,157,1,
60952497,1906,17,1907,15,
60961717,1,-1,1,5,
60971908,20,1909,4,14,
609869,0,118,0,101, 733169,0,118,0,101,
60990,110,0,116,0, 73320,110,0,116,0,
610095,0,56,0,1, 733395,0,56,0,1,
6101295,1,3,1,2, 7334360,1,3,1,2,
61021,1,1910,22,1, 73351,1,2166,22,1,
6103156,1,2498,1911,17, 7336196,1,2490,2167,17,
61041912,15,1717,1,-1, 73372168,15,2010,1,-1,
61051,5,1913,20,1914, 73381,5,2169,20,2170,
73394,28,86,0,111,
73400,105,0,100,0,
734165,0,114,0,103,
73420,69,0,118,0,
7343101,0,110,0,116,
73440,95,0,55,0,
73451,359,1,3,1,
73462,1,1,2171,22,
73471,195,1,1989,1041,
73481,2492,2172,17,2173,
734915,2010,1,-1,1,
73505,2174,20,2175,4,
735128,86,0,111,0,
7352105,0,100,0,65,
73530,114,0,103,0,
735469,0,118,0,101,
73550,110,0,116,0,
735695,0,53,0,1,
7357357,1,3,1,2,
73581,1,2176,22,1,
7359193,1,2493,2177,17,
73602178,15,2010,1,-1,
73611,5,2179,20,2180,
73624,28,86,0,111,
73630,105,0,100,0,
736465,0,114,0,103,
73650,69,0,118,0,
7366101,0,110,0,116,
73670,95,0,52,0,
73681,356,1,3,1,
73692,1,1,2181,22,
73701,192,1,2494,2182,
737117,2183,15,2010,1,
7372-1,1,5,2184,20,
73732185,4,28,86,0,
7374111,0,105,0,100,
73750,65,0,114,0,
7376103,0,69,0,118,
73770,101,0,110,0,
7378116,0,95,0,51,
73790,1,355,1,3,
73801,2,1,1,2186,
738122,1,191,1,236,
73822187,16,0,203,1,
73832496,2188,17,2189,15,
73842010,1,-1,1,5,
73852190,20,2191,4,28,
738686,0,111,0,105,
73870,100,0,65,0,
7388114,0,103,0,69,
73890,118,0,101,0,
7390110,0,116,0,95,
73910,49,0,1,353,
73921,3,1,2,1,
73931,2192,22,1,189,
73941,2497,2193,17,2194,
739515,2195,4,12,37,
73960,69,0,118,0,
7397101,0,110,0,116,
73980,1,-1,1,5,
73992196,20,2197,4,14,
740069,0,118,0,101,
74010,110,0,116,0,
740295,0,57,0,1,
7403352,1,3,1,2,
74041,1,2198,22,1,
7405188,1,2498,2199,17,
74062200,15,2195,1,-1,
74071,5,2201,20,2202,
61064,14,69,0,118, 74084,14,69,0,118,
61070,101,0,110,0, 74090,101,0,110,0,
6108116,0,95,0,55, 7410116,0,95,0,56,
61090,1,294,1,3, 74110,1,351,1,3,
61101,2,1,1,1915, 74121,2,1,1,2203,
611122,1,155,1,2499, 741322,1,187,1,2499,
61121916,17,1917,15,1717, 74142204,17,2205,15,2195,
61131,-1,1,5,1918, 74151,-1,1,5,2206,
611420,1919,4,14,69, 741620,2207,4,14,69,
61150,118,0,101,0, 74170,118,0,101,0,
6116110,0,116,0,95, 7418110,0,116,0,95,
61170,54,0,1,293, 74190,55,0,1,350,
61181,3,1,2,1, 74201,3,1,2,1,
61191,1920,22,1,154, 74211,2208,22,1,186,
61201,2500,1921,17,1922, 74221,2500,2209,17,2210,
612115,1717,1,-1,1, 742315,2195,1,-1,1,
61225,1923,20,1924,4, 74245,2211,20,2212,4,
612314,69,0,118,0, 742514,69,0,118,0,
6124101,0,110,0,116, 7426101,0,110,0,116,
61250,95,0,53,0, 74270,95,0,54,0,
61261,292,1,3,1, 74281,349,1,3,1,
61272,1,1,1925,22, 74292,1,1,2213,22,
61281,153,1,2501,1926, 74301,185,1,2501,2214,
612917,1927,15,1717,1, 743117,2215,15,2195,1,
6130-1,1,5,1928,20, 7432-1,1,5,2216,20,
61311929,4,14,69,0, 74332217,4,14,69,0,
6132118,0,101,0,110, 7434118,0,101,0,110,
61330,116,0,95,0, 74350,116,0,95,0,
613452,0,1,291,1, 743653,0,1,348,1,
61353,1,2,1,1, 74373,1,2,1,1,
61361930,22,1,152,1, 74382218,22,1,184,1,
61372502,1931,17,1932,15, 74392502,2219,17,2220,15,
61381717,1,-1,1,5, 74402195,1,-1,1,5,
61391933,20,1934,4,14, 74412221,20,2222,4,14,
614069,0,118,0,101, 744269,0,118,0,101,
61410,110,0,116,0, 74430,110,0,116,0,
614295,0,51,0,1, 744495,0,52,0,1,
6143290,1,3,1,2, 7445347,1,3,1,2,
61441,1,1935,22,1, 74461,1,2223,22,1,
6145151,1,2503,1936,17, 7447183,1,2503,2224,17,
61461937,15,1717,1,-1, 74482225,15,2195,1,-1,
61471,5,1938,20,1939, 74491,5,2226,20,2227,
61484,14,69,0,118, 74504,14,69,0,118,
61490,101,0,110,0, 74510,101,0,110,0,
6150116,0,95,0,50, 7452116,0,95,0,51,
61510,1,289,1,3, 74530,1,346,1,3,
61521,2,1,1,1940, 74541,2,1,1,2228,
615322,1,150,1,2504, 745522,1,182,1,2504,
61541941,17,1942,15,1717, 74562229,17,2230,15,2195,
61551,-1,1,5,1943, 74571,-1,1,5,2231,
615620,1944,4,14,69, 745820,2232,4,14,69,
61570,118,0,101,0, 74590,118,0,101,0,
6158110,0,116,0,95, 7460110,0,116,0,95,
61590,49,0,1,288, 74610,50,0,1,345,
61601,3,1,2,1, 74621,3,1,2,1,
61611,1945,22,1,149, 74631,2233,22,1,181,
61621,2505,1946,16,0, 74641,2505,2234,17,2235,
6163433,1,217,1947,16, 746515,2195,1,-1,1,
61640,187,1,1756,1948, 74665,2236,20,2237,4,
616516,0,187,1,17, 746714,69,0,118,0,
61661949,19,154,1,17, 7468101,0,110,0,116,
61671950,5,117,1,1, 74690,95,0,49,0,
61681951,17,1952,15,1953, 74701,344,1,3,1,
61694,18,37,0,84, 74712,1,1,2238,22,
61700,121,0,112,0, 74721,180,1,2506,2239,
6171101,0,110,0,97, 747316,0,482,1,217,
61720,109,0,101,0, 74742240,16,0,203,1,
61731,-1,1,5,1954, 74751756,2241,16,0,203,
617420,1955,4,20,84, 74761,17,2242,19,163,
74771,17,2243,5,134,
74781,1,2244,17,2245,
747915,2246,4,18,37,
74800,84,0,121,0,
7481112,0,101,0,110,
74820,97,0,109,0,
7483101,0,1,-1,1,
74845,2247,20,2248,4,
748520,84,0,121,0,
7486112,0,101,0,110,
74870,97,0,109,0,
7488101,0,95,0,55,
74890,1,343,1,3,
74901,2,1,1,2249,
749122,1,179,1,2,
74922250,17,2251,15,2246,
74931,-1,1,5,2252,
749420,2253,4,20,84,
61750,121,0,112,0, 74950,121,0,112,0,
6176101,0,110,0,97, 7496101,0,110,0,97,
61770,109,0,101,0, 74970,109,0,101,0,
617895,0,55,0,1, 749895,0,54,0,1,
6179287,1,3,1,2, 7499342,1,3,1,2,
61801,1,1956,22,1, 75001,1,2254,22,1,
6181148,1,2,1957,17, 7501178,1,3,2255,17,
61821958,15,1953,1,-1, 75022256,15,2246,1,-1,
61831,5,1959,20,1960, 75031,5,2257,20,2258,
61844,20,84,0,121, 75044,20,84,0,121,
61850,112,0,101,0, 75050,112,0,101,0,
6186110,0,97,0,109, 7506110,0,97,0,109,
61870,101,0,95,0, 75070,101,0,95,0,
618854,0,1,286,1, 750853,0,1,341,1,
61893,1,2,1,1, 75093,1,2,1,1,
61901961,22,1,147,1, 75102259,22,1,177,1,
61913,1962,17,1963,15, 75114,2260,17,2261,15,
61921953,1,-1,1,5, 75122246,1,-1,1,5,
61931964,20,1965,4,20, 75132262,20,2263,4,20,
619484,0,121,0,112, 751484,0,121,0,112,
61950,101,0,110,0, 75150,101,0,110,0,
619697,0,109,0,101, 751697,0,109,0,101,
61970,95,0,53,0, 75170,95,0,52,0,
61981,285,1,3,1, 75181,340,1,3,1,
61992,1,1,1966,22, 75192,1,1,2264,22,
62001,146,1,4,1967, 75201,176,1,5,2265,
620117,1968,15,1953,1, 752117,2266,15,2246,1,
6202-1,1,5,1969,20, 7522-1,1,5,2267,20,
62031970,4,20,84,0, 75232268,4,20,84,0,
6204121,0,112,0,101, 7524121,0,112,0,101,
62050,110,0,97,0, 75250,110,0,97,0,
6206109,0,101,0,95, 7526109,0,101,0,95,
62070,52,0,1,284, 75270,51,0,1,339,
62081,3,1,2,1, 75281,3,1,2,1,
62091,1971,22,1,145, 75291,2269,22,1,175,
62101,5,1972,17,1973, 75301,6,2270,17,2271,
621115,1953,1,-1,1, 753115,2246,1,-1,1,
62125,1974,20,1975,4, 75325,2272,20,2273,4,
621320,84,0,121,0, 753320,84,0,121,0,
6214112,0,101,0,110, 7534112,0,101,0,110,
62150,97,0,109,0, 75350,97,0,109,0,
6216101,0,95,0,51, 7536101,0,95,0,50,
62170,1,283,1,3, 75370,1,338,1,3,
62181,2,1,1,1976, 75381,2,1,1,2274,
621922,1,144,1,6, 753922,1,174,1,7,
62201977,17,1978,15,1953, 75402275,17,2276,15,2246,
62211,-1,1,5,1979, 75411,-1,1,5,2277,
622220,1980,4,20,84, 754220,2278,4,20,84,
62230,121,0,112,0, 75430,121,0,112,0,
6224101,0,110,0,97, 7544101,0,110,0,97,
62250,109,0,101,0, 75450,109,0,101,0,
622695,0,50,0,1, 754695,0,49,0,1,
6227282,1,3,1,2, 7547337,1,3,1,2,
62281,1,1981,22,1, 75481,1,2279,22,1,
6229143,1,7,1982,17, 7549173,1,2518,2280,16,
62301983,15,1953,1,-1, 75500,499,1,9,1238,
62311,5,1984,20,1985, 75511,10,1893,1,262,
62324,20,84,0,121, 75521244,1,1267,1250,1,
62330,112,0,101,0, 75531521,1255,1,1773,2281,
6234110,0,97,0,109, 755416,0,261,1,2528,
62350,101,0,95,0, 75551927,1,19,1272,1,
623649,0,1,281,1, 755620,2282,16,0,161,
75571,2532,2283,17,2284,
755815,2285,4,66,37,
75590,73,0,110,0,
7560116,0,86,0,101,
75610,99,0,86,0,
7562101,0,99,0,65,
75630,114,0,103,0,
7564117,0,109,0,101,
75650,110,0,116,0,
756668,0,101,0,99,
75670,108,0,97,0,
7568114,0,97,0,116,
75690,105,0,111,0,
7570110,0,76,0,105,
75710,115,0,116,0,
75721,-1,1,5,2286,
757320,2287,4,68,73,
75740,110,0,116,0,
757586,0,101,0,99,
75760,86,0,101,0,
757799,0,65,0,114,
75780,103,0,117,0,
7579109,0,101,0,110,
75800,116,0,68,0,
7581101,0,99,0,108,
75820,97,0,114,0,
758397,0,116,0,105,
75840,111,0,110,0,
758576,0,105,0,115,
75860,116,0,95,0,
758749,0,1,211,1,
75883,1,6,1,5,
75892288,22,1,46,1,
75902533,2289,16,0,518,
75911,30,1901,1,283,
75921299,1,2543,1906,1,
75932547,2290,17,2291,15,
75942292,4,66,37,0,
759573,0,110,0,116,
75960,82,0,111,0,
7597116,0,82,0,111,
75980,116,0,65,0,
7599114,0,103,0,117,
76000,109,0,101,0,
7601110,0,116,0,68,
76020,101,0,99,0,
7603108,0,97,0,114,
76040,97,0,116,0,
7605105,0,111,0,110,
76060,76,0,105,0,
7607115,0,116,0,1,
7608-1,1,5,2293,20,
76092294,4,68,73,0,
7610110,0,116,0,82,
76110,111,0,116,0,
761282,0,111,0,116,
76130,65,0,114,0,
7614103,0,117,0,109,
76150,101,0,110,0,
7616116,0,68,0,101,
76170,99,0,108,0,
761897,0,114,0,97,
76190,116,0,105,0,
7620111,0,110,0,76,
76210,105,0,115,0,
7622116,0,95,0,49,
76230,1,210,1,3,
76241,6,1,5,2295,
762522,1,45,1,2548,
76262296,16,0,650,1,
76271010,2297,16,0,716,
76281,40,1304,1,41,
76291913,1,42,1917,1,
763044,1310,1,2555,2298,
763117,2299,15,2300,4,
763260,37,0,86,0,
7633101,0,99,0,116,
76340,111,0,114,0,
763565,0,114,0,103,
76360,117,0,109,0,
7637101,0,110,0,116,
76380,68,0,101,0,
763999,0,108,0,97,
76400,114,0,97,0,
7641116,0,105,0,111,
76420,110,0,76,0,
7643105,0,115,0,116,
76440,1,-1,1,5,
76452301,20,2302,4,62,
764686,0,101,0,99,
76470,116,0,111,0,
7648114,0,65,0,114,
76490,103,0,117,0,
7650109,0,101,0,110,
76510,116,0,68,0,
7652101,0,99,0,108,
76530,97,0,114,0,
765497,0,116,0,105,
76550,111,0,110,0,
765676,0,105,0,115,
76570,116,0,95,0,
765849,0,1,209,1,
62373,1,2,1,1, 76593,1,2,1,1,
62381986,22,1,142,1, 76602303,22,1,44,1,
62391514,1108,1,9,1113, 76611260,1221,1,47,1311,
62401,10,1642,1,262, 76621,48,1317,1,49,
62411119,1,1267,1125,1, 76631323,1,50,1328,1,
6242481,1646,1,1521,1130, 766451,1333,1,2563,2304,
62431,1773,1987,16,0, 766517,2305,15,2306,4,
6244234,1,19,1147,1, 766654,37,0,73,0,
624520,1988,16,0,152, 7667110,0,116,0,65,
62461,2281,1154,1,525, 76680,114,0,103,0,
62471216,1,30,1654,1, 7669117,0,109,0,101,
6248283,1172,1,1010,1989, 76700,110,0,116,0,
624916,0,593,1,40, 767168,0,101,0,99,
62501177,1,41,1659,1, 76720,108,0,97,0,
625142,1662,1,44,1183, 7673114,0,97,0,116,
62521,1260,1096,1,47, 76740,105,0,111,0,
62531184,1,1303,1307,1, 7675110,0,76,0,105,
625449,1196,1,50,1201, 76760,115,0,116,0,
62551,48,1190,1,305, 76771,-1,1,5,2307,
62561211,1,51,1206,1, 767820,2308,4,56,73,
625761,1990,16,0,194, 76790,110,0,116,0,
62581,63,1222,1,66, 768065,0,114,0,103,
62591228,1,67,1233,1, 76810,117,0,109,0,
62601478,1458,1,69,1243, 7682101,0,110,0,116,
62611,70,1248,1,68, 76830,68,0,101,0,
62621238,1,73,1991,16, 768499,0,108,0,97,
62630,204,1,74,1253, 76850,114,0,97,0,
62641,1013,1258,1,2335,
62651992,16,0,239,1,
6266328,1302,1,1048,1344,
62671,82,1280,1,1840,
62681993,16,0,303,1,
62692515,1994,16,0,436,
62701,1341,1297,1,1094,
62711995,16,0,666,1,
62721096,1312,1,93,1318,
62731,1550,1323,1,352,
62741349,1,1011,1102,1,
6275107,1338,1,1114,1343,
62761,1871,1996,16,0,
6277313,1,1370,1453,1,
6278118,1355,1,1123,1360,
62791,1332,1263,1,1377,
62801371,1,375,1376,1,
62811882,1997,16,0,327,
62821,377,1381,1,827,
62831331,1,380,1391,1,
6284130,1414,1,2074,1998,
628516,0,554,1,371,
62861365,1,373,1409,1,
62871012,1999,16,0,595,
62881,379,1386,1,143,
62891419,1,1152,1426,1,
62901406,1431,1,1159,1438,
62911,157,1443,1,1413,
62921448,1,883,1397,1,
62931296,1167,1,172,1469,
62941,1665,1474,1,1939,
62952000,16,0,435,1,
62961188,1479,1,1442,1484,
62971,188,1518,1,942,
62981490,1,1195,1496,1,
62991449,1501,1,1701,1506,
63001,447,1511,1,205,
63011523,1,2467,1677,1,
6302464,1683,1,2642,1669,
63031,2197,2001,16,0,
6304662,1,1224,1528,1,
6305223,1533,1,1730,1538,
63061,2651,2002,16,0,
6307570,1,477,1549,1,
63081231,1554,1,479,1559,
63091,480,1564,1,1485,
63101570,1,459,1688,1,
6311476,1543,1,242,1578,
63121,478,1583,1,2506,
63131690,1,1001,1588,1,
63141002,1593,1,18,2003,
631519,490,1,18,2004,
63165,84,1,1011,1102,
63171,1012,2005,16,0,
6318488,1,1013,1258,1,
6319262,1119,1,1267,2006,
632016,0,488,1,515,
63212007,16,0,488,1,
63221521,2008,16,0,488,
63231,525,1216,1,283,
63241172,1,2299,2009,16,
63250,488,1,42,2010,
632616,0,488,1,40,
63271177,1,44,1183,1,
632847,1184,1,1303,2011,
632916,0,488,1,1555,
63302012,16,0,488,1,
633150,1201,1,48,1190,
63321,49,1196,1,51,
63331206,1,63,1222,1,
6334305,1211,1,66,1228,
63351,67,1233,1,68,
63361238,1,69,1243,1,
633770,1248,1,73,2013,
633816,0,488,1,74,
63391253,1,328,1302,1,
63401048,2014,16,0,488,
63411,82,2015,16,0,
6342488,1,1840,2016,16,
63430,488,1,1591,2017,
634416,0,488,1,1341,
63452018,16,0,488,1,
63461096,1312,1,93,1318,
63471,352,1349,1,107,
63482019,16,0,488,1,
63491114,1343,1,118,2020,
635016,0,488,1,1123,
63512021,16,0,488,1,
6352371,1365,1,1628,2022,
635316,0,488,1,375,
63541376,1,1882,2023,16,
63550,488,1,377,1381,
63561,379,1386,1,380,
63571391,1,883,2024,16,
63580,488,1,373,1409,
63591,130,2025,16,0,
6360488,1,143,2026,16,
63610,488,1,387,2027,
636216,0,488,1,2664,
63632028,16,0,488,1,
63641159,2029,16,0,488,
63651,157,2030,16,0,
6366488,1,1413,2031,16,
63670,488,1,1665,2032,
636816,0,488,1,412,
63692033,16,0,488,1,
63701377,2034,16,0,488,
63711,172,2035,16,0,
6372488,1,1939,2036,16,
63730,488,1,437,2037,
637416,0,488,1,188,
63752038,16,0,488,1,
6376942,2039,16,0,488,
63771,1195,2040,16,0,
6378488,1,1449,2041,16,
63790,488,1,1701,2042,
638016,0,488,1,447,
63811511,1,205,2043,16,
63820,488,1,827,2044,
638316,0,488,1,223,
63842045,16,0,488,1,
6385476,1543,1,477,1549,
63861,1231,2046,16,0,
6387488,1,479,1559,1,
6388480,1564,1,1485,2047,
638916,0,488,1,1737,
63902048,16,0,488,1,
6391242,2049,16,0,488,
63921,478,1583,1,1001,
63931588,1,1002,1593,1,
639419,2050,19,225,1,
639519,2051,5,176,1,
6396256,2052,16,0,223,
63971,1261,2053,16,0,
6398223,1,1011,1102,1,
63991012,2054,16,0,455,
64001,2458,876,1,262,
64011119,1,1267,2055,16,
64020,455,1,2021,718,
64031,1521,2056,16,0,
6404455,1,1775,2057,16,
64050,223,1,2029,725,
64061,2030,731,1,2031,
6407736,1,2032,741,1,
64082033,746,1,277,2058,
640916,0,223,1,2035,
6410752,1,2037,757,1,
64112039,762,1,32,2059,
641216,0,223,1,2464,
6413899,1,2293,2060,16,
64140,223,1,2043,774,
64151,2045,779,1,2299,
64162061,16,0,455,1,
641741,2062,16,0,223,
64181,42,2063,16,0,
6419455,1,40,1177,1,
642044,1183,1,43,2064,
642116,0,223,1,1804,
64222065,16,0,223,1,
642348,1190,1,49,1196,
64241,47,1184,1,51,
64251206,1,52,2066,16,
64260,223,1,50,1201,
64271,305,1211,1,1096,
64281312,1,1515,2067,16,
64290,223,1,2318,2068,
643016,0,223,1,283,
64311172,1,63,1222,1,
643266,1228,1,67,1233,
64331,68,1238,1,69,
64341243,1,70,1248,1,
643571,2069,16,0,223,
64361,73,2070,16,0,
6437455,1,74,1253,1,
64381013,1258,1,76,2071,
643916,0,223,1,1834,
64402072,16,0,223,1,
64412337,2073,16,0,223,
64421,79,2074,16,0,
6443223,1,1335,2075,16,
64440,223,1,299,2076,
644516,0,223,1,82,
64462077,16,0,455,1,
64471840,2078,16,0,455,
64481,1297,2079,16,0,
6449223,1,85,2080,16,
64500,223,1,1341,2081,
645116,0,455,1,89,
64522082,16,0,223,1,
64531303,2083,16,0,455,
64541,509,2084,16,0,
6455223,1,93,1318,1,
6456322,2085,16,0,223,
64571,97,2086,16,0,
6458223,1,2041,768,1,
64591555,2087,16,0,455,
64601,827,2088,16,0,
6461455,1,102,2089,16,
64620,223,1,1860,821,
64631,1803,787,1,2364,
6464827,1,107,2090,16,
64650,455,1,1114,1343,
64661,112,2091,16,0,
6467223,1,1117,2092,16,
64680,223,1,352,1349,
64691,1873,835,1,118,
64702093,16,0,455,1,
64711123,2094,16,0,455,
64721,371,1365,1,515,
64732095,16,0,455,1,
64741377,2096,16,0,455,
64751,124,2097,16,0,
6476223,1,1882,2098,16,
64770,455,1,377,1381,
64781,379,1386,1,380,
64791391,1,130,2099,16,
64800,455,1,346,2100,
648116,0,223,1,2075,
64822101,16,0,223,1,
6483373,1409,1,387,2102,
648416,0,455,1,137,
64852103,16,0,223,1,
6486143,2104,16,0,455,
64871,1901,2105,16,0,
6488223,1,1048,2106,16,
64890,455,1,2658,2107,
649016,0,223,1,1153,
64912108,16,0,223,1,
6492375,1376,1,151,2109,
649316,0,223,1,1407,
64942110,16,0,223,1,
64951659,2111,16,0,223,
64961,2413,2112,16,0,
6497223,1,1159,2113,16,
64980,455,1,381,2114,
649916,0,223,1,157,
65002115,16,0,455,1,
65011413,2116,16,0,455,
65021,883,2117,16,0,
6503455,1,1371,2118,16,
65040,223,1,328,1302,
65051,2105,814,1,2106,
65062119,16,0,223,1,
6507166,2120,16,0,223,
65081,525,2121,16,0,
6509223,1,1622,2122,16,
65100,223,1,406,2123,
651116,0,223,1,1574,
6512799,1,172,2124,16,
65130,455,1,1931,861,
65141,412,2125,16,0,
6515455,1,1933,2126,16,
65160,223,1,1876,2127,
651716,0,223,1,431,
65182128,16,0,223,1,
65191585,2129,16,0,223,
65201,182,2130,16,0,
6521223,1,1628,2131,16,
65220,455,1,1189,2132,
652316,0,223,1,437,
65242133,16,0,455,1,
65251591,2134,16,0,455,
65261,188,2135,16,0,
6527455,1,1695,2136,16,
65280,223,1,2198,2137,
652916,0,223,1,1195,
65302138,16,0,455,1,
65311449,2139,16,0,455,
65321,1701,2140,16,0,
6533455,1,447,2141,16,
65340,223,1,199,2142,
653516,0,223,1,2459,
6536882,1,1958,2143,16,
65370,223,1,2462,889,
65381,1657,894,1,205,
65392144,16,0,455,1,
6540459,2145,16,0,223,
65411,462,2146,16,0,
6542223,1,1665,2147,16,
65430,455,1,217,2148,
654416,0,223,1,2227,
6545908,1,942,2149,16,
65460,455,1,1225,2150,
654716,0,223,1,223,
65482151,16,0,455,1,
65491479,2152,16,0,223,
65501,1731,2153,16,0,
6551223,1,477,1549,1,
65521231,2154,16,0,455,
65531,479,1559,1,480,
65541564,1,1485,2155,16,
65550,455,1,1737,2156,
655616,0,455,1,1989,
6557916,1,1990,2157,16,
65580,223,1,1443,2158,
655916,0,223,1,236,
65602159,16,0,223,1,
65612136,842,1,2664,2160,
656216,0,455,1,476,
65631543,1,242,2161,16,
65640,455,1,478,1583,
65651,1939,2162,16,0,
6566455,1,1001,1588,1,
65671002,1593,1,1756,2163,
656816,0,223,1,20,
65692164,19,442,1,20,
65702165,5,84,1,1011,
65711102,1,1012,2166,16,
65720,440,1,1013,1258,
65731,262,1119,1,1267,
65742167,16,0,440,1,
6575515,2168,16,0,440,
65761,1521,2169,16,0,
6577440,1,525,1216,1,
6578283,1172,1,2299,2170,
657916,0,440,1,42,
65802171,16,0,440,1,
658140,1177,1,44,1183,
65821,47,1184,1,1303,
65832172,16,0,440,1,
65841555,2173,16,0,440,
65851,50,1201,1,48,
65861190,1,49,1196,1,
658751,1206,1,63,1222,
65881,305,1211,1,66,
65891228,1,67,1233,1,
659068,1238,1,69,1243,
65911,70,1248,1,73,
65922174,16,0,440,1,
659374,1253,1,328,2175,
659416,0,440,1,1048,
65952176,16,0,440,1,
659682,2177,16,0,440,
65971,1840,2178,16,0,
6598440,1,1591,2179,16,
65990,440,1,1341,2180,
660016,0,440,1,1096,
66011312,1,93,1318,1,
6602352,2181,16,0,440,
66031,107,2182,16,0,
6604440,1,1114,1343,1,
6605118,2183,16,0,440,
66061,1123,2184,16,0,
6607440,1,371,1365,1,
66081628,2185,16,0,440,
66091,375,1376,1,1882,
66102186,16,0,440,1,
6611377,1381,1,379,1386,
66121,380,1391,1,883,
66132187,16,0,440,1,
6614373,1409,1,130,2188,
661516,0,440,1,143,
66162189,16,0,440,1,
6617387,2190,16,0,440,
66181,2664,2191,16,0,
6619440,1,1159,2192,16,
66200,440,1,157,2193,
662116,0,440,1,1413,
66222194,16,0,440,1,
66231665,2195,16,0,440,
66241,412,2196,16,0,
6625440,1,1377,2197,16,
66260,440,1,172,2198,
662716,0,440,1,1939,
66282199,16,0,440,1,
6629437,2200,16,0,440,
66301,188,2201,16,0,
6631440,1,942,2202,16,
66320,440,1,1195,2203,
663316,0,440,1,1449,
66342204,16,0,440,1,
66351701,2205,16,0,440,
66361,447,1511,1,205,
66372206,16,0,440,1,
6638827,2207,16,0,440,
66391,223,2208,16,0,
6640440,1,476,1543,1,
6641477,1549,1,1231,2209,
664216,0,440,1,479,
66431559,1,480,1564,1,
66441485,2210,16,0,440,
66451,1737,2211,16,0,
6646440,1,242,2212,16,
66470,440,1,478,1583,
66481,1001,1588,1,1002,
66491593,1,21,2213,19,
6650432,1,21,2214,5,
665184,1,1011,1102,1,
66521012,2215,16,0,430,
66531,1013,1258,1,262,
66541119,1,1267,2216,16,
66550,430,1,515,2217,
665616,0,430,1,1521,
66572218,16,0,430,1,
6658525,1216,1,283,1172,
66591,2299,2219,16,0,
6660430,1,42,2220,16,
66610,430,1,40,1177,
66621,44,1183,1,47,
66631184,1,1303,2221,16,
66640,430,1,1555,2222,
666516,0,430,1,50,
66661201,1,48,1190,1,
666749,1196,1,51,1206,
66681,63,1222,1,305,
66691211,1,66,1228,1,
667067,1233,1,68,1238,
66711,69,1243,1,70,
66721248,1,73,2223,16,
66730,430,1,74,1253,
66741,328,2224,16,0,
6675430,1,1048,2225,16,
66760,430,1,82,2226,
667716,0,430,1,1840,
66782227,16,0,430,1,
66791591,2228,16,0,430,
66801,1341,2229,16,0,
6681430,1,1096,1312,1,
668293,1318,1,352,2230,
668316,0,430,1,107,
66842231,16,0,430,1,
66851114,1343,1,118,2232,
668616,0,430,1,1123,
66872233,16,0,430,1,
6688371,1365,1,1628,2234,
668916,0,430,1,375,
66901376,1,1882,2235,16,
66910,430,1,377,1381,
66921,379,1386,1,380,
66931391,1,883,2236,16,
66940,430,1,373,1409,
66951,130,2237,16,0,
6696430,1,143,2238,16,
66970,430,1,387,2239,
669816,0,430,1,2664,
66992240,16,0,430,1,
67001159,2241,16,0,430,
67011,157,2242,16,0,
6702430,1,1413,2243,16,
67030,430,1,1665,2244,
670416,0,430,1,412,
67052245,16,0,430,1,
67061377,2246,16,0,430,
67071,172,2247,16,0,
6708430,1,1939,2248,16,
67090,430,1,437,2249,
671016,0,430,1,188,
67112250,16,0,430,1,
6712942,2251,16,0,430,
67131,1195,2252,16,0,
6714430,1,1449,2253,16,
67150,430,1,1701,2254,
671616,0,430,1,447,
67171511,1,205,2255,16,
67180,430,1,827,2256,
671916,0,430,1,223,
67202257,16,0,430,1,
6721476,1543,1,477,1549,
67221,1231,2258,16,0,
6723430,1,479,1559,1,
6724480,1564,1,1485,2259,
672516,0,430,1,1737,
67262260,16,0,430,1,
6727242,2261,16,0,430,
67281,478,1583,1,1001,
67291588,1,1002,1593,1,
673022,2262,19,383,1,
673122,2263,5,84,1,
67321011,1102,1,1012,2264,
673316,0,381,1,1013,
67341258,1,262,1119,1,
67351267,2265,16,0,381,
67361,515,2266,16,0,
6737381,1,1521,2267,16,
67380,381,1,525,1216,
67391,283,1172,1,2299,
67402268,16,0,381,1,
674142,2269,16,0,381,
67421,40,1177,1,44,
67431183,1,47,1184,1,
67441303,2270,16,0,381,
67451,1555,2271,16,0,
6746381,1,50,1201,1,
674748,1190,1,49,1196,
67481,51,1206,1,63,
67491222,1,305,1211,1,
675066,1228,1,67,1233,
67511,68,1238,1,69,
67521243,1,70,1248,1,
675373,2272,16,0,381,
67541,74,1253,1,328,
67552273,16,0,381,1,
67561048,2274,16,0,381,
67571,82,2275,16,0,
6758381,1,1840,2276,16,
67590,381,1,1591,2277,
676016,0,381,1,1341,
67612278,16,0,381,1,
67621096,1312,1,93,1318,
67631,352,2279,16,0,
6764381,1,107,2280,16,
67650,381,1,1114,1343,
67661,118,2281,16,0,
6767381,1,1123,2282,16,
67680,381,1,371,1365,
67691,1628,2283,16,0,
6770381,1,375,1376,1,
67711882,2284,16,0,381,
67721,377,1381,1,379,
67731386,1,380,1391,1,
6774883,2285,16,0,381,
67751,373,1409,1,130,
67762286,16,0,381,1,
6777143,2287,16,0,381,
67781,387,2288,16,0,
6779381,1,2664,2289,16,
67800,381,1,1159,2290,
678116,0,381,1,157,
67822291,16,0,381,1,
67831413,2292,16,0,381,
67841,1665,2293,16,0,
6785381,1,412,2294,16,
67860,381,1,1377,2295,
678716,0,381,1,172,
67882296,16,0,381,1,
67891939,2297,16,0,381,
67901,437,2298,16,0,
6791381,1,188,2299,16,
67920,381,1,942,2300,
679316,0,381,1,1195,
67942301,16,0,381,1,
67951449,2302,16,0,381,
67961,1701,2303,16,0,
6797381,1,447,1511,1,
6798205,2304,16,0,381,
67991,827,2305,16,0,
6800381,1,223,2306,16,
68010,381,1,476,1543,
68021,477,1549,1,1231,
68032307,16,0,381,1,
6804479,1559,1,480,1564,
68051,1485,2308,16,0,
6806381,1,1737,2309,16,
68070,381,1,242,2310,
680816,0,381,1,478,
68091583,1,1001,1588,1,
68101002,1593,1,23,2311,
681119,504,1,23,2312,
68125,38,1,1901,2313,
681316,0,502,1,2075,
68142314,16,0,502,1,
68151860,821,1,1803,787,
68161,1804,2315,16,0,
6817502,1,2413,2316,16,
68180,502,1,2198,2317,
681916,0,502,1,1873,
6820835,1,1657,894,1,
68211989,916,1,1990,2318,
682216,0,502,1,1775,
68232319,16,0,502,1,
682432,2320,16,0,502,
68251,2105,814,1,2106,
68262321,16,0,502,1,
68272364,827,1,2227,908,
68281,2337,2322,16,0,
6829502,1,2021,718,1,
68302458,876,1,2459,882,
68311,2462,889,1,2136,
6832842,1,2464,899,1,
68332029,725,1,2030,731,
68341,2031,736,1,2032,
6835741,1,2033,746,1,
68362035,752,1,2037,757,
68371,2039,762,1,1931,
6838861,1,2041,768,1,
68392043,774,1,2045,779,
68401,1574,799,1,1958,
68412323,16,0,502,1,
684224,2324,19,177,1,
684324,2325,5,5,1,
684444,2326,16,0,175,
68451,377,2327,16,0,
6846540,1,40,2328,16,
68470,674,1,63,2329,
684816,0,196,1,373,
68492330,16,0,536,1,
685025,2331,19,291,1,
685125,2332,5,177,1,
6852256,2333,16,0,545,
68531,1261,2334,16,0,
6854545,1,1011,1102,1,
68551012,2335,16,0,289,
68561,2458,876,1,262,
68571119,1,1267,2336,16,
68580,289,1,2021,718,
68591,1521,2337,16,0,
6860289,1,1775,2338,16,
68610,545,1,2029,725,
68621,2030,731,1,2031,
6863736,1,2032,741,1,
68642033,746,1,277,2339,
686516,0,545,1,2035,
6866752,1,2037,757,1,
68672039,762,1,32,2340,
686816,0,545,1,2464,
6869899,1,2293,2341,16,
68700,545,1,2043,774,
68711,2045,779,1,2299,
68722342,16,0,289,1,
687341,2343,16,0,545,
68741,42,2344,16,0,
6875289,1,40,1177,1,
687644,1183,1,43,2345,
687716,0,545,1,1804,
68782346,16,0,545,1,
687948,1190,1,49,1196,
68801,47,1184,1,51,
68811206,1,52,2347,16,
68820,545,1,50,1201,
68831,305,1211,1,1096,
68841312,1,1515,2348,16,
68850,545,1,2318,2349,
688616,0,545,1,62,
68872350,16,0,545,1,
688863,1222,1,66,1228,
68891,67,1233,1,68,
68901238,1,69,1243,1,
689170,1248,1,71,2351,
689216,0,545,1,283,
68931172,1,73,2352,16,
68940,289,1,74,1253,
68951,1013,1258,1,76,
68962353,16,0,545,1,
68971834,2354,16,0,545,
68981,2337,2355,16,0,
6899545,1,79,2356,16,
69000,545,1,1335,2357,
690116,0,545,1,299,
69022358,16,0,545,1,
690382,2359,16,0,289,
69041,1840,2360,16,0,
6905289,1,1297,2361,16,
69060,545,1,85,2362,
690716,0,545,1,1341,
69082363,16,0,289,1,
690989,2364,16,0,545,
69101,1303,2365,16,0,
6911289,1,509,2366,16,
69120,545,1,93,1318,
69131,322,2367,16,0,
6914545,1,97,2368,16,
69150,545,1,2041,768,
69161,1555,2369,16,0,
6917289,1,827,2370,16,
69180,289,1,102,2371,
691916,0,545,1,1860,
6920821,1,1803,787,1,
69212364,827,1,107,2372,
692216,0,289,1,1114,
69231343,1,112,2373,16,
69240,545,1,1117,2374,
692516,0,545,1,352,
69261349,1,1873,835,1,
6927118,1355,1,1123,2375,
692816,0,289,1,371,
69291365,1,515,2376,16,
69300,289,1,1377,2377,
693116,0,289,1,124,
69322378,16,0,545,1,
69331882,2379,16,0,289,
69341,377,1381,1,379,
69351386,1,380,1391,1,
6936130,1414,1,346,2380,
693716,0,545,1,2075,
69382381,16,0,545,1,
6939373,1409,1,387,2382,
694016,0,289,1,137,
69412383,16,0,545,1,
6942143,2384,16,0,289,
69431,1901,2385,16,0,
6944545,1,1048,1344,1,
69452658,2386,16,0,545,
69461,1153,2387,16,0,
6947545,1,375,1376,1,
6948151,2388,16,0,545,
69491,1407,2389,16,0,
6950545,1,1659,2390,16,
69510,545,1,2413,2391,
695216,0,545,1,1159,
69532392,16,0,289,1,
6954381,2393,16,0,545,
69551,157,2394,16,0,
6956289,1,1413,2395,16,
69570,289,1,883,2396,
695816,0,289,1,1371,
69592397,16,0,545,1,
6960328,1302,1,2105,814,
69611,2106,2398,16,0,
6962545,1,166,2399,16,
69630,545,1,525,2400,
696416,0,545,1,1622,
69652401,16,0,545,1,
6966406,2402,16,0,545,
69671,1574,799,1,172,
69681469,1,1931,861,1,
6969412,2403,16,0,289,
69701,1933,2404,16,0,
6971545,1,1876,2405,16,
69720,545,1,431,2406,
697316,0,545,1,1585,
69742407,16,0,545,1,
6975182,2408,16,0,545,
69761,1628,2409,16,0,
6977289,1,1189,2410,16,
69780,545,1,437,2411,
697916,0,289,1,1591,
69802412,16,0,289,1,
6981188,1518,1,1695,2413,
698216,0,545,1,2198,
69832414,16,0,545,1,
69841195,2415,16,0,289,
69851,1449,2416,16,0,
6986289,1,1701,2417,16,
69870,289,1,447,2418,
698816,0,545,1,199,
69892419,16,0,545,1,
69902459,882,1,1958,2420,
699116,0,545,1,2462,
6992889,1,1657,894,1,
6993205,2421,16,0,289,
69941,459,2422,16,0,
6995545,1,462,2423,16,
69960,545,1,1665,2424,
699716,0,289,1,217,
69982425,16,0,545,1,
69992227,908,1,942,1490,
70001,1225,2426,16,0,
7001545,1,223,2427,16,
70020,289,1,1479,2428,
700316,0,545,1,1731,
70042429,16,0,545,1,
7005477,1549,1,1231,2430,
700616,0,289,1,479,
70071559,1,480,1564,1,
70081485,2431,16,0,289,
70091,1737,2432,16,0,
7010289,1,1989,916,1,
70111990,2433,16,0,545,
70121,1443,2434,16,0,
7013545,1,236,2435,16,
70140,545,1,2136,842,
70151,2664,2436,16,0,
7016289,1,476,1543,1,
7017242,2437,16,0,289,
70181,478,1583,1,1939,
70192438,16,0,289,1,
70201001,1588,1,1002,1593,
70211,1756,2439,16,0,
7022545,1,26,2440,19,
7023308,1,26,2441,5,
702484,1,1011,1102,1,
70251012,2442,16,0,306,
70261,1013,1258,1,262,
70271119,1,1267,2443,16,
70280,306,1,515,2444,
702916,0,660,1,1521,
70302445,16,0,306,1,
7031525,1216,1,283,1172,
70321,2299,2446,16,0,
7033306,1,42,2447,16,
70340,306,1,40,1177,
70351,44,1183,1,47,
70361184,1,1303,2448,16,
70370,306,1,1555,2449,
703816,0,306,1,50,
70391201,1,48,1190,1,
704049,1196,1,51,1206,
70411,63,1222,1,305,
70421211,1,66,1228,1,
704367,1233,1,68,1238,
70441,69,1243,1,70,
70451248,1,73,2450,16,
70460,306,1,74,1253,
70471,328,1302,1,1048,
70481344,1,82,2451,16,
70490,306,1,1840,2452,
705016,0,306,1,1591,
70512453,16,0,306,1,
70521341,2454,16,0,306,
70531,1096,1312,1,93,
70541318,1,352,1349,1,
7055107,2455,16,0,306,
70561,1114,1343,1,118,
70571355,1,1123,2456,16,
70580,306,1,371,1365,
70591,1628,2457,16,0,
7060306,1,375,1376,1,
70611882,2458,16,0,306,
70621,377,1381,1,379,
70631386,1,380,1391,1,
7064883,2459,16,0,306,
70651,373,1409,1,130,
70661414,1,143,2460,16,
70670,306,1,387,2461,
706816,0,306,1,2664,
70692462,16,0,306,1,
70701159,2463,16,0,306,
70711,157,2464,16,0,
7072306,1,1413,2465,16,
70730,306,1,1665,2466,
707416,0,306,1,412,
70752467,16,0,306,1,
70761377,2468,16,0,306,
70771,172,1469,1,1939,
70782469,16,0,306,1,
7079437,2470,16,0,588,
70801,188,1518,1,942,
70811490,1,1195,2471,16,
70820,306,1,1449,2472,
708316,0,306,1,1701,
70842473,16,0,306,1,
7085447,1511,1,205,2474,
708616,0,306,1,827,
70872475,16,0,306,1,
7088223,2476,16,0,306,
70891,476,1543,1,477,
70901549,1,1231,2477,16,
70910,306,1,479,1559,
70921,480,1564,1,1485,
70932478,16,0,306,1,
70941737,2479,16,0,306,
70951,242,2480,16,0,
7096306,1,478,1583,1,
70971001,1588,1,1002,1593,
70981,27,2481,19,598,
70991,27,2482,5,95,
71001,256,2483,16,0,
7101596,1,1261,2484,16,
71020,596,1,509,2485,
710316,0,596,1,1515,
71042486,16,0,596,1,
71052021,718,1,1775,2487,
710616,0,596,1,2029,
7107725,1,2030,731,1,
71082031,736,1,2032,741,
71091,2033,746,1,277,
71102488,16,0,596,1,
71112035,752,1,2037,757,
71121,2039,762,1,32,
71132489,16,0,596,1,
71142041,768,1,2293,2490,
711516,0,596,1,2043,
7116774,1,2045,779,1,
711741,2491,16,0,596,
71181,1297,2492,16,0,
7119596,1,43,2493,16,
71200,596,1,1803,787,
71211,1804,2494,16,0,
7122596,1,299,2495,16,
71230,596,1,52,2496,
712416,0,596,1,2318,
71252497,16,0,596,1,
712662,2498,16,0,596,
71271,2075,2499,16,0,
7128596,1,1574,799,1,
712971,2500,16,0,596,
71301,76,2501,16,0,
7131596,1,1834,2502,16,
71320,596,1,2337,2503,
713316,0,596,1,79,
71342504,16,0,596,1,
71351335,2505,16,0,596,
71361,322,2506,16,0,
7137596,1,85,2507,16,
71380,596,1,89,2508,
713916,0,596,1,346,
71402509,16,0,596,1,
71412105,814,1,2106,2510,
714216,0,596,1,97,
71432511,16,0,596,1,
71441860,821,1,2364,827,
71451,102,2512,16,0,
7146596,1,112,2513,16,
71470,596,1,1117,2514,
714816,0,596,1,1873,
7149835,1,1876,2515,16,
71500,596,1,124,2516,
715116,0,596,1,2136,
7152842,1,381,2517,16,
71530,596,1,525,2518,
715416,0,596,1,137,
71552519,16,0,596,1,
71561901,2520,16,0,596,
71571,2658,2521,16,0,
7158596,1,1153,2522,16,
71590,596,1,151,2523,
716016,0,596,1,1407,
71612524,16,0,596,1,
71621659,2525,16,0,596,
71631,2413,2526,16,0,
7164596,1,406,2527,16,
71650,596,1,1371,2528,
716616,0,596,1,166,
71672529,16,0,596,1,
71681622,2530,16,0,596,
71691,1931,861,1,1933,
71702531,16,0,596,1,
7171431,2532,16,0,596,
71721,1585,2533,16,0,
7173596,1,182,2534,16,
71740,596,1,1189,2535,
717516,0,596,1,1443,
71762536,16,0,596,1,
71771695,2537,16,0,596,
71781,2198,2538,16,0,
7179596,1,447,2539,16,
71800,596,1,2458,876,
71811,2459,882,1,1958,
71822540,16,0,596,1,
71832462,889,1,1657,894,
71841,2464,899,1,199,
71852541,16,0,596,1,
7186459,2542,16,0,596,
71871,462,2543,16,0,
7188596,1,217,2544,16,
71890,596,1,2227,908,
71901,1225,2545,16,0,
7191596,1,1479,2546,16,
71920,596,1,1731,2547,
719316,0,596,1,1989,
7194916,1,1990,2548,16,
71950,596,1,236,2549,
719616,0,596,1,1756,
71972550,16,0,596,1,
719828,2551,19,629,1,
719928,2552,5,60,1,
7200328,1302,1,223,1533,
72011,1096,1312,1,118,
72021355,1,883,1397,1,
7203525,1216,1,1001,1588,
72041,130,1414,1,459,
72051688,1,1114,1343,1,
7206352,1349,1,447,1511,
72071,464,1683,1,1011,
72081102,1,1013,1258,1,
7209242,1578,1,143,1419,
72101,40,1177,1,41,
72111659,1,42,1662,1,
7212479,1559,1,44,1183,
72131,481,1646,1,373,
72141409,1,47,1184,1,
7215157,1443,1,49,1196,
72161,50,1201,1,48,
72171190,1,379,1386,1,
7218380,1391,1,51,1206,
72191,476,1543,1,371,
72201365,1,478,1583,1,
72211048,1344,1,375,1376,
72221,172,1469,1,262,
72231119,1,283,1172,1,
722463,1222,1,67,1233,
72251,68,1238,1,69,
72261243,1,66,1228,1,
7227461,2553,16,0,627,
72281,74,1253,1,377,
72291381,1,1002,1593,1,
723070,1248,1,188,1518,
72311,82,1280,1,305,
72321211,1,477,1549,1,
7233827,1331,1,93,1318,
72341,480,1564,1,205,
72351523,1,942,1490,1,
7236107,1338,1,29,2554,
723719,280,1,29,2555,
72385,84,1,1011,1102,
72391,1012,2556,16,0,
7240278,1,1013,1258,1,
7241262,1119,1,1267,2557,
724216,0,278,1,515,
72432558,16,0,278,1,
72441521,2559,16,0,278,
72451,525,1216,1,283,
72461172,1,2299,2560,16,
72470,278,1,42,2561,
724816,0,278,1,40,
72491177,1,44,1183,1,
725047,1184,1,1303,2562,
725116,0,278,1,1555,
72522563,16,0,278,1,
725350,1201,1,48,1190,
72541,49,1196,1,51,
72551206,1,63,1222,1,
7256305,1211,1,66,1228,
72571,67,1233,1,68,
72581238,1,69,1243,1,
725970,1248,1,73,2564,
726016,0,278,1,74,
72611253,1,328,1302,1,
72621048,1344,1,82,2565,
726316,0,278,1,1840,
72642566,16,0,278,1,
72651591,2567,16,0,278,
72661,1341,2568,16,0,
7267278,1,1096,1312,1,
726893,1318,1,352,1349,
72691,107,2569,16,0,
7270278,1,1114,1343,1,
7271118,1355,1,1123,2570,
727216,0,278,1,371,
72731365,1,1628,2571,16,
72740,278,1,375,1376,
72751,1882,2572,16,0,
7276278,1,377,1381,1,
7277379,1386,1,380,1391,
72781,883,2573,16,0,
7279278,1,373,1409,1,
7280130,1414,1,143,1419,
72811,387,2574,16,0,
7282278,1,2664,2575,16,
72830,278,1,1159,2576,
728416,0,278,1,157,
72851443,1,1413,2577,16,
72860,278,1,1665,2578,
728716,0,278,1,412,
72882579,16,0,278,1,
72891377,2580,16,0,278,
72901,172,1469,1,1939,
72912581,16,0,278,1,
7292437,2582,16,0,278,
72931,188,1518,1,942,
72941490,1,1195,2583,16,
72950,278,1,1449,2584,
729616,0,278,1,1701,
72972585,16,0,278,1,
7298447,1511,1,205,2586,
729916,0,278,1,827,
73002587,16,0,278,1,
7301223,2588,16,0,278,
73021,476,1543,1,477,
73031549,1,1231,2589,16,
73040,278,1,479,1559,
73051,480,1564,1,1485,
73062590,16,0,278,1,
73071737,2591,16,0,278,
73081,242,2592,16,0,
7309278,1,478,1583,1,
73101001,1588,1,1002,1593,
73111,30,2593,19,268,
73121,30,2594,5,84,
73131,1011,1102,1,1012,
73142595,16,0,266,1,
73151013,1258,1,262,1119,
73161,1267,2596,16,0,
7317266,1,515,2597,16,
73180,266,1,1521,2598,
731916,0,266,1,525,
73201216,1,283,1172,1,
73212299,2599,16,0,266,
73221,42,2600,16,0,
7323266,1,40,1177,1,
732444,1183,1,47,1184,
73251,1303,2601,16,0,
7326266,1,1555,2602,16,
73270,266,1,50,1201,
73281,48,1190,1,49,
73291196,1,51,1206,1,
733063,1222,1,305,1211,
73311,66,1228,1,67,
73321233,1,68,1238,1,
733369,1243,1,70,1248,
73341,73,2603,16,0,
7335266,1,74,1253,1,
7336328,1302,1,1048,1344,
73371,82,2604,16,0,
7338266,1,1840,2605,16,
73390,266,1,1591,2606,
734016,0,266,1,1341,
73412607,16,0,266,1,
73421096,1312,1,93,1318,
73431,352,1349,1,107,
73442608,16,0,266,1,
73451114,1343,1,118,1355,
73461,1123,2609,16,0,
7347266,1,371,1365,1,
73481628,2610,16,0,266,
73491,375,1376,1,1882,
73502611,16,0,266,1,
7351377,1381,1,379,1386,
73521,380,1391,1,883,
73532612,16,0,266,1,
7354373,1409,1,130,1414,
73551,143,1419,1,387,
73562613,16,0,266,1,
73572664,2614,16,0,266,
73581,1159,2615,16,0,
7359266,1,157,1443,1,
73601413,2616,16,0,266,
73611,1665,2617,16,0,
7362266,1,412,2618,16,
73630,266,1,1377,2619,
736416,0,266,1,172,
73651469,1,1939,2620,16,
73660,266,1,437,2621,
736716,0,266,1,188,
73681518,1,942,1490,1,
73691195,2622,16,0,266,
73701,1449,2623,16,0,
7371266,1,1701,2624,16,
73720,266,1,447,1511,
73731,205,2625,16,0,
7374266,1,827,2626,16,
73750,266,1,223,2627,
737616,0,266,1,476,
73771543,1,477,1549,1,
73781231,2628,16,0,266,
73791,479,1559,1,480,
73801564,1,1485,2629,16,
73810,266,1,1737,2630,
738216,0,266,1,242,
73832631,16,0,266,1,
7384478,1583,1,1001,1588,
73851,1002,1593,1,31,
73862632,19,253,1,31,
73872633,5,84,1,1011,
73881102,1,1012,2634,16,
73890,251,1,1013,1258,
73901,262,1119,1,1267,
73912635,16,0,251,1,
7392515,2636,16,0,251,
73931,1521,2637,16,0,
7394251,1,525,1216,1,
7395283,1172,1,2299,2638,
739616,0,251,1,42,
73972639,16,0,251,1,
739840,1177,1,44,1183,
73991,47,1184,1,1303,
74002640,16,0,251,1,
74011555,2641,16,0,251,
74021,50,1201,1,48,
74031190,1,49,1196,1,
740451,1206,1,63,1222,
74051,305,1211,1,66,
74061228,1,67,1233,1,
740768,1238,1,69,1243,
74081,70,1248,1,73,
74092642,16,0,251,1,
741074,1253,1,328,1302,
74111,1048,1344,1,82,
74122643,16,0,251,1,
74131840,2644,16,0,251,
74141,1591,2645,16,0,
7415251,1,1341,2646,16,
74160,251,1,1096,1312,
74171,93,1318,1,352,
74181349,1,107,2647,16,
74190,251,1,1114,1343,
74201,118,1355,1,1123,
74212648,16,0,251,1,
7422371,1365,1,1628,2649,
742316,0,251,1,375,
74241376,1,1882,2650,16,
74250,251,1,377,1381,
74261,379,1386,1,380,
74271391,1,883,2651,16,
74280,251,1,373,1409,
74291,130,1414,1,143,
74302652,16,0,251,1,
7431387,2653,16,0,251,
74321,2664,2654,16,0,
7433251,1,1159,2655,16,
74340,251,1,157,2656,
743516,0,251,1,1413,
74362657,16,0,251,1,
74371665,2658,16,0,251,
74381,412,2659,16,0,
7439251,1,1377,2660,16,
74400,251,1,172,1469,
74411,1939,2661,16,0,
7442251,1,437,2662,16,
74430,251,1,188,1518,
74441,942,1490,1,1195,
74452663,16,0,251,1,
74461449,2664,16,0,251,
74471,1701,2665,16,0,
7448251,1,447,1511,1,
7449205,2666,16,0,251,
74501,827,2667,16,0,
7451251,1,223,2668,16,
74520,251,1,476,1543,
74531,477,1549,1,1231,
74542669,16,0,251,1,
7455479,1559,1,480,1564,
74561,1485,2670,16,0,
7457251,1,1737,2671,16,
74580,251,1,242,2672,
745916,0,251,1,478,
74601583,1,1001,1588,1,
74611002,1593,1,32,2673,
746219,246,1,32,2674,
74635,84,1,1011,1102,
74641,1012,2675,16,0,
7465244,1,1013,1258,1,
7466262,1119,1,1267,2676,
746716,0,244,1,515,
74682677,16,0,244,1,
74691521,2678,16,0,244,
74701,525,1216,1,283,
74711172,1,2299,2679,16,
74720,244,1,42,2680,
747316,0,244,1,40,
74741177,1,44,1183,1,
747547,1184,1,1303,2681,
747616,0,244,1,1555,
74772682,16,0,244,1,
747850,1201,1,48,1190,
74791,49,1196,1,51,
74801206,1,63,1222,1,
7481305,1211,1,66,1228,
74821,67,1233,1,68,
74831238,1,69,1243,1,
748470,1248,1,73,2683,
748516,0,244,1,74,
74861253,1,328,1302,1,
74871048,1344,1,82,2684,
748816,0,244,1,1840,
74892685,16,0,244,1,
74901591,2686,16,0,244,
74911,1341,2687,16,0,
7492244,1,1096,1312,1,
749393,1318,1,352,1349,
74941,107,2688,16,0,
7495244,1,1114,1343,1,
7496118,1355,1,1123,2689,
749716,0,244,1,371,
74981365,1,1628,2690,16,
74990,244,1,375,1376,
75001,1882,2691,16,0,
7501244,1,377,1381,1,
7502379,1386,1,380,1391,
75031,883,2692,16,0,
7504244,1,373,1409,1,
7505130,1414,1,143,2693,
750616,0,244,1,387,
75072694,16,0,244,1,
75082664,2695,16,0,244,
75091,1159,2696,16,0,
7510244,1,157,2697,16,
75110,244,1,1413,2698,
751216,0,244,1,1665,
75132699,16,0,244,1,
7514412,2700,16,0,244,
75151,1377,2701,16,0,
7516244,1,172,1469,1,
75171939,2702,16,0,244,
75181,437,2703,16,0,
7519244,1,188,1518,1,
7520942,1490,1,1195,2704,
752116,0,244,1,1449,
75222705,16,0,244,1,
75231701,2706,16,0,244,
75241,447,1511,1,205,
75252707,16,0,244,1,
7526827,2708,16,0,244,
75271,223,2709,16,0,
7528244,1,476,1543,1,
7529477,1549,1,1231,2710,
753016,0,244,1,479,
75311559,1,480,1564,1,
75321485,2711,16,0,244,
75331,1737,2712,16,0,
7534244,1,242,2713,16,
75350,244,1,478,1583,
75361,1001,1588,1,1002,
75371593,1,33,2714,19,
7538332,1,33,2715,5,
753984,1,1011,1102,1,
75401012,2716,16,0,330,
75411,1013,1258,1,262,
75421119,1,1267,2717,16,
75430,330,1,515,2718,
754416,0,330,1,1521,
75452719,16,0,330,1,
7546525,1216,1,283,1172,
75471,2299,2720,16,0,
7548330,1,42,2721,16,
75490,330,1,40,1177,
75501,44,1183,1,47,
75511184,1,1303,2722,16,
75520,330,1,1555,2723,
755316,0,330,1,50,
75541201,1,48,1190,1,
755549,1196,1,51,1206,
75561,63,1222,1,305,
75571211,1,66,1228,1,
755867,1233,1,68,1238,
75591,69,1243,1,70,
75601248,1,73,2724,16,
75610,330,1,74,1253,
75621,328,1302,1,1048,
75631344,1,82,2725,16,
75640,330,1,1840,2726,
756516,0,330,1,1591,
75662727,16,0,330,1,
75671341,2728,16,0,330,
75681,1096,1312,1,93,
75691318,1,352,1349,1,
7570107,2729,16,0,330,
75711,1114,1343,1,118,
75721355,1,1123,2730,16,
75730,330,1,371,1365,
75741,1628,2731,16,0,
7575330,1,375,1376,1,
75761882,2732,16,0,330,
75771,377,1381,1,379,
75781386,1,380,1391,1,
7579883,2733,16,0,330,
75801,373,1409,1,130,
75811414,1,143,1419,1,
7582387,2734,16,0,330,
75831,2664,2735,16,0,
7584330,1,1159,2736,16,
75850,330,1,157,1443,
75861,1413,2737,16,0,
7587330,1,1665,2738,16,
75880,330,1,412,2739,
758916,0,330,1,1377,
75902740,16,0,330,1,
7591172,1469,1,1939,2741,
759216,0,330,1,437,
75932742,16,0,330,1,
7594188,1518,1,942,1490,
75951,1195,2743,16,0,
7596330,1,1449,2744,16,
75970,330,1,1701,2745,
759816,0,330,1,447,
75991511,1,205,2746,16,
76000,330,1,827,2747,
760116,0,330,1,223,
76022748,16,0,330,1,
7603476,1543,1,477,1549,
76041,1231,2749,16,0,
7605330,1,479,1559,1,
7606480,1564,1,1485,2750,
760716,0,330,1,1737,
76082751,16,0,330,1,
7609242,1578,1,478,1583,
76101,1001,1588,1,1002,
76111593,1,34,2752,19,
7612322,1,34,2753,5,
761384,1,1011,1102,1,
76141012,2754,16,0,320,
76151,1013,1258,1,262,
76161119,1,1267,2755,16,
76170,320,1,515,2756,
761816,0,320,1,1521,
76192757,16,0,320,1,
7620525,1216,1,283,1172,
76211,2299,2758,16,0,
7622320,1,42,2759,16,
76230,320,1,40,1177,
76241,44,1183,1,47,
76251184,1,1303,2760,16,
76260,320,1,1555,2761,
762716,0,320,1,50,
76281201,1,48,1190,1,
762949,1196,1,51,1206,
76301,63,1222,1,305,
76311211,1,66,1228,1,
763267,1233,1,68,1238,
76331,69,1243,1,70,
76341248,1,73,2762,16,
76350,320,1,74,1253,
76361,328,1302,1,1048,
76371344,1,82,2763,16,
76380,320,1,1840,2764,
763916,0,320,1,1591,
76402765,16,0,320,1,
76411341,2766,16,0,320,
76421,1096,1312,1,93,
76431318,1,352,1349,1,
7644107,2767,16,0,320,
76451,1114,1343,1,118,
76461355,1,1123,2768,16,
76470,320,1,371,1365,
76481,1628,2769,16,0,
7649320,1,375,1376,1,
76501882,2770,16,0,320,
76511,377,1381,1,379,
76521386,1,380,1391,1,
7653883,2771,16,0,320,
76541,373,1409,1,130,
76551414,1,143,1419,1,
7656387,2772,16,0,320,
76571,2664,2773,16,0,
7658320,1,1159,2774,16,
76590,320,1,157,1443,
76601,1413,2775,16,0,
7661320,1,1665,2776,16,
76620,320,1,412,2777,
766316,0,320,1,1377,
76642778,16,0,320,1,
7665172,1469,1,1939,2779,
766616,0,320,1,437,
76672780,16,0,320,1,
7668188,1518,1,942,1490,
76691,1195,2781,16,0,
7670320,1,1449,2782,16,
76710,320,1,1701,2783,
767216,0,320,1,447,
76731511,1,205,1523,1,
7674827,2784,16,0,320,
76751,223,1533,1,476,
76761543,1,477,1549,1,
76771231,2785,16,0,320,
76781,479,1559,1,480,
76791564,1,1485,2786,16,
76800,320,1,1737,2787,
768116,0,320,1,242,
76821578,1,478,1583,1,
76831001,1588,1,1002,1593,
76841,35,2788,19,311,
76851,35,2789,5,84,
76861,1011,1102,1,1012,
76872790,16,0,309,1,
76881013,1258,1,262,1119,
76891,1267,2791,16,0,
7690309,1,515,2792,16,
76910,309,1,1521,2793,
769216,0,309,1,525,
76931216,1,283,1172,1,
76942299,2794,16,0,309,
76951,42,2795,16,0,
7696309,1,40,1177,1,
769744,1183,1,47,1184,
76981,1303,2796,16,0,
7699309,1,1555,2797,16,
77000,309,1,50,1201,
77011,48,1190,1,49,
77021196,1,51,1206,1,
770363,1222,1,305,1211,
77041,66,1228,1,67,
77051233,1,68,1238,1,
770669,1243,1,70,1248,
77071,73,2798,16,0,
7708309,1,74,1253,1,
7709328,1302,1,1048,1344,
77101,82,2799,16,0,
7711309,1,1840,2800,16,
77120,309,1,1591,2801,
771316,0,309,1,1341,
77142802,16,0,309,1,
77151096,1312,1,93,1318,
77161,352,1349,1,107,
77172803,16,0,309,1,
77181114,1343,1,118,1355,
77191,1123,2804,16,0,
7720309,1,371,1365,1,
77211628,2805,16,0,309,
77221,375,1376,1,1882,
77232806,16,0,309,1,
7724377,1381,1,379,1386,
77251,380,1391,1,883,
77262807,16,0,309,1,
7727373,1409,1,130,1414,
77281,143,1419,1,387,
77292808,16,0,309,1,
77302664,2809,16,0,309,
77311,1159,2810,16,0,
7732309,1,157,1443,1,
77331413,2811,16,0,309,
77341,1665,2812,16,0,
7735309,1,412,2813,16,
77360,309,1,1377,2814,
773716,0,309,1,172,
77381469,1,1939,2815,16,
77390,309,1,437,2816,
774016,0,309,1,188,
77411518,1,942,1490,1,
77421195,2817,16,0,309,
77431,1449,2818,16,0,
7744309,1,1701,2819,16,
77450,309,1,447,1511,
77461,205,1523,1,827,
77472820,16,0,309,1,
7748223,2821,16,0,309,
77491,476,1543,1,477,
77501549,1,1231,2822,16,
77510,309,1,479,1559,
77521,480,1564,1,1485,
77532823,16,0,309,1,
77541737,2824,16,0,309,
77551,242,1578,1,478,
77561583,1,1001,1588,1,
77571002,1593,1,36,2825,
775819,216,1,36,2826,
77595,94,1,256,2827,
776016,0,214,1,1261,
77612828,16,0,214,1,
7762509,2829,16,0,214,
77631,1515,2830,16,0,
7764214,1,2021,718,1,
77651775,2831,16,0,214,
77661,2029,725,1,2030,
7767731,1,2031,736,1,
77682032,741,1,2033,746,
77691,277,2832,16,0,
7770214,1,2035,752,1,
77712037,757,1,2039,762,
77721,32,2833,16,0,
7773214,1,2041,768,1,
77742293,2834,16,0,214,
77751,2043,774,1,2045,
7776779,1,41,2835,16,
77770,214,1,1297,2836,
777816,0,214,1,43,
77792837,16,0,214,1,
77801803,787,1,1804,2838,
778116,0,214,1,299,
77822839,16,0,214,1,
778352,2840,16,0,214,
77841,2318,2841,16,0,
7785214,1,2075,2842,16,
77860,214,1,1574,799,
77871,71,2843,16,0,
7788214,1,76,2844,16,
77890,214,1,1834,2845,
779016,0,214,1,2337,
77912846,16,0,214,1,
779279,2847,16,0,214,
77931,1335,2848,16,0,
7794214,1,322,2849,16,
77950,214,1,85,2850,
779616,0,214,1,89,
77972851,16,0,214,1,
7798346,2852,16,0,214,
77991,2105,814,1,2106,
78002853,16,0,214,1,
780197,2854,16,0,214,
78021,1860,821,1,2364,
7803827,1,102,2855,16,
78040,214,1,112,2856,
780516,0,214,1,1117,
78062857,16,0,214,1,
78071873,835,1,1876,2858,
780816,0,214,1,124,
78092859,16,0,214,1,
78102136,842,1,381,2860,
781116,0,214,1,525,
78122861,16,0,214,1,
7813137,2862,16,0,214,
78141,1901,2863,16,0,
7815214,1,2658,2864,16,
78160,214,1,1153,2865,
781716,0,214,1,151,
78182866,16,0,214,1,
78191407,2867,16,0,214,
78201,1659,2868,16,0,
7821214,1,2413,2869,16,
78220,214,1,406,2870,
782316,0,214,1,1371,
78242871,16,0,214,1,
7825166,2872,16,0,214,
78261,1622,2873,16,0,
7827214,1,1931,861,1,
78281933,2874,16,0,214,
78291,431,2875,16,0,
7830214,1,1585,2876,16,
78310,214,1,182,2877,
783216,0,214,1,1189,
78332878,16,0,214,1,
78341443,2879,16,0,214,
78351,1695,2880,16,0,
7836214,1,2198,2881,16,
78370,214,1,447,2882,
783816,0,214,1,2458,
7839876,1,2459,882,1,
78401958,2883,16,0,214,
78411,2462,889,1,1657,
7842894,1,2464,899,1,
7843199,2884,16,0,214,
78441,459,2885,16,0,
7845214,1,462,2886,16,
78460,214,1,217,2887,
784716,0,214,1,2227,
7848908,1,1225,2888,16,
78490,214,1,1479,2889,
785016,0,214,1,1731,
78512890,16,0,214,1,
78521989,916,1,1990,2891,
785316,0,214,1,236,
78542892,16,0,214,1,
78551756,2893,16,0,214,
78561,37,2894,19,233,
78571,37,2895,5,94,
78581,256,2896,16,0,
7859231,1,1261,2897,16,
78600,231,1,509,2898,
786116,0,231,1,1515,
78622899,16,0,231,1,
78632021,718,1,1775,2900,
786416,0,231,1,2029,
7865725,1,2030,731,1,
78662031,736,1,2032,741,
78671,2033,746,1,277,
78682901,16,0,231,1,
78692035,752,1,2037,757,
78701,2039,762,1,32,
78712902,16,0,231,1,
78722041,768,1,2293,2903,
787316,0,231,1,2043,
7874774,1,2045,779,1,
787541,2904,16,0,231,
78761,1297,2905,16,0,
7877231,1,43,2906,16,
78780,231,1,1803,787,
78791,1804,2907,16,0,
7880231,1,299,2908,16,
78810,231,1,52,2909,
788216,0,231,1,2318,
78832910,16,0,231,1,
78842075,2911,16,0,231,
78851,1574,799,1,71,
78862912,16,0,231,1,
788776,2913,16,0,231,
78881,1834,2914,16,0,
7889231,1,2337,2915,16,
78900,231,1,79,2916,
789116,0,231,1,1335,
78922917,16,0,231,1,
7893322,2918,16,0,231,
78941,85,2919,16,0,
7895231,1,89,2920,16,
78960,231,1,346,2921,
789716,0,231,1,2105,
7898814,1,2106,2922,16,
78990,231,1,97,2923,
790016,0,231,1,1860,
7901821,1,2364,827,1,
7902102,2924,16,0,231,
79031,112,2925,16,0,
7904231,1,1117,2926,16,
79050,231,1,1873,835,
79061,1876,2927,16,0,
7907231,1,124,2928,16,
79080,231,1,2136,842,
79091,381,2929,16,0,
7910231,1,525,2930,16,
79110,231,1,137,2931,
791216,0,231,1,1901,
79132932,16,0,231,1,
79142658,2933,16,0,231,
79151,1153,2934,16,0,
7916231,1,151,2935,16,
79170,231,1,1407,2936,
791816,0,231,1,1659,
79192937,16,0,231,1,
79202413,2938,16,0,231,
79211,406,2939,16,0,
7922231,1,1371,2940,16,
79230,231,1,166,2941,
792416,0,231,1,1622,
79252942,16,0,231,1,
79261931,861,1,1933,2943,
792716,0,231,1,431,
79282944,16,0,231,1,
79291585,2945,16,0,231,
79301,182,2946,16,0,
7931231,1,1189,2947,16,
79320,231,1,1443,2948,
793316,0,231,1,1695,
79342949,16,0,231,1,
79352198,2950,16,0,231,
79361,447,2951,16,0,
7937231,1,2458,876,1,
79382459,882,1,1958,2952,
793916,0,231,1,2462,
7940889,1,1657,894,1,
79412464,899,1,199,2953,
794216,0,231,1,459,
79432954,16,0,231,1,
7944462,2955,16,0,231,
79451,217,2956,16,0,
7946231,1,2227,908,1,
79471225,2957,16,0,231,
79481,1479,2958,16,0,
7949231,1,1731,2959,16,
79500,231,1,1989,916,
79511,1990,2960,16,0,
7952231,1,236,2961,16,
79530,231,1,1756,2962,
795416,0,231,1,38,
79552963,19,230,1,38,
79562964,5,84,1,1011,
79571102,1,1012,2965,16,
79580,228,1,1013,1258,
79591,262,1119,1,1267,
79602966,16,0,228,1,
7961515,2967,16,0,228,
79621,1521,2968,16,0,
7963228,1,525,1216,1,
7964283,1172,1,2299,2969,
796516,0,228,1,42,
79662970,16,0,228,1,
796740,1177,1,44,1183,
79681,47,1184,1,1303,
79692971,16,0,228,1,
79701555,2972,16,0,228,
79711,50,1201,1,48,
79721190,1,49,1196,1,
797351,1206,1,63,1222,
79741,305,1211,1,66,
79751228,1,67,1233,1,
797668,1238,1,69,1243,
79771,70,1248,1,73,
79782973,16,0,228,1,
797974,1253,1,328,1302,
79801,1048,1344,1,82,
79812974,16,0,228,1,
79821840,2975,16,0,228,
79831,1591,2976,16,0,
7984228,1,1341,2977,16,
79850,228,1,1096,1312,
79861,93,1318,1,352,
79871349,1,107,2978,16,
79880,228,1,1114,1343,
79891,118,1355,1,1123,
79902979,16,0,228,1,
7991371,1365,1,1628,2980,
799216,0,228,1,375,
79931376,1,1882,2981,16,
79940,228,1,377,1381,
79951,379,1386,1,380,
79961391,1,883,1397,1,
7997373,1409,1,130,1414,
79981,143,1419,1,387,
79992982,16,0,228,1,
80002664,2983,16,0,228,
80011,1159,2984,16,0,
8002228,1,157,1443,1,
80031413,2985,16,0,228,
80041,1665,2986,16,0,
8005228,1,412,2987,16,
80060,228,1,1377,2988,
800716,0,228,1,172,
80081469,1,1939,2989,16,
80090,228,1,437,2990,
801016,0,228,1,188,
80111518,1,942,1490,1,
80121195,2991,16,0,228,
80131,1449,2992,16,0,
8014228,1,1701,2993,16,
80150,228,1,447,1511,
80161,205,1523,1,827,
80171331,1,223,1533,1,
8018476,1543,1,477,1549,
80191,1231,2994,16,0,
8020228,1,479,1559,1,
8021480,1564,1,1485,2995,
802216,0,228,1,1737,
80232996,16,0,228,1,
8024242,1578,1,478,1583,
80251,1001,1588,1,1002,
80261593,1,39,2997,19,
8027222,1,39,2998,5,
802884,1,1011,1102,1,
80291012,2999,16,0,220,
80301,1013,1258,1,262,
80311119,1,1267,3000,16,
80320,220,1,515,3001,
803316,0,220,1,1521,
80343002,16,0,220,1,
8035525,1216,1,283,1172,
80361,2299,3003,16,0,
8037220,1,42,3004,16,
80380,220,1,40,1177,
80391,44,1183,1,47,
80401184,1,1303,3005,16,
80410,220,1,1555,3006,
804216,0,220,1,50,
80431201,1,48,1190,1,
804449,1196,1,51,1206,
80451,63,1222,1,305,
80461211,1,66,1228,1,
804767,1233,1,68,1238,
80481,69,1243,1,70,
80491248,1,73,3007,16,
80500,220,1,74,1253,
80511,328,1302,1,1048,
80521344,1,82,3008,16,
80530,220,1,1840,3009,
805416,0,220,1,1591,
80553010,16,0,220,1,
80561341,3011,16,0,220,
80571,1096,1312,1,93,
80581318,1,352,1349,1,
8059107,3012,16,0,220,
80601,1114,1343,1,118,
80611355,1,1123,3013,16,
80620,220,1,371,1365,
80631,1628,3014,16,0,
8064220,1,375,1376,1,
80651882,3015,16,0,220,
80661,377,1381,1,379,
80671386,1,380,1391,1,
8068883,1397,1,373,1409,
80691,130,1414,1,143,
80701419,1,387,3016,16,
80710,220,1,2664,3017,
807216,0,220,1,1159,
80733018,16,0,220,1,
8074157,1443,1,1413,3019,
807516,0,220,1,1665,
80763020,16,0,220,1,
8077412,3021,16,0,220,
80781,1377,3022,16,0,
8079220,1,172,1469,1,
80801939,3023,16,0,220,
80811,437,3024,16,0,
8082220,1,188,1518,1,
8083942,1490,1,1195,3025,
808416,0,220,1,1449,
80853026,16,0,220,1,
80861701,3027,16,0,220,
80871,447,1511,1,205,
80881523,1,827,1331,1,
8089223,1533,1,476,1543,
80901,477,1549,1,1231,
80913028,16,0,220,1,
8092479,1559,1,480,1564,
80931,1485,3029,16,0,
8094220,1,1737,3030,16,
80950,220,1,242,1578,
80961,478,1583,1,1001,
80971588,1,1002,1593,1,
809840,3031,19,210,1,
809940,3032,5,84,1,
81001011,1102,1,1012,3033,
810116,0,208,1,1013,
81021258,1,262,1119,1,
81031267,3034,16,0,208,
81041,515,3035,16,0,
8105208,1,1521,3036,16,
81060,208,1,525,1216,
81071,283,1172,1,2299,
81083037,16,0,208,1,
810942,3038,16,0,208,
81101,40,1177,1,44,
81111183,1,47,1184,1,
81121303,3039,16,0,208,
81131,1555,3040,16,0,
8114208,1,50,1201,1,
811548,1190,1,49,1196,
81161,51,1206,1,63,
81171222,1,305,1211,1,
811866,1228,1,67,1233,
81191,68,1238,1,69,
81201243,1,70,1248,1,
812173,3041,16,0,208,
81221,74,1253,1,328,
81231302,1,1048,1344,1,
812482,3042,16,0,208,
81251,1840,3043,16,0,
8126208,1,1591,3044,16,
81270,208,1,1341,3045,
812816,0,208,1,1096,
81291312,1,93,1318,1,
8130352,1349,1,107,3046,
813116,0,208,1,1114,
81321343,1,118,3047,16,
81330,208,1,1123,3048,
813416,0,208,1,371,
81351365,1,1628,3049,16,
81360,208,1,375,1376,
81371,1882,3050,16,0,
8138208,1,377,1381,1,
8139379,1386,1,380,1391,
81401,883,3051,16,0,
8141208,1,373,1409,1,
8142130,3052,16,0,208,
81431,143,3053,16,0,
8144208,1,387,3054,16,
81450,208,1,2664,3055,
814616,0,208,1,1159,
81473056,16,0,208,1,
8148157,3057,16,0,208,
81491,1413,3058,16,0,
8150208,1,1665,3059,16,
81510,208,1,412,3060,
815216,0,208,1,1377,
81533061,16,0,208,1,
8154172,3062,16,0,208,
81551,1939,3063,16,0,
8156208,1,437,3064,16,
81570,208,1,188,3065,
815816,0,208,1,942,
81591490,1,1195,3066,16,
81600,208,1,1449,3067,
816116,0,208,1,1701,
81623068,16,0,208,1,
8163447,1511,1,205,3069,
816416,0,208,1,827,
81653070,16,0,208,1,
8166223,3071,16,0,208,
81671,476,1543,1,477,
81681549,1,1231,3072,16,
81690,208,1,479,1559,
81701,480,1564,1,1485,
81713073,16,0,208,1,
81721737,3074,16,0,208,
81731,242,3075,16,0,
8174208,1,478,1583,1,
81751001,1588,1,1002,1593,
81761,41,3076,19,172,
81771,41,3077,5,84,
81781,1011,1102,1,1012,
81793078,16,0,170,1,
81801013,1258,1,262,1119,
81811,1267,3079,16,0,
8182170,1,515,3080,16,
81830,170,1,1521,3081,
818416,0,170,1,525,
81851216,1,283,1172,1,
81862299,3082,16,0,170,
81871,42,3083,16,0,
8188170,1,40,1177,1,
818944,1183,1,47,1184,
81901,1303,3084,16,0,
8191170,1,1555,3085,16,
81920,170,1,50,1201,
81931,48,1190,1,49,
81941196,1,51,1206,1,
819563,1222,1,305,1211,
81961,66,1228,1,67,
81971233,1,68,1238,1,
819869,1243,1,70,1248,
81991,73,3086,16,0,
8200170,1,74,1253,1,
8201328,1302,1,1048,1344,
82021,82,3087,16,0,
8203170,1,1840,3088,16,
82040,170,1,1591,3089,
820516,0,170,1,1341,
82063090,16,0,170,1,
82071096,1312,1,93,1318,
82081,352,1349,1,107,
82093091,16,0,170,1,
82101114,1343,1,118,3092,
821116,0,170,1,1123,
82123093,16,0,170,1,
8213371,1365,1,1628,3094,
821416,0,170,1,375,
82151376,1,1882,3095,16,
82160,170,1,377,1381,
82171,379,1386,1,380,
82181391,1,883,3096,16,
82190,170,1,373,1409,
82201,130,3097,16,0,
8221170,1,143,3098,16,
82220,170,1,387,3099,
822316,0,170,1,2664,
82243100,16,0,170,1,
82251159,3101,16,0,170,
82261,157,3102,16,0,
8227170,1,1413,3103,16,
82280,170,1,1665,3104,
822916,0,170,1,412,
82303105,16,0,170,1,
82311377,3106,16,0,170,
82321,172,3107,16,0,
8233170,1,1939,3108,16,
82340,170,1,437,3109,
823516,0,170,1,188,
82363110,16,0,170,1,
8237942,1490,1,1195,3111,
823816,0,170,1,1449,
82393112,16,0,170,1,
82401701,3113,16,0,170,
82411,447,1511,1,205,
82423114,16,0,170,1,
8243827,3115,16,0,170,
82441,223,3116,16,0,
8245170,1,476,1543,1,
8246477,1549,1,1231,3117,
824716,0,170,1,479,
82481559,1,480,1564,1,
82491485,3118,16,0,170,
82501,1737,3119,16,0,
8251170,1,242,3120,16,
82520,170,1,478,1583,
82531,1001,1588,1,1002,
82541593,1,42,3121,19,
8255394,1,42,3122,5,
825638,1,1901,3123,16,
82570,392,1,2075,3124,
825816,0,392,1,1860,
8259821,1,1803,787,1,
82601804,3125,16,0,392,
82611,2413,3126,16,0,
8262392,1,2198,3127,16,
82630,392,1,1873,835,
82641,1657,894,1,1989,
8265916,1,1990,3128,16,
82660,392,1,1775,3129,
826716,0,392,1,32,
82683130,16,0,392,1,
82692105,814,1,2106,3131,
827016,0,392,1,2364,
8271827,1,2227,908,1,
82722337,3132,16,0,392,
82731,2021,718,1,2458,
8274876,1,2459,882,1,
82752462,889,1,2136,842,
82761,2464,899,1,2029,
8277725,1,2030,731,1,
82782031,736,1,2032,741,
82791,2033,746,1,2035,
8280752,1,2037,757,1,
82812039,762,1,1931,861,
82821,2041,768,1,2043,
8283774,1,2045,779,1,
82841574,799,1,1958,3133,
828516,0,392,1,43,
82863134,19,453,1,43,
82873135,5,25,1,2035,
8288752,1,2037,757,1,
82892039,762,1,2041,768,
82901,2227,908,1,2043,
8291774,1,1657,894,1,
82921860,821,1,2136,842,
82931,2021,718,1,2459,
8294882,1,1574,799,1,
82952105,3136,16,0,578,
82961,1931,861,1,1873,
8297835,1,2031,736,1,
82981803,787,1,1989,3137,
829916,0,451,1,2464,
8300899,1,2029,725,1,
83012030,731,1,2364,827,
83021,2032,741,1,2033,
8303746,1,2045,779,1,
830444,3138,19,264,1,
830544,3139,5,38,1,
83061901,3140,16,0,262,
83071,2075,3141,16,0,
8308262,1,1860,821,1,
83091803,787,1,1804,3142,
831016,0,262,1,2413,
83113143,16,0,262,1,
83122198,3144,16,0,262,
83131,1873,835,1,1657,
8314894,1,1989,916,1,
83151990,3145,16,0,262,
83161,1775,3146,16,0,
8317262,1,32,3147,16,
83180,262,1,2105,814,
83191,2106,3148,16,0,
8320262,1,2364,827,1,
83212227,908,1,2337,3149,
832216,0,262,1,2021,
8323718,1,2458,876,1,
83242459,882,1,2462,889,
83251,2136,842,1,2464,
8326899,1,2029,725,1,
83272030,731,1,2031,736,
83281,2032,741,1,2033,
8329746,1,2035,752,1,
83302037,757,1,2039,762,
83311,1931,861,1,2041,
8332768,1,2043,774,1,
83332045,779,1,1574,799,
83341,1958,3150,16,0,
8335262,1,45,3151,19,
8336287,1,45,3152,5,
833739,1,1901,3153,16,
83380,315,1,2075,3154,
833916,0,315,1,1860,
8340821,1,1803,787,1,
83411804,3155,16,0,315,
83421,2413,3156,16,0,
8343315,1,2198,3157,16,
83440,315,1,1873,835,
83451,1657,894,1,1989,
8346916,1,1990,3158,16,
83470,315,1,1775,3159,
834816,0,315,1,32,
83493160,16,0,315,1,
83502105,814,1,2106,3161,
835116,0,315,1,2364,
8352827,1,2227,908,1,
83532337,3162,16,0,315,
83541,2021,718,1,2458,
8355876,1,2459,882,1,
83562462,889,1,2136,842,
83571,2464,899,1,2029,
8358725,1,2030,731,1,
83592031,736,1,2032,741,
83601,2033,746,1,2035,
8361752,1,2037,757,1,
83622039,762,1,1931,861,
83631,2041,768,1,2043,
8364774,1,2045,779,1,
83651832,3163,16,0,285,
83661,1574,799,1,1958,
83673164,16,0,315,1,
836846,3165,19,671,1,
836946,3166,5,38,1,
83701901,3167,16,0,669,
83711,2075,3168,16,0,
8372669,1,1860,821,1,
83731803,787,1,1804,3169,
837416,0,669,1,2413,
83753170,16,0,669,1,
83762198,3171,16,0,669,
83771,1873,835,1,1657,
8378894,1,1989,916,1,
83791990,3172,16,0,669,
83801,1775,3173,16,0,
8381669,1,32,3174,16,
83820,669,1,2105,814,
83831,2106,3175,16,0,
8384669,1,2364,827,1,
83852227,908,1,2337,3176,
838616,0,669,1,2021,
8387718,1,2458,876,1,
83882459,882,1,2462,889,
83891,2136,842,1,2464,
8390899,1,2029,725,1,
83912030,731,1,2031,736,
83921,2032,741,1,2033,
8393746,1,2035,752,1,
83942037,757,1,2039,762,
83951,1931,861,1,2041,
8396768,1,2043,774,1,
83972045,779,1,1574,799,
83981,1958,3177,16,0,
8399669,1,47,3178,19,
8400466,1,47,3179,5,
840119,1,0,3180,16,
84020,464,1,2706,3181,
840316,0,464,1,2634,
8404691,1,2636,3182,16,
84050,464,1,2639,707,
84061,2714,3183,17,3184,
840715,3185,4,36,37,
84080,71,0,108,0,
8409111,0,98,0,97,
84100,108,0,68,0,
8411101,0,102,0,105,
84120,110,0,105,0,
8413116,0,105,0,111, 7686116,0,105,0,111,
84140,110,0,115,0, 76870,110,0,76,0,
84151,-1,1,5,3186, 7688105,0,115,0,116,
841620,3187,4,38,71, 76890,95,0,49,0,
84170,108,0,111,0, 76901,208,1,3,1,
841898,0,97,0,108, 76912,1,1,2309,22,
76921,43,1,305,1338,
76931,1514,1233,1,525,
76941343,1,61,2310,16,
76950,217,1,2572,2311,
769616,0,689,1,63,
76971349,1,66,1355,1,
769867,1360,1,68,1365,
76991,69,1370,1,70,
77001375,1,2582,1936,1,
770173,2312,16,0,227,
77021,827,1457,1,1013,
77031385,1,2335,2313,16,
77040,263,1,1332,1390,
77051,74,1380,1,2591,
77062314,16,0,710,1,
770782,1407,1,2513,1886,
77081,1341,1424,1,2517,
77092315,17,2316,15,2317,
77104,66,37,0,75,
77110,101,0,121,0,
771273,0,110,0,116,
77130,73,0,110,0,
7714116,0,65,0,114,
77150,103,0,117,0,
7716109,0,101,0,110,
77170,116,0,68,0,
7718101,0,99,0,108,
77190,97,0,114,0,
772097,0,116,0,105,
77210,111,0,110,0,
772276,0,105,0,115,
77230,116,0,1,-1,
77241,5,2318,20,2319,
77254,68,75,0,101,
77260,121,0,73,0,
7727110,0,116,0,73,
77280,110,0,116,0,
772965,0,114,0,103,
77300,117,0,109,0,
7731101,0,110,0,116,
77320,68,0,101,0,
773399,0,108,0,97,
77340,114,0,97,0,
7735116,0,105,0,111,
77360,110,0,76,0,
7737105,0,115,0,116,
77380,95,0,49,0,
77391,212,1,3,1,
77406,1,5,2320,22,
77411,47,1,328,1429,
77421,1303,1434,1,1096,
77431439,1,93,1445,1,
77441550,1450,1,2281,1279,
77451,2770,1925,1,352,
77461475,1,2779,2321,16,
77470,797,1,107,1464,
77481,1114,1469,1,1048,
77491470,1,1871,2322,16,
77500,353,1,1370,1578,
77511,1478,1583,1,118,
77521481,1,1123,1486,1,
7753371,1491,1,1377,1497,
77541,375,1502,1,1882,
77552323,16,0,373,1,
7756377,1507,1,2556,2324,
775716,0,661,1,379,
77581512,1,380,1517,1,
7759130,1540,1,2074,2325,
776016,0,652,1,373,
77611535,1,2564,2326,16,
77620,554,1,1011,1227,
77631,1012,2327,16,0,
7764718,1,1840,2328,16,
77650,343,1,143,1545,
77661,1152,1551,1,2577,
77672329,16,0,696,1,
77681406,1556,1,1159,1563,
77691,157,1568,1,1413,
77701573,1,883,1523,1,
77711094,2330,16,0,787,
77721,1296,1294,1,172,
77731595,1,1665,1600,1,
77741939,2331,16,0,494,
77751,1188,1605,1,1442,
77761610,1,188,1644,1,
7777942,1616,1,1195,1622,
77781,1449,1627,1,1701,
77791632,1,447,1637,1,
7780205,1649,1,2467,1942,
77811,464,1948,1,2197,
77822332,16,0,782,1,
77831224,1654,1,223,1659,
77841,1730,1664,1,2571,
77852333,17,2334,15,2335,
77864,54,37,0,75,
77870,101,0,121,0,
778865,0,114,0,103,
77890,117,0,109,0,
7790101,0,110,0,116,
77910,68,0,101,0,
779299,0,108,0,97,
77930,114,0,97,0,
7794116,0,105,0,111,
77950,110,0,76,0,
7796105,0,115,0,116,
77970,1,-1,1,5,
77982336,20,2337,4,56,
779975,0,101,0,121,
78000,65,0,114,0,
7801103,0,117,0,109,
78020,101,0,110,0,
7803116,0,68,0,101,
78040,99,0,108,0,
780597,0,114,0,97,
78060,116,0,105,0,
7807111,0,110,0,76,
78080,105,0,115,0,
7809116,0,95,0,49,
78100,1,207,1,3,
78111,2,1,1,2338,
781222,1,42,1,477,
78131675,1,1231,1680,1,
7814479,1685,1,480,1690,
78151,1485,1696,1,459,
78161953,1,476,1669,1,
7817242,1703,1,478,1708,
78181,481,1955,1,1001,
78191713,1,1002,1718,1,
78202509,1960,1,18,2339,
782119,574,1,18,2340,
78225,84,1,1011,1227,
78231,1012,2341,16,0,
7824572,1,1013,1385,1,
7825262,1244,1,1267,2342,
782616,0,572,1,515,
78272343,16,0,572,1,
78281521,2344,16,0,572,
78291,525,1343,1,2792,
78302345,16,0,572,1,
7831283,1299,1,2299,2346,
783216,0,572,1,42,
78332347,16,0,572,1,
783440,1304,1,44,1310,
78351,47,1311,1,1303,
78362348,16,0,572,1,
78371555,2349,16,0,572,
78381,50,1328,1,48,
78391317,1,49,1323,1,
784051,1333,1,63,1349,
78411,305,1338,1,66,
78421355,1,67,1360,1,
784368,1365,1,69,1370,
78441,70,1375,1,73,
78452350,16,0,572,1,
784674,1380,1,328,1429,
78471,1048,2351,16,0,
7848572,1,82,2352,16,
78490,572,1,1840,2353,
785016,0,572,1,1591,
78512354,16,0,572,1,
78521341,2355,16,0,572,
78531,1096,1439,1,93,
78541445,1,352,1475,1,
7855107,2356,16,0,572,
78561,1114,1469,1,118,
78572357,16,0,572,1,
78581123,2358,16,0,572,
78591,371,1491,1,1628,
78602359,16,0,572,1,
7861375,1502,1,1882,2360,
786216,0,572,1,377,
78631507,1,379,1512,1,
7864380,1517,1,883,2361,
786516,0,572,1,373,
78661535,1,130,2362,16,
78670,572,1,143,2363,
786816,0,572,1,387,
78692364,16,0,572,1,
78701159,2365,16,0,572,
78711,157,2366,16,0,
7872572,1,1413,2367,16,
78730,572,1,1665,2368,
787416,0,572,1,412,
78752369,16,0,572,1,
78761377,2370,16,0,572,
78771,172,2371,16,0,
7878572,1,1939,2372,16,
78790,572,1,437,2373,
788016,0,572,1,188,
78812374,16,0,572,1,
7882942,2375,16,0,572,
78831,1195,2376,16,0,
7884572,1,1449,2377,16,
78850,572,1,1701,2378,
788616,0,572,1,447,
78871637,1,205,2379,16,
78880,572,1,827,2380,
788916,0,572,1,223,
78902381,16,0,572,1,
7891476,1669,1,477,1675,
78921,1231,2382,16,0,
7893572,1,479,1685,1,
7894480,1690,1,1485,2383,
789516,0,572,1,1737,
78962384,16,0,572,1,
7897242,2385,16,0,572,
78981,478,1708,1,1001,
78991713,1,1002,1718,1,
790019,2386,19,251,1,
790119,2387,5,176,1,
7902942,2388,16,0,537,
79031,256,2389,16,0,
7904249,1,1261,2390,16,
79050,249,1,1011,1227,
79061,1012,2391,16,0,
7907537,1,2458,1001,1,
7908262,1244,1,1267,2392,
790916,0,537,1,2021,
7910843,1,1521,2393,16,
79110,537,1,1775,2394,
791216,0,249,1,2029,
7913850,1,2030,856,1,
79142031,861,1,2032,866,
79151,2786,2395,16,0,
7916249,1,277,2396,16,
79170,249,1,2035,877,
79181,2037,882,1,2792,
79192397,16,0,537,1,
792032,2398,16,0,249,
79211,2464,1024,1,2293,
79222399,16,0,249,1,
79232043,899,1,2045,904,
79241,2299,2400,16,0,
7925537,1,41,2401,16,
79260,249,1,42,2402,
792716,0,537,1,40,
79281304,1,44,1310,1,
792943,2403,16,0,249,
79301,1804,2404,16,0,
7931249,1,48,1317,1,
793249,1323,1,47,1311,
79331,51,1333,1,52,
79342405,16,0,249,1,
793550,1328,1,305,1338,
79361,1096,1439,1,1515,
79372406,16,0,249,1,
79382318,2407,16,0,249,
79391,283,1299,1,63,
79401349,1,66,1355,1,
794167,1360,1,68,1365,
79421,69,1370,1,70,
79431375,1,71,2408,16,
79440,249,1,73,2409,
794516,0,537,1,74,
79461380,1,1013,1385,1,
794776,2410,16,0,249,
79481,1834,2411,16,0,
7949249,1,2337,2412,16,
79500,249,1,79,2413,
795116,0,249,1,1335,
79522414,16,0,249,1,
7953299,2415,16,0,249,
79541,82,2416,16,0,
7955537,1,1840,2417,16,
79560,537,1,1297,2418,
795716,0,249,1,85,
79582419,16,0,249,1,
79591341,2420,16,0,537,
79601,89,2421,16,0,
7961249,1,1303,2422,16,
79620,537,1,509,2423,
796316,0,249,1,93,
79641445,1,322,2424,16,
79650,249,1,2039,887,
79661,97,2425,16,0,
7967249,1,2041,893,1,
79681555,2426,16,0,537,
79691,827,2427,16,0,
7970537,1,102,2428,16,
79710,249,1,1860,946,
79721,1803,912,1,2364,
7973952,1,107,2429,16,
79740,537,1,1114,1469,
79751,112,2430,16,0,
7976249,1,1117,2431,16,
79770,249,1,352,1475,
79781,1873,961,1,118,
79792432,16,0,537,1,
79801123,2433,16,0,537,
79811,371,1491,1,515,
79822434,16,0,537,1,
79831377,2435,16,0,537,
79841,124,2436,16,0,
7985249,1,1882,2437,16,
79860,537,1,377,1507,
79871,379,1512,1,380,
79881517,1,130,2438,16,
79890,537,1,346,2439,
799016,0,249,1,2075,
79912440,16,0,249,1,
7992373,1535,1,387,2441,
799316,0,537,1,137,
79942442,16,0,249,1,
7995143,2443,16,0,537,
79961,1901,2444,16,0,
7997249,1,1048,2445,16,
79980,537,1,1153,2446,
799916,0,249,1,375,
80001502,1,151,2447,16,
80010,249,1,1407,2448,
800216,0,249,1,1659,
80032449,16,0,249,1,
80042413,2450,16,0,249,
80051,1159,2451,16,0,
8006537,1,381,2452,16,
80070,249,1,157,2453,
800816,0,537,1,1413,
80092454,16,0,537,1,
8010883,2455,16,0,537,
80111,1371,2456,16,0,
8012249,1,328,1429,1,
80132105,939,1,2106,2457,
801416,0,249,1,166,
80152458,16,0,249,1,
8016525,2459,16,0,249,
80171,1622,2460,16,0,
8018249,1,406,2461,16,
80190,249,1,1574,924,
80201,172,2462,16,0,
8021537,1,1931,986,1,
8022412,2463,16,0,537,
80231,1933,2464,16,0,
8024249,1,1876,2465,16,
80250,249,1,431,2466,
802616,0,249,1,1585,
80272467,16,0,249,1,
8028182,2468,16,0,249,
80291,1628,2469,16,0,
8030537,1,1189,2470,16,
80310,249,1,437,2471,
803216,0,537,1,1591,
80332472,16,0,537,1,
8034188,2473,16,0,537,
80351,1695,2474,16,0,
8036249,1,2198,2475,16,
80370,249,1,1195,2476,
803816,0,537,1,1449,
80392477,16,0,537,1,
80401701,2478,16,0,537,
80411,447,2479,16,0,
8042249,1,199,2480,16,
80430,249,1,2459,1007,
80441,1958,2481,16,0,
8045249,1,2462,1014,1,
80461657,1019,1,205,2482,
804716,0,537,1,459,
80482483,16,0,249,1,
8049462,2484,16,0,249,
80501,1665,2485,16,0,
8051537,1,217,2486,16,
80520,249,1,2227,1033,
80531,2033,871,1,1225,
80542487,16,0,249,1,
8055223,2488,16,0,537,
80561,1479,2489,16,0,
8057249,1,1731,2490,16,
80580,249,1,477,1675,
80591,1231,2491,16,0,
8060537,1,479,1685,1,
8061480,1690,1,1485,2492,
806216,0,537,1,1737,
80632493,16,0,537,1,
80641989,1041,1,1990,2494,
806516,0,249,1,1443,
80662495,16,0,249,1,
8067236,2496,16,0,249,
80681,2136,968,1,476,
80691669,1,242,2497,16,
80700,537,1,478,1708,
80711,1939,2498,16,0,
8072537,1,1001,1713,1,
80731002,1718,1,1756,2499,
807416,0,249,1,20,
80752500,19,510,1,20,
80762501,5,84,1,1011,
80771227,1,1012,2502,16,
80780,508,1,1013,1385,
80791,262,1244,1,1267,
80802503,16,0,508,1,
8081515,2504,16,0,508,
80821,1521,2505,16,0,
8083508,1,525,1343,1,
80842792,2506,16,0,508,
80851,283,1299,1,2299,
80862507,16,0,508,1,
808742,2508,16,0,508,
80881,40,1304,1,44,
80891310,1,47,1311,1,
80901303,2509,16,0,508,
80911,1555,2510,16,0,
8092508,1,50,1328,1,
809348,1317,1,49,1323,
80941,51,1333,1,63,
80951349,1,305,1338,1,
809666,1355,1,67,1360,
80971,68,1365,1,69,
80981370,1,70,1375,1,
809973,2511,16,0,508,
81001,74,1380,1,328,
81012512,16,0,508,1,
81021048,2513,16,0,508,
81031,82,2514,16,0,
8104508,1,1840,2515,16,
81050,508,1,1591,2516,
810616,0,508,1,1341,
81072517,16,0,508,1,
81081096,1439,1,93,1445,
81091,352,2518,16,0,
8110508,1,107,2519,16,
81110,508,1,1114,1469,
81121,118,2520,16,0,
8113508,1,1123,2521,16,
81140,508,1,371,1491,
81151,1628,2522,16,0,
8116508,1,375,1502,1,
81171882,2523,16,0,508,
81181,377,1507,1,379,
81191512,1,380,1517,1,
8120883,2524,16,0,508,
81211,373,1535,1,130,
81222525,16,0,508,1,
8123143,2526,16,0,508,
81241,387,2527,16,0,
8125508,1,1159,2528,16,
81260,508,1,157,2529,
812716,0,508,1,1413,
81282530,16,0,508,1,
81291665,2531,16,0,508,
81301,412,2532,16,0,
8131508,1,1377,2533,16,
81320,508,1,172,2534,
813316,0,508,1,1939,
81342535,16,0,508,1,
8135437,2536,16,0,508,
81361,188,2537,16,0,
8137508,1,942,2538,16,
81380,508,1,1195,2539,
813916,0,508,1,1449,
81402540,16,0,508,1,
81411701,2541,16,0,508,
81421,447,1637,1,205,
81432542,16,0,508,1,
8144827,2543,16,0,508,
81451,223,2544,16,0,
8146508,1,476,1669,1,
8147477,1675,1,1231,2545,
814816,0,508,1,479,
81491685,1,480,1690,1,
81501485,2546,16,0,508,
81511,1737,2547,16,0,
8152508,1,242,2548,16,
81530,508,1,478,1708,
81541,1001,1713,1,1002,
81551718,1,21,2549,19,
8156478,1,21,2550,5,
815784,1,1011,1227,1,
81581012,2551,16,0,476,
81591,1013,1385,1,262,
81601244,1,1267,2552,16,
81610,476,1,515,2553,
816216,0,476,1,1521,
81632554,16,0,476,1,
8164525,1343,1,2792,2555,
816516,0,476,1,283,
81661299,1,2299,2556,16,
81670,476,1,42,2557,
816816,0,476,1,40,
81691304,1,44,1310,1,
817047,1311,1,1303,2558,
817116,0,476,1,1555,
81722559,16,0,476,1,
817350,1328,1,48,1317,
81741,49,1323,1,51,
81751333,1,63,1349,1,
8176305,1338,1,66,1355,
81771,67,1360,1,68,
81781365,1,69,1370,1,
817970,1375,1,73,2560,
818016,0,476,1,74,
81811380,1,328,2561,16,
81820,476,1,1048,2562,
818316,0,476,1,82,
81842563,16,0,476,1,
81851840,2564,16,0,476,
81861,1591,2565,16,0,
8187476,1,1341,2566,16,
81880,476,1,1096,1439,
81891,93,1445,1,352,
81902567,16,0,476,1,
8191107,2568,16,0,476,
81921,1114,1469,1,118,
81932569,16,0,476,1,
81941123,2570,16,0,476,
81951,371,1491,1,1628,
81962571,16,0,476,1,
8197375,1502,1,1882,2572,
819816,0,476,1,377,
81991507,1,379,1512,1,
8200380,1517,1,883,2573,
820116,0,476,1,373,
82021535,1,130,2574,16,
82030,476,1,143,2575,
820416,0,476,1,387,
82052576,16,0,476,1,
82061159,2577,16,0,476,
82071,157,2578,16,0,
8208476,1,1413,2579,16,
82090,476,1,1665,2580,
821016,0,476,1,412,
82112581,16,0,476,1,
82121377,2582,16,0,476,
82131,172,2583,16,0,
8214476,1,1939,2584,16,
82150,476,1,437,2585,
821616,0,476,1,188,
82172586,16,0,476,1,
8218942,2587,16,0,476,
82191,1195,2588,16,0,
8220476,1,1449,2589,16,
82210,476,1,1701,2590,
822216,0,476,1,447,
82231637,1,205,2591,16,
82240,476,1,827,2592,
822516,0,476,1,223,
82262593,16,0,476,1,
8227476,1669,1,477,1675,
82281,1231,2594,16,0,
8229476,1,479,1685,1,
8230480,1690,1,1485,2595,
823116,0,476,1,1737,
82322596,16,0,476,1,
8233242,2597,16,0,476,
82341,478,1708,1,1001,
82351713,1,1002,1718,1,
823622,2598,19,429,1,
823722,2599,5,84,1,
82381011,1227,1,1012,2600,
823916,0,427,1,1013,
82401385,1,262,1244,1,
82411267,2601,16,0,427,
82421,515,2602,16,0,
8243427,1,1521,2603,16,
82440,427,1,525,1343,
82451,2792,2604,16,0,
8246427,1,283,1299,1,
82472299,2605,16,0,427,
82481,42,2606,16,0,
8249427,1,40,1304,1,
825044,1310,1,47,1311,
82511,1303,2607,16,0,
8252427,1,1555,2608,16,
82530,427,1,50,1328,
82541,48,1317,1,49,
82551323,1,51,1333,1,
825663,1349,1,305,1338,
82571,66,1355,1,67,
82581360,1,68,1365,1,
825969,1370,1,70,1375,
82601,73,2609,16,0,
8261427,1,74,1380,1,
8262328,2610,16,0,427,
82631,1048,2611,16,0,
8264427,1,82,2612,16,
82650,427,1,1840,2613,
826616,0,427,1,1591,
82672614,16,0,427,1,
82681341,2615,16,0,427,
82691,1096,1439,1,93,
82701445,1,352,2616,16,
82710,427,1,107,2617,
827216,0,427,1,1114,
82731469,1,118,2618,16,
82740,427,1,1123,2619,
827516,0,427,1,371,
82761491,1,1628,2620,16,
82770,427,1,375,1502,
82781,1882,2621,16,0,
8279427,1,377,1507,1,
8280379,1512,1,380,1517,
82811,883,2622,16,0,
8282427,1,373,1535,1,
8283130,2623,16,0,427,
82841,143,2624,16,0,
8285427,1,387,2625,16,
82860,427,1,1159,2626,
828716,0,427,1,157,
82882627,16,0,427,1,
82891413,2628,16,0,427,
82901,1665,2629,16,0,
8291427,1,412,2630,16,
82920,427,1,1377,2631,
829316,0,427,1,172,
82942632,16,0,427,1,
82951939,2633,16,0,427,
82961,437,2634,16,0,
8297427,1,188,2635,16,
82980,427,1,942,2636,
829916,0,427,1,1195,
83002637,16,0,427,1,
83011449,2638,16,0,427,
83021,1701,2639,16,0,
8303427,1,447,1637,1,
8304205,2640,16,0,427,
83051,827,2641,16,0,
8306427,1,223,2642,16,
83070,427,1,476,1669,
83081,477,1675,1,1231,
83092643,16,0,427,1,
8310479,1685,1,480,1690,
83111,1485,2644,16,0,
8312427,1,1737,2645,16,
83130,427,1,242,2646,
831416,0,427,1,478,
83151708,1,1001,1713,1,
83161002,1718,1,23,2647,
831719,590,1,23,2648,
83185,38,1,1901,2649,
831916,0,588,1,2075,
83202650,16,0,588,1,
83211860,946,1,1803,912,
83221,1804,2651,16,0,
8323588,1,2413,2652,16,
83240,588,1,2198,2653,
832516,0,588,1,1873,
8326961,1,1657,1019,1,
83271989,1041,1,1990,2654,
832816,0,588,1,1775,
83292655,16,0,588,1,
833032,2656,16,0,588,
83311,2105,939,1,2106,
83322657,16,0,588,1,
83332364,952,1,2227,1033,
83341,2337,2658,16,0,
8335588,1,2021,843,1,
83362458,1001,1,2459,1007,
83371,2462,1014,1,2136,
8338968,1,2464,1024,1,
83392029,850,1,2030,856,
83401,2031,861,1,2032,
8341866,1,2033,871,1,
83422035,877,1,2037,882,
83431,2039,887,1,1931,
8344986,1,2041,893,1,
83452043,899,1,2045,904,
83461,1574,924,1,1958,
83472659,16,0,588,1,
834824,2660,19,193,1,
834924,2661,5,5,1,
835044,2662,16,0,191,
83511,377,2663,16,0,
8352626,1,40,2664,16,
83530,799,1,63,2665,
835416,0,219,1,373,
83552666,16,0,622,1,
835625,2667,19,329,1,
835725,2668,5,177,1,
8358942,1616,1,256,2669,
835916,0,631,1,1261,
83602670,16,0,631,1,
83611011,1227,1,1012,2671,
836216,0,327,1,2458,
83631001,1,262,1244,1,
83641267,2672,16,0,327,
83651,2021,843,1,1521,
83662673,16,0,327,1,
83671775,2674,16,0,631,
83681,2029,850,1,2030,
8369856,1,2031,861,1,
83702032,866,1,2786,2675,
837116,0,631,1,277,
83722676,16,0,631,1,
83732035,877,1,2037,882,
83741,2792,2677,16,0,
8375327,1,32,2678,16,
83760,631,1,2464,1024,
83771,2293,2679,16,0,
8378631,1,2043,899,1,
83792045,904,1,2299,2680,
838016,0,327,1,41,
83812681,16,0,631,1,
838242,2682,16,0,327,
83831,40,1304,1,44,
83841310,1,43,2683,16,
83850,631,1,1804,2684,
838616,0,631,1,48,
83871317,1,49,1323,1,
838847,1311,1,51,1333,
83891,52,2685,16,0,
8390631,1,50,1328,1,
8391305,1338,1,1096,1439,
83921,1515,2686,16,0,
8393631,1,2318,2687,16,
83940,631,1,62,2688,
839516,0,631,1,63,
83961349,1,66,1355,1,
839767,1360,1,68,1365,
83981,69,1370,1,70,
83991375,1,71,2689,16,
84000,631,1,283,1299,
84011,73,2690,16,0,
8402327,1,74,1380,1,
84031013,1385,1,76,2691,
840416,0,631,1,1834,
84052692,16,0,631,1,
84062337,2693,16,0,631,
84071,79,2694,16,0,
8408631,1,1335,2695,16,
84090,631,1,299,2696,
841016,0,631,1,82,
84112697,16,0,327,1,
84121840,2698,16,0,327,
84131,1297,2699,16,0,
8414631,1,85,2700,16,
84150,631,1,1341,2701,
841616,0,327,1,89,
84172702,16,0,631,1,
84181303,2703,16,0,327,
84191,509,2704,16,0,
8420631,1,93,1445,1,
8421322,2705,16,0,631,
84221,2039,887,1,97,
84232706,16,0,631,1,
84242041,893,1,1555,2707,
842516,0,327,1,827,
84262708,16,0,327,1,
8427102,2709,16,0,631,
84281,1860,946,1,1803,
8429912,1,2364,952,1,
8430107,2710,16,0,327,
84311,1114,1469,1,112,
84322711,16,0,631,1,
84331117,2712,16,0,631,
84341,352,1475,1,1873,
8435961,1,118,1481,1,
84361123,2713,16,0,327,
84371,371,1491,1,515,
84382714,16,0,327,1,
84391377,2715,16,0,327,
84401,124,2716,16,0,
8441631,1,1882,2717,16,
84420,327,1,377,1507,
84431,379,1512,1,380,
84441517,1,130,1540,1,
8445346,2718,16,0,631,
84461,2075,2719,16,0,
8447631,1,373,1535,1,
8448387,2720,16,0,327,
84491,137,2721,16,0,
8450631,1,143,2722,16,
84510,327,1,1901,2723,
845216,0,631,1,1048,
84531470,1,1153,2724,16,
84540,631,1,375,1502,
84551,151,2725,16,0,
8456631,1,1407,2726,16,
84570,631,1,1659,2727,
845816,0,631,1,2413,
84592728,16,0,631,1,
84601159,2729,16,0,327,
84611,381,2730,16,0,
8462631,1,157,2731,16,
84630,327,1,1413,2732,
846416,0,327,1,883,
84652733,16,0,327,1,
84661371,2734,16,0,631,
84671,328,1429,1,2105,
8468939,1,2106,2735,16,
84690,631,1,166,2736,
847016,0,631,1,525,
84712737,16,0,631,1,
84721622,2738,16,0,631,
84731,406,2739,16,0,
8474631,1,1574,924,1,
8475172,1595,1,1931,986,
84761,412,2740,16,0,
8477327,1,1933,2741,16,
84780,631,1,1876,2742,
847916,0,631,1,431,
84802743,16,0,631,1,
84811585,2744,16,0,631,
84821,182,2745,16,0,
8483631,1,1628,2746,16,
84840,327,1,1189,2747,
848516,0,631,1,437,
84862748,16,0,327,1,
84871591,2749,16,0,327,
84881,188,1644,1,1695,
84892750,16,0,631,1,
84902198,2751,16,0,631,
84911,1195,2752,16,0,
8492327,1,1449,2753,16,
84930,327,1,1701,2754,
849416,0,327,1,447,
84952755,16,0,631,1,
8496199,2756,16,0,631,
84971,2459,1007,1,1958,
84982757,16,0,631,1,
84992462,1014,1,1657,1019,
85001,205,2758,16,0,
8501327,1,459,2759,16,
85020,631,1,462,2760,
850316,0,631,1,1665,
85042761,16,0,327,1,
8505217,2762,16,0,631,
85061,2227,1033,1,2033,
8507871,1,1225,2763,16,
85080,631,1,223,2764,
850916,0,327,1,1479,
85102765,16,0,631,1,
85111731,2766,16,0,631,
85121,477,1675,1,1231,
85132767,16,0,327,1,
8514479,1685,1,480,1690,
85151,1485,2768,16,0,
8516327,1,1737,2769,16,
85170,327,1,1989,1041,
85181,1990,2770,16,0,
8519631,1,1443,2771,16,
85200,631,1,236,2772,
852116,0,631,1,2136,
8522968,1,476,1669,1,
8523242,2773,16,0,327,
85241,478,1708,1,1939,
85252774,16,0,327,1,
85261001,1713,1,1002,1718,
85271,1756,2775,16,0,
8528631,1,26,2776,19,
8529348,1,26,2777,5,
853084,1,1011,1227,1,
85311012,2778,16,0,346,
85321,1013,1385,1,262,
85331244,1,1267,2779,16,
85340,346,1,515,2780,
853516,0,780,1,1521,
85362781,16,0,346,1,
8537525,1343,1,2792,2782,
853816,0,346,1,283,
85391299,1,2299,2783,16,
85400,346,1,42,2784,
854116,0,346,1,40,
85421304,1,44,1310,1,
854347,1311,1,1303,2785,
854416,0,346,1,1555,
85452786,16,0,346,1,
854650,1328,1,48,1317,
85471,49,1323,1,51,
85481333,1,63,1349,1,
8549305,1338,1,66,1355,
85501,67,1360,1,68,
85511365,1,69,1370,1,
855270,1375,1,73,2787,
855316,0,346,1,74,
85541380,1,328,1429,1,
85551048,1470,1,82,2788,
855616,0,346,1,1840,
85572789,16,0,346,1,
85581591,2790,16,0,346,
85591,1341,2791,16,0,
8560346,1,1096,1439,1,
856193,1445,1,352,1475,
85621,107,2792,16,0,
8563346,1,1114,1469,1,
8564118,1481,1,1123,2793,
856516,0,346,1,371,
85661491,1,1628,2794,16,
85670,346,1,375,1502,
85681,1882,2795,16,0,
8569346,1,377,1507,1,
8570379,1512,1,380,1517,
85711,883,2796,16,0,
8572346,1,373,1535,1,
8573130,1540,1,143,2797,
857416,0,346,1,387,
85752798,16,0,346,1,
85761159,2799,16,0,346,
85771,157,2800,16,0,
8578346,1,1413,2801,16,
85790,346,1,1665,2802,
858016,0,346,1,412,
85812803,16,0,346,1,
85821377,2804,16,0,346,
85831,172,1595,1,1939,
85842805,16,0,346,1,
8585437,2806,16,0,709,
85861,188,1644,1,942,
85871616,1,1195,2807,16,
85880,346,1,1449,2808,
858916,0,346,1,1701,
85902809,16,0,346,1,
8591447,1637,1,205,2810,
859216,0,346,1,827,
85932811,16,0,346,1,
8594223,2812,16,0,346,
85951,476,1669,1,477,
85961675,1,1231,2813,16,
85970,346,1,479,1685,
85981,480,1690,1,1485,
85992814,16,0,346,1,
86001737,2815,16,0,346,
86011,242,2816,16,0,
8602346,1,478,1708,1,
86031001,1713,1,1002,1718,
86041,27,2817,19,721,
86051,27,2818,5,95,
86061,256,2819,16,0,
8607719,1,1261,2820,16,
86080,719,1,509,2821,
860916,0,719,1,1515,
86102822,16,0,719,1,
86112021,843,1,1775,2823,
861216,0,719,1,2029,
8613850,1,2030,856,1,
86142031,861,1,2032,866,
86151,2033,871,1,277,
86162824,16,0,719,1,
86172035,877,1,2037,882,
86181,2039,887,1,32,
86192825,16,0,719,1,
86202041,893,1,2293,2826,
862116,0,719,1,2043,
8622899,1,2045,904,1,
862341,2827,16,0,719,
86241,1297,2828,16,0,
8625719,1,43,2829,16,
86260,719,1,1803,912,
86271,1804,2830,16,0,
8628719,1,299,2831,16,
86290,719,1,52,2832,
863016,0,719,1,2318,
86312833,16,0,719,1,
863262,2834,16,0,719,
86331,2075,2835,16,0,
8634719,1,1574,924,1,
863571,2836,16,0,719,
86361,76,2837,16,0,
8637719,1,1834,2838,16,
86380,719,1,2337,2839,
863916,0,719,1,79,
86402840,16,0,719,1,
86411335,2841,16,0,719,
86421,322,2842,16,0,
8643719,1,85,2843,16,
86440,719,1,89,2844,
864516,0,719,1,346,
86462845,16,0,719,1,
86472105,939,1,2106,2846,
864816,0,719,1,97,
86492847,16,0,719,1,
86501860,946,1,2364,952,
86511,102,2848,16,0,
8652719,1,112,2849,16,
86530,719,1,1117,2850,
865416,0,719,1,2786,
86552851,16,0,719,1,
86561873,961,1,1876,2852,
865716,0,719,1,124,
86582853,16,0,719,1,
86592136,968,1,381,2854,
866016,0,719,1,525,
86612855,16,0,719,1,
8662137,2856,16,0,719,
86631,1901,2857,16,0,
8664719,1,1153,2858,16,
86650,719,1,151,2859,
866616,0,719,1,1407,
86672860,16,0,719,1,
86681659,2861,16,0,719,
86691,2413,2862,16,0,
8670719,1,406,2863,16,
86710,719,1,1371,2864,
867216,0,719,1,166,
86732865,16,0,719,1,
86741622,2866,16,0,719,
86751,1931,986,1,1933,
86762867,16,0,719,1,
8677431,2868,16,0,719,
86781,1585,2869,16,0,
8679719,1,182,2870,16,
86800,719,1,1189,2871,
868116,0,719,1,1443,
86822872,16,0,719,1,
86831695,2873,16,0,719,
86841,2198,2874,16,0,
8685719,1,447,2875,16,
86860,719,1,2458,1001,
86871,2459,1007,1,1958,
86882876,16,0,719,1,
86892462,1014,1,1657,1019,
86901,2464,1024,1,199,
86912877,16,0,719,1,
8692459,2878,16,0,719,
86931,462,2879,16,0,
8694719,1,217,2880,16,
86950,719,1,2227,1033,
86961,1225,2881,16,0,
8697719,1,1479,2882,16,
86980,719,1,1731,2883,
869916,0,719,1,1989,
87001041,1,1990,2884,16,
87010,719,1,236,2885,
870216,0,719,1,1756,
87032886,16,0,719,1,
870428,2887,19,749,1,
870528,2888,5,60,1,
8706328,1429,1,223,1659,
87071,1096,1439,1,118,
87081481,1,883,1523,1,
8709525,1343,1,1001,1713,
87101,130,1540,1,459,
87111953,1,1114,1469,1,
8712352,1475,1,447,1637,
87131,464,1948,1,1011,
87141227,1,1013,1385,1,
8715242,1703,1,143,1545,
87161,40,1304,1,41,
87171913,1,42,1917,1,
8718479,1685,1,44,1310,
87191,481,1955,1,373,
87201535,1,47,1311,1,
8721157,1568,1,49,1323,
87221,50,1328,1,48,
87231317,1,379,1512,1,
8724380,1517,1,51,1333,
87251,476,1669,1,371,
87261491,1,478,1708,1,
87271048,1470,1,375,1502,
87281,172,1595,1,262,
87291244,1,283,1299,1,
873063,1349,1,67,1360,
87311,68,1365,1,69,
87321370,1,66,1355,1,
8733461,2889,16,0,747,
87341,74,1380,1,377,
87351507,1,1002,1718,1,
873670,1375,1,188,1644,
87371,82,1407,1,305,
87381338,1,477,1675,1,
8739827,1457,1,93,1445,
87401,480,1690,1,205,
87411649,1,942,1616,1,
8742107,1464,1,29,2890,
874319,315,1,29,2891,
87445,84,1,1011,1227,
87451,1012,2892,16,0,
8746313,1,1013,1385,1,
8747262,1244,1,1267,2893,
874816,0,313,1,515,
87492894,16,0,313,1,
87501521,2895,16,0,313,
87511,525,1343,1,2792,
87522896,16,0,313,1,
8753283,1299,1,2299,2897,
875416,0,313,1,42,
87552898,16,0,313,1,
875640,1304,1,44,1310,
87571,47,1311,1,1303,
87582899,16,0,313,1,
87591555,2900,16,0,313,
87601,50,1328,1,48,
87611317,1,49,1323,1,
876251,1333,1,63,1349,
87631,305,1338,1,66,
87641355,1,67,1360,1,
876568,1365,1,69,1370,
87661,70,1375,1,73,
87672901,16,0,313,1,
876874,1380,1,328,1429,
87691,1048,1470,1,82,
87702902,16,0,313,1,
87711840,2903,16,0,313,
87721,1591,2904,16,0,
8773313,1,1341,2905,16,
87740,313,1,1096,1439,
87751,93,1445,1,352,
87761475,1,107,2906,16,
87770,313,1,1114,1469,
87781,118,1481,1,1123,
87792907,16,0,313,1,
8780371,1491,1,1628,2908,
878116,0,313,1,375,
87821502,1,1882,2909,16,
87830,313,1,377,1507,
87841,379,1512,1,380,
87851517,1,883,2910,16,
87860,313,1,373,1535,
87871,130,1540,1,143,
87881545,1,387,2911,16,
87890,313,1,1159,2912,
879016,0,313,1,157,
87911568,1,1413,2913,16,
87920,313,1,1665,2914,
879316,0,313,1,412,
87942915,16,0,313,1,
87951377,2916,16,0,313,
87961,172,1595,1,1939,
87972917,16,0,313,1,
8798437,2918,16,0,313,
87991,188,1644,1,942,
88001616,1,1195,2919,16,
88010,313,1,1449,2920,
880216,0,313,1,1701,
88032921,16,0,313,1,
8804447,1637,1,205,2922,
880516,0,313,1,827,
88062923,16,0,313,1,
8807223,2924,16,0,313,
88081,476,1669,1,477,
88091675,1,1231,2925,16,
88100,313,1,479,1685,
88111,480,1690,1,1485,
88122926,16,0,313,1,
88131737,2927,16,0,313,
88141,242,2928,16,0,
8815313,1,478,1708,1,
88161001,1713,1,1002,1718,
88171,30,2929,19,297,
88181,30,2930,5,84,
88191,1011,1227,1,1012,
88202931,16,0,295,1,
88211013,1385,1,262,1244,
88221,1267,2932,16,0,
8823295,1,515,2933,16,
88240,295,1,1521,2934,
882516,0,295,1,525,
88261343,1,2792,2935,16,
88270,295,1,283,1299,
88281,2299,2936,16,0,
8829295,1,42,2937,16,
88300,295,1,40,1304,
88311,44,1310,1,47,
88321311,1,1303,2938,16,
88330,295,1,1555,2939,
883416,0,295,1,50,
88351328,1,48,1317,1,
883649,1323,1,51,1333,
88371,63,1349,1,305,
88381338,1,66,1355,1,
883967,1360,1,68,1365,
88401,69,1370,1,70,
88411375,1,73,2940,16,
88420,295,1,74,1380,
88431,328,1429,1,1048,
88441470,1,82,2941,16,
88450,295,1,1840,2942,
884616,0,295,1,1591,
88472943,16,0,295,1,
88481341,2944,16,0,295,
88491,1096,1439,1,93,
88501445,1,352,1475,1,
8851107,2945,16,0,295,
88521,1114,1469,1,118,
88531481,1,1123,2946,16,
88540,295,1,371,1491,
88551,1628,2947,16,0,
8856295,1,375,1502,1,
88571882,2948,16,0,295,
88581,377,1507,1,379,
88591512,1,380,1517,1,
8860883,2949,16,0,295,
88611,373,1535,1,130,
88621540,1,143,1545,1,
8863387,2950,16,0,295,
88641,1159,2951,16,0,
8865295,1,157,1568,1,
88661413,2952,16,0,295,
88671,1665,2953,16,0,
8868295,1,412,2954,16,
88690,295,1,1377,2955,
887016,0,295,1,172,
88711595,1,1939,2956,16,
88720,295,1,437,2957,
887316,0,295,1,188,
88741644,1,942,1616,1,
88751195,2958,16,0,295,
88761,1449,2959,16,0,
8877295,1,1701,2960,16,
88780,295,1,447,1637,
88791,205,2961,16,0,
8880295,1,827,2962,16,
88810,295,1,223,2963,
888216,0,295,1,476,
88831669,1,477,1675,1,
88841231,2964,16,0,295,
88851,479,1685,1,480,
88861690,1,1485,2965,16,
88870,295,1,1737,2966,
888816,0,295,1,242,
88892967,16,0,295,1,
8890478,1708,1,1001,1713,
88911,1002,1718,1,31,
88922968,19,277,1,31,
88932969,5,84,1,1011,
88941227,1,1012,2970,16,
88950,275,1,1013,1385,
88961,262,1244,1,1267,
88972971,16,0,275,1,
8898515,2972,16,0,275,
88991,1521,2973,16,0,
8900275,1,525,1343,1,
89012792,2974,16,0,275,
89021,283,1299,1,2299,
89032975,16,0,275,1,
890442,2976,16,0,275,
89051,40,1304,1,44,
89061310,1,47,1311,1,
89071303,2977,16,0,275,
89081,1555,2978,16,0,
8909275,1,50,1328,1,
891048,1317,1,49,1323,
89111,51,1333,1,63,
89121349,1,305,1338,1,
891366,1355,1,67,1360,
89141,68,1365,1,69,
89151370,1,70,1375,1,
891673,2979,16,0,275,
89171,74,1380,1,328,
89181429,1,1048,1470,1,
891982,2980,16,0,275,
89201,1840,2981,16,0,
8921275,1,1591,2982,16,
89220,275,1,1341,2983,
892316,0,275,1,1096,
89241439,1,93,1445,1,
8925352,1475,1,107,2984,
892616,0,275,1,1114,
89271469,1,118,1481,1,
89281123,2985,16,0,275,
89291,371,1491,1,1628,
89302986,16,0,275,1,
8931375,1502,1,1882,2987,
893216,0,275,1,377,
89331507,1,379,1512,1,
8934380,1517,1,883,2988,
893516,0,275,1,373,
89361535,1,130,1540,1,
8937143,2989,16,0,275,
89381,387,2990,16,0,
8939275,1,1159,2991,16,
89400,275,1,157,2992,
894116,0,275,1,1413,
89422993,16,0,275,1,
89431665,2994,16,0,275,
89441,412,2995,16,0,
8945275,1,1377,2996,16,
89460,275,1,172,1595,
89471,1939,2997,16,0,
8948275,1,437,2998,16,
89490,275,1,188,1644,
89501,942,1616,1,1195,
89512999,16,0,275,1,
89521449,3000,16,0,275,
89531,1701,3001,16,0,
8954275,1,447,1637,1,
8955205,3002,16,0,275,
89561,827,3003,16,0,
8957275,1,223,3004,16,
89580,275,1,476,1669,
89591,477,1675,1,1231,
89603005,16,0,275,1,
8961479,1685,1,480,1690,
89621,1485,3006,16,0,
8963275,1,1737,3007,16,
89640,275,1,242,3008,
896516,0,275,1,478,
89661708,1,1001,1713,1,
89671002,1718,1,32,3009,
896819,270,1,32,3010,
89695,84,1,1011,1227,
89701,1012,3011,16,0,
8971268,1,1013,1385,1,
8972262,1244,1,1267,3012,
897316,0,268,1,515,
89743013,16,0,268,1,
89751521,3014,16,0,268,
89761,525,1343,1,2792,
89773015,16,0,268,1,
8978283,1299,1,2299,3016,
897916,0,268,1,42,
89803017,16,0,268,1,
898140,1304,1,44,1310,
89821,47,1311,1,1303,
89833018,16,0,268,1,
89841555,3019,16,0,268,
89851,50,1328,1,48,
89861317,1,49,1323,1,
898751,1333,1,63,1349,
89881,305,1338,1,66,
89891355,1,67,1360,1,
899068,1365,1,69,1370,
89911,70,1375,1,73,
89923020,16,0,268,1,
899374,1380,1,328,1429,
89941,1048,1470,1,82,
89953021,16,0,268,1,
89961840,3022,16,0,268,
89971,1591,3023,16,0,
8998268,1,1341,3024,16,
89990,268,1,1096,1439,
90001,93,1445,1,352,
90011475,1,107,3025,16,
90020,268,1,1114,1469,
90031,118,1481,1,1123,
90043026,16,0,268,1,
9005371,1491,1,1628,3027,
900616,0,268,1,375,
90071502,1,1882,3028,16,
90080,268,1,377,1507,
90091,379,1512,1,380,
90101517,1,883,3029,16,
90110,268,1,373,1535,
90121,130,1540,1,143,
90133030,16,0,268,1,
9014387,3031,16,0,268,
90151,1159,3032,16,0,
9016268,1,157,3033,16,
90170,268,1,1413,3034,
901816,0,268,1,1665,
90193035,16,0,268,1,
9020412,3036,16,0,268,
90211,1377,3037,16,0,
9022268,1,172,1595,1,
90231939,3038,16,0,268,
90241,437,3039,16,0,
9025268,1,188,1644,1,
9026942,1616,1,1195,3040,
902716,0,268,1,1449,
90283041,16,0,268,1,
90291701,3042,16,0,268,
90301,447,1637,1,205,
90313043,16,0,268,1,
9032827,3044,16,0,268,
90331,223,3045,16,0,
9034268,1,476,1669,1,
9035477,1675,1,1231,3046,
903616,0,268,1,479,
90371685,1,480,1690,1,
90381485,3047,16,0,268,
90391,1737,3048,16,0,
9040268,1,242,3049,16,
90410,268,1,478,1708,
90421,1001,1713,1,1002,
90431718,1,33,3050,19,
9044378,1,33,3051,5,
904584,1,1011,1227,1,
90461012,3052,16,0,376,
90471,1013,1385,1,262,
90481244,1,1267,3053,16,
90490,376,1,515,3054,
905016,0,376,1,1521,
90513055,16,0,376,1,
9052525,1343,1,2792,3056,
905316,0,376,1,283,
90541299,1,2299,3057,16,
90550,376,1,42,3058,
905616,0,376,1,40,
90571304,1,44,1310,1,
905847,1311,1,1303,3059,
905916,0,376,1,1555,
90603060,16,0,376,1,
906150,1328,1,48,1317,
90621,49,1323,1,51,
90631333,1,63,1349,1,
9064305,1338,1,66,1355,
90651,67,1360,1,68,
90661365,1,69,1370,1,
906770,1375,1,73,3061,
906816,0,376,1,74,
90691380,1,328,1429,1,
90701048,1470,1,82,3062,
907116,0,376,1,1840,
90723063,16,0,376,1,
90731591,3064,16,0,376,
90741,1341,3065,16,0,
9075376,1,1096,1439,1,
907693,1445,1,352,1475,
90771,107,3066,16,0,
9078376,1,1114,1469,1,
9079118,1481,1,1123,3067,
908016,0,376,1,371,
90811491,1,1628,3068,16,
90820,376,1,375,1502,
90831,1882,3069,16,0,
9084376,1,377,1507,1,
9085379,1512,1,380,1517,
90861,883,3070,16,0,
9087376,1,373,1535,1,
9088130,1540,1,143,1545,
90891,387,3071,16,0,
9090376,1,1159,3072,16,
90910,376,1,157,1568,
90921,1413,3073,16,0,
9093376,1,1665,3074,16,
90940,376,1,412,3075,
909516,0,376,1,1377,
90963076,16,0,376,1,
9097172,1595,1,1939,3077,
909816,0,376,1,437,
90993078,16,0,376,1,
9100188,1644,1,942,1616,
91011,1195,3079,16,0,
9102376,1,1449,3080,16,
91030,376,1,1701,3081,
910416,0,376,1,447,
91051637,1,205,3082,16,
91060,376,1,827,3083,
910716,0,376,1,223,
91083084,16,0,376,1,
9109476,1669,1,477,1675,
91101,1231,3085,16,0,
9111376,1,479,1685,1,
9112480,1690,1,1485,3086,
911316,0,376,1,1737,
91143087,16,0,376,1,
9115242,1703,1,478,1708,
91161,1001,1713,1,1002,
91171718,1,34,3088,19,
9118365,1,34,3089,5,
911984,1,1011,1227,1,
91201012,3090,16,0,363,
91211,1013,1385,1,262,
91221244,1,1267,3091,16,
91230,363,1,515,3092,
912416,0,363,1,1521,
91253093,16,0,363,1,
9126525,1343,1,2792,3094,
912716,0,363,1,283,
91281299,1,2299,3095,16,
91290,363,1,42,3096,
913016,0,363,1,40,
91311304,1,44,1310,1,
913247,1311,1,1303,3097,
913316,0,363,1,1555,
91343098,16,0,363,1,
913550,1328,1,48,1317,
91361,49,1323,1,51,
91371333,1,63,1349,1,
9138305,1338,1,66,1355,
91391,67,1360,1,68,
91401365,1,69,1370,1,
914170,1375,1,73,3099,
914216,0,363,1,74,
91431380,1,328,1429,1,
91441048,1470,1,82,3100,
914516,0,363,1,1840,
91463101,16,0,363,1,
91471591,3102,16,0,363,
91481,1341,3103,16,0,
9149363,1,1096,1439,1,
915093,1445,1,352,1475,
91511,107,3104,16,0,
9152363,1,1114,1469,1,
9153118,1481,1,1123,3105,
915416,0,363,1,371,
91551491,1,1628,3106,16,
91560,363,1,375,1502,
91571,1882,3107,16,0,
9158363,1,377,1507,1,
9159379,1512,1,380,1517,
91601,883,3108,16,0,
9161363,1,373,1535,1,
9162130,1540,1,143,1545,
91631,387,3109,16,0,
9164363,1,1159,3110,16,
91650,363,1,157,1568,
91661,1413,3111,16,0,
9167363,1,1665,3112,16,
91680,363,1,412,3113,
916916,0,363,1,1377,
91703114,16,0,363,1,
9171172,1595,1,1939,3115,
917216,0,363,1,437,
91733116,16,0,363,1,
9174188,1644,1,942,1616,
91751,1195,3117,16,0,
9176363,1,1449,3118,16,
91770,363,1,1701,3119,
917816,0,363,1,447,
91791637,1,205,1649,1,
9180827,3120,16,0,363,
91811,223,1659,1,476,
91821669,1,477,1675,1,
91831231,3121,16,0,363,
91841,479,1685,1,480,
91851690,1,1485,3122,16,
91860,363,1,1737,3123,
918716,0,363,1,242,
91881703,1,478,1708,1,
91891001,1713,1,1002,1718,
91901,35,3124,19,351,
91911,35,3125,5,84,
91921,1011,1227,1,1012,
91933126,16,0,349,1,
91941013,1385,1,262,1244,
91951,1267,3127,16,0,
9196349,1,515,3128,16,
91970,349,1,1521,3129,
919816,0,349,1,525,
91991343,1,2792,3130,16,
92000,349,1,283,1299,
92011,2299,3131,16,0,
9202349,1,42,3132,16,
92030,349,1,40,1304,
92041,44,1310,1,47,
92051311,1,1303,3133,16,
92060,349,1,1555,3134,
920716,0,349,1,50,
92081328,1,48,1317,1,
920949,1323,1,51,1333,
92101,63,1349,1,305,
92111338,1,66,1355,1,
921267,1360,1,68,1365,
92131,69,1370,1,70,
92141375,1,73,3135,16,
92150,349,1,74,1380,
92161,328,1429,1,1048,
92171470,1,82,3136,16,
92180,349,1,1840,3137,
921916,0,349,1,1591,
92203138,16,0,349,1,
92211341,3139,16,0,349,
92221,1096,1439,1,93,
92231445,1,352,1475,1,
9224107,3140,16,0,349,
92251,1114,1469,1,118,
92261481,1,1123,3141,16,
92270,349,1,371,1491,
92281,1628,3142,16,0,
9229349,1,375,1502,1,
92301882,3143,16,0,349,
92311,377,1507,1,379,
92321512,1,380,1517,1,
9233883,3144,16,0,349,
92341,373,1535,1,130,
92351540,1,143,1545,1,
9236387,3145,16,0,349,
92371,1159,3146,16,0,
9238349,1,157,1568,1,
92391413,3147,16,0,349,
92401,1665,3148,16,0,
9241349,1,412,3149,16,
92420,349,1,1377,3150,
924316,0,349,1,172,
92441595,1,1939,3151,16,
92450,349,1,437,3152,
924616,0,349,1,188,
92471644,1,942,1616,1,
92481195,3153,16,0,349,
92491,1449,3154,16,0,
9250349,1,1701,3155,16,
92510,349,1,447,1637,
92521,205,1649,1,827,
92533156,16,0,349,1,
9254223,3157,16,0,349,
92551,476,1669,1,477,
92561675,1,1231,3158,16,
92570,349,1,479,1685,
92581,480,1690,1,1485,
92593159,16,0,349,1,
92601737,3160,16,0,349,
92611,242,1703,1,478,
92621708,1,1001,1713,1,
92631002,1718,1,36,3161,
926419,239,1,36,3162,
92655,94,1,256,3163,
926616,0,237,1,1261,
92673164,16,0,237,1,
9268509,3165,16,0,237,
92691,1515,3166,16,0,
9270237,1,2021,843,1,
92711775,3167,16,0,237,
92721,2029,850,1,2030,
9273856,1,2031,861,1,
92742032,866,1,2033,871,
92751,277,3168,16,0,
9276237,1,2035,877,1,
92772037,882,1,2039,887,
92781,32,3169,16,0,
9279237,1,2041,893,1,
92802293,3170,16,0,237,
92811,2043,899,1,2045,
9282904,1,41,3171,16,
92830,237,1,1297,3172,
928416,0,237,1,43,
92853173,16,0,237,1,
92861803,912,1,1804,3174,
928716,0,237,1,299,
92883175,16,0,237,1,
928952,3176,16,0,237,
92901,2318,3177,16,0,
9291237,1,2075,3178,16,
92920,237,1,1574,924,
92931,71,3179,16,0,
9294237,1,76,3180,16,
92950,237,1,1834,3181,
929616,0,237,1,2337,
92973182,16,0,237,1,
929879,3183,16,0,237,
92991,1335,3184,16,0,
9300237,1,322,3185,16,
93010,237,1,85,3186,
930216,0,237,1,89,
93033187,16,0,237,1,
9304346,3188,16,0,237,
93051,2105,939,1,2106,
93063189,16,0,237,1,
930797,3190,16,0,237,
93081,1860,946,1,2364,
9309952,1,102,3191,16,
93100,237,1,112,3192,
931116,0,237,1,1117,
93123193,16,0,237,1,
93132786,3194,16,0,237,
93141,1873,961,1,1876,
93153195,16,0,237,1,
9316124,3196,16,0,237,
93171,2136,968,1,381,
93183197,16,0,237,1,
9319525,3198,16,0,237,
93201,137,3199,16,0,
9321237,1,1901,3200,16,
93220,237,1,1153,3201,
932316,0,237,1,151,
93243202,16,0,237,1,
93251407,3203,16,0,237,
93261,1659,3204,16,0,
9327237,1,2413,3205,16,
93280,237,1,406,3206,
932916,0,237,1,1371,
93303207,16,0,237,1,
9331166,3208,16,0,237,
93321,1622,3209,16,0,
9333237,1,1931,986,1,
93341933,3210,16,0,237,
93351,431,3211,16,0,
9336237,1,1585,3212,16,
93370,237,1,182,3213,
933816,0,237,1,1189,
93393214,16,0,237,1,
93401443,3215,16,0,237,
93411,1695,3216,16,0,
9342237,1,2198,3217,16,
93430,237,1,447,3218,
934416,0,237,1,2458,
93451001,1,2459,1007,1,
93461958,3219,16,0,237,
93471,2462,1014,1,1657,
93481019,1,2464,1024,1,
9349199,3220,16,0,237,
93501,459,3221,16,0,
9351237,1,462,3222,16,
93520,237,1,217,3223,
935316,0,237,1,2227,
93541033,1,1225,3224,16,
93550,237,1,1479,3225,
935616,0,237,1,1731,
93573226,16,0,237,1,
93581989,1041,1,1990,3227,
935916,0,237,1,236,
93603228,16,0,237,1,
93611756,3229,16,0,237,
93621,37,3230,19,260,
93631,37,3231,5,94,
93641,256,3232,16,0,
9365258,1,1261,3233,16,
93660,258,1,509,3234,
936716,0,258,1,1515,
93683235,16,0,258,1,
93692021,843,1,1775,3236,
937016,0,258,1,2029,
9371850,1,2030,856,1,
93722031,861,1,2032,866,
93731,2033,871,1,277,
93743237,16,0,258,1,
93752035,877,1,2037,882,
93761,2039,887,1,32,
93773238,16,0,258,1,
93782041,893,1,2293,3239,
937916,0,258,1,2043,
9380899,1,2045,904,1,
938141,3240,16,0,258,
93821,1297,3241,16,0,
9383258,1,43,3242,16,
93840,258,1,1803,912,
93851,1804,3243,16,0,
9386258,1,299,3244,16,
93870,258,1,52,3245,
938816,0,258,1,2318,
93893246,16,0,258,1,
93902075,3247,16,0,258,
93911,1574,924,1,71,
93923248,16,0,258,1,
939376,3249,16,0,258,
93941,1834,3250,16,0,
9395258,1,2337,3251,16,
93960,258,1,79,3252,
939716,0,258,1,1335,
93983253,16,0,258,1,
9399322,3254,16,0,258,
94001,85,3255,16,0,
9401258,1,89,3256,16,
94020,258,1,346,3257,
940316,0,258,1,2105,
9404939,1,2106,3258,16,
94050,258,1,97,3259,
940616,0,258,1,1860,
9407946,1,2364,952,1,
9408102,3260,16,0,258,
94091,112,3261,16,0,
9410258,1,1117,3262,16,
94110,258,1,2786,3263,
941216,0,258,1,1873,
9413961,1,1876,3264,16,
94140,258,1,124,3265,
941516,0,258,1,2136,
9416968,1,381,3266,16,
94170,258,1,525,3267,
941816,0,258,1,137,
94193268,16,0,258,1,
94201901,3269,16,0,258,
94211,1153,3270,16,0,
9422258,1,151,3271,16,
94230,258,1,1407,3272,
942416,0,258,1,1659,
94253273,16,0,258,1,
94262413,3274,16,0,258,
94271,406,3275,16,0,
9428258,1,1371,3276,16,
94290,258,1,166,3277,
943016,0,258,1,1622,
94313278,16,0,258,1,
94321931,986,1,1933,3279,
943316,0,258,1,431,
94343280,16,0,258,1,
94351585,3281,16,0,258,
94361,182,3282,16,0,
9437258,1,1189,3283,16,
94380,258,1,1443,3284,
943916,0,258,1,1695,
94403285,16,0,258,1,
94412198,3286,16,0,258,
94421,447,3287,16,0,
9443258,1,2458,1001,1,
94442459,1007,1,1958,3288,
944516,0,258,1,2462,
94461014,1,1657,1019,1,
94472464,1024,1,199,3289,
944816,0,258,1,459,
94493290,16,0,258,1,
9450462,3291,16,0,258,
94511,217,3292,16,0,
9452258,1,2227,1033,1,
94531225,3293,16,0,258,
94541,1479,3294,16,0,
9455258,1,1731,3295,16,
94560,258,1,1989,1041,
94571,1990,3296,16,0,
9458258,1,236,3297,16,
94590,258,1,1756,3298,
946016,0,258,1,38,
94613299,19,257,1,38,
94623300,5,84,1,1011,
94631227,1,1012,3301,16,
94640,255,1,1013,1385,
94651,262,1244,1,1267,
94663302,16,0,255,1,
9467515,3303,16,0,255,
94681,1521,3304,16,0,
9469255,1,525,1343,1,
94702792,3305,16,0,255,
94711,283,1299,1,2299,
94723306,16,0,255,1,
947342,3307,16,0,255,
94741,40,1304,1,44,
94751310,1,47,1311,1,
94761303,3308,16,0,255,
94771,1555,3309,16,0,
9478255,1,50,1328,1,
947948,1317,1,49,1323,
94801,51,1333,1,63,
94811349,1,305,1338,1,
948266,1355,1,67,1360,
94831,68,1365,1,69,
94841370,1,70,1375,1,
948573,3310,16,0,255,
94861,74,1380,1,328,
94871429,1,1048,1470,1,
948882,3311,16,0,255,
94891,1840,3312,16,0,
9490255,1,1591,3313,16,
94910,255,1,1341,3314,
949216,0,255,1,1096,
94931439,1,93,1445,1,
9494352,1475,1,107,3315,
949516,0,255,1,1114,
94961469,1,118,1481,1,
94971123,3316,16,0,255,
94981,371,1491,1,1628,
94993317,16,0,255,1,
9500375,1502,1,1882,3318,
950116,0,255,1,377,
95021507,1,379,1512,1,
9503380,1517,1,883,1523,
95041,373,1535,1,130,
95051540,1,143,1545,1,
9506387,3319,16,0,255,
95071,1159,3320,16,0,
9508255,1,157,1568,1,
95091413,3321,16,0,255,
95101,1665,3322,16,0,
9511255,1,412,3323,16,
95120,255,1,1377,3324,
951316,0,255,1,172,
95141595,1,1939,3325,16,
95150,255,1,437,3326,
951616,0,255,1,188,
95171644,1,942,1616,1,
95181195,3327,16,0,255,
95191,1449,3328,16,0,
9520255,1,1701,3329,16,
95210,255,1,447,1637,
95221,205,1649,1,827,
95231457,1,223,1659,1,
9524476,1669,1,477,1675,
95251,1231,3330,16,0,
9526255,1,479,1685,1,
9527480,1690,1,1485,3331,
952816,0,255,1,1737,
95293332,16,0,255,1,
9530242,1703,1,478,1708,
95311,1001,1713,1,1002,
95321718,1,39,3333,19,
9533245,1,39,3334,5,
953484,1,1011,1227,1,
95351012,3335,16,0,243,
95361,1013,1385,1,262,
95371244,1,1267,3336,16,
95380,243,1,515,3337,
953916,0,243,1,1521,
95403338,16,0,243,1,
9541525,1343,1,2792,3339,
954216,0,243,1,283,
95431299,1,2299,3340,16,
95440,243,1,42,3341,
954516,0,243,1,40,
95461304,1,44,1310,1,
954747,1311,1,1303,3342,
954816,0,243,1,1555,
95493343,16,0,243,1,
955050,1328,1,48,1317,
95511,49,1323,1,51,
95521333,1,63,1349,1,
9553305,1338,1,66,1355,
95541,67,1360,1,68,
95551365,1,69,1370,1,
955670,1375,1,73,3344,
955716,0,243,1,74,
95581380,1,328,1429,1,
95591048,1470,1,82,3345,
956016,0,243,1,1840,
95613346,16,0,243,1,
95621591,3347,16,0,243,
95631,1341,3348,16,0,
9564243,1,1096,1439,1,
956593,1445,1,352,1475,
95661,107,3349,16,0,
9567243,1,1114,1469,1,
9568118,1481,1,1123,3350,
956916,0,243,1,371,
95701491,1,1628,3351,16,
95710,243,1,375,1502,
95721,1882,3352,16,0,
9573243,1,377,1507,1,
9574379,1512,1,380,1517,
95751,883,1523,1,373,
95761535,1,130,1540,1,
9577143,1545,1,387,3353,
957816,0,243,1,1159,
95793354,16,0,243,1,
9580157,1568,1,1413,3355,
958116,0,243,1,1665,
95823356,16,0,243,1,
9583412,3357,16,0,243,
95841,1377,3358,16,0,
9585243,1,172,1595,1,
95861939,3359,16,0,243,
95871,437,3360,16,0,
9588243,1,188,1644,1,
9589942,1616,1,1195,3361,
959016,0,243,1,1449,
95913362,16,0,243,1,
95921701,3363,16,0,243,
95931,447,1637,1,205,
95941649,1,827,1457,1,
9595223,1659,1,476,1669,
95961,477,1675,1,1231,
95973364,16,0,243,1,
9598479,1685,1,480,1690,
95991,1485,3365,16,0,
9600243,1,1737,3366,16,
96010,243,1,242,1703,
96021,478,1708,1,1001,
96031713,1,1002,1718,1,
960440,3367,19,233,1,
960540,3368,5,84,1,
96061011,1227,1,1012,3369,
960716,0,231,1,1013,
96081385,1,262,1244,1,
96091267,3370,16,0,231,
96101,515,3371,16,0,
9611231,1,1521,3372,16,
96120,231,1,525,1343,
96131,2792,3373,16,0,
9614231,1,283,1299,1,
96152299,3374,16,0,231,
96161,42,3375,16,0,
9617231,1,40,1304,1,
961844,1310,1,47,1311,
96191,1303,3376,16,0,
9620231,1,1555,3377,16,
96210,231,1,50,1328,
96221,48,1317,1,49,
96231323,1,51,1333,1,
962463,1349,1,305,1338,
96251,66,1355,1,67,
96261360,1,68,1365,1,
962769,1370,1,70,1375,
96281,73,3378,16,0,
9629231,1,74,1380,1,
9630328,1429,1,1048,1470,
96311,82,3379,16,0,
9632231,1,1840,3380,16,
96330,231,1,1591,3381,
963416,0,231,1,1341,
96353382,16,0,231,1,
96361096,1439,1,93,1445,
96371,352,1475,1,107,
96383383,16,0,231,1,
96391114,1469,1,118,3384,
964016,0,231,1,1123,
96413385,16,0,231,1,
9642371,1491,1,1628,3386,
964316,0,231,1,375,
96441502,1,1882,3387,16,
96450,231,1,377,1507,
96461,379,1512,1,380,
96471517,1,883,3388,16,
96480,231,1,373,1535,
96491,130,3389,16,0,
9650231,1,143,3390,16,
96510,231,1,387,3391,
965216,0,231,1,1159,
96533392,16,0,231,1,
9654157,3393,16,0,231,
96551,1413,3394,16,0,
9656231,1,1665,3395,16,
96570,231,1,412,3396,
965816,0,231,1,1377,
96593397,16,0,231,1,
9660172,3398,16,0,231,
96611,1939,3399,16,0,
9662231,1,437,3400,16,
96630,231,1,188,3401,
966416,0,231,1,942,
96651616,1,1195,3402,16,
96660,231,1,1449,3403,
966716,0,231,1,1701,
96683404,16,0,231,1,
9669447,1637,1,205,3405,
967016,0,231,1,827,
96713406,16,0,231,1,
9672223,3407,16,0,231,
96731,476,1669,1,477,
96741675,1,1231,3408,16,
96750,231,1,479,1685,
96761,480,1690,1,1485,
96773409,16,0,231,1,
96781737,3410,16,0,231,
96791,242,3411,16,0,
9680231,1,478,1708,1,
96811001,1713,1,1002,1718,
96821,41,3412,19,188,
96831,41,3413,5,84,
96841,1011,1227,1,1012,
96853414,16,0,186,1,
96861013,1385,1,262,1244,
96871,1267,3415,16,0,
9688186,1,515,3416,16,
96890,186,1,1521,3417,
969016,0,186,1,525,
96911343,1,2792,3418,16,
96920,186,1,283,1299,
96931,2299,3419,16,0,
9694186,1,42,3420,16,
96950,186,1,40,1304,
96961,44,1310,1,47,
96971311,1,1303,3421,16,
96980,186,1,1555,3422,
969916,0,186,1,50,
97001328,1,48,1317,1,
970149,1323,1,51,1333,
97021,63,1349,1,305,
97031338,1,66,1355,1,
970467,1360,1,68,1365,
97051,69,1370,1,70,
97061375,1,73,3423,16,
97070,186,1,74,1380,
97081,328,1429,1,1048,
97091470,1,82,3424,16,
97100,186,1,1840,3425,
971116,0,186,1,1591,
97123426,16,0,186,1,
97131341,3427,16,0,186,
97141,1096,1439,1,93,
97151445,1,352,1475,1,
9716107,3428,16,0,186,
97171,1114,1469,1,118,
97183429,16,0,186,1,
97191123,3430,16,0,186,
97201,371,1491,1,1628,
97213431,16,0,186,1,
9722375,1502,1,1882,3432,
972316,0,186,1,377,
97241507,1,379,1512,1,
9725380,1517,1,883,3433,
972616,0,186,1,373,
97271535,1,130,3434,16,
97280,186,1,143,3435,
972916,0,186,1,387,
97303436,16,0,186,1,
97311159,3437,16,0,186,
97321,157,3438,16,0,
9733186,1,1413,3439,16,
97340,186,1,1665,3440,
973516,0,186,1,412,
97363441,16,0,186,1,
97371377,3442,16,0,186,
97381,172,3443,16,0,
9739186,1,1939,3444,16,
97400,186,1,437,3445,
974116,0,186,1,188,
97423446,16,0,186,1,
9743942,1616,1,1195,3447,
974416,0,186,1,1449,
97453448,16,0,186,1,
97461701,3449,16,0,186,
97471,447,1637,1,205,
97483450,16,0,186,1,
9749827,3451,16,0,186,
97501,223,3452,16,0,
9751186,1,476,1669,1,
9752477,1675,1,1231,3453,
975316,0,186,1,479,
97541685,1,480,1690,1,
97551485,3454,16,0,186,
97561,1737,3455,16,0,
9757186,1,242,3456,16,
97580,186,1,478,1708,
97591,1001,1713,1,1002,
97601718,1,42,3457,19,
9761440,1,42,3458,5,
976238,1,1901,3459,16,
97630,438,1,2075,3460,
976416,0,438,1,1860,
9765946,1,1803,912,1,
97661804,3461,16,0,438,
97671,2413,3462,16,0,
9768438,1,2198,3463,16,
97690,438,1,1873,961,
97701,1657,1019,1,1989,
97711041,1,1990,3464,16,
97720,438,1,1775,3465,
977316,0,438,1,32,
97743466,16,0,438,1,
97752105,939,1,2106,3467,
977616,0,438,1,2364,
9777952,1,2227,1033,1,
97782337,3468,16,0,438,
97791,2021,843,1,2458,
97801001,1,2459,1007,1,
97812462,1014,1,2136,968,
97821,2464,1024,1,2029,
9783850,1,2030,856,1,
97842031,861,1,2032,866,
97851,2033,871,1,2035,
9786877,1,2037,882,1,
97872039,887,1,1931,986,
97881,2041,893,1,2043,
9789899,1,2045,904,1,
97901574,924,1,1958,3469,
979116,0,438,1,43,
97923470,19,532,1,43,
97933471,5,25,1,2035,
9794877,1,2037,882,1,
97952039,887,1,2041,893,
97961,2227,1033,1,2043,
9797899,1,1657,1019,1,
97981860,946,1,2136,968,
97991,2021,843,1,2459,
98001007,1,1574,924,1,
98012105,3472,16,0,698,
98021,1931,986,1,1873,
9803961,1,2031,861,1,
98041803,912,1,1989,3473,
980516,0,530,1,2464,
98061024,1,2029,850,1,
98072030,856,1,2364,952,
98081,2032,866,1,2033,
9809871,1,2045,904,1,
981044,3474,19,292,1,
981144,3475,5,38,1,
98121901,3476,16,0,290,
98131,2075,3477,16,0,
9814290,1,1860,946,1,
98151803,912,1,1804,3478,
981616,0,290,1,2413,
98173479,16,0,290,1,
98182198,3480,16,0,290,
98191,1873,961,1,1657,
98201019,1,1989,1041,1,
98211990,3481,16,0,290,
98221,1775,3482,16,0,
9823290,1,32,3483,16,
98240,290,1,2105,939,
98251,2106,3484,16,0,
9826290,1,2364,952,1,
98272227,1033,1,2337,3485,
982816,0,290,1,2021,
9829843,1,2458,1001,1,
98302459,1007,1,2462,1014,
98311,2136,968,1,2464,
98321024,1,2029,850,1,
98332030,856,1,2031,861,
98341,2032,866,1,2033,
9835871,1,2035,877,1,
98362037,882,1,2039,887,
98371,1931,986,1,2041,
9838893,1,2043,899,1,
98392045,904,1,1574,924,
98401,1958,3486,16,0,
9841290,1,45,3487,19,
9842325,1,45,3488,5,
984339,1,1901,3489,16,
98440,355,1,2075,3490,
984516,0,355,1,1860,
9846946,1,1803,912,1,
98471804,3491,16,0,355,
98481,2413,3492,16,0,
9849355,1,2198,3493,16,
98500,355,1,1873,961,
98511,1657,1019,1,1989,
98521041,1,1990,3494,16,
98530,355,1,1775,3495,
985416,0,355,1,32,
98553496,16,0,355,1,
98562105,939,1,2106,3497,
985716,0,355,1,2364,
9858952,1,2227,1033,1,
98592337,3498,16,0,355,
98601,2021,843,1,2458,
98611001,1,2459,1007,1,
98622462,1014,1,2136,968,
98631,2464,1024,1,2029,
9864850,1,2030,856,1,
98652031,861,1,2032,866,
98661,2033,871,1,2035,
9867877,1,2037,882,1,
98682039,887,1,1931,986,
98691,2041,893,1,2043,
9870899,1,2045,904,1,
98711832,3499,16,0,323,
98721,1574,924,1,1958,
98733500,16,0,355,1,
987446,3501,19,794,1,
987546,3502,5,38,1,
98761901,3503,16,0,792,
98771,2075,3504,16,0,
9878792,1,1860,946,1,
98791803,912,1,1804,3505,
988016,0,792,1,2413,
98813506,16,0,792,1,
98822198,3507,16,0,792,
98831,1873,961,1,1657,
98841019,1,1989,1041,1,
98851990,3508,16,0,792,
98861,1775,3509,16,0,
9887792,1,32,3510,16,
98880,792,1,2105,939,
98891,2106,3511,16,0,
9890792,1,2364,952,1,
98912227,1033,1,2337,3512,
989216,0,792,1,2021,
9893843,1,2458,1001,1,
98942459,1007,1,2462,1014,
98951,2136,968,1,2464,
98961024,1,2029,850,1,
98972030,856,1,2031,861,
98981,2032,866,1,2033,
9899871,1,2035,877,1,
99002037,882,1,2039,887,
99011,1931,986,1,2041,
9902893,1,2043,899,1,
99032045,904,1,1574,924,
99041,1958,3513,16,0,
9905792,1,47,3514,19,
9906283,1,47,3515,5,
990719,1,0,3516,16,
99080,281,1,2783,3517,
990917,3518,15,3519,4,
991050,37,0,71,0,
9911108,0,111,0,98,
99120,97,0,108,0,
991370,0,117,0,110,
99140,99,0,116,0,
9915105,0,111,0,110,
84190,68,0,101,0, 99160,68,0,101,0,
8420102,0,105,0,110, 9917102,0,105,0,110,
84210,105,0,116,0, 99180,105,0,116,0,
8422105,0,111,0,110, 9919105,0,111,0,110,
84230,115,0,95,0, 99200,1,-1,1,5,
842450,0,1,145,1, 99213520,20,3521,4,52,
84253,1,3,1,2, 992271,0,108,0,111,
84263188,22,1,4,1, 99230,98,0,97,0,
84272558,697,1,2716,3189, 9924108,0,70,0,117,
842817,3190,15,3185,1, 99250,110,0,99,0,
8429-1,1,5,3191,20, 9926116,0,105,0,111,
84303192,4,38,71,0, 99270,110,0,68,0,
8431108,0,111,0,98, 9928101,0,102,0,105,
84320,97,0,108,0, 99290,110,0,105,0,
843368,0,101,0,102, 9930116,0,105,0,111,
84340,105,0,110,0, 99310,110,0,95,0,
8435105,0,116,0,105, 993249,0,1,175,1,
84360,111,0,110,0, 99333,1,6,1,5,
8437115,0,95,0,49, 99343522,22,1,9,1,
84380,1,144,1,3, 99352464,1024,1,2767,822,
84391,2,1,1,3193, 99361,2768,810,1,2822,
844022,1,3,1,2022, 99373523,17,3524,15,3525,
84413194,16,0,567,1, 99384,52,37,0,71,
84422459,882,1,2715,3195, 99390,108,0,111,0,
844317,3196,15,3185,1, 994098,0,97,0,108,
8444-1,1,5,3197,20, 99410,86,0,97,0,
84453198,4,38,71,0, 9942114,0,105,0,97,
99430,98,0,108,0,
9944101,0,68,0,101,
99450,99,0,108,0,
994697,0,114,0,97,
99470,116,0,105,0,
9948111,0,110,0,1,
9949-1,1,5,3526,20,
99503527,4,54,71,0,
8446108,0,111,0,98, 9951108,0,111,0,98,
84470,97,0,108,0, 99520,97,0,108,0,
844868,0,101,0,102, 995386,0,97,0,114,
84490,105,0,110,0, 99540,105,0,97,0,
8450105,0,116,0,105, 995598,0,108,0,101,
84510,111,0,110,0, 99560,68,0,101,0,
8452115,0,95,0,51, 995799,0,108,0,97,
84530,1,146,1,3, 99580,114,0,97,0,
84541,2,1,1,3199, 9959116,0,105,0,111,
845522,1,5,1,2464, 99600,110,0,95,0,
8456899,1,2466,3200,17, 996149,0,1,173,1,
84573201,15,3202,4,50, 99623,1,3,1,2,
845837,0,71,0,108, 99633528,22,1,7,1,
84590,111,0,98,0, 99642823,3529,16,0,281,
846097,0,108,0,70, 99651,2022,3530,16,0,
84610,117,0,110,0, 9966673,1,2755,816,1,
846299,0,116,0,105, 99672834,3531,16,0,281,
84630,111,0,110,0, 99681,2459,1007,1,2466,
846468,0,101,0,102, 99693532,17,3533,15,3519,
84650,105,0,110,0, 99701,-1,1,5,3534,
8466105,0,116,0,105, 997120,3535,4,52,71,
84670,111,0,110,0,
84681,-1,1,5,3203,
846920,3204,4,52,71,
84700,108,0,111,0, 99720,108,0,111,0,
847198,0,97,0,108, 997398,0,97,0,108,
84720,70,0,117,0, 99740,70,0,117,0,
@@ -8477,70 +9979,74 @@ public yyLSLSyntax
8477110,0,105,0,116, 9979110,0,105,0,116,
84780,105,0,111,0, 99800,105,0,111,0,
8479110,0,95,0,50, 9981110,0,95,0,50,
84800,1,151,1,3, 99820,1,176,1,3,
84811,7,1,6,3205, 99831,7,1,6,3536,
848222,1,10,1,2640, 998422,1,10,1,2764,
8483685,1,2713,3206,17, 99853537,16,0,281,1,
84843207,15,3185,1,-1, 99862841,3538,17,3539,15,
84851,5,3208,20,3209, 99873540,4,36,37,0,
84864,38,71,0,108, 998871,0,108,0,111,
84870,111,0,98,0, 99890,98,0,97,0,
848897,0,108,0,68, 9990108,0,68,0,101,
84890,101,0,102,0, 99910,102,0,105,0,
8490105,0,110,0,105, 9992110,0,105,0,116,
84910,116,0,105,0, 99930,105,0,111,0,
8492111,0,110,0,115, 9994110,0,115,0,1,
84930,95,0,52,0, 9995-1,1,5,3541,20,
84941,147,1,3,1, 99963542,4,38,71,0,
84953,1,2,3210,22,
84961,6,1,2655,3211,
849717,3212,15,3202,1,
8498-1,1,5,3213,20,
84993214,4,52,71,0,
8500108,0,111,0,98, 9997108,0,111,0,98,
85010,97,0,108,0, 99980,97,0,108,0,
850270,0,117,0,110, 999968,0,101,0,102,
85030,99,0,116,0, 100000,105,0,110,0,
8504105,0,111,0,110, 10001105,0,116,0,105,
100020,111,0,110,0,
10003115,0,95,0,52,
100040,1,172,1,3,
100051,3,1,2,3543,
1000622,1,6,1,2842,
100073544,17,3545,15,3540,
100081,-1,1,5,3546,
1000920,3547,4,38,71,
100100,108,0,111,0,
1001198,0,97,0,108,
85050,68,0,101,0, 100120,68,0,101,0,
8506102,0,105,0,110, 10013102,0,105,0,110,
85070,105,0,116,0, 100140,105,0,116,0,
8508105,0,111,0,110, 10015105,0,111,0,110,
85090,95,0,49,0, 100160,115,0,95,0,
85101,150,1,3,1, 1001750,0,1,170,1,
85116,1,5,3215,22, 100183,1,3,1,2,
85121,9,1,2694,3216, 100193548,22,1,4,1,
851317,3217,15,3218,4, 100202843,3549,17,3550,15,
851452,37,0,71,0, 100213540,1,-1,1,5,
8515108,0,111,0,98, 100223551,20,3552,4,38,
85160,97,0,108,0, 1002371,0,108,0,111,
851786,0,97,0,114, 100240,98,0,97,0,
85180,105,0,97,0, 10025108,0,68,0,101,
851998,0,108,0,101, 100260,102,0,105,0,
85200,68,0,101,0, 10027110,0,105,0,116,
852199,0,108,0,97,
85220,114,0,97,0,
8523116,0,105,0,111,
85240,110,0,1,-1,
85251,5,3219,20,3220,
85264,54,71,0,108,
85270,111,0,98,0,
852897,0,108,0,86,
85290,97,0,114,0,
8530105,0,97,0,98,
85310,108,0,101,0,
853268,0,101,0,99,
85330,108,0,97,0,
8534114,0,97,0,116,
85350,105,0,111,0, 100280,105,0,111,0,
8536110,0,95,0,49, 10029110,0,115,0,95,
85370,1,148,1,3, 100300,51,0,1,171,
85381,3,1,2,3221, 100311,3,1,2,1,
853922,1,7,1,2695, 100321,3553,22,1,5,
85403222,16,0,464,1, 100331,2844,3554,17,3555,
85412683,3223,17,3224,15, 1003415,3540,1,-1,1,
85423218,1,-1,1,5, 100355,3556,20,3557,4,
85433225,20,3226,4,54, 1003638,71,0,108,0,
10037111,0,98,0,97,
100380,108,0,68,0,
10039101,0,102,0,105,
100400,110,0,105,0,
10041116,0,105,0,111,
100420,110,0,115,0,
1004395,0,49,0,1,
10044169,1,3,1,2,
100451,1,3558,22,1,
100463,1,2649,832,1,
100472811,3559,17,3560,15,
100483525,1,-1,1,5,
100493561,20,3562,4,54,
854471,0,108,0,111, 1005071,0,108,0,111,
85450,98,0,97,0, 100510,98,0,97,0,
8546108,0,86,0,97, 10052108,0,86,0,97,
@@ -8552,2203 +10058,2877 @@ public yyLSLSyntax
855297,0,116,0,105, 1005897,0,116,0,105,
85530,111,0,110,0, 100590,111,0,110,0,
855495,0,50,0,1, 1006095,0,50,0,1,
8555149,1,3,1,5, 10061174,1,3,1,5,
85561,4,3227,22,1, 100621,4,3563,22,1,
85578,1,48,3228,19, 100638,1,48,3564,19,
8558339,1,48,3229,5, 10064385,1,48,3565,5,
855954,1,0,3230,16, 1006554,1,0,3566,16,
85600,337,1,2075,3231, 100660,383,1,2075,3567,
856116,0,495,1,1860, 1006716,0,581,1,1860,
8562821,1,1803,787,1, 10068946,1,2842,3544,1,
85631804,3232,16,0,495, 100691804,3568,16,0,581,
85641,2413,3233,16,0, 100701,2844,3554,1,2413,
8565495,1,2634,691,1, 100713569,16,0,581,1,
85661873,835,1,1657,894, 100722198,3570,16,0,581,
85671,2639,707,1,2640, 100731,1873,961,1,1657,
8568685,1,1989,916,1, 100741019,1,2030,856,1,
85691990,3234,16,0,495, 100751989,1041,1,1990,3571,
85701,2459,882,1,1775, 1007616,0,581,1,2755,
85713235,16,0,495,1, 10077816,1,1775,3572,16,
857232,3236,16,0,495, 100780,581,1,32,3573,
85731,2105,814,1,2106, 1007916,0,581,1,2649,
85743237,16,0,495,1, 10080832,1,2105,939,1,
85752466,3200,1,2655,3211, 100812106,3574,16,0,581,
85761,2683,3223,1,2227, 100821,2764,3575,16,0,
8577908,1,2337,3238,16, 10083383,1,2841,3538,1,
85780,495,1,2558,697, 100841574,924,1,2767,822,
85791,2694,3216,1,2695, 100851,2768,810,1,2227,
85803239,16,0,337,1, 100861033,1,2337,3576,16,
85812021,718,1,2458,876, 100870,581,1,2783,3517,
85821,1901,3240,16,0, 100881,1803,912,1,2458,
8583495,1,2462,889,1, 100891001,1,1901,3577,16,
85842136,842,1,2464,899, 100900,581,1,2462,1014,
85851,2029,725,1,2030, 100911,2136,968,1,2464,
8586731,1,2031,736,1, 100921024,1,2029,850,1,
85872032,741,1,2033,746, 100932466,3532,1,2031,861,
85881,2035,752,1,2364, 100941,2032,866,1,2033,
8589827,1,2715,3195,1, 10095871,1,2035,877,1,
85902039,762,1,1931,861, 100962364,952,1,2039,887,
85911,2041,768,1,2043, 100971,1931,986,1,2041,
8592774,1,2045,779,1, 10098893,1,2021,843,1,
85932198,3241,16,0,495, 100992043,899,1,2045,904,
85941,2706,3242,16,0, 101001,2811,3559,1,2834,
8595337,1,2037,757,1, 101013578,16,0,383,1,
85962713,3206,1,2714,3183, 101022037,882,1,2822,3523,
85971,1574,799,1,2716, 101031,2823,3579,16,0,
85983189,1,2636,3243,16, 10104383,1,2843,3549,1,
85990,337,1,1958,3244, 101051958,3580,16,0,581,
860016,0,495,1,49, 101061,2459,1007,1,49,
86013245,19,500,1,49, 101073581,19,586,1,49,
86023246,5,38,1,1901, 101083582,5,38,1,1901,
86033247,16,0,498,1, 101093583,16,0,584,1,
86042075,3248,16,0,498, 101102075,3584,16,0,584,
86051,1860,821,1,1803, 101111,1860,946,1,1803,
8606787,1,1804,3249,16, 10112912,1,1804,3585,16,
86070,498,1,2413,3250, 101130,584,1,2413,3586,
860816,0,498,1,2198, 1011416,0,584,1,2198,
86093251,16,0,498,1, 101153587,16,0,584,1,
86101873,835,1,1657,894, 101161873,961,1,1657,1019,
86111,1989,916,1,1990, 101171,1989,1041,1,1990,
86123252,16,0,498,1, 101183588,16,0,584,1,
86131775,3253,16,0,498, 101191775,3589,16,0,584,
86141,32,3254,16,0, 101201,32,3590,16,0,
8615498,1,2105,814,1, 10121584,1,2105,939,1,
86162106,3255,16,0,498, 101222106,3591,16,0,584,
86171,2364,827,1,2227, 101231,2364,952,1,2227,
8618908,1,2337,3256,16, 101241033,1,2337,3592,16,
86190,498,1,2021,718, 101250,584,1,2021,843,
86201,2458,876,1,2459, 101261,2458,1001,1,2459,
8621882,1,2462,889,1, 101271007,1,2462,1014,1,
86222136,842,1,2464,899, 101282136,968,1,2464,1024,
86231,2029,725,1,2030, 101291,2029,850,1,2030,
8624731,1,2031,736,1, 10130856,1,2031,861,1,
86252032,741,1,2033,746, 101312032,866,1,2033,871,
86261,2035,752,1,2037, 101321,2035,877,1,2037,
8627757,1,2039,762,1, 10133882,1,2039,887,1,
86281931,861,1,2041,768, 101341931,986,1,2041,893,
86291,2043,774,1,2045, 101351,2043,899,1,2045,
8630779,1,1574,799,1, 10136904,1,1574,924,1,
86311958,3257,16,0,498, 101371958,3593,16,0,584,
86321,50,3258,19,614, 101381,50,3594,19,733,
86331,50,3259,5,38, 101391,50,3595,5,38,
86341,1901,3260,16,0, 101401,1901,3596,16,0,
8635612,1,2075,3261,16, 10141731,1,2075,3597,16,
86360,612,1,1860,821, 101420,731,1,1860,946,
86371,1803,787,1,1804, 101431,1803,912,1,1804,
86383262,16,0,612,1, 101443598,16,0,731,1,
86392413,3263,16,0,612, 101452413,3599,16,0,731,
86401,2198,3264,16,0, 101461,2198,3600,16,0,
8641612,1,1873,835,1, 10147731,1,1873,961,1,
86421657,894,1,1989,916, 101481657,1019,1,1989,1041,
86431,1990,3265,16,0, 101491,1990,3601,16,0,
8644612,1,1775,3266,16, 10150731,1,1775,3602,16,
86450,612,1,32,3267, 101510,731,1,32,3603,
864616,0,612,1,2105, 1015216,0,731,1,2105,
8647814,1,2106,3268,16, 10153939,1,2106,3604,16,
86480,612,1,2364,827, 101540,731,1,2364,952,
86491,2227,908,1,2337, 101551,2227,1033,1,2337,
86503269,16,0,612,1, 101563605,16,0,731,1,
86512021,718,1,2458,876, 101572021,843,1,2458,1001,
86521,2459,882,1,2462, 101581,2459,1007,1,2462,
8653889,1,2136,842,1, 101591014,1,2136,968,1,
86542464,899,1,2029,725, 101602464,1024,1,2029,850,
86551,2030,731,1,2031, 101611,2030,856,1,2031,
8656736,1,2032,741,1, 10162861,1,2032,866,1,
86572033,746,1,2035,752, 101632033,871,1,2035,877,
86581,2037,757,1,2039, 101641,2037,882,1,2039,
8659762,1,1931,861,1, 10165887,1,1931,986,1,
86602041,768,1,2043,774, 101662041,893,1,2043,899,
86611,2045,779,1,1574, 101671,2045,904,1,1574,
8662799,1,1958,3270,16, 10168924,1,1958,3606,16,
86630,612,1,51,3271, 101690,731,1,51,3607,
866419,127,1,51,3272, 1017019,127,1,51,3608,
86655,53,1,0,3273, 101715,58,1,0,3609,
866616,0,125,1,2075, 1017216,0,125,1,2538,
86673274,16,0,125,1, 101733610,16,0,489,1,
86681860,821,1,1803,787, 101742075,3611,16,0,125,
86691,1804,3275,16,0, 101751,2841,3538,1,2515,
8670125,1,10,3276,16, 101763612,16,0,489,1,
86710,125,1,2413,3277, 101772843,3549,1,10,3613,
867216,0,125,1,2198, 1017816,0,125,1,2413,
86733278,16,0,125,1, 101793614,16,0,125,1,
86741873,835,1,21,3279, 101802523,3615,16,0,489,
867516,0,125,1,1657, 101811,2198,3616,16,0,
8676894,1,2030,731,1, 10182125,1,1873,961,1,
86772642,3280,16,0,125, 1018321,3617,16,0,125,
86781,1989,916,1,1990, 101841,1657,1019,1,2029,
86793281,16,0,125,1, 10185850,1,2030,856,1,
86802459,882,1,1775,3282, 101861989,1041,1,1990,3618,
868116,0,125,1,32, 1018716,0,125,1,2458,
86823283,16,0,125,1, 101881001,1,2459,1007,1,
86832105,814,1,2106,3284, 101891775,3619,16,0,125,
868416,0,125,1,2655, 101901,32,3620,16,0,
86853211,1,2683,3223,1, 10191125,1,2105,939,1,
86862227,908,1,2337,3285, 101922106,3621,16,0,125,
868716,0,125,1,52, 101931,2823,3622,16,0,
86883286,16,0,125,1, 10194125,1,2770,3623,16,
86892694,3216,1,2695,3287, 101950,125,1,2227,1033,
869016,0,125,1,2021, 101961,2337,3624,16,0,
8691718,1,2458,876,1, 10197125,1,52,3625,16,
86921901,3288,16,0,125, 101980,125,1,2561,3626,
86931,2462,889,1,2136, 1019916,0,489,1,2783,
8694842,1,2464,899,1, 102003517,1,1803,912,1,
86952029,725,1,2466,3200, 102011804,3627,16,0,125,
86961,2031,736,1,2032, 102021,1901,3628,16,0,
8697741,1,2033,746,1, 10203125,1,2462,1014,1,
86982035,752,1,2364,827, 102042136,968,1,2464,1024,
86991,2715,3195,1,2039, 102051,1860,946,1,2466,
8700762,1,1931,861,1, 102063532,1,2031,861,1,
87012041,768,1,2043,774, 102072032,866,1,2033,871,
87021,2045,779,1,2037, 102081,2035,877,1,2364,
8703757,1,2713,3206,1, 10209952,1,2039,887,1,
87042714,3183,1,1574,799, 102101931,986,1,2041,893,
87051,2716,3189,1,1958, 102111,2021,843,1,2043,
87063289,16,0,125,1, 10212899,1,2045,904,1,
87072506,3290,16,0,125, 102132511,3629,16,0,489,
87081,52,3291,19,124, 102141,2811,3559,1,2037,
87091,52,3292,5,53, 10215882,1,2822,3523,1,
87101,0,3293,16,0, 102162842,3544,1,1574,924,
8711122,1,2075,3294,16, 102171,2844,3554,1,2582,
87120,122,1,1860,821, 102183630,16,0,125,1,
87131,1803,787,1,1804, 102191958,3631,16,0,125,
87143295,16,0,122,1, 102201,52,3632,19,124,
871510,3296,16,0,122, 102211,52,3633,5,53,
87161,2413,3297,16,0, 102221,0,3634,16,0,
8717122,1,2198,3298,16, 10223122,1,2075,3635,16,
87180,122,1,1873,835, 102240,122,1,2841,3538,
87191,21,3299,16,0, 102251,2842,3544,1,1804,
8720122,1,1657,894,1, 102263636,16,0,122,1,
87212030,731,1,2642,3300, 1022710,3637,16,0,122,
872216,0,122,1,1989, 102281,2413,3638,16,0,
8723916,1,1990,3301,16, 10229122,1,2198,3639,16,
87240,122,1,2459,882, 102300,122,1,1873,961,
87251,1775,3302,16,0, 102311,21,3640,16,0,
8726122,1,32,3303,16, 10232122,1,1657,1019,1,
87270,122,1,2105,814, 102332029,850,1,2030,856,
87281,2106,3304,16,0, 102341,1989,1041,1,1990,
8729122,1,2655,3211,1, 102353641,16,0,122,1,
87302683,3223,1,2227,908, 102362459,1007,1,1775,3642,
87311,2337,3305,16,0, 1023716,0,122,1,32,
8732122,1,52,3306,16, 102383643,16,0,122,1,
87330,122,1,2694,3216, 102392105,939,1,2106,3644,
87341,2695,3307,16,0, 1024016,0,122,1,1574,
8735122,1,2021,718,1, 10241924,1,2770,3645,16,
87362458,876,1,1901,3308, 102420,122,1,2227,1033,
873716,0,122,1,2462, 102431,2337,3646,16,0,
8738889,1,2136,842,1, 10244122,1,52,3647,16,
87392464,899,1,2029,725, 102450,122,1,2783,3517,
87401,2466,3200,1,2031, 102461,1803,912,1,2458,
8741736,1,2032,741,1, 102471001,1,1901,3648,16,
87422033,746,1,2035,752, 102480,122,1,2462,1014,
87431,2364,827,1,2715, 102491,2136,968,1,2464,
87443195,1,2039,762,1, 102501024,1,1860,946,1,
87451931,861,1,2041,768, 102512466,3532,1,2031,861,
87461,2043,774,1,2045, 102521,2032,866,1,2033,
8747779,1,2037,757,1, 10253871,1,2035,877,1,
87482713,3206,1,2714,3183, 102542364,952,1,2039,887,
87491,1574,799,1,2716, 102551,1931,986,1,2041,
87503189,1,1958,3309,16, 10256893,1,2021,843,1,
87510,122,1,2506,3310, 102572043,899,1,2045,904,
102581,2811,3559,1,2037,
10259882,1,2822,3523,1,
102602823,3649,16,0,122,
102611,2843,3549,1,2844,
102623554,1,2582,3650,16,
102630,122,1,1958,3651,
875216,0,122,1,53, 1026416,0,122,1,53,
87533311,19,121,1,53, 102653652,19,121,1,53,
87543312,5,53,1,0, 102663653,5,53,1,0,
87553313,16,0,119,1, 102673654,16,0,119,1,
87562075,3314,16,0,119, 102682075,3655,16,0,119,
87571,1860,821,1,1803, 102691,2841,3538,1,2842,
8758787,1,1804,3315,16, 102703544,1,1804,3656,16,
87590,119,1,10,3316, 102710,119,1,10,3657,
876016,0,119,1,2413, 1027216,0,119,1,2413,
87613317,16,0,119,1, 102733658,16,0,119,1,
87622198,3318,16,0,119, 102742198,3659,16,0,119,
87631,1873,835,1,21, 102751,1873,961,1,21,
87643319,16,0,119,1, 102763660,16,0,119,1,
87651657,894,1,2030,731, 102771657,1019,1,2029,850,
87661,2642,3320,16,0, 102781,2030,856,1,1989,
8767119,1,1989,916,1, 102791041,1,1990,3661,16,
87681990,3321,16,0,119, 102800,119,1,2459,1007,
87691,2459,882,1,1775, 102811,1775,3662,16,0,
87703322,16,0,119,1, 10282119,1,32,3663,16,
877132,3323,16,0,119, 102830,119,1,2105,939,
87721,2105,814,1,2106, 102841,2106,3664,16,0,
87733324,16,0,119,1, 10285119,1,1574,924,1,
87742655,3211,1,2683,3223, 102862770,3665,16,0,119,
87751,2227,908,1,2337, 102871,2227,1033,1,2337,
87763325,16,0,119,1, 102883666,16,0,119,1,
877752,3326,16,0,119, 1028952,3667,16,0,119,
87781,2694,3216,1,2695, 102901,2783,3517,1,1803,
87793327,16,0,119,1, 10291912,1,2458,1001,1,
87802021,718,1,2458,876, 102921901,3668,16,0,119,
87811,1901,3328,16,0, 102931,2462,1014,1,2136,
8782119,1,2462,889,1, 10294968,1,2464,1024,1,
87832136,842,1,2464,899, 102951860,946,1,2466,3532,
87841,2029,725,1,2466, 102961,2031,861,1,2032,
87853200,1,2031,736,1, 10297866,1,2033,871,1,
87862032,741,1,2033,746, 102982035,877,1,2364,952,
87871,2035,752,1,2364, 102991,2039,887,1,1931,
8788827,1,2715,3195,1, 10300986,1,2041,893,1,
87892039,762,1,1931,861, 103012021,843,1,2043,899,
87901,2041,768,1,2043, 103021,2045,904,1,2811,
8791774,1,2045,779,1, 103033559,1,2037,882,1,
87922037,757,1,2713,3206, 103042822,3523,1,2823,3669,
87931,2714,3183,1,1574, 1030516,0,119,1,2843,
8794799,1,2716,3189,1, 103063549,1,2844,3554,1,
87951958,3329,16,0,119, 103072582,3670,16,0,119,
87961,2506,3330,16,0, 103081,1958,3671,16,0,
8797119,1,54,3331,19, 10309119,1,54,3672,19,
8798118,1,54,3332,5, 10310118,1,54,3673,5,
879953,1,0,3333,16, 1031155,1,0,3674,16,
88000,116,1,2075,3334, 103120,116,1,2075,3675,
880116,0,116,1,1860, 1031316,0,116,1,2841,
8802821,1,1803,787,1, 103143538,1,2842,3544,1,
88031804,3335,16,0,116, 103151804,3676,16,0,116,
88041,10,3336,16,0, 103161,10,3677,16,0,
8805116,1,2413,3337,16, 10317116,1,2413,3678,16,
88060,116,1,2198,3338, 103180,116,1,2198,3679,
880716,0,116,1,1873, 1031916,0,116,1,1873,
8808835,1,21,3339,16, 10320961,1,21,3680,16,
88090,116,1,1657,894, 103210,116,1,1657,1019,
88101,2030,731,1,2642, 103221,2029,850,1,2030,
88113340,16,0,116,1, 10323856,1,1989,1041,1,
88121989,916,1,1990,3341, 103241990,3681,16,0,116,
881316,0,116,1,2459, 103251,2459,1007,1,1775,
8814882,1,1775,3342,16, 103263682,16,0,116,1,
88150,116,1,32,3343, 1032732,3683,16,0,116,
881616,0,116,1,2105, 103281,2105,939,1,2106,
8817814,1,2106,3344,16, 103293684,16,0,116,1,
88180,116,1,2655,3211, 103302021,843,1,1574,924,
88191,2683,3223,1,2227, 103311,2770,3685,16,0,
8820908,1,2337,3345,16, 10332116,1,2227,1033,1,
88210,116,1,52,3346, 103332337,3686,16,0,116,
882216,0,116,1,2694, 103341,52,3687,16,0,
88233216,1,2695,3347,16, 10335116,1,2783,3517,1,
88240,116,1,2021,718, 103361803,912,1,2458,1001,
88251,2458,876,1,1901, 103371,1901,3688,16,0,
88263348,16,0,116,1, 10338116,1,2569,3689,16,
88272462,889,1,2136,842, 103390,483,1,2462,1014,
88281,2464,899,1,2029, 103401,2136,968,1,2464,
8829725,1,2466,3200,1, 103411024,1,1860,946,1,
88302031,736,1,2032,741, 103422466,3532,1,2031,861,
88311,2033,746,1,2035, 103431,2032,866,1,2033,
8832752,1,2364,827,1, 10344871,1,2035,877,1,
88332715,3195,1,2039,762, 103452364,952,1,2039,887,
88341,1931,861,1,2041, 103461,1931,986,1,2041,
8835768,1,2043,774,1, 10347893,1,2507,3690,16,
88362045,779,1,2037,757, 103480,483,1,2043,899,
88371,2713,3206,1,2714, 103491,2045,904,1,2811,
88383183,1,1574,799,1, 103503559,1,2037,882,1,
88392716,3189,1,1958,3349, 103512822,3523,1,2823,3691,
884016,0,116,1,2506, 1035216,0,116,1,2843,
88413350,16,0,116,1, 103533549,1,2844,3554,1,
884255,3351,19,115,1, 103542582,3692,16,0,116,
884355,3352,5,53,1, 103551,1958,3693,16,0,
88440,3353,16,0,113, 10356116,1,55,3694,19,
88451,2075,3354,16,0, 10357115,1,55,3695,5,
8846113,1,1860,821,1, 1035856,1,0,3696,16,
88471803,787,1,1804,3355, 103590,113,1,2075,3697,
884816,0,113,1,10, 1036016,0,113,1,2841,
88493356,16,0,113,1, 103613538,1,2842,3544,1,
88502413,3357,16,0,113, 103622843,3549,1,10,3698,
88511,2198,3358,16,0, 1036316,0,113,1,2413,
8852113,1,1873,835,1, 103643699,16,0,113,1,
885321,3359,16,0,113, 103652198,3700,16,0,113,
88541,1657,894,1,2030, 103661,2526,3701,16,0,
8855731,1,2642,3360,16, 10367304,1,1873,961,1,
88560,113,1,1989,916, 1036821,3702,16,0,113,
88571,1990,3361,16,0, 103691,1657,1019,1,2530,
8858113,1,2459,882,1, 103703703,16,0,304,1,
88591775,3362,16,0,113, 103712030,856,1,1989,1041,
88601,32,3363,16,0, 103721,1990,3704,16,0,
8861113,1,2105,814,1, 10373113,1,2458,1001,1,
88622106,3364,16,0,113, 103742459,1007,1,1775,3705,
88631,2655,3211,1,2683, 1037516,0,113,1,32,
88643223,1,2227,908,1, 103763706,16,0,113,1,
88652337,3365,16,0,113, 103772105,939,1,2106,3707,
88661,52,3366,16,0, 1037816,0,113,1,2770,
8867113,1,2694,3216,1, 103793708,16,0,113,1,
88682695,3367,16,0,113, 103802553,3709,16,0,304,
88691,2021,718,1,2458, 103811,2227,1033,1,2337,
8870876,1,1901,3368,16, 103823710,16,0,113,1,
88710,113,1,2462,889, 1038352,3711,16,0,113,
88721,2136,842,1,2464, 103841,2783,3517,1,1803,
8873899,1,2029,725,1, 10385912,1,1804,3712,16,
88742466,3200,1,2031,736, 103860,113,1,1901,3713,
88751,2032,741,1,2033, 1038716,0,113,1,2462,
8876746,1,2035,752,1, 103881014,1,2136,968,1,
88772364,827,1,2715,3195, 103892464,1024,1,1860,946,
88781,2039,762,1,1931, 103901,2466,3532,1,2031,
8879861,1,2041,768,1, 10391861,1,2032,866,1,
88802043,774,1,2045,779, 103922033,871,1,2035,877,
88811,2037,757,1,2713, 103931,2364,952,1,2039,
88823206,1,2714,3183,1, 10394887,1,1931,986,1,
88831574,799,1,2716,3189, 103952041,893,1,2021,843,
88841,1958,3369,16,0, 103961,2043,899,1,2045,
8885113,1,2506,3370,16, 10397904,1,2811,3559,1,
88860,113,1,56,3371, 103982029,850,1,2037,882,
888719,112,1,56,3372, 103991,2822,3523,1,2823,
88885,53,1,0,3373, 104003714,16,0,113,1,
104011574,924,1,2844,3554,
104021,2582,3715,16,0,
10403113,1,1958,3716,16,
104040,113,1,56,3717,
1040519,112,1,56,3718,
104065,55,1,0,3719,
888916,0,110,1,2075, 1040716,0,110,1,2075,
88903374,16,0,110,1, 104083720,16,0,110,1,
88911860,821,1,1803,787, 104092841,3538,1,2842,3544,
88921,1804,3375,16,0, 104101,1804,3721,16,0,
8893110,1,10,3376,16, 10411110,1,10,3722,16,
88940,110,1,2413,3377, 104120,110,1,2413,3723,
889516,0,110,1,2198, 1041316,0,110,1,2198,
88963378,16,0,110,1, 104143724,16,0,110,1,
88971873,835,1,21,3379, 104151873,961,1,21,3725,
889816,0,110,1,1657, 1041616,0,110,1,1657,
8899894,1,2030,731,1, 104171019,1,2029,850,1,
89002642,3380,16,0,110, 104182030,856,1,1989,1041,
89011,1989,916,1,1990, 104191,1990,3726,16,0,
89023381,16,0,110,1, 10420110,1,2459,1007,1,
89032459,882,1,1775,3382, 104211775,3727,16,0,110,
890416,0,110,1,32, 104221,32,3728,16,0,
89053383,16,0,110,1, 10423110,1,2541,3729,16,
89062105,814,1,2106,3384, 104240,525,1,2106,3730,
890716,0,110,1,2655, 1042516,0,110,1,2545,
89083211,1,2683,3223,1, 104263731,16,0,525,1,
89092227,908,1,2337,3385, 104271574,924,1,2770,3732,
891016,0,110,1,52, 1042816,0,110,1,2227,
89113386,16,0,110,1, 104291033,1,2337,3733,16,
89122694,3216,1,2695,3387, 104300,110,1,52,3734,
891316,0,110,1,2021, 1043116,0,110,1,2783,
8914718,1,2458,876,1, 104323517,1,1803,912,1,
89151901,3388,16,0,110, 104332458,1001,1,1901,3735,
89161,2462,889,1,2136, 1043416,0,110,1,2462,
8917842,1,2464,899,1, 104351014,1,2136,968,1,
89182029,725,1,2466,3200, 104362464,1024,1,1860,946,
89191,2031,736,1,2032, 104371,2466,3532,1,2031,
8920741,1,2033,746,1, 10438861,1,2032,866,1,
89212035,752,1,2364,827, 104392033,871,1,2035,877,
89221,2715,3195,1,2039, 104401,2364,952,1,2039,
8923762,1,1931,861,1, 10441887,1,1931,986,1,
89242041,768,1,2043,774, 104422041,893,1,2021,843,
89251,2045,779,1,2037, 104431,2043,899,1,2045,
8926757,1,2713,3206,1, 10444904,1,2811,3559,1,
89272714,3183,1,1574,799, 104452037,882,1,2822,3523,
89281,2716,3189,1,1958, 104461,2823,3736,16,0,
89293389,16,0,110,1, 10447110,1,2843,3549,1,
89302506,3390,16,0,110, 104482844,3554,1,2105,939,
89311,57,3391,19,109, 104491,2582,3737,16,0,
89321,57,3392,5,53, 10450110,1,1958,3738,16,
89331,0,3393,16,0, 104510,110,1,57,3739,
8934107,1,2075,3394,16, 1045219,109,1,57,3740,
89350,107,1,1860,821, 104535,53,1,0,3741,
89361,1803,787,1,1804, 1045416,0,107,1,2075,
89373395,16,0,107,1, 104553742,16,0,107,1,
893810,3396,16,0,107, 104562841,3538,1,2842,3544,
89391,2413,3397,16,0, 104571,1804,3743,16,0,
8940107,1,2198,3398,16, 10458107,1,10,3744,16,
89410,107,1,1873,835, 104590,107,1,2413,3745,
89421,21,3399,16,0, 1046016,0,107,1,2198,
8943107,1,1657,894,1, 104613746,16,0,107,1,
89442030,731,1,2642,3400, 104621873,961,1,21,3747,
894516,0,107,1,1989, 1046316,0,107,1,1657,
8946916,1,1990,3401,16, 104641019,1,2029,850,1,
89470,107,1,2459,882, 104652030,856,1,1989,1041,
89481,1775,3402,16,0, 104661,1990,3748,16,0,
8949107,1,32,3403,16, 10467107,1,2459,1007,1,
89500,107,1,2105,814, 104681775,3749,16,0,107,
89511,2106,3404,16,0, 104691,32,3750,16,0,
8952107,1,2655,3211,1, 10470107,1,2105,939,1,
89532683,3223,1,2227,908, 104712106,3751,16,0,107,
89541,2337,3405,16,0, 104721,1574,924,1,2770,
8955107,1,52,3406,16, 104733752,16,0,107,1,
89560,107,1,2694,3216, 104742227,1033,1,2337,3753,
89571,2695,3407,16,0, 1047516,0,107,1,52,
8958107,1,2021,718,1, 104763754,16,0,107,1,
89592458,876,1,1901,3408, 104772783,3517,1,1803,912,
896016,0,107,1,2462, 104781,2458,1001,1,1901,
8961889,1,2136,842,1, 104793755,16,0,107,1,
89622464,899,1,2029,725, 104802462,1014,1,2136,968,
89631,2466,3200,1,2031, 104811,2464,1024,1,1860,
8964736,1,2032,741,1, 10482946,1,2466,3532,1,
89652033,746,1,2035,752, 104832031,861,1,2032,866,
89661,2364,827,1,2715, 104841,2033,871,1,2035,
89673195,1,2039,762,1, 10485877,1,2364,952,1,
89681931,861,1,2041,768, 104862039,887,1,1931,986,
89691,2043,774,1,2045, 104871,2041,893,1,2021,
8970779,1,2037,757,1, 10488843,1,2043,899,1,
89712713,3206,1,2714,3183, 104892045,904,1,2811,3559,
89721,1574,799,1,2716, 104901,2037,882,1,2822,
89733189,1,1958,3409,16, 104913523,1,2823,3756,16,
89740,107,1,2506,3410, 104920,107,1,2843,3549,
897516,0,107,1,58, 104931,2844,3554,1,2582,
89763411,19,429,1,58, 104943757,16,0,107,1,
89773412,5,9,1,2519, 104951958,3758,16,0,107,
89781618,1,2557,1627,1, 104961,58,3759,19,396,
89792521,3413,16,0,427, 104971,58,3760,5,30,
89801,2559,1633,1,2597, 104981,2536,1750,1,2521,
89813414,16,0,427,1, 104991767,1,2641,1779,1,
89822561,3415,16,0,427, 105002642,1784,1,2643,1756,
89831,2459,882,1,2464, 105011,2644,1789,1,2645,
8984899,1,2470,3416,16, 105021794,1,2646,1799,1,
89850,427,1,59,3417, 105032647,1762,1,2648,1878,
898619,426,1,59,3418, 105041,2650,1811,1,2651,
89875,9,1,2519,1618, 105051816,1,2652,1821,1,
89881,2557,1627,1,2521, 105062653,1826,1,2654,1831,
89893419,16,0,424,1, 105071,2655,1836,1,2656,
89902559,1633,1,2597,3420, 105081841,1,2657,1774,1,
899116,0,424,1,2561, 105092659,3761,16,0,394,
89923421,16,0,424,1, 105101,2551,1852,1,2559,
89932459,882,1,2464,899, 105111864,1,2567,1805,1,
89941,2470,3422,16,0, 105122459,1007,1,2464,1024,
8995424,1,60,3423,19, 105131,2575,1846,1,2470,
8996423,1,60,3424,5, 105143762,16,0,394,1,
89979,1,2519,1618,1, 105152580,1858,1,2703,3763,
89982557,1627,1,2521,3425, 1051616,0,394,1,2595,
899916,0,421,1,2559, 105171871,1,2597,3764,16,
90001633,1,2597,3426,16, 105180,394,1,59,3765,
90010,421,1,2561,3427, 1051919,393,1,59,3766,
900216,0,421,1,2459, 105205,30,1,2536,1750,
9003882,1,2464,899,1, 105211,2521,1767,1,2641,
90042470,3428,16,0,421, 105221779,1,2642,1784,1,
90051,61,3429,19,420, 105232643,1756,1,2644,1789,
90061,61,3430,5,9, 105241,2645,1794,1,2646,
90071,2519,1618,1,2557, 105251799,1,2647,1762,1,
90081627,1,2521,3431,16, 105262648,1878,1,2650,1811,
90090,418,1,2559,1633, 105271,2651,1816,1,2652,
90101,2597,3432,16,0, 105281821,1,2653,1826,1,
9011418,1,2561,3433,16, 105292654,1831,1,2655,1836,
90120,418,1,2459,882, 105301,2656,1841,1,2657,
90131,2464,899,1,2470, 105311774,1,2659,3767,16,
90143434,16,0,418,1, 105320,391,1,2551,1852,
901562,3435,19,417,1, 105331,2559,1864,1,2567,
901662,3436,5,9,1, 105341805,1,2459,1007,1,
90172519,1618,1,2557,1627, 105352464,1024,1,2575,1846,
90181,2521,3437,16,0, 105361,2470,3768,16,0,
9019415,1,2559,1633,1, 10537391,1,2580,1858,1,
90202597,3438,16,0,415, 105382703,3769,16,0,391,
90211,2561,3439,16,0, 105391,2595,1871,1,2597,
9022415,1,2459,882,1, 105403770,16,0,391,1,
90232464,899,1,2470,3440, 1054160,3771,19,557,1,
902416,0,415,1,63, 1054260,3772,5,30,1,
90253441,19,414,1,63, 105432536,1750,1,2521,1767,
90263442,5,9,1,2519, 105441,2641,1779,1,2642,
90271618,1,2557,1627,1, 105451784,1,2643,1756,1,
90282521,3443,16,0,412, 105462644,1789,1,2645,1794,
90291,2559,1633,1,2597, 105471,2646,1799,1,2647,
90303444,16,0,412,1, 105481762,1,2648,1878,1,
90312561,3445,16,0,412, 105492650,1811,1,2651,1816,
90321,2459,882,1,2464, 105501,2652,1821,1,2653,
9033899,1,2470,3446,16, 105511826,1,2654,1831,1,
90340,412,1,64,3447, 105522655,1836,1,2656,1841,
903519,653,1,64,3448, 105531,2657,1774,1,2659,
90365,9,1,2519,1618, 105543773,16,0,555,1,
90371,2557,1627,1,2521, 105552551,1852,1,2559,1864,
90383449,16,0,651,1, 105561,2567,1805,1,2459,
90392559,1633,1,2597,3450, 105571007,1,2464,1024,1,
904016,0,651,1,2561, 105582575,1846,1,2470,3774,
90413451,16,0,651,1, 1055916,0,555,1,2580,
90422459,882,1,2464,899, 105601858,1,2703,3775,16,
90431,2470,3452,16,0, 105610,555,1,2595,1871,
9044651,1,65,3453,19, 105621,2597,3776,16,0,
9045410,1,65,3454,5, 10563555,1,61,3777,19,
90469,1,2519,1618,1, 10564433,1,61,3778,5,
90472557,1627,1,2521,3455, 1056530,1,2536,1750,1,
904816,0,408,1,2559, 105662521,1767,1,2641,1779,
90491633,1,2597,3456,16, 105671,2642,1784,1,2643,
90500,408,1,2561,3457, 105681756,1,2644,1789,1,
905116,0,408,1,2459, 105692645,1794,1,2646,1799,
9052882,1,2464,899,1, 105701,2647,1762,1,2648,
90532470,3458,16,0,408, 105711878,1,2650,1811,1,
90541,66,3459,19,493, 105722651,1816,1,2652,1821,
90551,66,3460,5,9, 105731,2653,1826,1,2654,
90561,2519,1618,1,2557, 105741831,1,2655,1836,1,
90571627,1,2521,3461,16, 105752656,1841,1,2657,1774,
90580,491,1,2559,1633, 105761,2659,3779,16,0,
90591,2597,3462,16,0, 10577431,1,2551,1852,1,
9060491,1,2561,3463,16, 105782559,1864,1,2567,1805,
90610,491,1,2459,882, 105791,2459,1007,1,2464,
90621,2464,899,1,2470, 105801024,1,2575,1846,1,
90633464,16,0,491,1, 105812470,3780,16,0,431,
906467,3465,19,406,1, 105821,2580,1858,1,2703,
906567,3466,5,9,1, 105833781,16,0,431,1,
90662519,1618,1,2557,1627, 105842595,1871,1,2597,3782,
90671,2521,3467,16,0, 1058516,0,431,1,62,
9068404,1,2559,1633,1, 105863783,19,553,1,62,
90692597,3468,16,0,404, 105873784,5,30,1,2536,
90701,2561,3469,16,0, 105881750,1,2521,1767,1,
9071404,1,2459,882,1, 105892641,1779,1,2642,1784,
90722464,899,1,2470,3470, 105901,2643,1756,1,2644,
907316,0,404,1,68, 105911789,1,2645,1794,1,
90743471,19,403,1,68, 105922646,1799,1,2647,1762,
90753472,5,9,1,2519, 105931,2648,1878,1,2650,
90761618,1,2557,1627,1, 105941811,1,2651,1816,1,
90772521,3473,16,0,401, 105952652,1821,1,2653,1826,
90781,2559,1633,1,2597, 105961,2654,1831,1,2655,
90793474,16,0,401,1, 105971836,1,2656,1841,1,
90802561,3475,16,0,401, 105982657,1774,1,2659,3785,
90811,2459,882,1,2464, 1059916,0,551,1,2551,
9082899,1,2470,3476,16, 106001852,1,2559,1864,1,
90830,401,1,69,3477, 106012567,1805,1,2459,1007,
908419,486,1,69,3478, 106021,2464,1024,1,2575,
90855,9,1,2519,1618, 106031846,1,2470,3786,16,
90861,2557,1627,1,2521, 106040,551,1,2580,1858,
90873479,16,0,484,1, 106051,2703,3787,16,0,
90882559,1633,1,2597,3480, 10606551,1,2595,1871,1,
908916,0,484,1,2561, 106072597,3788,16,0,551,
90903481,16,0,484,1, 106081,63,3789,19,666,
90912459,882,1,2464,899, 106091,63,3790,5,30,
90921,2470,3482,16,0, 106101,2536,1750,1,2521,
9093484,1,70,3483,19, 106111767,1,2641,1779,1,
9094399,1,70,3484,5, 106122642,1784,1,2643,1756,
90959,1,2519,1618,1, 106131,2644,1789,1,2645,
90962557,1627,1,2521,3485, 106141794,1,2646,1799,1,
909716,0,397,1,2559, 106152647,1762,1,2648,1878,
90981633,1,2597,3486,16, 106161,2650,1811,1,2651,
90990,397,1,2561,3487, 106171816,1,2652,1821,1,
910016,0,397,1,2459, 106182653,1826,1,2654,1831,
9101882,1,2464,899,1, 106191,2655,1836,1,2656,
91022470,3488,16,0,397, 106201841,1,2657,1774,1,
91031,71,3489,19,483, 106212659,3791,16,0,664,
91041,71,3490,5,9, 106221,2551,1852,1,2559,
91051,2519,1618,1,2557, 106231864,1,2567,1805,1,
91061627,1,2521,3491,16, 106242459,1007,1,2464,1024,
91070,481,1,2559,1633, 106251,2575,1846,1,2470,
91081,2597,3492,16,0, 106263792,16,0,664,1,
9109481,1,2561,3493,16, 106272580,1858,1,2703,3793,
91100,481,1,2459,882, 1062816,0,664,1,2595,
91111,2464,899,1,2470, 106291871,1,2597,3794,16,
91123494,16,0,481,1, 106300,664,1,64,3795,
911372,3495,19,480,1, 1063119,426,1,64,3796,
911472,3496,5,9,1, 106325,30,1,2536,1750,
91152519,1618,1,2557,1627, 106331,2521,1767,1,2641,
91161,2521,3497,16,0, 106341779,1,2642,1784,1,
9117478,1,2559,1633,1, 106352643,1756,1,2644,1789,
91182597,3498,16,0,478, 106361,2645,1794,1,2646,
91191,2561,3499,16,0, 106371799,1,2647,1762,1,
9120478,1,2459,882,1, 106382648,1878,1,2650,1811,
91212464,899,1,2470,3500, 106391,2651,1816,1,2652,
912216,0,478,1,73, 106401821,1,2653,1826,1,
91233501,19,477,1,73, 106412654,1831,1,2655,1836,
91243502,5,9,1,2519, 106421,2656,1841,1,2657,
91251618,1,2557,1627,1, 106431774,1,2659,3797,16,
91262521,3503,16,0,475, 106440,424,1,2551,1852,
91271,2559,1633,1,2597, 106451,2559,1864,1,2567,
91283504,16,0,475,1, 106461805,1,2459,1007,1,
91292561,3505,16,0,475, 106472464,1024,1,2575,1846,
91301,2459,882,1,2464, 106481,2470,3798,16,0,
9131899,1,2470,3506,16, 10649424,1,2580,1858,1,
91320,475,1,74,3507, 106502703,3799,16,0,424,
913319,474,1,74,3508, 106511,2595,1871,1,2597,
91345,9,1,2519,1618, 106523800,16,0,424,1,
91351,2557,1627,1,2521, 1065365,3801,19,390,1,
91363509,16,0,472,1, 1065465,3802,5,30,1,
91372559,1633,1,2597,3510, 106552536,1750,1,2521,1767,
913816,0,472,1,2561, 106561,2641,1779,1,2642,
91393511,16,0,472,1, 106571784,1,2643,1756,1,
91402459,882,1,2464,899, 106582644,1789,1,2645,1794,
91411,2470,3512,16,0, 106591,2646,1799,1,2647,
9142472,1,75,3513,19, 106601762,1,2648,1878,1,
9143390,1,75,3514,5, 106612650,1811,1,2651,1816,
91449,1,2519,1618,1, 106621,2652,1821,1,2653,
91452557,1627,1,2521,3515, 106631826,1,2654,1831,1,
914616,0,388,1,2559, 106642655,1836,1,2656,1841,
91471633,1,2597,3516,16, 106651,2657,1774,1,2659,
91480,388,1,2561,3517, 106663803,16,0,388,1,
914916,0,388,1,2459, 106672551,1852,1,2559,1864,
9150882,1,2464,899,1, 106681,2567,1805,1,2459,
91512470,3518,16,0,388, 106691007,1,2464,1024,1,
91521,76,3519,19,387, 106702575,1846,1,2470,3804,
91531,76,3520,5,9, 1067116,0,388,1,2580,
91541,2519,1618,1,2557, 106721858,1,2703,3805,16,
91551627,1,2521,3521,16, 106730,388,1,2595,1871,
91560,385,1,2559,1633, 106741,2597,3806,16,0,
91571,2597,3522,16,0, 10675388,1,66,3807,19,
9158385,1,2561,3523,16, 10676778,1,66,3808,5,
91590,385,1,2459,882, 1067730,1,2536,1750,1,
91601,2464,899,1,2470, 106782521,1767,1,2641,1779,
91613524,16,0,385,1, 106791,2642,1784,1,2643,
916277,3525,19,471,1, 106801756,1,2644,1789,1,
916377,3526,5,9,1, 106812645,1794,1,2646,1799,
91642519,1618,1,2557,1627, 106821,2647,1762,1,2648,
91651,2521,3527,16,0, 106831878,1,2650,1811,1,
9166469,1,2559,1633,1, 106842651,1816,1,2652,1821,
91672597,3528,16,0,469, 106851,2653,1826,1,2654,
91681,2561,3529,16,0, 106861831,1,2655,1836,1,
9169469,1,2459,882,1, 106872656,1841,1,2657,1774,
91702464,899,1,2470,3530, 106881,2659,3809,16,0,
917116,0,469,1,78, 10689776,1,2551,1852,1,
91723531,19,566,1,78, 106902559,1864,1,2567,1805,
91733532,5,9,1,2519, 106911,2459,1007,1,2464,
91741618,1,2557,1627,1, 106921024,1,2575,1846,1,
91752521,3533,16,0,564, 106932470,3810,16,0,776,
91761,2559,1633,1,2597, 106941,2580,1858,1,2703,
91773534,16,0,564,1, 106953811,16,0,776,1,
91782561,3535,16,0,564, 106962595,1871,1,2597,3812,
91791,2459,882,1,2464, 1069716,0,776,1,67,
9180899,1,2470,3536,16, 106983813,19,475,1,67,
91810,564,1,79,3537, 106993814,5,30,1,2536,
918219,380,1,79,3538, 107001750,1,2521,1767,1,
91835,9,1,2519,1618, 107012641,1779,1,2642,1784,
91841,2557,1627,1,2521, 107021,2643,1756,1,2644,
91853539,16,0,378,1, 107031789,1,2645,1794,1,
91862559,1633,1,2597,3540, 107042646,1799,1,2647,1762,
918716,0,378,1,2561, 107051,2648,1878,1,2650,
91883541,16,0,378,1, 107061811,1,2651,1816,1,
91892459,882,1,2464,899, 107072652,1821,1,2653,1826,
91901,2470,3542,16,0, 107081,2654,1831,1,2655,
9191378,1,80,3543,19, 107091836,1,2656,1841,1,
9192377,1,80,3544,5, 107102657,1774,1,2659,3815,
91939,1,2519,1618,1, 1071116,0,473,1,2551,
91942557,1627,1,2521,3545, 107121852,1,2559,1864,1,
919516,0,375,1,2559, 107132567,1805,1,2459,1007,
91961633,1,2597,3546,16, 107141,2464,1024,1,2575,
91970,375,1,2561,3547, 107151846,1,2470,3816,16,
919816,0,375,1,2459, 107160,473,1,2580,1858,
9199882,1,2464,899,1, 107171,2703,3817,16,0,
92002470,3548,16,0,375, 10718473,1,2595,1871,1,
92011,81,3549,19,374, 107192597,3818,16,0,473,
92021,81,3550,5,9, 107201,68,3819,19,472,
92031,2519,1618,1,2557, 107211,68,3820,5,30,
92041627,1,2521,3551,16, 107221,2536,1750,1,2521,
92050,372,1,2559,1633, 107231767,1,2641,1779,1,
92061,2597,3552,16,0, 107242642,1784,1,2643,1756,
9207372,1,2561,3553,16, 107251,2644,1789,1,2645,
92080,372,1,2459,882, 107261794,1,2646,1799,1,
92091,2464,899,1,2470, 107272647,1762,1,2648,1878,
92103554,16,0,372,1, 107281,2650,1811,1,2651,
921182,3555,19,371,1, 107291816,1,2652,1821,1,
921282,3556,5,9,1, 107302653,1826,1,2654,1831,
92132519,1618,1,2557,1627, 107311,2655,1836,1,2656,
92141,2521,3557,16,0, 107321841,1,2657,1774,1,
9215369,1,2559,1633,1, 107332659,3821,16,0,470,
92162597,3558,16,0,369, 107341,2551,1852,1,2559,
92171,2561,3559,16,0, 107351864,1,2567,1805,1,
9218369,1,2459,882,1, 107362459,1007,1,2464,1024,
92192464,899,1,2470,3560, 107371,2575,1846,1,2470,
922016,0,369,1,83, 107383822,16,0,470,1,
92213561,19,368,1,83, 107392580,1858,1,2703,3823,
92223562,5,9,1,2519, 1074016,0,470,1,2595,
92231618,1,2557,1627,1, 107411871,1,2597,3824,16,
92242521,3563,16,0,366, 107420,470,1,69,3825,
92251,2559,1633,1,2597, 1074319,405,1,69,3826,
92263564,16,0,366,1, 107445,30,1,2536,1750,
92272561,3565,16,0,366, 107451,2521,1767,1,2641,
92281,2459,882,1,2464, 107461779,1,2642,1784,1,
9229899,1,2470,3566,16, 107472643,1756,1,2644,1789,
92300,366,1,84,3567, 107481,2645,1794,1,2646,
923119,365,1,84,3568, 107491799,1,2647,1762,1,
92325,9,1,2519,1618, 107502648,1878,1,2650,1811,
92331,2557,1627,1,2521, 107511,2651,1816,1,2652,
92343569,16,0,363,1, 107521821,1,2653,1826,1,
92352559,1633,1,2597,3570, 107532654,1831,1,2655,1836,
923616,0,363,1,2561, 107541,2656,1841,1,2657,
92373571,16,0,363,1, 107551774,1,2659,3827,16,
92382459,882,1,2464,899, 107560,403,1,2551,1852,
92391,2470,3572,16,0, 107571,2559,1864,1,2567,
9240363,1,85,3573,19, 107581805,1,2459,1007,1,
9241362,1,85,3574,5, 107592464,1024,1,2575,1846,
92429,1,2519,1618,1, 107601,2470,3828,16,0,
92432557,1627,1,2521,3575, 10761403,1,2580,1858,1,
924416,0,360,1,2559, 107622703,3829,16,0,403,
92451633,1,2597,3576,16, 107631,2595,1871,1,2597,
92460,360,1,2561,3577, 107643830,16,0,403,1,
924716,0,360,1,2459, 1076570,3831,19,402,1,
9248882,1,2464,899,1, 1076670,3832,5,30,1,
92492470,3578,16,0,360, 107672536,1750,1,2521,1767,
92501,86,3579,19,359, 107681,2641,1779,1,2642,
92511,86,3580,5,9, 107691784,1,2643,1756,1,
92521,2519,1618,1,2557, 107702644,1789,1,2645,1794,
92531627,1,2521,3581,16, 107711,2646,1799,1,2647,
92540,357,1,2559,1633, 107721762,1,2648,1878,1,
92551,2597,3582,16,0, 107732650,1811,1,2651,1816,
9256357,1,2561,3583,16, 107741,2652,1821,1,2653,
92570,357,1,2459,882, 107751826,1,2654,1831,1,
92581,2464,899,1,2470, 107762655,1836,1,2656,1841,
92593584,16,0,357,1, 107771,2657,1774,1,2659,
926087,3585,19,356,1, 107783833,16,0,400,1,
926187,3586,5,9,1, 107792551,1852,1,2559,1864,
92622519,1618,1,2557,1627, 107801,2567,1805,1,2459,
92631,2521,3587,16,0, 107811007,1,2464,1024,1,
9264354,1,2559,1633,1, 107822575,1846,1,2470,3834,
92652597,3588,16,0,354, 1078316,0,400,1,2580,
92661,2561,3589,16,0, 107841858,1,2703,3835,16,
9267354,1,2459,882,1, 107850,400,1,2595,1871,
92682464,899,1,2470,3590, 107861,2597,3836,16,0,
926916,0,354,1,88, 10787400,1,71,3837,19,
92703591,19,353,1,88, 10788399,1,71,3838,5,
92713592,5,9,1,2519, 1078930,1,2536,1750,1,
92721618,1,2557,1627,1, 107902521,1767,1,2641,1779,
92732521,3593,16,0,351, 107911,2642,1784,1,2643,
92741,2559,1633,1,2597, 107921756,1,2644,1789,1,
92753594,16,0,351,1, 107932645,1794,1,2646,1799,
92762561,3595,16,0,351, 107941,2647,1762,1,2648,
92771,2459,882,1,2464, 107951878,1,2650,1811,1,
9278899,1,2470,3596,16, 107962651,1816,1,2652,1821,
92790,351,1,89,3597, 107971,2653,1826,1,2654,
928019,347,1,89,3598, 107981831,1,2655,1836,1,
92815,9,1,2519,1618, 107992656,1841,1,2657,1774,
92821,2557,1627,1,2521, 108001,2659,3839,16,0,
92833599,16,0,345,1, 10801397,1,2551,1852,1,
92842559,1633,1,2597,3600, 108022559,1864,1,2567,1805,
928516,0,345,1,2561, 108031,2459,1007,1,2464,
92863601,16,0,345,1, 108041024,1,2575,1846,1,
92872459,882,1,2464,899, 108052470,3840,16,0,397,
92881,2470,3602,16,0, 108061,2580,1858,1,2703,
9289345,1,90,3603,19, 108073841,16,0,397,1,
9290350,1,90,3604,5, 108082595,1871,1,2597,3842,
92919,1,2519,1618,1, 1080916,0,397,1,72,
92922557,1627,1,2521,3605, 108103843,19,469,1,72,
929316,0,348,1,2559, 108113844,5,30,1,2536,
92941633,1,2597,3606,16, 108121750,1,2521,1767,1,
92950,348,1,2561,3607, 108132641,1779,1,2642,1784,
929616,0,348,1,2459, 108141,2643,1756,1,2644,
9297882,1,2464,899,1, 108151789,1,2645,1794,1,
92982470,3608,16,0,348, 108162646,1799,1,2647,1762,
92991,91,3609,19,344, 108171,2648,1878,1,2650,
93001,91,3610,5,9, 108181811,1,2651,1816,1,
93011,2519,1618,1,2557, 108192652,1821,1,2653,1826,
93021627,1,2521,3611,16, 108201,2654,1831,1,2655,
93030,342,1,2559,1633, 108211836,1,2656,1841,1,
93041,2597,3612,16,0, 108222657,1774,1,2659,3845,
9305342,1,2561,3613,16, 1082316,0,467,1,2551,
93060,342,1,2459,882, 108241852,1,2559,1864,1,
93071,2464,899,1,2470, 108252567,1805,1,2459,1007,
93083614,16,0,342,1, 108261,2464,1024,1,2575,
930992,3615,19,133,1, 108271846,1,2470,3846,16,
931092,3616,5,125,1, 108280,467,1,2580,1858,
93110,3617,16,0,563, 108291,2703,3847,16,0,
93121,1,1951,1,2, 10830467,1,2595,1871,1,
93131957,1,3,1962,1, 108312597,3848,16,0,467,
93144,1967,1,5,1972, 108321,73,3849,19,466,
93151,6,1977,1,7, 108331,73,3850,5,30,
93161982,1,8,3618,16, 108341,2536,1750,1,2521,
93170,131,1,1515,3619, 108351767,1,2641,1779,1,
931816,0,165,1,2021, 108362642,1784,1,2643,1756,
9319718,1,2022,3620,16, 108371,2644,1789,1,2645,
93200,497,1,256,3621, 108381794,1,2646,1799,1,
932116,0,173,1,2025, 108392647,1762,1,2648,1878,
93223622,16,0,501,1, 108401,2650,1811,1,2651,
932318,3623,16,0,138, 108411816,1,2652,1821,1,
93241,2027,3624,16,0, 108422653,1826,1,2654,1831,
9325505,1,2695,3625,16, 108431,2655,1836,1,2656,
93260,563,1,2029,725, 108441841,1,2657,1774,1,
93271,2030,731,1,2031, 108452659,3851,16,0,464,
9328736,1,2032,741,1, 108461,2551,1852,1,2559,
93292033,746,1,277,3626, 108471864,1,2567,1805,1,
933016,0,173,1,2035, 108482459,1007,1,2464,1024,
9331752,1,2037,757,1, 108491,2575,1846,1,2470,
93322039,762,1,32,3627, 108503852,16,0,464,1,
933316,0,165,1,2041, 108512580,1858,1,2703,3853,
9334768,1,2293,3628,16, 1085216,0,464,1,2595,
93350,173,1,2043,774, 108531871,1,2597,3854,16,
93361,2045,779,1,2713, 108540,464,1,74,3855,
93373206,1,2715,3195,1, 1085519,463,1,74,3856,
933841,3629,16,0,173, 108565,30,1,2536,1750,
93391,1297,3630,16,0, 108571,2521,1767,1,2641,
9340165,1,43,3631,16, 108581779,1,2642,1784,1,
93410,173,1,46,3632, 108592643,1756,1,2644,1789,
934216,0,178,1,1804, 108601,2645,1794,1,2646,
93433633,16,0,165,1, 108611799,1,2647,1762,1,
9344299,3634,16,0,173, 108622648,1878,1,2650,1811,
93451,52,3635,16,0, 108631,2651,1816,1,2652,
9346165,1,509,3636,16, 108641821,1,2653,1826,1,
93470,173,1,2318,3637, 108652654,1831,1,2655,1836,
934816,0,165,1,62, 108661,2656,1841,1,2657,
93493638,16,0,195,1, 108671774,1,2659,3857,16,
935065,3639,16,0,197, 108680,461,1,2551,1852,
93511,2075,3640,16,0, 108691,2559,1864,1,2567,
9352165,1,1574,799,1, 108701805,1,2459,1007,1,
935371,3641,16,0,173, 108712464,1024,1,2575,1846,
93541,1775,3642,16,0, 108721,2470,3858,16,0,
9355165,1,76,3643,16, 10873461,1,2580,1858,1,
93560,173,1,1834,3644, 108742703,3859,16,0,461,
935716,0,165,1,2337, 108751,2595,1871,1,2597,
93583645,16,0,165,1, 108763860,16,0,461,1,
935979,3646,16,0,173, 1087775,3861,19,449,1,
93601,1335,3647,16,0, 1087875,3862,5,30,1,
9361165,1,322,3648,16, 108792536,1750,1,2521,1767,
93620,173,1,85,3649, 108801,2641,1779,1,2642,
936316,0,173,1,1261, 108811784,1,2643,1756,1,
93643650,16,0,165,1, 108822644,1789,1,2645,1794,
936589,3651,16,0,173, 108831,2646,1799,1,2647,
93661,346,3652,16,0, 108841762,1,2648,1878,1,
9367173,1,97,3653,16, 108852650,1811,1,2651,1816,
93680,173,1,2106,3654, 108861,2652,1821,1,2653,
936916,0,165,1,102, 108871826,1,2654,1831,1,
93703655,16,0,173,1, 108882655,1836,1,2656,1841,
93711860,821,1,1803,787, 108891,2657,1774,1,2659,
93721,2364,827,1,1113, 108903863,16,0,447,1,
93733656,16,0,158,1, 108912551,1852,1,2559,1864,
9374112,3657,16,0,173, 108921,2567,1805,1,2459,
93751,1117,3658,16,0, 108931007,1,2464,1024,1,
9376165,1,1873,835,1, 108942575,1846,1,2470,3864,
93771876,3659,16,0,165, 1089516,0,447,1,2580,
93781,372,3660,16,0, 108961858,1,2703,3865,16,
9379535,1,374,3661,16, 108970,447,1,2595,1871,
93800,537,1,124,3662, 108981,2597,3866,16,0,
938116,0,173,1,376, 10899447,1,76,3867,19,
93823663,16,0,539,1, 10900570,1,76,3868,5,
9383378,3664,16,0,541, 1090130,1,2536,1750,1,
93841,2136,842,1,381, 109022521,1767,1,2641,1779,
93853665,16,0,173,1, 109031,2642,1784,1,2643,
9386525,3666,16,0,173, 109041756,1,2644,1789,1,
93871,137,3667,16,0, 109052645,1794,1,2646,1799,
9388173,1,1901,3668,16, 109061,2647,1762,1,2648,
93890,165,1,2655,3211, 109071878,1,2650,1811,1,
93901,2658,3669,16,0, 109082651,1816,1,2652,1821,
9391173,1,1153,3670,16, 109091,2653,1826,1,2654,
93920,165,1,151,3671, 109101831,1,2655,1836,1,
939316,0,173,1,1407, 109112656,1841,1,2657,1774,
93943672,16,0,165,1, 109121,2659,3869,16,0,
93951659,3673,16,0,165, 10913568,1,2551,1852,1,
93961,2413,3674,16,0, 109142559,1864,1,2567,1805,
9397165,1,406,3675,16, 109151,2459,1007,1,2464,
93980,173,1,1371,3676, 109161024,1,2575,1846,1,
939916,0,165,1,2105, 109172470,3870,16,0,568,
9400814,1,1657,894,1, 109181,2580,1858,1,2703,
9401166,3677,16,0,173, 109193871,16,0,568,1,
94021,1622,3678,16,0, 109202595,1871,1,2597,3872,
9403173,1,2683,3223,1, 1092116,0,568,1,77,
94041931,861,1,1933,3679, 109223873,19,445,1,77,
940516,0,165,1,431, 109233874,5,30,1,2536,
94063680,16,0,173,1, 109241750,1,2521,1767,1,
94071585,3681,16,0,173, 109252641,1779,1,2642,1784,
94081,182,3682,16,0, 109261,2643,1756,1,2644,
9409173,1,2694,3216,1, 109271789,1,2645,1794,1,
94101189,3683,16,0,165, 109282646,1799,1,2647,1762,
94111,1443,3684,16,0, 109291,2648,1878,1,2650,
9412165,1,1695,3685,16, 109301811,1,2651,1816,1,
94130,165,1,2198,3686, 109312652,1821,1,2653,1826,
941416,0,165,1,447, 109321,2654,1831,1,2655,
94153687,16,0,173,1, 109331836,1,2656,1841,1,
94162458,876,1,2459,882, 109342657,1774,1,2659,3875,
94171,1958,3688,16,0, 1093516,0,443,1,2551,
9418165,1,2462,889,1, 109361852,1,2559,1864,1,
94192714,3183,1,2464,899, 109372567,1805,1,2459,1007,
94201,2716,3189,1,2466, 109381,2464,1024,1,2575,
94213200,1,459,3689,16, 109391846,1,2470,3876,16,
94220,173,1,2468,3690, 109400,443,1,2580,1858,
942316,0,340,1,462, 109411,2703,3877,16,0,
94243691,16,0,173,1, 10942443,1,2595,1871,1,
9425199,3692,16,0,173, 109432597,3878,16,0,443,
94261,217,3693,16,0, 109441,78,3879,19,566,
9427173,1,2227,908,1, 109451,78,3880,5,30,
94281225,3694,16,0,165, 109461,2536,1750,1,2521,
94291,1479,3695,16,0, 109471767,1,2641,1779,1,
9430165,1,1731,3696,16, 109482642,1784,1,2643,1756,
94310,173,1,1989,916, 109491,2644,1789,1,2645,
94321,1990,3697,16,0, 109501794,1,2646,1799,1,
9433165,1,236,3698,16, 109512647,1762,1,2648,1878,
94340,173,1,1756,3699, 109521,2650,1811,1,2651,
943516,0,165,1,93, 109531816,1,2652,1821,1,
94363700,19,626,1,93, 109542653,1826,1,2654,1831,
94373701,5,95,1,256, 109551,2655,1836,1,2656,
94383702,16,0,624,1, 109561841,1,2657,1774,1,
94391261,3703,16,0,624, 109572659,3881,16,0,564,
94401,509,3704,16,0, 109581,2551,1852,1,2559,
9441624,1,1515,3705,16, 109591864,1,2567,1805,1,
94420,624,1,2021,718, 109602459,1007,1,2464,1024,
94431,1775,3706,16,0, 109611,2575,1846,1,2470,
9444624,1,2029,725,1, 109623882,16,0,564,1,
94452030,731,1,2031,736, 109632580,1858,1,2703,3883,
94461,2032,741,1,2033, 1096416,0,564,1,2595,
9447746,1,277,3707,16, 109651871,1,2597,3884,16,
94480,624,1,2035,752, 109660,564,1,79,3885,
94491,2037,757,1,2039, 1096719,563,1,79,3886,
9450762,1,32,3708,16, 109685,30,1,2536,1750,
94510,624,1,2041,768, 109691,2521,1767,1,2641,
94521,2293,3709,16,0, 109701779,1,2642,1784,1,
9453624,1,2043,774,1, 109712643,1756,1,2644,1789,
94542045,779,1,41,3710, 109721,2645,1794,1,2646,
945516,0,624,1,1297, 109731799,1,2647,1762,1,
94563711,16,0,624,1, 109742648,1878,1,2650,1811,
945743,3712,16,0,624, 109751,2651,1816,1,2652,
94581,1803,787,1,1804, 109761821,1,2653,1826,1,
94593713,16,0,624,1, 109772654,1831,1,2655,1836,
9460299,3714,16,0,624, 109781,2656,1841,1,2657,
94611,52,3715,16,0, 109791774,1,2659,3887,16,
9462624,1,2318,3716,16, 109800,561,1,2551,1852,
94630,624,1,62,3717, 109811,2559,1864,1,2567,
946416,0,624,1,2075, 109821805,1,2459,1007,1,
94653718,16,0,624,1, 109832464,1024,1,2575,1846,
94661574,799,1,71,3719, 109841,2470,3888,16,0,
946716,0,624,1,76, 10985561,1,2580,1858,1,
94683720,16,0,624,1, 109862703,3889,16,0,561,
94691834,3721,16,0,624, 109871,2595,1871,1,2597,
94701,2337,3722,16,0, 109883890,16,0,561,1,
9471624,1,79,3723,16, 1098980,3891,19,436,1,
94720,624,1,1335,3724, 1099080,3892,5,30,1,
947316,0,624,1,322, 109912536,1750,1,2521,1767,
94743725,16,0,624,1, 109921,2641,1779,1,2642,
947585,3726,16,0,624, 109931784,1,2643,1756,1,
94761,89,3727,16,0, 109942644,1789,1,2645,1794,
9477624,1,346,3728,16, 109951,2646,1799,1,2647,
94780,624,1,2105,814, 109961762,1,2648,1878,1,
94791,2106,3729,16,0, 109972650,1811,1,2651,1816,
9480624,1,97,3730,16, 109981,2652,1821,1,2653,
94810,624,1,1860,821, 109991826,1,2654,1831,1,
94821,2364,827,1,102, 110002655,1836,1,2656,1841,
94833731,16,0,624,1, 110011,2657,1774,1,2659,
9484112,3732,16,0,624, 110023893,16,0,434,1,
94851,1117,3733,16,0, 110032551,1852,1,2559,1864,
9486624,1,1873,835,1, 110041,2567,1805,1,2459,
94871876,3734,16,0,624, 110051007,1,2464,1024,1,
94881,124,3735,16,0, 110062575,1846,1,2470,3894,
9489624,1,2136,842,1, 1100716,0,434,1,2580,
9490381,3736,16,0,624, 110081858,1,2703,3895,16,
94911,525,3737,16,0, 110090,434,1,2595,1871,
9492624,1,137,3738,16, 110101,2597,3896,16,0,
94930,624,1,1901,3739, 11011434,1,81,3897,19,
949416,0,624,1,2658, 11012423,1,81,3898,5,
94953740,16,0,624,1, 1101330,1,2536,1750,1,
94961153,3741,16,0,624, 110142521,1767,1,2641,1779,
94971,151,3742,16,0, 110151,2642,1784,1,2643,
9498624,1,1407,3743,16, 110161756,1,2644,1789,1,
94990,624,1,1659,3744, 110172645,1794,1,2646,1799,
950016,0,624,1,2413, 110181,2647,1762,1,2648,
95013745,16,0,624,1, 110191878,1,2650,1811,1,
9502406,3746,16,0,624, 110202651,1816,1,2652,1821,
95031,1371,3747,16,0, 110211,2653,1826,1,2654,
9504624,1,166,3748,16, 110221831,1,2655,1836,1,
95050,624,1,1622,3749, 110232656,1841,1,2657,1774,
950616,0,624,1,1931, 110241,2659,3899,16,0,
9507861,1,1933,3750,16, 11025421,1,2551,1852,1,
95080,624,1,431,3751, 110262559,1864,1,2567,1805,
950916,0,624,1,1585, 110271,2459,1007,1,2464,
95103752,16,0,624,1, 110281024,1,2575,1846,1,
9511182,3753,16,0,624, 110292470,3900,16,0,421,
95121,1189,3754,16,0, 110301,2580,1858,1,2703,
9513624,1,1443,3755,16, 110313901,16,0,421,1,
95140,624,1,1695,3756, 110322595,1871,1,2597,3902,
951516,0,624,1,2198, 1103316,0,421,1,82,
95163757,16,0,624,1, 110343903,19,460,1,82,
9517447,3758,16,0,624, 110353904,5,30,1,2536,
95181,2458,876,1,2459, 110361750,1,2521,1767,1,
9519882,1,1958,3759,16, 110372641,1779,1,2642,1784,
95200,624,1,2462,889, 110381,2643,1756,1,2644,
95211,1657,894,1,2464, 110391789,1,2645,1794,1,
9522899,1,199,3760,16, 110402646,1799,1,2647,1762,
95230,624,1,459,3761, 110411,2648,1878,1,2650,
952416,0,624,1,462, 110421811,1,2651,1816,1,
95253762,16,0,624,1, 110432652,1821,1,2653,1826,
9526217,3763,16,0,624, 110441,2654,1831,1,2655,
95271,2227,908,1,1225, 110451836,1,2656,1841,1,
95283764,16,0,624,1, 110462657,1774,1,2659,3905,
95291479,3765,16,0,624, 1104716,0,458,1,2551,
95301,1731,3766,16,0, 110481852,1,2559,1864,1,
9531624,1,1989,916,1, 110492567,1805,1,2459,1007,
95321990,3767,16,0,624, 110501,2464,1024,1,2575,
95331,236,3768,16,0, 110511846,1,2470,3906,16,
9534624,1,1756,3769,16, 110520,458,1,2580,1858,
95350,624,1,94,3770, 110531,2703,3907,16,0,
953619,623,1,94,3771, 11054458,1,2595,1871,1,
95375,95,1,256,3772, 110552597,3908,16,0,458,
953816,0,621,1,1261, 110561,83,3909,19,420,
95393773,16,0,621,1, 110571,83,3910,5,30,
9540509,3774,16,0,621, 110581,2536,1750,1,2521,
95411,1515,3775,16,0, 110591767,1,2641,1779,1,
9542621,1,2021,718,1, 110602642,1784,1,2643,1756,
95431775,3776,16,0,621, 110611,2644,1789,1,2645,
95441,2029,725,1,2030, 110621794,1,2646,1799,1,
9545731,1,2031,736,1, 110632647,1762,1,2648,1878,
95462032,741,1,2033,746, 110641,2650,1811,1,2651,
95471,277,3777,16,0, 110651816,1,2652,1821,1,
9548621,1,2035,752,1, 110662653,1826,1,2654,1831,
95492037,757,1,2039,762, 110671,2655,1836,1,2656,
95501,32,3778,16,0, 110681841,1,2657,1774,1,
9551621,1,2041,768,1, 110692659,3911,16,0,418,
95522293,3779,16,0,621, 110701,2551,1852,1,2559,
95531,2043,774,1,2045, 110711864,1,2567,1805,1,
9554779,1,41,3780,16, 110722459,1007,1,2464,1024,
95550,621,1,1297,3781, 110731,2575,1846,1,2470,
955616,0,621,1,43, 110743912,16,0,418,1,
95573782,16,0,621,1, 110752580,1858,1,2703,3913,
95581803,787,1,1804,3783, 1107616,0,418,1,2595,
955916,0,621,1,299, 110771871,1,2597,3914,16,
95603784,16,0,621,1, 110780,418,1,84,3915,
956152,3785,16,0,621, 1107919,417,1,84,3916,
95621,2318,3786,16,0, 110805,30,1,2536,1750,
9563621,1,62,3787,16, 110811,2521,1767,1,2641,
95640,621,1,2075,3788, 110821779,1,2642,1784,1,
956516,0,621,1,1574, 110832643,1756,1,2644,1789,
9566799,1,71,3789,16, 110841,2645,1794,1,2646,
95670,621,1,76,3790, 110851799,1,2647,1762,1,
956816,0,621,1,1834, 110862648,1878,1,2650,1811,
95693791,16,0,621,1, 110871,2651,1816,1,2652,
95702337,3792,16,0,621, 110881821,1,2653,1826,1,
95711,79,3793,16,0, 110892654,1831,1,2655,1836,
9572621,1,1335,3794,16, 110901,2656,1841,1,2657,
95730,621,1,322,3795, 110911774,1,2659,3917,16,
957416,0,621,1,85, 110920,415,1,2551,1852,
95753796,16,0,621,1, 110931,2559,1864,1,2567,
957689,3797,16,0,621, 110941805,1,2459,1007,1,
95771,346,3798,16,0, 110952464,1024,1,2575,1846,
9578621,1,2105,814,1, 110961,2470,3918,16,0,
95792106,3799,16,0,621, 11097415,1,2580,1858,1,
95801,97,3800,16,0, 110982703,3919,16,0,415,
9581621,1,1860,821,1, 110991,2595,1871,1,2597,
95822364,827,1,102,3801, 111003920,16,0,415,1,
958316,0,621,1,112, 1110185,3921,19,578,1,
95843802,16,0,621,1, 1110285,3922,5,30,1,
95851117,3803,16,0,621, 111032536,1750,1,2521,1767,
95861,1873,835,1,1876, 111041,2641,1779,1,2642,
95873804,16,0,621,1, 111051784,1,2643,1756,1,
9588124,3805,16,0,621, 111062644,1789,1,2645,1794,
95891,2136,842,1,381, 111071,2646,1799,1,2647,
95903806,16,0,621,1, 111081762,1,2648,1878,1,
9591525,3807,16,0,621, 111092650,1811,1,2651,1816,
95921,137,3808,16,0, 111101,2652,1821,1,2653,
9593621,1,1901,3809,16, 111111826,1,2654,1831,1,
95940,621,1,2658,3810, 111122655,1836,1,2656,1841,
959516,0,621,1,1153, 111131,2657,1774,1,2659,
95963811,16,0,621,1, 111143923,16,0,576,1,
9597151,3812,16,0,621, 111152551,1852,1,2559,1864,
95981,1407,3813,16,0, 111161,2567,1805,1,2459,
9599621,1,1659,3814,16, 111171007,1,2464,1024,1,
96000,621,1,2413,3815, 111182575,1846,1,2470,3924,
960116,0,621,1,406, 1111916,0,576,1,2580,
96023816,16,0,621,1, 111201858,1,2703,3925,16,
96031371,3817,16,0,621, 111210,576,1,2595,1871,
96041,166,3818,16,0, 111221,2597,3926,16,0,
9605621,1,1622,3819,16, 11123576,1,86,3927,19,
96060,621,1,1931,861, 11124452,1,86,3928,5,
96071,1933,3820,16,0, 1112530,1,2536,1750,1,
9608621,1,431,3821,16, 111262521,1767,1,2641,1779,
96090,621,1,1585,3822, 111271,2642,1784,1,2643,
961016,0,621,1,182, 111281756,1,2644,1789,1,
96113823,16,0,621,1, 111292645,1794,1,2646,1799,
96121189,3824,16,0,621, 111301,2647,1762,1,2648,
96131,1443,3825,16,0, 111311878,1,2650,1811,1,
9614621,1,1695,3826,16, 111322651,1816,1,2652,1821,
96150,621,1,2198,3827, 111331,2653,1826,1,2654,
961616,0,621,1,447, 111341831,1,2655,1836,1,
96173828,16,0,621,1, 111352656,1841,1,2657,1774,
96182458,876,1,2459,882, 111361,2659,3929,16,0,
96191,1958,3829,16,0, 11137450,1,2551,1852,1,
9620621,1,2462,889,1, 111382559,1864,1,2567,1805,
96211657,894,1,2464,899, 111391,2459,1007,1,2464,
96221,199,3830,16,0, 111401024,1,2575,1846,1,
9623621,1,459,3831,16, 111412470,3930,16,0,450,
96240,621,1,462,3832, 111421,2580,1858,1,2703,
962516,0,621,1,217, 111433931,16,0,450,1,
96263833,16,0,621,1, 111442595,1871,1,2597,3932,
96272227,908,1,1225,3834, 1114516,0,450,1,87,
962816,0,621,1,1479, 111463933,19,560,1,87,
96293835,16,0,621,1, 111473934,5,30,1,2536,
96301731,3836,16,0,621, 111481750,1,2521,1767,1,
96311,1989,916,1,1990, 111492641,1779,1,2642,1784,
96323837,16,0,621,1, 111501,2643,1756,1,2644,
9633236,3838,16,0,621, 111511789,1,2645,1794,1,
96341,1756,3839,16,0, 111522646,1799,1,2647,1762,
9635621,1,95,3840,19, 111531,2648,1878,1,2650,
9636620,1,95,3841,5, 111541811,1,2651,1816,1,
963795,1,256,3842,16, 111552652,1821,1,2653,1826,
96380,618,1,1261,3843, 111561,2654,1831,1,2655,
963916,0,618,1,509, 111571836,1,2656,1841,1,
96403844,16,0,618,1, 111582657,1774,1,2659,3935,
96411515,3845,16,0,618, 1115916,0,558,1,2551,
96421,2021,718,1,1775, 111601852,1,2559,1864,1,
96433846,16,0,618,1, 111612567,1805,1,2459,1007,
96442029,725,1,2030,731, 111621,2464,1024,1,2575,
96451,2031,736,1,2032, 111631846,1,2470,3936,16,
9646741,1,2033,746,1, 111640,558,1,2580,1858,
9647277,3847,16,0,618, 111651,2703,3937,16,0,
96481,2035,752,1,2037, 11166558,1,2595,1871,1,
9649757,1,2039,762,1, 111672597,3938,16,0,558,
965032,3848,16,0,618, 111681,88,3939,19,414,
96511,2041,768,1,2293, 111691,88,3940,5,30,
96523849,16,0,618,1, 111701,2536,1750,1,2521,
96532043,774,1,2045,779, 111711767,1,2641,1779,1,
96541,41,3850,16,0, 111722642,1784,1,2643,1756,
9655618,1,1297,3851,16, 111731,2644,1789,1,2645,
96560,618,1,43,3852, 111741794,1,2646,1799,1,
965716,0,618,1,1803, 111752647,1762,1,2648,1878,
9658787,1,1804,3853,16, 111761,2650,1811,1,2651,
96590,618,1,299,3854, 111771816,1,2652,1821,1,
966016,0,618,1,52, 111782653,1826,1,2654,1831,
96613855,16,0,618,1, 111791,2655,1836,1,2656,
96622318,3856,16,0,618, 111801841,1,2657,1774,1,
96631,62,3857,16,0, 111812659,3941,16,0,412,
9664618,1,2075,3858,16, 111821,2551,1852,1,2559,
96650,618,1,1574,799, 111831864,1,2567,1805,1,
96661,71,3859,16,0, 111842459,1007,1,2464,1024,
9667618,1,76,3860,16, 111851,2575,1846,1,2470,
96680,618,1,1834,3861, 111863942,16,0,412,1,
966916,0,618,1,2337, 111872580,1858,1,2703,3943,
96703862,16,0,618,1, 1118816,0,412,1,2595,
967179,3863,16,0,618, 111891871,1,2597,3944,16,
96721,1335,3864,16,0, 111900,412,1,89,3945,
9673618,1,322,3865,16, 1119119,408,1,89,3946,
96740,618,1,85,3866, 111925,30,1,2536,1750,
967516,0,618,1,89, 111931,2521,1767,1,2641,
96763867,16,0,618,1, 111941779,1,2642,1784,1,
9677346,3868,16,0,618, 111952643,1756,1,2644,1789,
96781,2105,814,1,2106, 111961,2645,1794,1,2646,
96793869,16,0,618,1, 111971799,1,2647,1762,1,
968097,3870,16,0,618, 111982648,1878,1,2650,1811,
96811,1860,821,1,2364, 111991,2651,1816,1,2652,
9682827,1,102,3871,16, 112001821,1,2653,1826,1,
96830,618,1,112,3872, 112012654,1831,1,2655,1836,
968416,0,618,1,1117, 112021,2656,1841,1,2657,
96853873,16,0,618,1, 112031774,1,2659,3947,16,
96861873,835,1,1876,3874, 112040,406,1,2551,1852,
968716,0,618,1,124, 112051,2559,1864,1,2567,
96883875,16,0,618,1, 112061805,1,2459,1007,1,
96892136,842,1,381,3876, 112072464,1024,1,2575,1846,
969016,0,618,1,525, 112081,2470,3948,16,0,
96913877,16,0,618,1, 11209406,1,2580,1858,1,
9692137,3878,16,0,618, 112102703,3949,16,0,406,
96931,1901,3879,16,0, 112111,2595,1871,1,2597,
9694618,1,2658,3880,16, 112123950,16,0,406,1,
96950,618,1,1153,3881, 1121390,3951,19,411,1,
969616,0,618,1,151, 1121490,3952,5,30,1,
96973882,16,0,618,1, 112152536,1750,1,2521,1767,
96981407,3883,16,0,618, 112161,2641,1779,1,2642,
96991,1659,3884,16,0, 112171784,1,2643,1756,1,
9700618,1,2413,3885,16, 112182644,1789,1,2645,1794,
97010,618,1,406,3886, 112191,2646,1799,1,2647,
970216,0,618,1,1371, 112201762,1,2648,1878,1,
97033887,16,0,618,1, 112212650,1811,1,2651,1816,
9704166,3888,16,0,618, 112221,2652,1821,1,2653,
97051,1622,3889,16,0, 112231826,1,2654,1831,1,
9706618,1,1931,861,1, 112242655,1836,1,2656,1841,
97071933,3890,16,0,618, 112251,2657,1774,1,2659,
97081,431,3891,16,0, 112263953,16,0,409,1,
9709618,1,1585,3892,16, 112272551,1852,1,2559,1864,
97100,618,1,182,3893, 112281,2567,1805,1,2459,
971116,0,618,1,1189, 112291007,1,2464,1024,1,
97123894,16,0,618,1, 112302575,1846,1,2470,3954,
97131443,3895,16,0,618, 1123116,0,409,1,2580,
97141,1695,3896,16,0, 112321858,1,2703,3955,16,
9715618,1,2198,3897,16, 112330,409,1,2595,1871,
97160,618,1,447,3898, 112341,2597,3956,16,0,
971716,0,618,1,2458, 11235409,1,91,3957,19,
9718876,1,2459,882,1, 11236768,1,91,3958,5,
97191958,3899,16,0,618, 1123730,1,2536,1750,1,
97201,2462,889,1,1657, 112382521,1767,1,2641,1779,
9721894,1,2464,899,1, 112391,2642,1784,1,2643,
9722199,3900,16,0,618, 112401756,1,2644,1789,1,
97231,459,3901,16,0, 112412645,1794,1,2646,1799,
9724618,1,462,3902,16, 112421,2647,1762,1,2648,
97250,618,1,217,3903, 112431878,1,2650,1811,1,
972616,0,618,1,2227, 112442651,1816,1,2652,1821,
9727908,1,1225,3904,16, 112451,2653,1826,1,2654,
97280,618,1,1479,3905, 112461831,1,2655,1836,1,
972916,0,618,1,1731, 112472656,1841,1,2657,1774,
97303906,16,0,618,1, 112481,2659,3959,16,0,
97311989,916,1,1990,3907, 11249766,1,2551,1852,1,
973216,0,618,1,236, 112502559,1864,1,2567,1805,
97333908,16,0,618,1, 112511,2459,1007,1,2464,
97341756,3909,16,0,618, 112521024,1,2575,1846,1,
97351,96,3910,19,103, 112532470,3960,16,0,766,
97361,96,3911,5,1, 112541,2580,1858,1,2703,
97371,0,3912,16,0, 112553961,16,0,766,1,
9738104,1,97,3913,19, 112562595,1871,1,2597,3962,
9739611,1,97,3914,5, 1125716,0,766,1,92,
97401,1,0,3915,16, 112583963,19,456,1,92,
97410,609,1,98,3916, 112593964,5,30,1,2536,
974219,636,1,98,3917, 112601750,1,2521,1767,1,
97435,2,1,0,3918, 112612641,1779,1,2642,1784,
974416,0,638,1,2695, 112621,2643,1756,1,2644,
97453919,16,0,634,1, 112631789,1,2645,1794,1,
974699,3920,19,633,1, 112642646,1799,1,2647,1762,
974799,3921,5,2,1, 112651,2648,1878,1,2650,
97480,3922,16,0,637, 112661811,1,2651,1816,1,
97491,2695,3923,16,0, 112672652,1821,1,2653,1826,
9750631,1,100,3924,19, 112681,2654,1831,1,2655,
9751296,1,100,3925,5, 112691836,1,2656,1841,1,
97522,1,0,3926,16, 112702657,1774,1,2659,3965,
97530,557,1,2695,3927, 1127116,0,454,1,2551,
975416,0,294,1,101, 112721852,1,2559,1864,1,
97553928,19,561,1,101, 112732567,1805,1,2459,1007,
97563929,5,4,1,0, 112741,2464,1024,1,2575,
97573930,16,0,641,1, 112751846,1,2470,3966,16,
97582695,3931,16,0,641, 112760,454,1,2580,1858,
97591,2706,3932,16,0, 112771,2703,3967,16,0,
9760559,1,2636,3933,16, 11278454,1,2595,1871,1,
97610,559,1,102,3934, 112792597,3968,16,0,454,
976219,591,1,102,3935, 112801,93,3969,19,133,
97635,2,1,2470,3936, 112811,93,3970,5,129,
976416,0,664,1,2561, 112821,0,3971,16,0,
97653937,16,0,589,1, 11283789,1,1,2244,1,
9766103,3938,19,463,1, 112842,2250,1,3,2255,
9767103,3939,5,4,1, 112851,4,2260,1,5,
97682597,3940,16,0,558, 112862265,1,6,2270,1,
97691,2521,3941,16,0, 112877,2275,1,8,3972,
9770558,1,2470,3942,16, 1128816,0,131,1,1515,
97710,461,1,2561,3943, 112893973,16,0,181,1,
977216,0,461,1,104, 112902021,843,1,2022,3974,
97733944,19,141,1,104, 1129116,0,583,1,256,
97743945,5,3,1,2642, 112923975,16,0,189,1,
97753946,16,0,569,1, 112932527,3976,16,0,311,
97762506,3947,16,0,317, 112941,18,3977,16,0,
97771,10,3948,16,0, 11295138,1,2027,3978,16,
9778139,1,105,3949,19, 112960,591,1,2029,850,
9779151,1,105,3950,5, 112971,2030,856,1,2031,
978017,1,0,3951,16, 11298861,1,2032,866,1,
97810,254,1,2075,3952, 112992786,3979,16,0,189,
978216,0,648,1,2337, 113001,277,3980,16,0,
97833953,16,0,648,1, 11301189,1,2035,877,1,
97842413,3954,16,0,648, 113022037,882,1,2039,887,
97851,10,3955,16,0, 113031,32,3981,16,0,
9786336,1,2198,3956,16, 11304181,1,2041,893,1,
97870,648,1,1901,3957, 113052293,3982,16,0,189,
978816,0,648,1,2642, 113061,2043,899,1,2045,
97893958,16,0,336,1, 11307904,1,41,3983,16,
979021,3959,16,0,149, 113080,189,1,1297,3984,
97911,2106,3960,16,0, 1130916,0,181,1,43,
9792648,1,2506,3961,16, 113103985,16,0,189,1,
97930,336,1,1804,3962, 1131146,3986,16,0,194,
979416,0,648,1,1990, 113121,1804,3987,16,0,
97953963,16,0,648,1, 11313181,1,299,3988,16,
97962695,3964,16,0,254, 113140,189,1,2811,3559,
97971,32,3965,16,0, 113151,52,3989,16,0,
9798648,1,1958,3966,16, 11316181,1,509,3990,16,
97990,648,1,1775,3967, 113170,189,1,2318,3991,
980016,0,648,1,106, 1131816,0,181,1,2822,
98013968,19,130,1,106, 113193523,1,62,3992,16,
98023969,5,18,1,0, 113200,218,1,65,3993,
98033970,16,0,128,1, 1132116,0,220,1,2075,
98042642,3971,16,0,137, 113223994,16,0,181,1,
98051,2075,3972,16,0, 113231574,924,1,71,3995,
9806137,1,2337,3973,16, 1132416,0,189,1,1775,
98070,137,1,2413,3974, 113253996,16,0,181,1,
980816,0,137,1,10, 1132676,3997,16,0,189,
98093975,16,0,137,1, 113271,1834,3998,16,0,
98102198,3976,16,0,137, 11328181,1,2337,3999,16,
98111,1901,3977,16,0, 113290,181,1,79,4000,
9812137,1,52,3978,16, 1133016,0,189,1,1335,
98130,193,1,21,3979, 113314001,16,0,181,1,
981416,0,137,1,2106, 113322842,3544,1,2843,3549,
98153980,16,0,137,1, 113331,2844,3554,1,85,
98162506,3981,16,0,137, 113344002,16,0,189,1,
98171,1804,3982,16,0, 113351261,4003,16,0,181,
9818137,1,1990,3983,16, 113361,89,4004,16,0,
98190,137,1,2695,3984, 11337189,1,2033,871,1,
982016,0,128,1,32, 11338322,4005,16,0,189,
98213985,16,0,137,1, 113391,97,4006,16,0,
98221958,3986,16,0,137, 11340189,1,2106,4007,16,
98231,1775,3987,16,0, 113410,181,1,102,4008,
9824137,1,107,3988,19, 1134216,0,189,1,1860,
9825658,1,107,3989,5, 11343946,1,1803,912,1,
98264,1,2597,3990,16, 113442364,952,1,346,4009,
98270,656,1,2521,3991, 1134516,0,189,1,1113,
982816,0,656,1,2470, 113464010,16,0,173,1,
98293992,16,0,656,1, 113472783,3517,1,112,4011,
98302561,3993,16,0,656, 1134816,0,189,1,1117,
98311,108,3994,19,335, 113494012,16,0,181,1,
98321,108,3995,5,14, 113501371,4013,16,0,181,
98331,2517,3996,16,0, 113511,1876,4014,16,0,
9834437,1,2075,3997,16, 11352181,1,372,4015,16,
98350,506,1,2337,3998, 113530,621,1,374,4016,
983616,0,506,1,2413, 1135416,0,623,1,124,
98373999,16,0,506,1, 113554017,16,0,189,1,
98381901,4000,16,0,506, 11356376,4018,16,0,625,
98391,2198,4001,16,0, 113571,378,4019,16,0,
9840506,1,2106,4002,16, 11358627,1,2136,968,1,
98410,506,1,2653,4003, 11359381,4020,16,0,189,
984216,0,571,1,1804, 113601,525,4021,16,0,
98434004,16,0,506,1, 11361189,1,137,4022,16,
98441990,4005,16,0,506, 113620,189,1,1901,4023,
98451,31,4006,16,0, 1136316,0,181,1,2025,
9846333,1,32,4007,16, 113644024,16,0,587,1,
98470,506,1,1958,4008, 113651153,4025,16,0,181,
984816,0,506,1,1775, 113661,151,4026,16,0,
98494009,16,0,506,1, 11367189,1,1407,4027,16,
9850109,4010,19,302,1, 113680,181,1,1659,4028,
9851109,4011,5,1,1, 1136916,0,181,1,2413,
985232,4012,16,0,300, 113704029,16,0,181,1,
98531,110,4013,19,261, 11371406,4030,16,0,189,
98541,110,4014,5,11, 113721,2512,4031,16,0,
98551,2075,4015,16,0, 11373490,1,2105,939,1,
9856577,1,2337,4016,16, 11374166,4032,16,0,189,
98570,265,1,2413,4017, 113751,1622,4033,16,0,
985816,0,445,1,1901, 11376189,1,2841,3538,1,
98594018,16,0,391,1, 113771931,986,1,1873,961,
98602198,4019,16,0,319, 113781,431,4034,16,0,
98611,2106,4020,16,0, 11379189,1,1585,4035,16,
9862607,1,1804,4021,16, 113800,189,1,182,4036,
98630,284,1,1990,4022, 1138116,0,189,1,1189,
986416,0,494,1,32, 113824037,16,0,181,1,
98654023,16,0,329,1, 113831443,4038,16,0,181,
98661958,4024,16,0,450, 113841,1695,4039,16,0,
98671,1775,4025,16,0, 11385181,1,2198,4040,16,
9868259,1,111,4026,19, 113860,181,1,2542,4041,
9869583,1,111,4027,5, 1138716,0,644,1,447,
987011,1,2075,4028,16, 113884042,16,0,189,1,
98710,581,1,2337,4029, 113892458,1001,1,2459,1007,
987216,0,581,1,2413, 113901,1958,4043,16,0,
98734030,16,0,581,1, 11391181,1,2462,1014,1,
98741901,4031,16,0,581, 113921657,1019,1,2464,1024,
98751,2198,4032,16,0, 113931,2466,3532,1,459,
9876581,1,2106,4033,16, 113944044,16,0,189,1,
98770,581,1,1804,4034, 113952468,4045,16,0,386,
987816,0,581,1,1990, 113961,462,4046,16,0,
98794035,16,0,581,1, 11397189,1,199,4047,16,
988032,4036,16,0,581, 113980,189,1,217,4048,
98811,1958,4037,16,0, 1139916,0,189,1,2227,
9882581,1,1775,4038,16, 114001033,1,1225,4049,16,
98830,581,1,112,4039, 114010,181,1,1479,4050,
988419,645,1,112,4040, 1140216,0,181,1,1731,
98855,11,1,2075,4041, 114034051,16,0,189,1,
988616,0,643,1,2337, 114041989,1041,1,1990,4052,
98874042,16,0,643,1, 1140516,0,181,1,236,
98882413,4043,16,0,643, 114064053,16,0,189,1,
98891,1901,4044,16,0, 114071933,4054,16,0,181,
9890643,1,2198,4045,16, 114081,2823,4055,16,0,
98910,643,1,2106,4046, 11409789,1,2508,4056,16,
989216,0,643,1,1804, 114100,484,1,1756,4057,
98934047,16,0,643,1, 1141116,0,181,1,94,
98941990,4048,16,0,643, 114124058,19,746,1,94,
98951,32,4049,16,0, 114134059,5,95,1,256,
9896643,1,1958,4050,16, 114144060,16,0,744,1,
98970,643,1,1775,4051, 114151261,4061,16,0,744,
989816,0,643,1,113, 114161,509,4062,16,0,
98994052,19,161,1,113, 11417744,1,1515,4063,16,
99004053,5,31,1,1901, 114180,744,1,2021,843,
99014054,16,0,647,1, 114191,1775,4064,16,0,
99021479,4055,16,0,551, 11420744,1,2029,850,1,
99031,2075,4056,16,0, 114212030,856,1,2031,861,
9904647,1,1695,4057,16, 114221,2032,866,1,2033,
99050,189,1,1756,4058, 11423871,1,277,4065,16,
990616,0,188,1,2413, 114240,744,1,2035,877,
99074059,16,0,647,1, 114251,2037,882,1,2039,
99082198,4060,16,0,647, 11426887,1,32,4066,16,
99091,1876,4061,16,0, 114270,744,1,2041,893,
9910661,1,1659,4062,16, 114281,2293,4067,16,0,
99110,188,1,1443,4063, 11429744,1,2043,899,1,
991216,0,522,1,1117, 114302045,904,1,41,4068,
99134064,16,0,159,1, 1143116,0,744,1,1297,
99141990,4065,16,0,647, 114324069,16,0,744,1,
99151,1189,4066,16,0, 1143343,4070,16,0,744,
9916240,1,1775,4067,16, 114341,1803,912,1,1804,
99170,647,1,32,4068, 114354071,16,0,744,1,
991816,0,647,1,2106, 11436299,4072,16,0,744,
99194069,16,0,647,1, 114371,52,4073,16,0,
99201515,4070,16,0,579, 11438744,1,2318,4074,16,
99211,2337,4071,16,0, 114390,744,1,62,4075,
9922647,1,52,4072,16, 1144016,0,744,1,2075,
99230,592,1,1804,4073, 114414076,16,0,744,1,
992416,0,647,1,1261, 114421574,924,1,71,4077,
99254074,16,0,298,1, 1144316,0,744,1,76,
99261153,4075,16,0,247, 114444078,16,0,744,1,
99271,1225,4076,16,0, 114451834,4079,16,0,744,
9928274,1,1335,4077,16, 114461,2337,4080,16,0,
99290,443,1,1933,4078, 11447744,1,79,4081,16,
993016,0,553,1,1834, 114480,744,1,1335,4082,
99314079,16,0,312,1, 1144916,0,744,1,322,
99321297,4080,16,0,323, 114504083,16,0,744,1,
99331,1407,4081,16,0, 1145185,4084,16,0,744,
9934568,1,2318,4082,16, 114521,89,4085,16,0,
99350,188,1,1958,4083, 11453744,1,346,4086,16,
993616,0,647,1,1371, 114540,744,1,2105,939,
99374084,16,0,438,1, 114551,2106,4087,16,0,
9938114,4085,19,531,1, 11456744,1,97,4088,16,
9939114,4086,5,11,1, 114570,744,1,1860,946,
99402075,4087,16,0,529, 114581,2364,952,1,102,
99411,2337,4088,16,0, 114594089,16,0,744,1,
9942529,1,2413,4089,16, 11460112,4090,16,0,744,
99430,529,1,1901,4090, 114611,1117,4091,16,0,
994416,0,529,1,2198, 11462744,1,2786,4092,16,
99454091,16,0,529,1, 114630,744,1,1873,961,
99462106,4092,16,0,529, 114641,1876,4093,16,0,
99471,1804,4093,16,0, 11465744,1,124,4094,16,
9948529,1,1990,4094,16, 114660,744,1,2136,968,
99490,529,1,32,4095, 114671,381,4095,16,0,
995016,0,529,1,1958, 11468744,1,525,4096,16,
99514096,16,0,529,1, 114690,744,1,137,4097,
99521775,4097,16,0,529, 1147016,0,744,1,1901,
99531,115,4098,19,527, 114714098,16,0,744,1,
99541,115,4099,5,11, 114721153,4099,16,0,744,
99551,2075,4100,16,0, 114731,151,4100,16,0,
9956525,1,2337,4101,16, 11474744,1,1407,4101,16,
99570,525,1,2413,4102, 114750,744,1,1659,4102,
995816,0,525,1,1901, 1147616,0,744,1,2413,
99594103,16,0,525,1, 114774103,16,0,744,1,
99602198,4104,16,0,525, 11478406,4104,16,0,744,
99611,2106,4105,16,0, 114791,1371,4105,16,0,
9962525,1,1804,4106,16, 11480744,1,166,4106,16,
99630,525,1,1990,4107, 114810,744,1,1622,4107,
996416,0,525,1,32, 1148216,0,744,1,1931,
99654108,16,0,525,1, 11483986,1,1933,4108,16,
99661958,4109,16,0,525, 114840,744,1,431,4109,
99671,1775,4110,16,0, 1148516,0,744,1,1585,
9968525,1,116,4111,19, 114864110,16,0,744,1,
9969575,1,116,4112,5, 11487182,4111,16,0,744,
997011,1,2075,4113,16, 114881,1189,4112,16,0,
99710,573,1,2337,4114, 11489744,1,1443,4113,16,
997216,0,573,1,2413, 114900,744,1,1695,4114,
99734115,16,0,573,1, 1149116,0,744,1,2198,
99741901,4116,16,0,573, 114924115,16,0,744,1,
99751,2198,4117,16,0, 11493447,4116,16,0,744,
9976573,1,2106,4118,16, 114941,2458,1001,1,2459,
99770,573,1,1804,4119, 114951007,1,1958,4117,16,
997816,0,573,1,1990, 114960,744,1,2462,1014,
99794120,16,0,573,1, 114971,1657,1019,1,2464,
998032,4121,16,0,573, 114981024,1,199,4118,16,
99811,1958,4122,16,0, 114990,744,1,459,4119,
9982573,1,1775,4123,16, 1150016,0,744,1,462,
99830,573,1,117,4124, 115014120,16,0,744,1,
998419,521,1,117,4125, 11502217,4121,16,0,744,
99855,11,1,2075,4126, 115031,2227,1033,1,1225,
998616,0,519,1,2337, 115044122,16,0,744,1,
99874127,16,0,519,1, 115051479,4123,16,0,744,
99882413,4128,16,0,519, 115061,1731,4124,16,0,
99891,1901,4129,16,0, 11507744,1,1989,1041,1,
9990519,1,2198,4130,16, 115081990,4125,16,0,744,
99910,519,1,2106,4131, 115091,236,4126,16,0,
999216,0,519,1,1804, 11510744,1,1756,4127,16,
99934132,16,0,519,1, 115110,744,1,95,4128,
99941990,4133,16,0,519, 1151219,743,1,95,4129,
99951,32,4134,16,0, 115135,95,1,256,4130,
9996519,1,1958,4135,16, 1151416,0,741,1,1261,
99970,519,1,1775,4136, 115154131,16,0,741,1,
999816,0,519,1,118, 11516509,4132,16,0,741,
99994137,19,518,1,118, 115171,1515,4133,16,0,
100004138,5,11,1,2075, 11518741,1,2021,843,1,
100014139,16,0,516,1, 115191775,4134,16,0,741,
100022337,4140,16,0,516, 115201,2029,850,1,2030,
100031,2413,4141,16,0, 11521856,1,2031,861,1,
10004516,1,1901,4142,16, 115222032,866,1,2033,871,
100050,516,1,2198,4143, 115231,277,4135,16,0,
1000616,0,516,1,2106, 11524741,1,2035,877,1,
100074144,16,0,516,1, 115252037,882,1,2039,887,
100081804,4145,16,0,516, 115261,32,4136,16,0,
100091,1990,4146,16,0, 11527741,1,2041,893,1,
10010516,1,32,4147,16, 115282293,4137,16,0,741,
100110,516,1,1958,4148, 115291,2043,899,1,2045,
1001216,0,516,1,1775, 11530904,1,41,4138,16,
100134149,16,0,516,1, 115310,741,1,1297,4139,
10014119,4150,19,515,1, 1153216,0,741,1,43,
10015119,4151,5,11,1, 115334140,16,0,741,1,
100162075,4152,16,0,513, 115341803,912,1,1804,4141,
100171,2337,4153,16,0, 1153516,0,741,1,299,
10018513,1,2413,4154,16, 115364142,16,0,741,1,
100190,513,1,1901,4155, 1153752,4143,16,0,741,
1002016,0,513,1,2198, 115381,2318,4144,16,0,
100214156,16,0,513,1, 11539741,1,62,4145,16,
100222106,4157,16,0,513, 115400,741,1,2075,4146,
100231,1804,4158,16,0, 1154116,0,741,1,1574,
10024513,1,1990,4159,16, 11542924,1,71,4147,16,
100250,513,1,32,4160, 115430,741,1,76,4148,
1002616,0,513,1,1958, 1154416,0,741,1,1834,
100274161,16,0,513,1, 115454149,16,0,741,1,
100281775,4162,16,0,513, 115462337,4150,16,0,741,
100291,120,4163,19,512, 115471,79,4151,16,0,
100301,120,4164,5,11, 11548741,1,1335,4152,16,
100311,2075,4165,16,0, 115490,741,1,322,4153,
10032510,1,2337,4166,16, 1155016,0,741,1,85,
100330,510,1,2413,4167, 115514154,16,0,741,1,
1003416,0,510,1,1901, 1155289,4155,16,0,741,
100354168,16,0,510,1, 115531,346,4156,16,0,
100362198,4169,16,0,510, 11554741,1,2105,939,1,
100371,2106,4170,16,0, 115552106,4157,16,0,741,
10038510,1,1804,4171,16, 115561,97,4158,16,0,
100390,510,1,1990,4172, 11557741,1,1860,946,1,
1004016,0,510,1,32, 115582364,952,1,102,4159,
100414173,16,0,510,1, 1155916,0,741,1,112,
100421958,4174,16,0,510, 115604160,16,0,741,1,
100431,1775,4175,16,0, 115611117,4161,16,0,741,
10044510,1,121,4176,19, 115621,2786,4162,16,0,
10045509,1,121,4177,5, 11563741,1,1873,961,1,
1004611,1,2075,4178,16, 115641876,4163,16,0,741,
100470,507,1,2337,4179, 115651,124,4164,16,0,
1004816,0,507,1,2413, 11566741,1,2136,968,1,
100494180,16,0,507,1, 11567381,4165,16,0,741,
100501901,4181,16,0,507, 115681,525,4166,16,0,
100511,2198,4182,16,0, 11569741,1,137,4167,16,
10052507,1,2106,4183,16, 115700,741,1,1901,4168,
100530,507,1,1804,4184, 1157116,0,741,1,1153,
1005416,0,507,1,1990, 115724169,16,0,741,1,
100554185,16,0,507,1, 11573151,4170,16,0,741,
1005632,4186,16,0,507, 115741,1407,4171,16,0,
11575741,1,1659,4172,16,
115760,741,1,2413,4173,
1157716,0,741,1,406,
115784174,16,0,741,1,
115791371,4175,16,0,741,
115801,166,4176,16,0,
11581741,1,1622,4177,16,
115820,741,1,1931,986,
115831,1933,4178,16,0,
11584741,1,431,4179,16,
115850,741,1,1585,4180,
1158616,0,741,1,182,
115874181,16,0,741,1,
115881189,4182,16,0,741,
115891,1443,4183,16,0,
11590741,1,1695,4184,16,
115910,741,1,2198,4185,
1159216,0,741,1,447,
115934186,16,0,741,1,
115942458,1001,1,2459,1007,
100571,1958,4187,16,0, 115951,1958,4187,16,0,
10058507,1,1775,4188,16, 11596741,1,2462,1014,1,
100590,507,1,122,4189, 115971657,1019,1,2464,1024,
1006019,147,1,122,4190, 115981,199,4188,16,0,
100615,3,1,1756,4191, 11599741,1,459,4189,16,
1006216,0,283,1,2318, 116000,741,1,462,4190,
100634192,16,0,297,1, 1160116,0,741,1,217,
100641659,4193,16,0,145, 116024191,16,0,741,1,
100651,123,4194,19,548, 116032227,1033,1,1225,4192,
100661,123,4195,5,68, 1160416,0,741,1,1479,
100671,1901,4196,16,0, 116054193,16,0,741,1,
10068546,1,1479,4197,16, 116061731,4194,16,0,741,
100690,546,1,112,4198, 116071,1989,1041,1,1990,
1007016,0,546,1,2293, 116084195,16,0,741,1,
100714199,16,0,546,1, 11609236,4196,16,0,741,
100721804,4200,16,0,546, 116101,1756,4197,16,0,
100731,431,4201,16,0, 11611741,1,96,4198,19,
10074546,1,1443,4202,16, 11612740,1,96,4199,5,
100750,546,1,1756,4203, 1161395,1,256,4200,16,
1007616,0,546,1,124, 116140,738,1,1261,4201,
100774204,16,0,546,1, 1161516,0,738,1,509,
10078525,4205,16,0,546, 116164202,16,0,738,1,
100791,236,4206,16,0, 116171515,4203,16,0,738,
10080546,1,346,4207,16, 116181,2021,843,1,1775,
100810,546,1,1876,4208, 116194204,16,0,738,1,
1008216,0,546,1,1659, 116202029,850,1,2030,856,
100834209,16,0,546,1, 116211,2031,861,1,2032,
100841225,4210,16,0,546, 11622866,1,2033,871,1,
100851,1117,4211,16,0, 11623277,4205,16,0,738,
10086546,1,137,4212,16, 116241,2035,877,1,2037,
100870,546,1,2318,4213, 11625882,1,2039,887,1,
1008816,0,546,1,1775, 1162632,4206,16,0,738,
100894214,16,0,546,1, 116271,2041,893,1,2293,
1009032,4215,16,0,546, 116284207,16,0,738,1,
100911,1407,4216,16,0, 116292043,899,1,2045,904,
10092546,1,256,4217,16, 116301,41,4208,16,0,
100930,546,1,459,4218, 11631738,1,1297,4209,16,
1009416,0,546,1,406, 116320,738,1,43,4210,
100954219,16,0,546,1, 1163316,0,738,1,1803,
1009641,4220,16,0,546, 11634912,1,1804,4211,16,
100971,2658,4221,16,0, 116350,738,1,299,4212,
10098546,1,43,4222,16, 1163616,0,738,1,52,
100990,546,1,1585,4223, 116374213,16,0,738,1,
1010016,0,546,1,1990, 116382318,4214,16,0,738,
101014224,16,0,546,1, 116391,62,4215,16,0,
101022337,4225,16,0,546, 11640738,1,2075,4216,16,
101031,509,4226,16,0, 116410,738,1,1574,924,
10104546,1,52,4227,16, 116421,71,4217,16,0,
101050,546,1,151,4228, 11643738,1,76,4218,16,
1010616,0,546,1,447, 116440,738,1,1834,4219,
101074229,16,0,546,1, 1164516,0,738,1,2337,
10108166,4230,16,0,546, 116464220,16,0,738,1,
101091,462,4231,16,0, 1164779,4221,16,0,738,
10110546,1,277,4232,16, 116481,1335,4222,16,0,
101110,546,1,1695,4233, 11649738,1,322,4223,16,
1011216,0,546,1,62, 116500,738,1,85,4224,
101134234,16,0,586,1, 1165116,0,738,1,89,
101141153,4235,16,0,546, 116524225,16,0,738,1,
101151,381,4236,16,0, 11653346,4226,16,0,738,
10116546,1,2106,4237,16, 116541,2105,939,1,2106,
101170,546,1,1335,4238, 116554227,16,0,738,1,
1011816,0,546,1,71, 1165697,4228,16,0,738,
101194239,16,0,546,1, 116571,1860,946,1,2364,
10120182,4240,16,0,546, 11658952,1,102,4229,16,
101211,76,4241,16,0, 116590,738,1,112,4230,
10122546,1,79,4242,16, 1166016,0,738,1,1117,
101230,546,1,1933,4243, 116614231,16,0,738,1,
1012416,0,546,1,299, 116622786,4232,16,0,738,
101254244,16,0,546,1, 116631,1873,961,1,1876,
1012685,4245,16,0,546, 116644233,16,0,738,1,
101271,1515,4246,16,0, 11665124,4234,16,0,738,
10128546,1,2198,4247,16, 116661,2136,968,1,381,
101290,546,1,89,4248, 116674235,16,0,738,1,
1013016,0,546,1,1834, 11668525,4236,16,0,738,
101314249,16,0,546,1, 116691,137,4237,16,0,
101321622,4250,16,0,546, 11670738,1,1901,4238,16,
101331,2413,4251,16,0, 116710,738,1,1153,4239,
10134546,1,2075,4252,16, 1167216,0,738,1,151,
101350,546,1,1731,4253, 116734240,16,0,738,1,
1013616,0,546,1,97, 116741407,4241,16,0,738,
101374254,16,0,546,1, 116751,1659,4242,16,0,
101381297,4255,16,0,546, 11676738,1,2413,4243,16,
101391,1189,4256,16,0, 116770,738,1,406,4244,
10140546,1,102,4257,16, 1167816,0,738,1,1371,
101410,546,1,1261,4258, 116794245,16,0,738,1,
1014216,0,546,1,322, 11680166,4246,16,0,738,
101434259,16,0,546,1, 116811,1622,4247,16,0,
101441958,4260,16,0,546, 11682738,1,1931,986,1,
101451,199,4261,16,0, 116831933,4248,16,0,738,
10146546,1,1371,4262,16, 116841,431,4249,16,0,
101470,546,1,217,4263, 11685738,1,1585,4250,16,
1014816,0,546,1,124, 116860,738,1,182,4251,
101494264,19,602,1,124, 1168716,0,738,1,1189,
101504265,5,2,1,459, 116884252,16,0,738,1,
101514266,16,0,600,1, 116891443,4253,16,0,738,
1015241,4267,16,0,665, 116901,1695,4254,16,0,
101531,125,4268,19,606, 11691738,1,2198,4255,16,
101541,125,4269,5,3, 116920,738,1,447,4256,
101551,462,4270,16,0, 1169316,0,738,1,2458,
10156604,1,459,4271,16, 116941001,1,2459,1007,1,
101570,630,1,41,4272, 116951958,4257,16,0,738,
1015816,0,630,1,126, 116961,2462,1014,1,1657,
101594273,19,4274,4,36, 116971019,1,2464,1024,1,
1016069,0,120,0,112, 11698199,4258,16,0,738,
101610,114,0,101,0, 116991,459,4259,16,0,
10162115,0,115,0,105, 11700738,1,462,4260,16,
117010,738,1,217,4261,
1170216,0,738,1,2227,
117031033,1,1225,4262,16,
117040,738,1,1479,4263,
1170516,0,738,1,1731,
117064264,16,0,738,1,
117071989,1041,1,1990,4265,
1170816,0,738,1,236,
117094266,16,0,738,1,
117101756,4267,16,0,738,
117111,97,4268,19,103,
117121,97,4269,5,1,
117131,0,4270,16,0,
11714104,1,98,4271,19,
11715647,1,98,4272,5,
117161,1,0,4273,16,
117170,645,1,99,4274,
1171819,210,1,99,4275,
117195,2,1,0,4276,
1172016,0,312,1,2823,
117214277,16,0,208,1,
11722100,4278,19,207,1,
11723100,4279,5,2,1,
117240,4280,16,0,286,
117251,2823,4281,16,0,
11726205,1,101,4282,19,
11727301,1,101,4283,5,
117282,1,0,4284,16,
117290,785,1,2823,4285,
1173016,0,299,1,102,
117314286,19,320,1,102,
117324287,5,4,1,0,
117334288,16,0,788,1,
117342764,4289,16,0,318,
117351,2823,4290,16,0,
11736788,1,2834,4291,16,
117370,318,1,103,4292,
1173819,714,1,103,4293,
117395,2,1,2470,4294,
1174016,0,712,1,2659,
117414295,16,0,734,1,
11742104,4296,19,280,1,
11743104,4297,5,4,1,
117442597,4298,16,0,680,
117451,2703,4299,16,0,
11746680,1,2470,4300,16,
117470,278,1,2659,4301,
1174816,0,278,1,105,
117494302,19,679,1,105,
117504303,5,4,1,2597,
117514304,16,0,677,1,
117522703,4305,16,0,677,
117531,2470,4306,16,0,
11754690,1,2659,4307,16,
117550,690,1,106,4308,
1175619,157,1,106,4309,
117575,4,1,2597,4310,
1175816,0,155,1,2703,
117594311,16,0,155,1,
117602470,4312,16,0,769,
117611,2659,4313,16,0,
11762769,1,107,4314,19,
11763154,1,107,4315,5,
117644,1,2597,4316,16,
117650,152,1,2703,4317,
1176616,0,152,1,2470,
117674318,16,0,174,1,
117682659,4319,16,0,174,
117691,108,4320,19,672,
117701,108,4321,5,4,
117711,2597,4322,16,0,
11772670,1,2703,4323,16,
117730,670,1,2470,4324,
1177416,0,685,1,2659,
117754325,16,0,685,1,
11776109,4326,19,669,1,
11777109,4327,5,4,1,
117782597,4328,16,0,667,
117791,2703,4329,16,0,
11780667,1,2470,4330,16,
117810,684,1,2659,4331,
1178216,0,684,1,110,
117834332,19,172,1,110,
117844333,5,4,1,2597,
117854334,16,0,752,1,
117862703,4335,16,0,752,
117871,2470,4336,16,0,
11788170,1,2659,4337,16,
117890,170,1,111,4338,
1179019,169,1,111,4339,
117915,4,1,2597,4340,
1179216,0,663,1,2703,
117934341,16,0,663,1,
117942470,4342,16,0,167,
117951,2659,4343,16,0,
11796167,1,112,4344,19,
11797141,1,112,4345,5,
117983,1,2582,4346,16,
117990,293,1,2770,4347,
1180016,0,331,1,10,
118014348,16,0,139,1,
11802113,4349,19,688,1,
11803113,4350,5,1,1,
118042569,4351,16,0,686,
118051,114,4352,19,676,
118061,114,4353,5,1,
118071,2561,4354,16,0,
11808674,1,115,4355,19,
11809660,1,115,4356,5,
118101,1,2553,4357,16,
118110,658,1,116,4358,
1181219,535,1,116,4359,
118135,1,1,2538,4360,
1181416,0,533,1,117,
118154361,19,638,1,117,
118164362,5,1,1,2523,
118174363,16,0,636,1,
11818118,4364,19,498,1,
11819118,4365,5,1,1,
118202507,4366,16,0,496,
118211,119,4367,19,160,
118221,119,4368,5,17,
118231,0,4369,16,0,
11824333,1,2582,4370,16,
118250,382,1,2075,4371,
1182616,0,763,1,2337,
118274372,16,0,763,1,
118282413,4373,16,0,763,
118291,10,4374,16,0,
11830382,1,2823,4375,16,
118310,333,1,1901,4376,
1183216,0,763,1,2198,
118334377,16,0,763,1,
1183421,4378,16,0,158,
118351,2106,4379,16,0,
11836763,1,2770,4380,16,
118370,382,1,1804,4381,
1183816,0,763,1,1990,
118394382,16,0,763,1,
1184032,4383,16,0,763,
118411,1958,4384,16,0,
11842763,1,1775,4385,16,
118430,763,1,120,4386,
1184419,487,1,120,4387,
118455,2,1,2569,4388,
1184616,0,567,1,2507,
118474389,16,0,485,1,
11848121,4390,19,493,1,
11849121,4391,5,5,1,
118502511,4392,16,0,491,
118511,2523,4393,16,0,
11852506,1,2515,4394,16,
118530,495,1,2538,4395,
1185416,0,523,1,2561,
118554396,16,0,753,1,
11856122,4397,19,514,1,
11857122,4398,5,3,1,
118582530,4399,16,0,516,
118591,2553,4400,16,0,
11860542,1,2526,4401,16,
118610,512,1,123,4402,
1186219,248,1,123,4403,
118635,2,1,2541,4404,
1186416,0,527,1,2545,
118654405,16,0,246,1,
11866124,4406,19,130,1,
11867124,4407,5,18,1,
118680,4408,16,0,128,
118691,2582,4409,16,0,
11870137,1,2075,4410,16,
118710,137,1,2337,4411,
1187216,0,137,1,2413,
118734412,16,0,137,1,
1187410,4413,16,0,137,
118751,2823,4414,16,0,
11876128,1,2198,4415,16,
118770,137,1,1901,4416,
1187816,0,137,1,52,
118794417,16,0,216,1,
1188021,4418,16,0,137,
118811,2106,4419,16,0,
11882137,1,2770,4420,16,
118830,137,1,1804,4421,
1188416,0,137,1,1990,
118854422,16,0,137,1,
1188632,4423,16,0,137,
118871,1958,4424,16,0,
11888137,1,1775,4425,16,
118890,137,1,125,4426,
1189019,359,1,125,4427,
118915,4,1,2597,4428,
1189216,0,357,1,2703,
118934429,16,0,357,1,
118942470,4430,16,0,357,
118951,2659,4431,16,0,
11896357,1,126,4432,19,
11897772,1,126,4433,5,
118984,1,2597,4434,16,
118990,770,1,2703,4435,
1190016,0,770,1,2470,
119014436,16,0,770,1,
119022659,4437,16,0,770,
119031,127,4438,19,760,
119041,127,4439,5,4,
119051,2597,4440,16,0,
11906758,1,2703,4441,16,
119070,758,1,2470,4442,
1190816,0,758,1,2659,
119094443,16,0,758,1,
11910128,4444,19,548,1,
11911128,4445,5,4,1,
119122597,4446,16,0,546,
119131,2703,4447,16,0,
11914546,1,2470,4448,16,
119150,546,1,2659,4449,
1191616,0,546,1,129,
119174450,19,655,1,129,
119184451,5,4,1,2597,
119194452,16,0,653,1,
119202703,4453,16,0,653,
119211,2470,4454,16,0,
11922653,1,2659,4455,16,
119230,653,1,130,4456,
1192419,643,1,130,4457,
119255,4,1,2597,4458,
1192616,0,641,1,2703,
119274459,16,0,641,1,
119282470,4460,16,0,641,
119291,2659,4461,16,0,
11930641,1,131,4462,19,
11931504,1,131,4463,5,
119324,1,2597,4464,16,
119330,502,1,2703,4465,
1193416,0,502,1,2470,
119354466,16,0,502,1,
119362659,4467,16,0,502,
119371,132,4468,19,481,
119381,132,4469,5,4,
119391,2597,4470,16,0,
11940479,1,2703,4471,16,
119410,479,1,2470,4472,
1194216,0,479,1,2659,
119434473,16,0,479,1,
11944133,4474,19,381,1,
11945133,4475,5,21,1,
119462781,4476,16,0,798,
119471,2519,4477,16,0,
11948784,1,2557,4478,16,
119490,545,1,2337,4479,
1195016,0,592,1,2413,
119514480,16,0,592,1,
119522593,4481,16,0,711,
119531,2565,4482,16,0,
11954681,1,1901,4483,16,
119550,592,1,2198,4484,
1195616,0,592,1,2534,
119574485,16,0,640,1,
119582573,4486,16,0,575,
119591,2106,4487,16,0,
11960592,1,2578,4488,16,
119610,775,1,2075,4489,
1196216,0,592,1,1804,
119634490,16,0,592,1,
119641990,4491,16,0,592,
119651,31,4492,16,0,
11966379,1,32,4493,16,
119670,592,1,2549,4494,
1196816,0,538,1,1958,
119694495,16,0,592,1,
119701775,4496,16,0,592,
119711,134,4497,19,342,
119721,134,4498,5,1,
119731,32,4499,16,0,
11974340,1,135,4500,19,
11975289,1,135,4501,5,
1197611,1,2075,4502,16,
119770,697,1,2337,4503,
1197816,0,294,1,2413,
119794504,16,0,520,1,
119801901,4505,16,0,437,
119811,2198,4506,16,0,
11982362,1,2106,4507,16,
119830,730,1,1804,4508,
1198416,0,322,1,1990,
119854509,16,0,580,1,
1198632,4510,16,0,375,
119871,1958,4511,16,0,
11988529,1,1775,4512,16,
119890,287,1,136,4513,
1199019,703,1,136,4514,
119915,11,1,2075,4515,
1199216,0,701,1,2337,
119934516,16,0,701,1,
119942413,4517,16,0,701,
119951,1901,4518,16,0,
11996701,1,2198,4519,16,
119970,701,1,2106,4520,
1199816,0,701,1,1804,
119994521,16,0,701,1,
120001990,4522,16,0,701,
120011,32,4523,16,0,
12002701,1,1958,4524,16,
120030,701,1,1775,4525,
1200416,0,701,1,137,
120054526,19,756,1,137,
120064527,5,11,1,2075,
120074528,16,0,754,1,
120082337,4529,16,0,754,
120091,2413,4530,16,0,
12010754,1,1901,4531,16,
120110,754,1,2198,4532,
1201216,0,754,1,2106,
120134533,16,0,754,1,
120141804,4534,16,0,754,
120151,1990,4535,16,0,
12016754,1,32,4536,16,
120170,754,1,1958,4537,
1201816,0,754,1,1775,
120194538,16,0,754,1,
12020138,4539,19,177,1,
12021138,4540,5,31,1,
120221901,4541,16,0,762,
120231,1479,4542,16,0,
12024648,1,2075,4543,16,
120250,762,1,1695,4544,
1202616,0,214,1,1756,
120274545,16,0,204,1,
120282413,4546,16,0,762,
120291,2198,4547,16,0,
12030762,1,1876,4548,16,
120310,781,1,1659,4549,
1203216,0,204,1,1443,
120334550,16,0,608,1,
120341117,4551,16,0,175,
120351,1990,4552,16,0,
12036762,1,1189,4553,16,
120370,264,1,1775,4554,
1203816,0,762,1,32,
120394555,16,0,762,1,
120402106,4556,16,0,762,
120411,1515,4557,16,0,
12042699,1,2337,4558,16,
120430,762,1,52,4559,
1204416,0,715,1,1804,
120454560,16,0,762,1,
120461261,4561,16,0,338,
120471,1153,4562,16,0,
12048271,1,1225,4563,16,
120490,307,1,1335,4564,
1205016,0,511,1,1933,
120514565,16,0,651,1,
120521834,4566,16,0,352,
120531,1297,4567,16,0,
12054366,1,1407,4568,16,
120550,682,1,2318,4569,
1205616,0,204,1,1958,
120574570,16,0,762,1,
120581371,4571,16,0,500,
120591,139,4572,19,617,
120601,139,4573,5,11,
120611,2075,4574,16,0,
12062615,1,2337,4575,16,
120630,615,1,2413,4576,
1206416,0,615,1,1901,
120654577,16,0,615,1,
120662198,4578,16,0,615,
120671,2106,4579,16,0,
12068615,1,1804,4580,16,
120690,615,1,1990,4581,
1207016,0,615,1,32,
120714582,16,0,615,1,
120721958,4583,16,0,615,
120731,1775,4584,16,0,
12074615,1,140,4585,19,
12075613,1,140,4586,5,
1207611,1,2075,4587,16,
120770,611,1,2337,4588,
1207816,0,611,1,2413,
120794589,16,0,611,1,
120801901,4590,16,0,611,
120811,2198,4591,16,0,
12082611,1,2106,4592,16,
120830,611,1,1804,4593,
1208416,0,611,1,1990,
120854594,16,0,611,1,
1208632,4595,16,0,611,
120871,1958,4596,16,0,
12088611,1,1775,4597,16,
120890,611,1,141,4598,
1209019,694,1,141,4599,
120915,11,1,2075,4600,
1209216,0,692,1,2337,
120934601,16,0,692,1,
120942413,4602,16,0,692,
120951,1901,4603,16,0,
12096692,1,2198,4604,16,
120970,692,1,2106,4605,
1209816,0,692,1,1804,
120994606,16,0,692,1,
121001990,4607,16,0,692,
121011,32,4608,16,0,
12102692,1,1958,4609,16,
121030,692,1,1775,4610,
1210416,0,692,1,142,
121054611,19,607,1,142,
121064612,5,11,1,2075,
121074613,16,0,605,1,
121082337,4614,16,0,605,
121091,2413,4615,16,0,
12110605,1,1901,4616,16,
121110,605,1,2198,4617,
1211216,0,605,1,2106,
121134618,16,0,605,1,
121141804,4619,16,0,605,
121151,1990,4620,16,0,
12116605,1,32,4621,16,
121170,605,1,1958,4622,
1211816,0,605,1,1775,
121194623,16,0,605,1,
12120143,4624,19,604,1,
12121143,4625,5,11,1,
121222075,4626,16,0,602,
121231,2337,4627,16,0,
12124602,1,2413,4628,16,
121250,602,1,1901,4629,
1212616,0,602,1,2198,
121274630,16,0,602,1,
121282106,4631,16,0,602,
121291,1804,4632,16,0,
12130602,1,1990,4633,16,
121310,602,1,32,4634,
1213216,0,602,1,1958,
121334635,16,0,602,1,
121341775,4636,16,0,602,
121351,144,4637,19,601,
121361,144,4638,5,11,
121371,2075,4639,16,0,
12138599,1,2337,4640,16,
121390,599,1,2413,4641,
1214016,0,599,1,1901,
121414642,16,0,599,1,
121422198,4643,16,0,599,
121431,2106,4644,16,0,
12144599,1,1804,4645,16,
121450,599,1,1990,4646,
1214616,0,599,1,32,
121474647,16,0,599,1,
121481958,4648,16,0,599,
121491,1775,4649,16,0,
12150599,1,145,4650,19,
12151598,1,145,4651,5,
1215211,1,2075,4652,16,
121530,596,1,2337,4653,
1215416,0,596,1,2413,
121554654,16,0,596,1,
121561901,4655,16,0,596,
121571,2198,4656,16,0,
12158596,1,2106,4657,16,
121590,596,1,1804,4658,
1216016,0,596,1,1990,
121614659,16,0,596,1,
1216232,4660,16,0,596,
121631,1958,4661,16,0,
12164596,1,1775,4662,16,
121650,596,1,146,4663,
1216619,595,1,146,4664,
121675,11,1,2075,4665,
1216816,0,593,1,2337,
121694666,16,0,593,1,
121702413,4667,16,0,593,
121711,1901,4668,16,0,
12172593,1,2198,4669,16,
121730,593,1,2106,4670,
1217416,0,593,1,1804,
121754671,16,0,593,1,
121761990,4672,16,0,593,
121771,32,4673,16,0,
12178593,1,1958,4674,16,
121790,593,1,1775,4675,
1218016,0,593,1,147,
121814676,19,147,1,147,
121824677,5,3,1,1756,
121834678,16,0,321,1,
121842318,4679,16,0,337,
121851,1659,4680,16,0,
12186145,1,148,4681,19,
12187634,1,148,4682,5,
1218868,1,1901,4683,16,
121890,632,1,1479,4684,
1219016,0,632,1,112,
121914685,16,0,632,1,
121922293,4686,16,0,632,
121931,1804,4687,16,0,
12194632,1,431,4688,16,
121950,632,1,1443,4689,
1219616,0,632,1,1756,
121974690,16,0,632,1,
12198124,4691,16,0,632,
121991,525,4692,16,0,
12200632,1,236,4693,16,
122010,632,1,346,4694,
1220216,0,632,1,1876,
122034695,16,0,632,1,
122041659,4696,16,0,632,
122051,1225,4697,16,0,
12206632,1,1117,4698,16,
122070,632,1,137,4699,
1220816,0,632,1,2318,
122094700,16,0,632,1,
122101775,4701,16,0,632,
122111,32,4702,16,0,
12212632,1,1407,4703,16,
122130,632,1,256,4704,
1221416,0,632,1,459,
122154705,16,0,632,1,
12216406,4706,16,0,632,
122171,41,4707,16,0,
12218632,1,151,4708,16,
122190,632,1,43,4709,
1222016,0,632,1,1585,
122214710,16,0,632,1,
122221990,4711,16,0,632,
122231,2337,4712,16,0,
12224632,1,509,4713,16,
122250,632,1,52,4714,
1222616,0,632,1,381,
122274715,16,0,632,1,
12228447,4716,16,0,632,
122291,166,4717,16,0,
12230632,1,462,4718,16,
122310,632,1,277,4719,
1223216,0,632,1,1695,
122334720,16,0,632,1,
122342786,4721,16,0,632,
122351,62,4722,16,0,
12236707,1,1153,4723,16,
122370,632,1,2106,4724,
1223816,0,632,1,1335,
122394725,16,0,632,1,
1224071,4726,16,0,632,
122411,182,4727,16,0,
12242632,1,76,4728,16,
122430,632,1,79,4729,
1224416,0,632,1,1933,
122454730,16,0,632,1,
12246299,4731,16,0,632,
122471,85,4732,16,0,
12248632,1,1515,4733,16,
122490,632,1,2198,4734,
1225016,0,632,1,89,
122514735,16,0,632,1,
122521834,4736,16,0,632,
122531,1622,4737,16,0,
12254632,1,2413,4738,16,
122550,632,1,2075,4739,
1225616,0,632,1,1731,
122574740,16,0,632,1,
1225897,4741,16,0,632,
122591,1297,4742,16,0,
12260632,1,1189,4743,16,
122610,632,1,102,4744,
1226216,0,632,1,1261,
122634745,16,0,632,1,
12264322,4746,16,0,632,
122651,1958,4747,16,0,
12266632,1,199,4748,16,
122670,632,1,1371,4749,
1226816,0,632,1,217,
122694750,16,0,632,1,
12270149,4751,19,725,1,
12271149,4752,5,2,1,
12272459,4753,16,0,723,
122731,41,4754,16,0,
12274786,1,150,4755,19,
12275729,1,150,4756,5,
122763,1,462,4757,16,
122770,727,1,459,4758,
1227816,0,750,1,41,
122794759,16,0,750,1,
12280151,4760,19,4761,4,
1228136,69,0,120,0,
12282112,0,114,0,101,
122830,115,0,115,0,
12284105,0,111,0,110,
122850,65,0,114,0,
12286103,0,117,0,109,
122870,101,0,110,0,
12288116,0,1,151,4756,
122891,152,4762,19,630,
122901,152,4763,5,68,
122911,1901,4764,16,0,
12292628,1,1479,4765,16,
122930,628,1,112,4766,
1229416,0,628,1,2293,
122954767,16,0,628,1,
122961804,4768,16,0,628,
122971,431,4769,16,0,
12298628,1,1443,4770,16,
122990,628,1,1756,4771,
1230016,0,628,1,124,
123014772,16,0,628,1,
12302525,4773,16,0,628,
123031,236,4774,16,0,
12304628,1,346,4775,16,
123050,628,1,1876,4776,
1230616,0,628,1,1659,
123074777,16,0,628,1,
123081225,4778,16,0,628,
123091,1117,4779,16,0,
12310628,1,137,4780,16,
123110,628,1,2318,4781,
1231216,0,628,1,1775,
123134782,16,0,628,1,
1231432,4783,16,0,628,
123151,1407,4784,16,0,
12316628,1,256,4785,16,
123170,628,1,459,4786,
1231816,0,628,1,406,
123194787,16,0,628,1,
1232041,4788,16,0,628,
123211,151,4789,16,0,
12322628,1,43,4790,16,
123230,628,1,1585,4791,
1232416,0,628,1,1990,
123254792,16,0,628,1,
123262337,4793,16,0,628,
123271,509,4794,16,0,
12328628,1,52,4795,16,
123290,628,1,381,4796,
1233016,0,628,1,447,
123314797,16,0,628,1,
12332166,4798,16,0,628,
123331,462,4799,16,0,
12334628,1,277,4800,16,
123350,628,1,1695,4801,
1233616,0,628,1,2786,
123374802,16,0,628,1,
1233862,4803,16,0,708,
123391,1153,4804,16,0,
12340628,1,2106,4805,16,
123410,628,1,1335,4806,
1234216,0,628,1,71,
123434807,16,0,628,1,
12344182,4808,16,0,628,
123451,76,4809,16,0,
12346628,1,79,4810,16,
123470,628,1,1933,4811,
1234816,0,628,1,299,
123494812,16,0,628,1,
1235085,4813,16,0,628,
123511,1515,4814,16,0,
12352628,1,2198,4815,16,
123530,628,1,89,4816,
1235416,0,628,1,1834,
123554817,16,0,628,1,
123561622,4818,16,0,628,
123571,2413,4819,16,0,
12358628,1,2075,4820,16,
123590,628,1,1731,4821,
1236016,0,628,1,97,
123614822,16,0,628,1,
123621297,4823,16,0,628,
123631,1189,4824,16,0,
12364628,1,102,4825,16,
123650,628,1,1261,4826,
1236616,0,628,1,322,
123674827,16,0,628,1,
123681958,4828,16,0,628,
123691,199,4829,16,0,
12370628,1,1371,4830,16,
123710,628,1,217,4831,
1237216,0,628,1,153,
123734832,19,4833,4,28,
1237486,0,101,0,99,
123750,116,0,111,0,
12376114,0,67,0,111,
123770,110,0,115,0,
12378116,0,97,0,110,
123790,116,0,1,153,
123804763,1,154,4834,19,
123814835,4,32,82,0,
12382111,0,116,0,97,
123830,116,0,105,0,
12384111,0,110,0,67,
101630,111,0,110,0, 123850,111,0,110,0,
1016465,0,114,0,103, 12386115,0,116,0,97,
101650,117,0,109,0, 123870,110,0,116,0,
10166101,0,110,0,116, 123881,154,4763,1,155,
101670,1,126,4269,1, 123894836,19,4837,4,24,
10168127,4275,19,544,1, 1239076,0,105,0,115,
10169127,4276,5,68,1, 123910,116,0,67,0,
101701901,4277,16,0,542,
101711,1479,4278,16,0,
10172542,1,112,4279,16,
101730,542,1,2293,4280,
1017416,0,542,1,1804,
101754281,16,0,542,1,
10176431,4282,16,0,542,
101771,1443,4283,16,0,
10178542,1,1756,4284,16,
101790,542,1,124,4285,
1018016,0,542,1,525,
101814286,16,0,542,1,
10182236,4287,16,0,542,
101831,346,4288,16,0,
10184542,1,1876,4289,16,
101850,542,1,1659,4290,
1018616,0,542,1,1225,
101874291,16,0,542,1,
101881117,4292,16,0,542,
101891,137,4293,16,0,
10190542,1,2318,4294,16,
101910,542,1,1775,4295,
1019216,0,542,1,32,
101934296,16,0,542,1,
101941407,4297,16,0,542,
101951,256,4298,16,0,
10196542,1,459,4299,16,
101970,542,1,406,4300,
1019816,0,542,1,41,
101994301,16,0,542,1,
102002658,4302,16,0,542,
102011,43,4303,16,0,
10202542,1,1585,4304,16,
102030,542,1,1990,4305,
1020416,0,542,1,2337,
102054306,16,0,542,1,
10206509,4307,16,0,542,
102071,52,4308,16,0,
10208542,1,151,4309,16,
102090,542,1,447,4310,
1021016,0,542,1,166,
102114311,16,0,542,1,
10212462,4312,16,0,542,
102131,277,4313,16,0,
10214542,1,1695,4314,16,
102150,542,1,62,4315,
1021616,0,587,1,1153,
102174316,16,0,542,1,
10218381,4317,16,0,542,
102191,2106,4318,16,0,
10220542,1,1335,4319,16,
102210,542,1,71,4320,
1022216,0,542,1,182,
102234321,16,0,542,1,
1022476,4322,16,0,542,
102251,79,4323,16,0,
10226542,1,1933,4324,16,
102270,542,1,299,4325,
1022816,0,542,1,85,
102294326,16,0,542,1,
102301515,4327,16,0,542,
102311,2198,4328,16,0,
10232542,1,89,4329,16,
102330,542,1,1834,4330,
1023416,0,542,1,1622,
102354331,16,0,542,1,
102362413,4332,16,0,542,
102371,2075,4333,16,0,
10238542,1,1731,4334,16,
102390,542,1,97,4335,
1024016,0,542,1,1297,
102414336,16,0,542,1,
102421189,4337,16,0,542,
102431,102,4338,16,0,
10244542,1,1261,4339,16,
102450,542,1,322,4340,
1024616,0,542,1,1958,
102474341,16,0,542,1,
10248199,4342,16,0,542,
102491,1371,4343,16,0,
10250542,1,217,4344,16,
102510,542,1,128,4345,
1025219,4346,4,28,86,
102530,101,0,99,0,
10254116,0,111,0,114,
102550,67,0,111,0,
10256110,0,115,0,116,
102570,97,0,110,0,
10258116,0,1,128,4276,
102591,129,4347,19,4348,
102604,32,82,0,111,
102610,116,0,97,0,
10262116,0,105,0,111,
102630,110,0,67,0,
10264111,0,110,0,115, 12392111,0,110,0,115,
102650,116,0,97,0, 123930,116,0,97,0,
10266110,0,116,0,1, 12394110,0,116,0,1,
10267129,4276,1,130,4349, 12395155,4763,1,156,4838,
1026819,4350,4,24,76, 1239619,185,1,156,4839,
102690,105,0,115,0, 123975,67,1,1901,4840,
10270116,0,67,0,111, 1239816,0,705,1,1479,
102710,110,0,115,0, 123994841,16,0,619,1,
10272116,0,97,0,110, 12400112,4842,16,0,273,
102730,116,0,1,130, 124011,2293,4843,16,0,
102744276,1,131,4351,19, 12402306,1,1804,4844,16,
10275169,1,131,4352,5, 124030,705,1,431,4845,
1027667,1,1901,4353,16, 1240416,0,700,1,1443,
102770,585,1,1479,4354, 124054846,16,0,550,1,
1027816,0,533,1,112, 124061756,4847,16,0,796,
102794355,16,0,249,1, 124071,124,4848,16,0,
102802293,4356,16,0,273, 12408285,1,525,4849,16,
102811,1804,4357,16,0, 124090,345,1,236,4850,
10282585,1,431,4358,16, 1241016,0,387,1,346,
102830,580,1,1443,4359, 124114851,16,0,582,1,
1028416,0,468,1,1756, 124121876,4852,16,0,361,
102854360,16,0,673,1, 124131,1659,4853,16,0,
10286124,4361,16,0,258, 12414796,1,1225,4854,16,
102871,525,4362,16,0, 124150,272,1,1117,4855,
10288305,1,236,4363,16, 1241616,0,242,1,137,
102890,341,1,346,4364, 124174856,16,0,305,1,
1029016,0,496,1,1876, 124182318,4857,16,0,796,
102914365,16,0,318,1, 124191,1775,4858,16,0,
102921659,4366,16,0,673, 12420705,1,32,4859,16,
102931,1225,4367,16,0, 124210,705,1,1407,4860,
10294248,1,1117,4368,16, 1242216,0,571,1,256,
102950,219,1,137,4369, 124234861,16,0,441,1,
1029616,0,272,1,2318, 12424459,4862,16,0,183,
102974370,16,0,673,1, 124251,406,4863,16,0,
102981775,4371,16,0,585, 12426662,1,41,4864,16,
102991,32,4372,16,0, 124270,183,1,151,4865,
10300585,1,1407,4373,16, 1242816,0,317,1,43,
103010,487,1,256,4374, 124294866,16,0,751,1,
1030216,0,395,1,459, 124301990,4867,16,0,705,
103034375,16,0,167,1, 124311,2337,4868,16,0,
10304406,4376,16,0,562, 12432705,1,509,4869,16,
103051,41,4377,16,0, 124330,774,1,52,4870,
10306167,1,2658,4378,16, 1243416,0,717,1,381,
103070,659,1,43,4379, 124354871,16,0,639,1,
1030816,0,640,1,1990, 12436447,4872,16,0,345,
103094380,16,0,585,1, 124371,166,4873,16,0,
103102337,4381,16,0,585, 12438332,1,462,4874,16,
103111,509,4382,16,0, 124390,183,1,277,4875,
10312655,1,52,4383,16, 1244016,0,488,1,1695,
103130,594,1,151,4384, 124414876,16,0,302,1,
1031416,0,282,1,447, 124422786,4877,16,0,254,
103154385,16,0,305,1, 124431,1261,4878,16,0,
10316166,4386,16,0,293, 12444316,1,1153,4879,16,
103171,462,4387,16,0, 124450,190,1,2106,4880,
10318167,1,277,4388,16, 1244616,0,705,1,1335,
103190,434,1,1695,4389, 124474881,16,0,372,1,
1032016,0,270,1,1261, 1244871,4882,16,0,226,
103214390,16,0,281,1, 124491,182,4883,16,0,
103221153,4391,16,0,174, 12450345,1,76,4884,16,
103231,381,4392,16,0, 124510,635,1,79,4885,
10324550,1,2106,4393,16, 1245216,0,241,1,1933,
103250,585,1,1335,4394, 124534886,16,0,453,1,
1032616,0,326,1,71, 12454299,4887,16,0,517,
103274395,16,0,203,1, 124551,85,4888,16,0,
10328182,4396,16,0,305, 12456541,1,1515,4889,16,
103291,76,4397,16,0, 124570,657,1,2198,4890,
10330549,1,79,4398,16, 1245816,0,705,1,89,
103310,218,1,1933,4399, 124594891,16,0,253,1,
1033216,0,407,1,299, 124601834,4892,16,0,330,
103334400,16,0,444,1, 124611,1622,4893,16,0,
1033485,4401,16,0,457, 12462773,1,2413,4894,16,
103351,1515,4402,16,0, 124630,705,1,2075,4895,
10336556,1,2198,4403,16, 1246416,0,705,1,1731,
103370,585,1,89,4404, 124654896,16,0,274,1,
1033816,0,227,1,1834, 1246697,4897,16,0,457,
103394405,16,0,292,1, 124671,1297,4898,16,0,
103401622,4406,16,0,654, 12468374,1,1189,4899,16,
103411,2413,4407,16,0, 124690,240,1,102,4900,
10342585,1,2075,4408,16, 1247016,0,262,1,1585,
103430,585,1,1731,4409, 124714901,16,0,783,1,
1034416,0,250,1,97, 12472322,4902,16,0,543,
103454410,16,0,411,1, 124731,1958,4903,16,0,
103461297,4411,16,0,328, 12474705,1,199,4904,16,
103471,1189,4412,16,0, 124750,356,1,1371,4905,
10348217,1,102,4413,16, 1247616,0,442,1,217,
103490,238,1,1585,4414, 124774906,16,0,368,1,
1035016,0,663,1,322, 12478157,4907,19,4908,4,
103514415,16,0,458,1, 1247936,67,0,111,0,
103521958,4416,16,0,585, 12480110,0,115,0,116,
103531,199,4417,16,0, 124810,97,0,110,0,
10354316,1,1371,4418,16,
103550,396,1,217,4419,
1035616,0,325,1,132,
103574420,19,4421,4,36,
1035867,0,111,0,110,
103590,115,0,116,0,
1036097,0,110,0,116,
103610,69,0,120,0,
10362112,0,114,0,101,
103630,115,0,115,0,
10364105,0,111,0,110,
103650,1,132,4352,1,
10366133,4422,19,4423,4,
1036730,73,0,100,0,
10368101,0,110,0,116,
103690,69,0,120,0,
10370112,0,114,0,101,
103710,115,0,115,0,
10372105,0,111,0,110,
103730,1,133,4352,1,
10374134,4424,19,4425,4,
1037536,73,0,100,0,
10376101,0,110,0,116,
103770,68,0,111,0,
10378116,0,69,0,120, 12482116,0,69,0,120,
103790,112,0,114,0, 124830,112,0,114,0,
10380101,0,115,0,115, 12484101,0,115,0,115,
103810,105,0,111,0, 124850,105,0,111,0,
10382110,0,1,134,4352, 12486110,0,1,157,4839,
103831,135,4426,19,4427, 124871,158,4909,19,4910,
103844,44,70,0,117, 124884,30,73,0,100,
103850,110,0,99,0, 124890,101,0,110,0,
10386116,0,105,0,111, 12490116,0,69,0,120,
103870,110,0,67,0, 124910,112,0,114,0,
1038897,0,108,0,108, 12492101,0,115,0,115,
103890,69,0,120,0, 124930,105,0,111,0,
10390112,0,114,0,101, 12494110,0,1,158,4839,
103910,115,0,115,0, 124951,159,4911,19,4912,
10392105,0,111,0,110, 124964,36,73,0,100,
103930,1,135,4352,1, 124970,101,0,110,0,
10394136,4428,19,4429,4, 12498116,0,68,0,111,
1039532,66,0,105,0, 124990,116,0,69,0,
10396110,0,97,0,114,
103970,121,0,69,0,
10398120,0,112,0,114,
103990,101,0,115,0,
10400115,0,105,0,111,
104010,110,0,1,136,
104024352,1,137,4430,19,
104034431,4,30,85,0,
10404110,0,97,0,114,
104050,121,0,69,0,
10406120,0,112,0,114, 12500120,0,112,0,114,
104070,101,0,115,0, 125010,101,0,115,0,
10408115,0,105,0,111, 12502115,0,105,0,111,
104090,110,0,1,137, 125030,110,0,1,159,
104104352,1,138,4432,19, 125044839,1,160,4913,19,
104114433,4,36,84,0, 125054914,4,44,70,0,
10412121,0,112,0,101, 12506117,0,110,0,99,
104130,99,0,97,0, 125070,116,0,105,0,
10414115,0,116,0,69, 12508111,0,110,0,67,
125090,97,0,108,0,
12510108,0,69,0,120,
125110,112,0,114,0,
12512101,0,115,0,115,
125130,105,0,111,0,
12514110,0,1,160,4839,
125151,161,4915,19,4916,
125164,32,66,0,105,
125170,110,0,97,0,
12518114,0,121,0,69,
104150,120,0,112,0, 125190,120,0,112,0,
10416114,0,101,0,115, 12520114,0,101,0,115,
104170,115,0,105,0, 125210,115,0,105,0,
10418111,0,110,0,1, 12522111,0,110,0,1,
10419138,4352,1,139,4434, 12523161,4839,1,162,4917,
1042019,4435,4,42,80, 1252419,4918,4,30,85,
104210,97,0,114,0, 125250,110,0,97,0,
10422101,0,110,0,116, 12526114,0,121,0,69,
104230,104,0,101,0, 125270,120,0,112,0,
10424115,0,105,0,115, 12528114,0,101,0,115,
104250,69,0,120,0, 125290,115,0,105,0,
10426112,0,114,0,101, 12530111,0,110,0,1,
104270,115,0,115,0, 12531162,4839,1,163,4919,
10428105,0,111,0,110, 1253219,4920,4,36,84,
104290,1,139,4352,1, 125330,121,0,112,0,
10430140,4436,19,4437,4, 12534101,0,99,0,97,
1043156,73,0,110,0, 125350,115,0,116,0,
1043299,0,114,0,101, 1253669,0,120,0,112,
104330,109,0,101,0, 125370,114,0,101,0,
10434110,0,116,0,68, 12538115,0,115,0,105,
104350,101,0,99,0, 125390,111,0,110,0,
10436114,0,101,0,109, 125401,163,4839,1,164,
125414921,19,4922,4,42,
1254280,0,97,0,114,
104370,101,0,110,0, 125430,101,0,110,0,
10438116,0,69,0,120, 12544116,0,104,0,101,
125450,115,0,105,0,
12546115,0,69,0,120,
104390,112,0,114,0, 125470,112,0,114,0,
10440101,0,115,0,115, 12548101,0,115,0,115,
104410,105,0,111,0, 125490,105,0,111,0,
10442110,0,1,140,4352, 12550110,0,1,164,4839,
104431,142,4438,19,683, 125511,165,4923,19,4924,
104441,142,3911,1,143, 125524,56,73,0,110,
104454439,19,705,1,143, 125530,99,0,114,0,
104463911,1,144,4440,19, 12554101,0,109,0,101,
104473192,1,144,3914,1, 125550,110,0,116,0,
10448145,4441,19,3187,1, 1255668,0,101,0,99,
10449145,3914,1,146,4442, 125570,114,0,101,0,
1045019,3198,1,146,3914,
104511,147,4443,19,3209,
104521,147,3914,1,148,
104534444,19,3220,1,148,
104543917,1,149,4445,19,
104553226,1,149,3917,1,
10456150,4446,19,3214,1,
10457150,3921,1,151,4447,
1045819,3204,1,151,3921,
104591,152,4448,19,689,
104601,152,3925,1,153,
104614449,19,710,1,153,
104623925,1,154,4450,19,
10463695,1,154,3929,1,
10464155,4451,19,700,1,
10465155,3929,1,156,4452,
1046619,1636,1,156,3935,
104671,157,4453,19,1631,
104681,157,3935,1,158,
104694454,19,1622,1,158,
104703939,1,159,4455,19,
104711680,1,159,3945,1,
10472160,4456,19,1657,1,
10473160,3945,1,161,4457,
1047419,1117,1,161,3950,
104751,162,4458,19,902,
104761,162,3995,1,163,
104774459,19,886,1,163,
104783995,1,164,4460,19,
10479892,1,164,4011,1,
10480165,4461,19,880,1,
10481165,4011,1,166,4462,
1048219,1145,1,166,4027,
104831,167,4463,19,782,
104841,167,4014,1,168,
104854464,19,897,1,168,
104864014,1,169,4465,19,
10487777,1,169,4014,1,
10488170,4466,19,802,1,
10489170,4014,1,171,4467,
1049019,771,1,171,4014,
104911,172,4468,19,765,
104921,172,4014,1,173,
104934469,19,760,1,173,
104944014,1,174,4470,19,
10495755,1,174,4014,1,
10496175,4471,19,749,1,
10497175,4014,1,176,4472,
1049819,744,1,176,4014,
104991,177,4473,19,739,
105001,177,4014,1,178,
105014474,19,734,1,178,
105024014,1,179,4475,19,
10503729,1,179,4014,1,
10504180,4476,19,1152,1,
10505180,4099,1,181,4477,
1050619,1290,1,181,4112,
105071,182,4478,19,1139,
105081,182,4125,1,183,
105094479,19,1278,1,183,
105104125,1,184,4480,19,
10511919,1,184,4138,1,
10512185,4481,19,722,1,
10513185,4138,1,186,4482,
1051419,817,1,186,4138,
105151,187,4483,19,845,
105161,187,4138,1,188,
105174484,19,865,1,188,
105184151,1,189,4485,19,
10519911,1,189,4151,1,
10520190,4486,19,825,1,
10521190,4164,1,191,4487,
1052219,838,1,191,4164,
105231,192,4488,19,791,
105241,192,4177,1,193,
105254489,19,830,1,193,
105264177,1,194,4490,19,
105271477,1,194,4190,1,
10528195,4491,19,1158,1,
10529195,4190,1,196,4492,
1053019,1509,1,196,4190,
105311,197,4493,19,1541,
105321,197,4190,1,198,
105334494,19,1406,1,198,
105344040,1,199,4495,19,
105351466,1,199,4040,1,
10536200,4496,19,1133,1,
10537200,4053,1,201,4497,
1053819,1573,1,201,4053,
105391,202,4498,19,1504,
105401,202,4053,1,203,
105414499,19,1451,1,203,
105424053,1,204,4500,19,
105431374,1,204,4053,1,
10544205,4501,19,1300,1,
10545205,4053,1,206,4502,
1054619,1310,1,206,4053,
105471,207,4503,19,1128,
105481,207,4053,1,208,
105494504,19,1557,1,208,
105504053,1,209,4505,19,
105511499,1,209,4053,1,
10552210,4506,19,1441,1,
10553210,4053,1,211,4507,
1055419,1363,1,211,4053,
105551,212,4508,19,1326,
105561,212,4053,1,213,
105574509,19,1111,1,213,
105584053,1,214,4510,19,
105591461,1,214,4053,1,
10560215,4511,19,1487,1,
10561215,4053,1,216,4512,
1056219,1434,1,216,4053,
105631,217,4513,19,1456,
105641,217,4053,1,218,
105654514,19,1266,1,218,
105664053,1,219,4515,19,
105671170,1,219,4053,1,
10568220,4516,19,1100,1,
10569220,4053,1,221,4517,
1057019,1531,1,221,4053,
105711,222,4518,19,1482,
105721,222,4053,1,223,
105734519,19,1429,1,223,
105744053,1,224,4520,19,
105751295,1,224,4086,1,
10576225,4521,19,1273,1,
10577225,4086,1,226,4522,
1057819,1562,1,226,4276,
105791,227,4523,19,1586,
105801,227,4276,1,228,
105814524,19,1552,1,228,
105824276,1,229,4525,19,
105831547,1,229,4276,1,
10584230,4526,19,1568,1,
10585230,4276,1,231,4527,
1058619,1515,1,231,4276,
105871,232,4528,19,1220,
105881,232,4276,1,233,
105894529,19,1395,1,233,
105904352,1,234,4530,19,
105911181,1,234,4352,1,
10592235,4531,19,1188,1,
10593235,4352,1,236,4532,
1059419,1209,1,236,4352,
105951,237,4533,19,1204,
105961,237,4352,1,238,
105974534,19,1199,1,238,
105984352,1,239,4535,19,
105991194,1,239,4352,1,
10600240,4536,19,1384,1,
10601240,4352,1,241,4537,
1060219,1412,1,241,4352,
106031,242,4538,19,1389,
106041,242,4352,1,243,
106054539,19,1379,1,243,
106064352,1,244,4540,19,
106071369,1,244,4352,1,
10608245,4541,19,1352,1,
10609245,4352,1,246,4542,
1061019,1305,1,246,4352,
106111,247,4543,19,1214,
106121,247,4352,1,248,
106134544,19,1175,1,248,
106144352,1,249,4545,19,
106151123,1,249,4352,1,
10616250,4546,19,1581,1,
10617250,4352,1,251,4547,
1061819,1536,1,251,4352,
106191,252,4548,19,1526,
106201,252,4352,1,253,
106214549,19,1521,1,253,
106224352,1,254,4550,19,
106231472,1,254,4352,1,
10624255,4551,19,1446,1,
10625255,4352,1,256,4552,
1062619,1422,1,256,4352,
106271,257,4553,19,1417,
106281,257,4352,1,258,
106294554,19,1358,1,258,
106304352,1,259,4555,19,
106311334,1,259,4352,1,
10632260,4556,19,1400,1,
10633260,4352,1,261,4557,
1063419,1493,1,261,4352,
106351,262,4558,19,1347,
106361,262,4352,1,263,
106374559,19,1341,1,263,
106384352,1,264,4560,19,
106391321,1,264,4352,1,
10640265,4561,19,1284,1,
10641265,4352,1,266,4562,
1064219,1261,1,266,4352,
106431,267,4563,19,1106,
106441,267,4352,1,268,
106454564,19,1596,1,268,
106464352,1,269,4565,19,
106471226,1,269,4352,1,
10648270,4566,19,1231,1,
10649270,4352,1,271,4567,
1065019,1251,1,271,4352,
106511,272,4568,19,1241,
106521,272,4352,1,273,
106534569,19,1246,1,273,
106544352,1,274,4570,19,
106551236,1,274,4352,1,
10656275,4571,19,1591,1,
10657275,4352,1,276,4572,
1065819,1256,1,276,4352,
106591,277,4573,19,1316,
106601,277,4195,1,278,
106614574,19,1650,1,278,
106624265,1,279,4575,19,
106631686,1,279,4265,1,
10664280,4576,19,1666,1,
10665280,4269,1,281,4577,
1066619,1985,1,281,3969,
106671,282,4578,19,1980,
106681,282,3969,1,283,
106694579,19,1975,1,283,
106703969,1,284,4580,19,
106711970,1,284,3969,1,
10672285,4581,19,1965,1,
10673285,3969,1,286,4582,
1067419,1960,1,286,3969,
106751,287,4583,19,1955,
106761,287,3969,1,288,
106774584,19,1944,1,288,
106783989,1,289,4585,19,
106791939,1,289,3989,1,
10680290,4586,19,1934,1,
10681290,3989,1,291,4587,
1068219,1929,1,291,3989,
106831,292,4588,19,1924,
106841,292,3989,1,293,
106854589,19,1919,1,293,
106863989,1,294,4590,19,
106871914,1,294,3989,1,
10688295,4591,19,1909,1,
10689295,3989,1,296,4592,
1069019,1904,1,296,3989,
106911,297,4593,19,1739,
106921,297,3989,1,298,
106934594,19,1898,1,298,
106943989,1,299,4595,19,
106951893,1,299,3989,1,
10696300,4596,19,1888,1,
10697300,3989,1,301,4597,
1069819,1732,1,301,3989,
106991,302,4598,19,1883,
107001,302,3989,1,303,
107014599,19,1878,1,303,
107023989,1,304,4600,19,
107031873,1,304,3989,1,
10704305,4601,19,1868,1,
10705305,3989,1,306,4602,
1070619,1863,1,306,3989,
107071,307,4603,19,1858,
107081,307,3989,1,308,
107094604,19,1725,1,308,
107103989,1,309,4605,19,
107111852,1,309,3989,1,
10712310,4606,19,1847,1,
10713310,3989,1,311,4607,
1071419,1842,1,311,3989,
107151,312,4608,19,1719,
107161,312,3989,1,313,
107174609,19,1836,1,313,
107183989,1,314,4610,19,
107191767,1,314,3989,1,
10720315,4611,19,1831,1,
10721315,3989,1,316,4612,
1072219,1826,1,316,3989,
107231,317,4613,19,1821,
107241,317,3989,1,318,
107254614,19,1816,1,318,
107263989,1,319,4615,19,
107271811,1,319,3989,1,
10728320,4616,19,1806,1,
10729320,3989,1,321,4617,
1073019,1801,1,321,3989,
107311,322,4618,19,4619,
107324,50,65,0,114,
107330,103,0,117,0,
10734109,0,101,0,110, 12558109,0,101,0,110,
107350,116,0,68,0, 125590,116,0,69,0,
10736101,0,99,0,108, 12560120,0,112,0,114,
107370,97,0,114,0, 125610,101,0,115,0,
1073897,0,116,0,105, 12562115,0,105,0,111,
107390,111,0,110,0, 125630,110,0,1,165,
125644839,1,167,4925,19,
12565830,1,167,4269,1,
12566168,4926,19,808,1,
12567168,4269,1,169,4927,
1256819,3557,1,169,4272,
125691,170,4928,19,3547,
125701,170,4272,1,171,
125714929,19,3552,1,171,
125724272,1,172,4930,19,
125733542,1,172,4272,1,
12574173,4931,19,3527,1,
12575173,4275,1,174,4932,
1257619,3562,1,174,4275,
125771,175,4933,19,3521,
125781,175,4279,1,176,
125794934,19,3535,1,176,
125804279,1,177,4935,19,
12581814,1,177,4283,1,
12582178,4936,19,825,1,
12583178,4283,1,179,4937,
1258419,820,1,179,4287,
125851,180,4938,19,835,
125861,180,4287,1,181,
125874939,19,1777,1,181,
125884293,1,182,4940,19,
125891881,1,182,4293,1,
12590183,4941,19,1844,1,
12591183,4293,1,184,4942,
1259219,1765,1,184,4293,
125931,185,4943,19,1839,
125941,185,4293,1,186,
125954944,19,1802,1,186,
125964293,1,187,4945,19,
125971834,1,187,4293,1,
12598188,4946,19,1797,1,
12599188,4293,1,189,4947,
1260019,1829,1,189,4293,
126011,190,4948,19,1792,
126021,190,4293,1,191,
126034949,19,1824,1,191,
126044293,1,192,4950,19,
126051760,1,192,4293,1,
12606193,4951,19,1819,1,
12607193,4293,1,194,4952,
1260819,1787,1,194,4293,
126091,195,4953,19,1814,
126101,195,4293,1,196,
126114954,19,1782,1,196,
126124293,1,197,4955,19,
126131875,1,197,4297,1,
12614198,4956,19,1862,1,
12615198,4303,1,199,4957,
1261619,1850,1,199,4309,
126171,200,4958,19,1809,
126181,200,4315,1,201,
126194959,19,1868,1,201,
126204321,1,202,4960,19,
126211856,1,202,4327,1,
12622203,4961,19,1754,1,
12623203,4333,1,204,4962,
1262419,1771,1,204,4339,
126251,205,4963,19,1945,
126261,205,4345,1,206,
126274964,19,1904,1,206,
126284345,1,207,4965,19,
126292337,1,207,4350,1,
12630208,4966,19,2308,1,
12631208,4353,1,209,4967,
1263219,2302,1,209,4356,
126331,210,4968,19,2294,
126341,210,4359,1,211,
126354969,19,2287,1,211,
126364362,1,212,4970,19,
126372319,1,212,4365,1,
12638213,4971,19,1242,1,
12639213,4368,1,214,4972,
1264019,1964,1,214,4387,
126411,215,4973,19,1890,
126421,215,4391,1,216,
126434974,19,1931,1,216,
126444398,1,217,4975,19,
126451910,1,217,4403,1,
12646218,4976,19,1027,1,
12647218,4475,1,219,4977,
1264819,1011,1,219,4475,
126491,220,4978,19,1017,
126501,220,4498,1,221,
126514979,19,1005,1,221,
126524498,1,222,4980,19,
126531270,1,222,4514,1,
12654223,4981,19,907,1,
12655223,4501,1,224,4982,
1265619,1022,1,224,4501,
126571,225,4983,19,902,
126581,225,4501,1,226,
126594984,19,927,1,226,
126604501,1,227,4985,19,
12661896,1,227,4501,1,
12662228,4986,19,890,1,
12663228,4501,1,229,4987,
1266419,885,1,229,4501,
126651,230,4988,19,880,
126661,230,4501,1,231,
126674989,19,874,1,231,
126684501,1,232,4990,19,
12669869,1,232,4501,1,
12670233,4991,19,864,1,
12671233,4501,1,234,4992,
1267219,859,1,234,4501,
126731,235,4993,19,854,
126741,235,4501,1,236,
126754994,19,1277,1,236,
126764586,1,237,4995,19,
126771417,1,237,4599,1,
12678238,4996,19,1264,1,
12679238,4612,1,239,4997,
1268019,1405,1,239,4612,
126811,240,4998,19,1044,
126821,240,4625,1,241,
126834999,19,847,1,241,
126844625,1,242,5000,19,
12685942,1,242,4625,1,
12686243,5001,19,971,1,
12687243,4625,1,244,5002,
1268819,990,1,244,4638,
126891,245,5003,19,1036,
126901,245,4638,1,246,
126915004,19,950,1,246,
126924651,1,247,5005,19,
12693964,1,247,4651,1,
12694248,5006,19,916,1,
12695248,4664,1,249,5007,
1269619,955,1,249,4664,
126971,250,5008,19,1603,
126981,250,4677,1,251,
126995009,19,1283,1,251,
127004677,1,252,5010,19,
127011635,1,252,4677,1,
12702253,5011,19,1667,1,
12703253,4677,1,254,5012,
1270419,1532,1,254,4527,
127051,255,5013,19,1592,
127061,255,4527,1,256,
127075014,19,1258,1,256,
127084540,1,257,5015,19,
127091699,1,257,4540,1,
12710258,5016,19,1630,1,
12711258,4540,1,259,5017,
1271219,1576,1,259,4540,
127131,260,5018,19,1500,
127141,260,4540,1,261,
127155019,19,1427,1,261,
127164540,1,262,5020,19,
127171437,1,262,4540,1,
12718263,5021,19,1253,1,
12719263,4540,1,264,5022,
1272019,1683,1,264,4540,
127211,265,5023,19,1625,
127221,265,4540,1,266,
127235024,19,1566,1,266,
127244540,1,267,5025,19,
127251489,1,267,4540,1,
12726268,5026,19,1453,1,
12727268,4540,1,269,5027,
1272819,1236,1,269,4540,
127291,270,5028,19,1586,
127301,270,4540,1,271,
127315029,19,1613,1,271,
127324540,1,272,5030,19,
127331559,1,272,4540,1,
12734273,5031,19,1581,1,
12735273,4540,1,274,5032,
1273619,1393,1,274,4540,
127371,275,5033,19,1297,
127381,275,4540,1,276,
127395034,19,1225,1,276,
127404540,1,277,5035,19,
127411657,1,277,4540,1,
12742278,5036,19,1608,1,
12743278,4540,1,279,5037,
1274419,1554,1,279,4540,
127451,280,5038,19,1422,
127461,280,4573,1,281,
127475039,19,1400,1,281,
127484573,1,282,5040,19,
127491688,1,282,4763,1,
12750283,5041,19,1711,1,
12751283,4763,1,284,5042,
1275219,1678,1,284,4763,
127531,285,5043,19,1673,
127541,285,4763,1,286,
127555044,19,1694,1,286,
127564763,1,287,5045,19,
127571641,1,287,4763,1,
12758288,5046,19,1347,1,
12759288,4763,1,289,5047,
1276019,1521,1,289,4839,
127611,290,5048,19,1308,
127621,290,4839,1,291,
127635049,19,1315,1,291,
127644839,1,292,5050,19,
127651336,1,292,4839,1,
12766293,5051,19,1331,1,
12767293,4839,1,294,5052,
1276819,1326,1,294,4839,
127691,295,5053,19,1321,
127701,295,4839,1,296,
127715054,19,1510,1,296,
127724839,1,297,5055,19,
127731538,1,297,4839,1,
12774298,5056,19,1515,1,
12775298,4839,1,299,5057,
1277619,1505,1,299,4839,
127771,300,5058,19,1495,
127781,300,4839,1,301,
127795059,19,1478,1,301,
127804839,1,302,5060,19,
127811432,1,302,4839,1,
12782303,5061,19,1341,1,
12783303,4839,1,304,5062,
1278419,1302,1,304,4839,
127851,305,5063,19,1248,
127861,305,4839,1,306,
127875064,19,1706,1,306,
127884839,1,307,5065,19,
127891662,1,307,4839,1,
12790308,5066,19,1652,1,
12791308,4839,1,309,5067,
1279219,1647,1,309,4839,
127931,310,5068,19,1598,
127941,310,4839,1,311,
127955069,19,1571,1,311,
127964839,1,312,5070,19,
127971548,1,312,4839,1,
12798313,5071,19,1543,1,
12799313,4839,1,314,5072,
1280019,1484,1,314,4839,
128011,315,5073,19,1460,
128021,315,4839,1,316,
128035074,19,1526,1,316,
128044839,1,317,5075,19,
128051619,1,317,4839,1,
12806318,5076,19,1473,1,
12807318,4839,1,319,5077,
1280819,1467,1,319,4839,
128091,320,5078,19,1448,
128101,320,4839,1,321,
128115079,19,1411,1,321,
128124839,1,322,5080,19,
128131388,1,322,4839,1,
12814323,5081,19,1231,1,
12815323,4839,1,324,5082,
1281619,1721,1,324,4839,
128171,325,5083,19,1353,
128181,325,4839,1,326,
128195084,19,1358,1,326,
128204839,1,327,5085,19,
128211378,1,327,4839,1,
12822328,5086,19,1368,1,
12823328,4839,1,329,5087,
1282419,1373,1,329,4839,
128251,330,5088,19,1363,
128261,330,4839,1,331,
128275089,19,1716,1,331,
128284839,1,332,5090,19,
128291383,1,332,4839,1,
12830333,5091,19,1443,1,
12831333,4682,1,334,5092,
1283219,1958,1,334,4752,
128331,335,5093,19,1951,
128341,335,4752,1,336,
128355094,19,1921,1,336,
128364756,1,337,5095,19,
128372278,1,337,4407,1,
12838338,5096,19,2273,1,
12839338,4407,1,339,5097,
1284019,2268,1,339,4407,
128411,340,5098,19,2263,
128421,340,4407,1,341,
128435099,19,2258,1,341,
128444407,1,342,5100,19,
128452253,1,342,4407,1,
12846343,5101,19,2248,1,
12847343,4407,1,344,5102,
1284819,2237,1,344,4427,
128491,345,5103,19,2232,
128501,345,4427,1,346,
128515104,19,2227,1,346,
128524427,1,347,5105,19,
128532222,1,347,4427,1,
12854348,5106,19,2217,1,
12855348,4427,1,349,5107,
1285619,2212,1,349,4427,
128571,350,5108,19,2207,
128581,350,4427,1,351,
128595109,19,2202,1,351,
128604427,1,352,5110,19,
128612197,1,352,4427,1,
12862353,5111,19,2191,1,
12863353,4433,1,354,5112,
1286419,2019,1,354,4433,
128651,355,5113,19,2185,
128661,355,4433,1,356,
128675114,19,2180,1,356,
128684433,1,357,5115,19,
128692175,1,357,4433,1,
12870358,5116,19,2012,1,
12871358,4433,1,359,5117,
1287219,2170,1,359,4433,
128731,360,5118,19,2165,
128741,360,4433,1,361,
128755119,19,2160,1,361,
128764439,1,362,5120,19,
128772155,1,362,4439,1,
12878363,5121,19,2149,1,
12879363,4445,1,364,5122,
1288019,2144,1,364,4445,
128811,365,5123,19,2004,
128821,365,4445,1,366,
128835124,19,2138,1,366,
128844445,1,367,5125,19,
128852133,1,367,4445,1,
12886368,5126,19,2128,1,
12887368,4445,1,369,5127,
1288819,1997,1,369,4445,
128891,370,5128,19,2122,
128901,370,4445,1,371,
128915129,19,2049,1,371,
128924445,1,372,5130,19,
128932117,1,372,4445,1,
12894373,5131,19,2112,1,
12895373,4451,1,374,5132,
1289619,2107,1,374,4451,
128971,375,5133,19,2102,
128981,375,4451,1,376,
128995134,19,2096,1,376,
129004457,1,377,5135,19,
129012090,1,377,4463,1,
12902378,5136,19,2084,1,
12903378,4469,1,379,5137,
1290419,5138,4,50,65,
129050,114,0,103,0,
12906117,0,109,0,101,
129070,110,0,116,0,
1290868,0,101,0,99,
129090,108,0,97,0,
12910114,0,97,0,116,
129110,105,0,111,0,
12912110,0,76,0,105,
129130,115,0,116,0,
1291495,0,51,0,1,
12915379,4345,1,380,5139,
1291619,5140,4,28,65,
129170,114,0,103,0,
12918117,0,109,0,101,
129190,110,0,116,0,
1074076,0,105,0,115, 1292076,0,105,0,115,
107410,116,0,95,0, 129210,116,0,95,0,
1074251,0,1,322,3945, 1292251,0,1,380,4752,
107431,323,4620,19,4621, 129231,381,5141,19,5142,
107444,28,65,0,114, 129244,28,65,0,114,
107450,103,0,117,0, 129250,103,0,117,0,
10746109,0,101,0,110, 12926109,0,101,0,110,
107470,116,0,76,0, 129270,116,0,76,0,
10748105,0,115,0,116, 12928105,0,115,0,116,
107490,95,0,51,0, 129290,95,0,52,0,
107501,323,4265,1,324, 129301,381,4752,1,382,
107514622,19,4623,4,50, 129315143,19,5144,4,50,
1075265,0,114,0,103, 1293265,0,114,0,103,
107530,117,0,109,0, 129330,117,0,109,0,
10754101,0,110,0,116, 12934101,0,110,0,116,
@@ -10759,32 +12939,29 @@ public yyLSLSyntax
107590,110,0,76,0, 129390,110,0,76,0,
10760105,0,115,0,116, 12940105,0,115,0,116,
107610,95,0,52,0, 129410,95,0,52,0,
107621,324,3945,1,325, 129421,382,4345,1,383,
107634624,19,4625,4,28, 129435145,19,5146,4,50,
1076465,0,114,0,103, 1294465,0,114,0,103,
107650,117,0,109,0, 129450,117,0,109,0,
10766101,0,110,0,116, 12946101,0,110,0,116,
107670,76,0,105,0, 129470,68,0,101,0,
10768115,0,116,0,95, 1294899,0,108,0,97,
107690,52,0,1,325, 129490,114,0,97,0,
107704265,1,326,4626,19, 12950116,0,105,0,111,
107714627,4,50,65,0, 129510,110,0,76,0,
10772114,0,103,0,117, 12952105,0,115,0,116,
107730,109,0,101,0, 129530,95,0,53,0,
10774110,0,116,0,68, 129541,383,4345,2,0,0};
107750,101,0,99,0,
10776108,0,97,0,114,
107770,97,0,116,0,
10778105,0,111,0,110,
107790,76,0,105,0,
10780115,0,116,0,95,
107810,53,0,1,326,
107823945,2,0,0};
10783new Sfactory(this,"ExpressionArgument_1",new SCreator(ExpressionArgument_1_factory)); 12955new Sfactory(this,"ExpressionArgument_1",new SCreator(ExpressionArgument_1_factory));
10784new Sfactory(this,"SimpleAssignment_8",new SCreator(SimpleAssignment_8_factory)); 12956new Sfactory(this,"VectorArgStateEvent",new SCreator(VectorArgStateEvent_factory));
12957new Sfactory(this,"IntVecVecArgStateEvent",new SCreator(IntVecVecArgStateEvent_factory));
12958new Sfactory(this,"IntArgStateEvent_1",new SCreator(IntArgStateEvent_1_factory));
12959new Sfactory(this,"SimpleAssignment_9",new SCreator(SimpleAssignment_9_factory));
10785new Sfactory(this,"StatementList_1",new SCreator(StatementList_1_factory)); 12960new Sfactory(this,"StatementList_1",new SCreator(StatementList_1_factory));
12961new Sfactory(this,"RotDeclaration_1",new SCreator(RotDeclaration_1_factory));
12962new Sfactory(this,"IntRotRotArgEvent_1",new SCreator(IntRotRotArgEvent_1_factory));
10786new Sfactory(this,"StateChange_1",new SCreator(StateChange_1_factory)); 12963new Sfactory(this,"StateChange_1",new SCreator(StateChange_1_factory));
10787new Sfactory(this,"StateChange_2",new SCreator(StateChange_2_factory)); 12964new Sfactory(this,"EmptyStatement",new SCreator(EmptyStatement_factory));
10788new Sfactory(this,"Declaration",new SCreator(Declaration_factory)); 12965new Sfactory(this,"Declaration",new SCreator(Declaration_factory));
10789new Sfactory(this,"IdentExpression",new SCreator(IdentExpression_factory)); 12966new Sfactory(this,"IdentExpression",new SCreator(IdentExpression_factory));
10790new Sfactory(this,"error",new SCreator(error_factory)); 12967new Sfactory(this,"error",new SCreator(error_factory));
@@ -10797,20 +12974,25 @@ new Sfactory(this,"SimpleAssignment_19",new SCreator(SimpleAssignment_19_factory
10797new Sfactory(this,"BinaryExpression_9",new SCreator(BinaryExpression_9_factory)); 12974new Sfactory(this,"BinaryExpression_9",new SCreator(BinaryExpression_9_factory));
10798new Sfactory(this,"VectorConstant_1",new SCreator(VectorConstant_1_factory)); 12975new Sfactory(this,"VectorConstant_1",new SCreator(VectorConstant_1_factory));
10799new Sfactory(this,"ParenthesisExpression",new SCreator(ParenthesisExpression_factory)); 12976new Sfactory(this,"ParenthesisExpression",new SCreator(ParenthesisExpression_factory));
12977new Sfactory(this,"StatementList",new SCreator(StatementList_factory));
12978new Sfactory(this,"IntRotRotArgEvent",new SCreator(IntRotRotArgEvent_factory));
10800new Sfactory(this,"UnaryExpression",new SCreator(UnaryExpression_factory)); 12979new Sfactory(this,"UnaryExpression",new SCreator(UnaryExpression_factory));
10801new Sfactory(this,"IdentDotExpression_1",new SCreator(IdentDotExpression_1_factory)); 12980new Sfactory(this,"IdentDotExpression_1",new SCreator(IdentDotExpression_1_factory));
10802new Sfactory(this,"ArgumentList_4",new SCreator(ArgumentList_4_factory)); 12981new Sfactory(this,"ArgumentList_4",new SCreator(ArgumentList_4_factory));
10803new Sfactory(this,"Typename",new SCreator(Typename_factory)); 12982new Sfactory(this,"Typename",new SCreator(Typename_factory));
10804new Sfactory(this,"IfStatement_1",new SCreator(IfStatement_1_factory)); 12983new Sfactory(this,"IfStatement_1",new SCreator(IfStatement_1_factory));
12984new Sfactory(this,"RotationConstant_1",new SCreator(RotationConstant_1_factory));
10805new Sfactory(this,"Assignment",new SCreator(Assignment_factory)); 12985new Sfactory(this,"Assignment",new SCreator(Assignment_factory));
12986new Sfactory(this,"IfStatement_4",new SCreator(IfStatement_4_factory));
10806new Sfactory(this,"CompoundStatement_1",new SCreator(CompoundStatement_1_factory)); 12987new Sfactory(this,"CompoundStatement_1",new SCreator(CompoundStatement_1_factory));
10807new Sfactory(this,"CompoundStatement_2",new SCreator(CompoundStatement_2_factory)); 12988new Sfactory(this,"CompoundStatement_2",new SCreator(CompoundStatement_2_factory));
12989new Sfactory(this,"KeyIntIntArgumentDeclarationList_1",new SCreator(KeyIntIntArgumentDeclarationList_1_factory));
10808new Sfactory(this,"BinaryExpression_8",new SCreator(BinaryExpression_8_factory)); 12990new Sfactory(this,"BinaryExpression_8",new SCreator(BinaryExpression_8_factory));
12991new Sfactory(this,"VectorArgEvent",new SCreator(VectorArgEvent_factory));
10809new Sfactory(this,"ReturnStatement_1",new SCreator(ReturnStatement_1_factory)); 12992new Sfactory(this,"ReturnStatement_1",new SCreator(ReturnStatement_1_factory));
10810new Sfactory(this,"IdentDotExpression",new SCreator(IdentDotExpression_factory)); 12993new Sfactory(this,"IdentDotExpression",new SCreator(IdentDotExpression_factory));
10811new Sfactory(this,"Argument",new SCreator(Argument_factory)); 12994new Sfactory(this,"Argument",new SCreator(Argument_factory));
10812new Sfactory(this,"State_2",new SCreator(State_2_factory)); 12995new Sfactory(this,"State_2",new SCreator(State_2_factory));
10813new Sfactory(this,"WhileStatement_1",new SCreator(WhileStatement_1_factory));
10814new Sfactory(this,"GlobalDefinitions_3",new SCreator(GlobalDefinitions_3_factory)); 12996new Sfactory(this,"GlobalDefinitions_3",new SCreator(GlobalDefinitions_3_factory));
10815new Sfactory(this,"GlobalDefinitions_4",new SCreator(GlobalDefinitions_4_factory)); 12997new Sfactory(this,"GlobalDefinitions_4",new SCreator(GlobalDefinitions_4_factory));
10816new Sfactory(this,"Event_1",new SCreator(Event_1_factory)); 12998new Sfactory(this,"Event_1",new SCreator(Event_1_factory));
@@ -10820,9 +13002,9 @@ new Sfactory(this,"Event_4",new SCreator(Event_4_factory));
10820new Sfactory(this,"Event_5",new SCreator(Event_5_factory)); 13002new Sfactory(this,"Event_5",new SCreator(Event_5_factory));
10821new Sfactory(this,"SimpleAssignment_5",new SCreator(SimpleAssignment_5_factory)); 13003new Sfactory(this,"SimpleAssignment_5",new SCreator(SimpleAssignment_5_factory));
10822new Sfactory(this,"Typename_1",new SCreator(Typename_1_factory)); 13004new Sfactory(this,"Typename_1",new SCreator(Typename_1_factory));
10823new Sfactory(this,"Typename_2",new SCreator(Typename_2_factory)); 13005new Sfactory(this,"VoidArgStateEvent_1",new SCreator(VoidArgStateEvent_1_factory));
10824new Sfactory(this,"Typename_3",new SCreator(Typename_3_factory)); 13006new Sfactory(this,"Typename_3",new SCreator(Typename_3_factory));
10825new Sfactory(this,"Typename_4",new SCreator(Typename_4_factory)); 13007new Sfactory(this,"IntRotRotArgStateEvent",new SCreator(IntRotRotArgStateEvent_factory));
10826new Sfactory(this,"Typename_5",new SCreator(Typename_5_factory)); 13008new Sfactory(this,"Typename_5",new SCreator(Typename_5_factory));
10827new Sfactory(this,"Typename_6",new SCreator(Typename_6_factory)); 13009new Sfactory(this,"Typename_6",new SCreator(Typename_6_factory));
10828new Sfactory(this,"Typename_7",new SCreator(Typename_7_factory)); 13010new Sfactory(this,"Typename_7",new SCreator(Typename_7_factory));
@@ -10830,10 +13012,16 @@ new Sfactory(this,"ArgumentDeclarationList",new SCreator(ArgumentDeclarationList
10830new Sfactory(this,"ConstantExpression",new SCreator(ConstantExpression_factory)); 13012new Sfactory(this,"ConstantExpression",new SCreator(ConstantExpression_factory));
10831new Sfactory(this,"LSLProgramRoot_1",new SCreator(LSLProgramRoot_1_factory)); 13013new Sfactory(this,"LSLProgramRoot_1",new SCreator(LSLProgramRoot_1_factory));
10832new Sfactory(this,"LSLProgramRoot_2",new SCreator(LSLProgramRoot_2_factory)); 13014new Sfactory(this,"LSLProgramRoot_2",new SCreator(LSLProgramRoot_2_factory));
13015new Sfactory(this,"KeyIntIntArgEvent_1",new SCreator(KeyIntIntArgEvent_1_factory));
10833new Sfactory(this,"States_1",new SCreator(States_1_factory)); 13016new Sfactory(this,"States_1",new SCreator(States_1_factory));
10834new Sfactory(this,"States_2",new SCreator(States_2_factory)); 13017new Sfactory(this,"States_2",new SCreator(States_2_factory));
10835new Sfactory(this,"FunctionCallExpression_1",new SCreator(FunctionCallExpression_1_factory)); 13018new Sfactory(this,"FunctionCallExpression_1",new SCreator(FunctionCallExpression_1_factory));
13019new Sfactory(this,"KeyArgEvent_1",new SCreator(KeyArgEvent_1_factory));
10836new Sfactory(this,"ForLoopStatement",new SCreator(ForLoopStatement_factory)); 13020new Sfactory(this,"ForLoopStatement",new SCreator(ForLoopStatement_factory));
13021new Sfactory(this,"IntArgStateEvent",new SCreator(IntArgStateEvent_factory));
13022new Sfactory(this,"StateBody_15",new SCreator(StateBody_15_factory));
13023new Sfactory(this,"IntRotRotArgumentDeclarationList_1",new SCreator(IntRotRotArgumentDeclarationList_1_factory));
13024new Sfactory(this,"IntArgEvent_9",new SCreator(IntArgEvent_9_factory));
10837new Sfactory(this,"DoWhileStatement_1",new SCreator(DoWhileStatement_1_factory)); 13025new Sfactory(this,"DoWhileStatement_1",new SCreator(DoWhileStatement_1_factory));
10838new Sfactory(this,"DoWhileStatement_2",new SCreator(DoWhileStatement_2_factory)); 13026new Sfactory(this,"DoWhileStatement_2",new SCreator(DoWhileStatement_2_factory));
10839new Sfactory(this,"ForLoopStatement_4",new SCreator(ForLoopStatement_4_factory)); 13027new Sfactory(this,"ForLoopStatement_4",new SCreator(ForLoopStatement_4_factory));
@@ -10842,74 +13030,93 @@ new Sfactory(this,"SimpleAssignment_12",new SCreator(SimpleAssignment_12_factory
10842new Sfactory(this,"SimpleAssignment_13",new SCreator(SimpleAssignment_13_factory)); 13030new Sfactory(this,"SimpleAssignment_13",new SCreator(SimpleAssignment_13_factory));
10843new Sfactory(this,"JumpLabel",new SCreator(JumpLabel_factory)); 13031new Sfactory(this,"JumpLabel",new SCreator(JumpLabel_factory));
10844new Sfactory(this,"SimpleAssignment_15",new SCreator(SimpleAssignment_15_factory)); 13032new Sfactory(this,"SimpleAssignment_15",new SCreator(SimpleAssignment_15_factory));
10845new Sfactory(this,"SimpleAssignment_17",new SCreator(SimpleAssignment_17_factory)); 13033new Sfactory(this,"IntVecVecArgEvent",new SCreator(IntVecVecArgEvent_factory));
10846new Sfactory(this,"SimpleAssignment_18",new SCreator(SimpleAssignment_18_factory)); 13034new Sfactory(this,"VecDeclaration",new SCreator(VecDeclaration_factory));
10847new Sfactory(this,"JumpStatement_1",new SCreator(JumpStatement_1_factory)); 13035new Sfactory(this,"StateBody_14",new SCreator(StateBody_14_factory));
10848new Sfactory(this,"GlobalDefinitions",new SCreator(GlobalDefinitions_factory)); 13036new Sfactory(this,"GlobalDefinitions",new SCreator(GlobalDefinitions_factory));
13037new Sfactory(this,"StateBody_16",new SCreator(StateBody_16_factory));
13038new Sfactory(this,"KeyIntIntArgumentDeclarationList",new SCreator(KeyIntIntArgumentDeclarationList_factory));
13039new Sfactory(this,"ConstantExpression_1",new SCreator(ConstantExpression_1_factory));
13040new Sfactory(this,"VoidArgEvent_4",new SCreator(VoidArgEvent_4_factory));
10849new Sfactory(this,"FunctionCall_1",new SCreator(FunctionCall_1_factory)); 13041new Sfactory(this,"FunctionCall_1",new SCreator(FunctionCall_1_factory));
10850new Sfactory(this,"ArgumentList_3",new SCreator(ArgumentList_3_factory)); 13042new Sfactory(this,"Assignment_1",new SCreator(Assignment_1_factory));
10851new Sfactory(this,"Assignment_2",new SCreator(Assignment_2_factory)); 13043new Sfactory(this,"Assignment_2",new SCreator(Assignment_2_factory));
13044new Sfactory(this,"IntVecVecArgEvent_1",new SCreator(IntVecVecArgEvent_1_factory));
10852new Sfactory(this,"TypecastExpression_1",new SCreator(TypecastExpression_1_factory)); 13045new Sfactory(this,"TypecastExpression_1",new SCreator(TypecastExpression_1_factory));
10853new Sfactory(this,"SimpleAssignment_21",new SCreator(SimpleAssignment_21_factory)); 13046new Sfactory(this,"SimpleAssignment_21",new SCreator(SimpleAssignment_21_factory));
10854new Sfactory(this,"SimpleAssignment_22",new SCreator(SimpleAssignment_22_factory)); 13047new Sfactory(this,"SimpleAssignment_22",new SCreator(SimpleAssignment_22_factory));
10855new Sfactory(this,"SimpleAssignment_23",new SCreator(SimpleAssignment_23_factory)); 13048new Sfactory(this,"KeyIntIntArgStateEvent",new SCreator(KeyIntIntArgStateEvent_factory));
10856new Sfactory(this,"TypecastExpression_9",new SCreator(TypecastExpression_9_factory)); 13049new Sfactory(this,"TypecastExpression_9",new SCreator(TypecastExpression_9_factory));
13050new Sfactory(this,"VoidArgEvent_2",new SCreator(VoidArgEvent_2_factory));
13051new Sfactory(this,"Event_9",new SCreator(Event_9_factory));
10857new Sfactory(this,"ArgumentDeclarationList_1",new SCreator(ArgumentDeclarationList_1_factory)); 13052new Sfactory(this,"ArgumentDeclarationList_1",new SCreator(ArgumentDeclarationList_1_factory));
10858new Sfactory(this,"ArgumentDeclarationList_2",new SCreator(ArgumentDeclarationList_2_factory)); 13053new Sfactory(this,"ArgumentDeclarationList_2",new SCreator(ArgumentDeclarationList_2_factory));
10859new Sfactory(this,"ArgumentDeclarationList_3",new SCreator(ArgumentDeclarationList_3_factory));
10860new Sfactory(this,"GlobalDefinitions_1",new SCreator(GlobalDefinitions_1_factory)); 13054new Sfactory(this,"GlobalDefinitions_1",new SCreator(GlobalDefinitions_1_factory));
10861new Sfactory(this,"GlobalDefinitions_2",new SCreator(GlobalDefinitions_2_factory)); 13055new Sfactory(this,"GlobalDefinitions_2",new SCreator(GlobalDefinitions_2_factory));
10862new Sfactory(this,"IncrementDecrementExpression",new SCreator(IncrementDecrementExpression_factory)); 13056new Sfactory(this,"IncrementDecrementExpression",new SCreator(IncrementDecrementExpression_factory));
10863new Sfactory(this,"GlobalVariableDeclaration",new SCreator(GlobalVariableDeclaration_factory)); 13057new Sfactory(this,"GlobalVariableDeclaration",new SCreator(GlobalVariableDeclaration_factory));
10864new Sfactory(this,"Event_11",new SCreator(Event_11_factory)); 13058new Sfactory(this,"IntArgumentDeclarationList_1",new SCreator(IntArgumentDeclarationList_1_factory));
13059new Sfactory(this,"IntDeclaration_1",new SCreator(IntDeclaration_1_factory));
13060new Sfactory(this,"ArgumentDeclarationList_5",new SCreator(ArgumentDeclarationList_5_factory));
13061new Sfactory(this,"IntVecVecArgumentDeclarationList",new SCreator(IntVecVecArgumentDeclarationList_factory));
13062new Sfactory(this,"VectorArgumentDeclarationList_1",new SCreator(VectorArgumentDeclarationList_1_factory));
13063new Sfactory(this,"KeyArgumentDeclarationList",new SCreator(KeyArgumentDeclarationList_factory));
10865new Sfactory(this,"TypecastExpression_2",new SCreator(TypecastExpression_2_factory)); 13064new Sfactory(this,"TypecastExpression_2",new SCreator(TypecastExpression_2_factory));
10866new Sfactory(this,"TypecastExpression_3",new SCreator(TypecastExpression_3_factory)); 13065new Sfactory(this,"KeyArgStateEvent",new SCreator(KeyArgStateEvent_factory));
10867new Sfactory(this,"TypecastExpression_5",new SCreator(TypecastExpression_5_factory)); 13066new Sfactory(this,"TypecastExpression_5",new SCreator(TypecastExpression_5_factory));
10868new Sfactory(this,"TypecastExpression_8",new SCreator(TypecastExpression_8_factory)); 13067new Sfactory(this,"TypecastExpression_8",new SCreator(TypecastExpression_8_factory));
10869new Sfactory(this,"Constant_1",new SCreator(Constant_1_factory)); 13068new Sfactory(this,"Constant_1",new SCreator(Constant_1_factory));
10870new Sfactory(this,"Expression",new SCreator(Expression_factory)); 13069new Sfactory(this,"Expression",new SCreator(Expression_factory));
10871new Sfactory(this,"Constant_3",new SCreator(Constant_3_factory)); 13070new Sfactory(this,"Constant_3",new SCreator(Constant_3_factory));
10872new Sfactory(this,"Constant_4",new SCreator(Constant_4_factory)); 13071new Sfactory(this,"Constant_4",new SCreator(Constant_4_factory));
13072new Sfactory(this,"IntArgEvent_5",new SCreator(IntArgEvent_5_factory));
10873new Sfactory(this,"BinaryExpression_1",new SCreator(BinaryExpression_1_factory)); 13073new Sfactory(this,"BinaryExpression_1",new SCreator(BinaryExpression_1_factory));
10874new Sfactory(this,"IfStatement_2",new SCreator(IfStatement_2_factory)); 13074new Sfactory(this,"IfStatement_2",new SCreator(IfStatement_2_factory));
10875new Sfactory(this,"IfStatement_3",new SCreator(IfStatement_3_factory)); 13075new Sfactory(this,"IfStatement_3",new SCreator(IfStatement_3_factory));
10876new Sfactory(this,"IfStatement_4",new SCreator(IfStatement_4_factory)); 13076new Sfactory(this,"KeyArgEvent",new SCreator(KeyArgEvent_factory));
10877new Sfactory(this,"ReturnStatement",new SCreator(ReturnStatement_factory));
10878new Sfactory(this,"Event_2",new SCreator(Event_2_factory)); 13077new Sfactory(this,"Event_2",new SCreator(Event_2_factory));
13078new Sfactory(this,"JumpLabel_1",new SCreator(JumpLabel_1_factory));
10879new Sfactory(this,"RotationConstant",new SCreator(RotationConstant_factory)); 13079new Sfactory(this,"RotationConstant",new SCreator(RotationConstant_factory));
10880new Sfactory(this,"Statement_12",new SCreator(Statement_12_factory)); 13080new Sfactory(this,"Statement_12",new SCreator(Statement_12_factory));
13081new Sfactory(this,"Statement_13",new SCreator(Statement_13_factory));
10881new Sfactory(this,"UnaryExpression_1",new SCreator(UnaryExpression_1_factory)); 13082new Sfactory(this,"UnaryExpression_1",new SCreator(UnaryExpression_1_factory));
10882new Sfactory(this,"UnaryExpression_2",new SCreator(UnaryExpression_2_factory)); 13083new Sfactory(this,"UnaryExpression_2",new SCreator(UnaryExpression_2_factory));
10883new Sfactory(this,"UnaryExpression_3",new SCreator(UnaryExpression_3_factory)); 13084new Sfactory(this,"UnaryExpression_3",new SCreator(UnaryExpression_3_factory));
10884new Sfactory(this,"ArgumentList_1",new SCreator(ArgumentList_1_factory)); 13085new Sfactory(this,"ArgumentList_1",new SCreator(ArgumentList_1_factory));
10885new Sfactory(this,"ArgumentList_2",new SCreator(ArgumentList_2_factory)); 13086new Sfactory(this,"KeyIntIntArgEvent",new SCreator(KeyIntIntArgEvent_factory));
13087new Sfactory(this,"ArgumentList_3",new SCreator(ArgumentList_3_factory));
10886new Sfactory(this,"Constant",new SCreator(Constant_factory)); 13088new Sfactory(this,"Constant",new SCreator(Constant_factory));
10887new Sfactory(this,"State",new SCreator(State_factory)); 13089new Sfactory(this,"State",new SCreator(State_factory));
10888new Sfactory(this,"Event_13",new SCreator(Event_13_factory)); 13090new Sfactory(this,"StateBody_13",new SCreator(StateBody_13_factory));
13091new Sfactory(this,"KeyArgStateEvent_1",new SCreator(KeyArgStateEvent_1_factory));
13092new Sfactory(this,"SimpleAssignment_8",new SCreator(SimpleAssignment_8_factory));
10889new Sfactory(this,"LSLProgramRoot",new SCreator(LSLProgramRoot_factory)); 13093new Sfactory(this,"LSLProgramRoot",new SCreator(LSLProgramRoot_factory));
10890new Sfactory(this,"StateChange",new SCreator(StateChange_factory)); 13094new Sfactory(this,"StateChange",new SCreator(StateChange_factory));
10891new Sfactory(this,"IncrementDecrementExpression_2",new SCreator(IncrementDecrementExpression_2_factory)); 13095new Sfactory(this,"VecDeclaration_1",new SCreator(VecDeclaration_1_factory));
10892new Sfactory(this,"GlobalVariableDeclaration_1",new SCreator(GlobalVariableDeclaration_1_factory)); 13096new Sfactory(this,"GlobalVariableDeclaration_1",new SCreator(GlobalVariableDeclaration_1_factory));
10893new Sfactory(this,"GlobalVariableDeclaration_2",new SCreator(GlobalVariableDeclaration_2_factory)); 13097new Sfactory(this,"GlobalVariableDeclaration_2",new SCreator(GlobalVariableDeclaration_2_factory));
10894new Sfactory(this,"IncrementDecrementExpression_5",new SCreator(IncrementDecrementExpression_5_factory)); 13098new Sfactory(this,"IncrementDecrementExpression_5",new SCreator(IncrementDecrementExpression_5_factory));
10895new Sfactory(this,"GlobalFunctionDefinition_2",new SCreator(GlobalFunctionDefinition_2_factory)); 13099new Sfactory(this,"ReturnStatement",new SCreator(ReturnStatement_factory));
10896new Sfactory(this,"IncrementDecrementExpression_7",new SCreator(IncrementDecrementExpression_7_factory)); 13100new Sfactory(this,"StateBody_10",new SCreator(StateBody_10_factory));
10897new Sfactory(this,"IncrementDecrementExpression_8",new SCreator(IncrementDecrementExpression_8_factory)); 13101new Sfactory(this,"StateBody_11",new SCreator(StateBody_11_factory));
10898new Sfactory(this,"Assignment_1",new SCreator(Assignment_1_factory)); 13102new Sfactory(this,"StateBody_12",new SCreator(StateBody_12_factory));
10899new Sfactory(this,"Event_21",new SCreator(Event_21_factory)); 13103new Sfactory(this,"IntVecVecArgStateEvent_1",new SCreator(IntVecVecArgStateEvent_1_factory));
10900new Sfactory(this,"Event_22",new SCreator(Event_22_factory)); 13104new Sfactory(this,"KeyDeclaration",new SCreator(KeyDeclaration_factory));
13105new Sfactory(this,"IntArgEvent_6",new SCreator(IntArgEvent_6_factory));
13106new Sfactory(this,"ArgumentDeclarationList_3",new SCreator(ArgumentDeclarationList_3_factory));
13107new Sfactory(this,"ArgumentList_2",new SCreator(ArgumentList_2_factory));
13108new Sfactory(this,"IntArgEvent_10",new SCreator(IntArgEvent_10_factory));
10901new Sfactory(this,"CompoundStatement",new SCreator(CompoundStatement_factory)); 13109new Sfactory(this,"CompoundStatement",new SCreator(CompoundStatement_factory));
10902new Sfactory(this,"RotationConstant_1",new SCreator(RotationConstant_1_factory)); 13110new Sfactory(this,"TypecastExpression_3",new SCreator(TypecastExpression_3_factory));
10903new Sfactory(this,"TypecastExpression",new SCreator(TypecastExpression_factory)); 13111new Sfactory(this,"IntArgumentDeclarationList",new SCreator(IntArgumentDeclarationList_factory));
13112new Sfactory(this,"ArgumentDeclarationList_4",new SCreator(ArgumentDeclarationList_4_factory));
10904new Sfactory(this,"SimpleAssignment_3",new SCreator(SimpleAssignment_3_factory)); 13113new Sfactory(this,"SimpleAssignment_3",new SCreator(SimpleAssignment_3_factory));
10905new Sfactory(this,"SimpleAssignment_4",new SCreator(SimpleAssignment_4_factory)); 13114new Sfactory(this,"SimpleAssignment_4",new SCreator(SimpleAssignment_4_factory));
10906new Sfactory(this,"Statement_1",new SCreator(Statement_1_factory)); 13115new Sfactory(this,"Statement_1",new SCreator(Statement_1_factory));
10907new Sfactory(this,"Statement_2",new SCreator(Statement_2_factory)); 13116new Sfactory(this,"Statement_2",new SCreator(Statement_2_factory));
10908new Sfactory(this,"Statement_3",new SCreator(Statement_3_factory));
10909new Sfactory(this,"Statement_4",new SCreator(Statement_4_factory)); 13117new Sfactory(this,"Statement_4",new SCreator(Statement_4_factory));
10910new Sfactory(this,"Statement_5",new SCreator(Statement_5_factory)); 13118new Sfactory(this,"Statement_5",new SCreator(Statement_5_factory));
10911new Sfactory(this,"Statement_6",new SCreator(Statement_6_factory)); 13119new Sfactory(this,"Statement_6",new SCreator(Statement_6_factory));
10912new Sfactory(this,"Statement_7",new SCreator(Statement_7_factory));
10913new Sfactory(this,"Statement_8",new SCreator(Statement_8_factory)); 13120new Sfactory(this,"Statement_8",new SCreator(Statement_8_factory));
10914new Sfactory(this,"Statement_9",new SCreator(Statement_9_factory)); 13121new Sfactory(this,"Statement_9",new SCreator(Statement_9_factory));
10915new Sfactory(this,"ExpressionArgument",new SCreator(ExpressionArgument_factory)); 13122new Sfactory(this,"ExpressionArgument",new SCreator(ExpressionArgument_factory));
@@ -10922,27 +13129,35 @@ new Sfactory(this,"StateBody",new SCreator(StateBody_factory));
10922new Sfactory(this,"Event_7",new SCreator(Event_7_factory)); 13129new Sfactory(this,"Event_7",new SCreator(Event_7_factory));
10923new Sfactory(this,"Event_8",new SCreator(Event_8_factory)); 13130new Sfactory(this,"Event_8",new SCreator(Event_8_factory));
10924new Sfactory(this,"IncrementDecrementExpression_1",new SCreator(IncrementDecrementExpression_1_factory)); 13131new Sfactory(this,"IncrementDecrementExpression_1",new SCreator(IncrementDecrementExpression_1_factory));
10925new Sfactory(this,"IncrementDecrementExpression_3",new SCreator(IncrementDecrementExpression_3_factory)); 13132new Sfactory(this,"IncrementDecrementExpression_2",new SCreator(IncrementDecrementExpression_2_factory));
13133new Sfactory(this,"IntVecVecArgumentDeclarationList_1",new SCreator(IntVecVecArgumentDeclarationList_1_factory));
10926new Sfactory(this,"IncrementDecrementExpression_4",new SCreator(IncrementDecrementExpression_4_factory)); 13134new Sfactory(this,"IncrementDecrementExpression_4",new SCreator(IncrementDecrementExpression_4_factory));
10927new Sfactory(this,"IncrementDecrementExpression_6",new SCreator(IncrementDecrementExpression_6_factory)); 13135new Sfactory(this,"IncrementDecrementExpression_6",new SCreator(IncrementDecrementExpression_6_factory));
13136new Sfactory(this,"IncrementDecrementExpression_7",new SCreator(IncrementDecrementExpression_7_factory));
10928new Sfactory(this,"StateEvent",new SCreator(StateEvent_factory)); 13137new Sfactory(this,"StateEvent",new SCreator(StateEvent_factory));
10929new Sfactory(this,"Event_20",new SCreator(Event_20_factory)); 13138new Sfactory(this,"IntArgEvent_3",new SCreator(IntArgEvent_3_factory));
10930new Sfactory(this,"Event_23",new SCreator(Event_23_factory)); 13139new Sfactory(this,"IntArgEvent_4",new SCreator(IntArgEvent_4_factory));
10931new Sfactory(this,"Event_24",new SCreator(Event_24_factory)); 13140new Sfactory(this,"KeyDeclaration_1",new SCreator(KeyDeclaration_1_factory));
10932new Sfactory(this,"Event_26",new SCreator(Event_26_factory)); 13141new Sfactory(this,"Statement_3",new SCreator(Statement_3_factory));
13142new Sfactory(this,"IntArgEvent_7",new SCreator(IntArgEvent_7_factory));
13143new Sfactory(this,"IntArgEvent_8",new SCreator(IntArgEvent_8_factory));
10933new Sfactory(this,"SimpleAssignment_10",new SCreator(SimpleAssignment_10_factory)); 13144new Sfactory(this,"SimpleAssignment_10",new SCreator(SimpleAssignment_10_factory));
13145new Sfactory(this,"StatementList_2",new SCreator(StatementList_2_factory));
13146new Sfactory(this,"IntRotRotArgStateEvent_1",new SCreator(IntRotRotArgStateEvent_1_factory));
13147new Sfactory(this,"VectorArgEvent_2",new SCreator(VectorArgEvent_2_factory));
10934new Sfactory(this,"Event",new SCreator(Event_factory)); 13148new Sfactory(this,"Event",new SCreator(Event_factory));
10935new Sfactory(this,"SimpleAssignment_14",new SCreator(SimpleAssignment_14_factory)); 13149new Sfactory(this,"SimpleAssignment_14",new SCreator(SimpleAssignment_14_factory));
10936new Sfactory(this,"SimpleAssignment_16",new SCreator(SimpleAssignment_16_factory)); 13150new Sfactory(this,"SimpleAssignment_16",new SCreator(SimpleAssignment_16_factory));
13151new Sfactory(this,"SimpleAssignment_17",new SCreator(SimpleAssignment_17_factory));
13152new Sfactory(this,"SimpleAssignment_18",new SCreator(SimpleAssignment_18_factory));
10937new Sfactory(this,"Statement_10",new SCreator(Statement_10_factory)); 13153new Sfactory(this,"Statement_10",new SCreator(Statement_10_factory));
10938new Sfactory(this,"Statement_11",new SCreator(Statement_11_factory)); 13154new Sfactory(this,"Statement_11",new SCreator(Statement_11_factory));
10939new Sfactory(this,"SimpleAssignment",new SCreator(SimpleAssignment_factory)); 13155new Sfactory(this,"SimpleAssignment",new SCreator(SimpleAssignment_factory));
10940new Sfactory(this,"Statement_13",new SCreator(Statement_13_factory)); 13156new Sfactory(this,"TypecastExpression",new SCreator(TypecastExpression_factory));
10941new Sfactory(this,"Event_15",new SCreator(Event_15_factory)); 13157new Sfactory(this,"JumpStatement_1",new SCreator(JumpStatement_1_factory));
10942new Sfactory(this,"Event_16",new SCreator(Event_16_factory));
10943new Sfactory(this,"Event_32",new SCreator(Event_32_factory));
10944new Sfactory(this,"Event_34",new SCreator(Event_34_factory));
10945new Sfactory(this,"SimpleAssignment_20",new SCreator(SimpleAssignment_20_factory)); 13158new Sfactory(this,"SimpleAssignment_20",new SCreator(SimpleAssignment_20_factory));
13159new Sfactory(this,"Statement_7",new SCreator(Statement_7_factory));
13160new Sfactory(this,"SimpleAssignment_23",new SCreator(SimpleAssignment_23_factory));
10946new Sfactory(this,"SimpleAssignment_24",new SCreator(SimpleAssignment_24_factory)); 13161new Sfactory(this,"SimpleAssignment_24",new SCreator(SimpleAssignment_24_factory));
10947new Sfactory(this,"SimpleAssignment_1",new SCreator(SimpleAssignment_1_factory)); 13162new Sfactory(this,"SimpleAssignment_1",new SCreator(SimpleAssignment_1_factory));
10948new Sfactory(this,"SimpleAssignment_2",new SCreator(SimpleAssignment_2_factory)); 13163new Sfactory(this,"SimpleAssignment_2",new SCreator(SimpleAssignment_2_factory));
@@ -10950,73 +13165,91 @@ new Sfactory(this,"BinaryExpression",new SCreator(BinaryExpression_factory));
10950new Sfactory(this,"FunctionCallExpression",new SCreator(FunctionCallExpression_factory)); 13165new Sfactory(this,"FunctionCallExpression",new SCreator(FunctionCallExpression_factory));
10951new Sfactory(this,"SimpleAssignment_6",new SCreator(SimpleAssignment_6_factory)); 13166new Sfactory(this,"SimpleAssignment_6",new SCreator(SimpleAssignment_6_factory));
10952new Sfactory(this,"StateBody_1",new SCreator(StateBody_1_factory)); 13167new Sfactory(this,"StateBody_1",new SCreator(StateBody_1_factory));
10953new Sfactory(this,"StatementList_2",new SCreator(StatementList_2_factory)); 13168new Sfactory(this,"StateBody_2",new SCreator(StateBody_2_factory));
10954new Sfactory(this,"SimpleAssignment_9",new SCreator(SimpleAssignment_9_factory)); 13169new Sfactory(this,"StateBody_3",new SCreator(StateBody_3_factory));
10955new Sfactory(this,"BinaryExpression_15",new SCreator(BinaryExpression_15_factory)); 13170new Sfactory(this,"StateBody_4",new SCreator(StateBody_4_factory));
10956new Sfactory(this,"BinaryExpression_16",new SCreator(BinaryExpression_16_factory)); 13171new Sfactory(this,"StateBody_5",new SCreator(StateBody_5_factory));
10957new Sfactory(this,"BinaryExpression_17",new SCreator(BinaryExpression_17_factory)); 13172new Sfactory(this,"StateBody_6",new SCreator(StateBody_6_factory));
10958new Sfactory(this,"BinaryExpression_18",new SCreator(BinaryExpression_18_factory)); 13173new Sfactory(this,"StateBody_7",new SCreator(StateBody_7_factory));
10959new Sfactory(this,"Event_25",new SCreator(Event_25_factory)); 13174new Sfactory(this,"StateBody_8",new SCreator(StateBody_8_factory));
10960new Sfactory(this,"Event_9",new SCreator(Event_9_factory)); 13175new Sfactory(this,"StateBody_9",new SCreator(StateBody_9_factory));
10961new Sfactory(this,"Statement",new SCreator(Statement_factory)); 13176new Sfactory(this,"Statement",new SCreator(Statement_factory));
13177new Sfactory(this,"IncrementDecrementExpression_3",new SCreator(IncrementDecrementExpression_3_factory));
10962new Sfactory(this,"JumpStatement",new SCreator(JumpStatement_factory)); 13178new Sfactory(this,"JumpStatement",new SCreator(JumpStatement_factory));
10963new Sfactory(this,"BinaryExpression_11",new SCreator(BinaryExpression_11_factory)); 13179new Sfactory(this,"BinaryExpression_11",new SCreator(BinaryExpression_11_factory));
10964new Sfactory(this,"BinaryExpression_12",new SCreator(BinaryExpression_12_factory)); 13180new Sfactory(this,"IntArgEvent",new SCreator(IntArgEvent_factory));
10965new Sfactory(this,"BinaryExpression_13",new SCreator(BinaryExpression_13_factory)); 13181new Sfactory(this,"IncrementDecrementExpression_8",new SCreator(IncrementDecrementExpression_8_factory));
10966new Sfactory(this,"BinaryExpression_14",new SCreator(BinaryExpression_14_factory)); 13182new Sfactory(this,"BinaryExpression_14",new SCreator(BinaryExpression_14_factory));
13183new Sfactory(this,"BinaryExpression_15",new SCreator(BinaryExpression_15_factory));
13184new Sfactory(this,"BinaryExpression_16",new SCreator(BinaryExpression_16_factory));
10967new Sfactory(this,"BinaryExpression_6",new SCreator(BinaryExpression_6_factory)); 13185new Sfactory(this,"BinaryExpression_6",new SCreator(BinaryExpression_6_factory));
10968new Sfactory(this,"BinaryExpression_7",new SCreator(BinaryExpression_7_factory)); 13186new Sfactory(this,"BinaryExpression_7",new SCreator(BinaryExpression_7_factory));
13187new Sfactory(this,"Typename_2",new SCreator(Typename_2_factory));
13188new Sfactory(this,"Typename_4",new SCreator(Typename_4_factory));
10969new Sfactory(this,"ArgumentList",new SCreator(ArgumentList_factory)); 13189new Sfactory(this,"ArgumentList",new SCreator(ArgumentList_factory));
10970new Sfactory(this,"Event_10",new SCreator(Event_10_factory)); 13190new Sfactory(this,"BinaryExpression_12",new SCreator(BinaryExpression_12_factory));
10971new Sfactory(this,"ConstantExpression_1",new SCreator(ConstantExpression_1_factory)); 13191new Sfactory(this,"BinaryExpression_13",new SCreator(BinaryExpression_13_factory));
10972new Sfactory(this,"Event_12",new SCreator(Event_12_factory)); 13192new Sfactory(this,"GlobalFunctionDefinition_2",new SCreator(GlobalFunctionDefinition_2_factory));
10973new Sfactory(this,"Event_14",new SCreator(Event_14_factory)); 13193new Sfactory(this,"StateChange_2",new SCreator(StateChange_2_factory));
10974new Sfactory(this,"Event_17",new SCreator(Event_17_factory)); 13194new Sfactory(this,"VoidArgEvent_1",new SCreator(VoidArgEvent_1_factory));
10975new Sfactory(this,"Event_18",new SCreator(Event_18_factory)); 13195new Sfactory(this,"VoidArgEvent_3",new SCreator(VoidArgEvent_3_factory));
10976new Sfactory(this,"Event_19",new SCreator(Event_19_factory));
10977new Sfactory(this,"BinaryExpression_10",new SCreator(BinaryExpression_10_factory)); 13196new Sfactory(this,"BinaryExpression_10",new SCreator(BinaryExpression_10_factory));
13197new Sfactory(this,"VoidArgEvent_5",new SCreator(VoidArgEvent_5_factory));
13198new Sfactory(this,"VoidArgEvent_6",new SCreator(VoidArgEvent_6_factory));
13199new Sfactory(this,"VoidArgEvent_7",new SCreator(VoidArgEvent_7_factory));
13200new Sfactory(this,"VoidArgEvent_8",new SCreator(VoidArgEvent_8_factory));
13201new Sfactory(this,"BinaryExpression_17",new SCreator(BinaryExpression_17_factory));
10978new Sfactory(this,"StateEvent_1",new SCreator(StateEvent_1_factory)); 13202new Sfactory(this,"StateEvent_1",new SCreator(StateEvent_1_factory));
10979new Sfactory(this,"VectorConstant",new SCreator(VectorConstant_factory)); 13203new Sfactory(this,"VectorConstant",new SCreator(VectorConstant_factory));
10980new Sfactory(this,"EmptyStatement_1",new SCreator(EmptyStatement_1_factory)); 13204new Sfactory(this,"VectorArgEvent_1",new SCreator(VectorArgEvent_1_factory));
13205new Sfactory(this,"IntDeclaration",new SCreator(IntDeclaration_factory));
13206new Sfactory(this,"VectorArgEvent_3",new SCreator(VectorArgEvent_3_factory));
10981new Sfactory(this,"TypecastExpression_4",new SCreator(TypecastExpression_4_factory)); 13207new Sfactory(this,"TypecastExpression_4",new SCreator(TypecastExpression_4_factory));
10982new Sfactory(this,"TypecastExpression_6",new SCreator(TypecastExpression_6_factory)); 13208new Sfactory(this,"TypecastExpression_6",new SCreator(TypecastExpression_6_factory));
10983new Sfactory(this,"TypecastExpression_7",new SCreator(TypecastExpression_7_factory)); 13209new Sfactory(this,"TypecastExpression_7",new SCreator(TypecastExpression_7_factory));
10984new Sfactory(this,"FunctionCall",new SCreator(FunctionCall_factory)); 13210new Sfactory(this,"FunctionCall",new SCreator(FunctionCall_factory));
10985new Sfactory(this,"Event_27",new SCreator(Event_27_factory));
10986new Sfactory(this,"Event_28",new SCreator(Event_28_factory));
10987new Sfactory(this,"Event_29",new SCreator(Event_29_factory));
10988new Sfactory(this,"ListConstant_1",new SCreator(ListConstant_1_factory)); 13211new Sfactory(this,"ListConstant_1",new SCreator(ListConstant_1_factory));
13212new Sfactory(this,"BinaryExpression_18",new SCreator(BinaryExpression_18_factory));
10989new Sfactory(this,"Event_6",new SCreator(Event_6_factory)); 13213new Sfactory(this,"Event_6",new SCreator(Event_6_factory));
13214new Sfactory(this,"KeyArgEvent_2",new SCreator(KeyArgEvent_2_factory));
10990new Sfactory(this,"Declaration_1",new SCreator(Declaration_1_factory)); 13215new Sfactory(this,"Declaration_1",new SCreator(Declaration_1_factory));
13216new Sfactory(this,"EmptyStatement_1",new SCreator(EmptyStatement_1_factory));
10991new Sfactory(this,"SimpleAssignment_7",new SCreator(SimpleAssignment_7_factory)); 13217new Sfactory(this,"SimpleAssignment_7",new SCreator(SimpleAssignment_7_factory));
10992new Sfactory(this,"ForLoop",new SCreator(ForLoop_factory)); 13218new Sfactory(this,"ForLoop",new SCreator(ForLoop_factory));
10993new Sfactory(this,"ForLoop_2",new SCreator(ForLoop_2_factory)); 13219new Sfactory(this,"ForLoop_2",new SCreator(ForLoop_2_factory));
10994new Sfactory(this,"Event_30",new SCreator(Event_30_factory)); 13220new Sfactory(this,"KeyIntIntArgStateEvent_1",new SCreator(KeyIntIntArgStateEvent_1_factory));
10995new Sfactory(this,"Event_31",new SCreator(Event_31_factory)); 13221new Sfactory(this,"KeyArgumentDeclarationList_1",new SCreator(KeyArgumentDeclarationList_1_factory));
10996new Sfactory(this,"Event_33",new SCreator(Event_33_factory));
10997new Sfactory(this,"GlobalFunctionDefinition_1",new SCreator(GlobalFunctionDefinition_1_factory)); 13222new Sfactory(this,"GlobalFunctionDefinition_1",new SCreator(GlobalFunctionDefinition_1_factory));
10998new Sfactory(this,"JumpLabel_1",new SCreator(JumpLabel_1_factory));
10999new Sfactory(this,"IfStatement",new SCreator(IfStatement_factory)); 13223new Sfactory(this,"IfStatement",new SCreator(IfStatement_factory));
11000new Sfactory(this,"ForLoopStatement_1",new SCreator(ForLoopStatement_1_factory)); 13224new Sfactory(this,"ForLoopStatement_1",new SCreator(ForLoopStatement_1_factory));
11001new Sfactory(this,"ForLoopStatement_2",new SCreator(ForLoopStatement_2_factory)); 13225new Sfactory(this,"ForLoopStatement_2",new SCreator(ForLoopStatement_2_factory));
11002new Sfactory(this,"ForLoopStatement_3",new SCreator(ForLoopStatement_3_factory)); 13226new Sfactory(this,"ForLoopStatement_3",new SCreator(ForLoopStatement_3_factory));
11003new Sfactory(this,"ArgumentDeclarationList_4",new SCreator(ArgumentDeclarationList_4_factory)); 13227new Sfactory(this,"IntRotRotArgumentDeclarationList",new SCreator(IntRotRotArgumentDeclarationList_factory));
11004new Sfactory(this,"ArgumentDeclarationList_5",new SCreator(ArgumentDeclarationList_5_factory)); 13228new Sfactory(this,"IntArgEvent_1",new SCreator(IntArgEvent_1_factory));
11005new Sfactory(this,"EmptyStatement",new SCreator(EmptyStatement_factory)); 13229new Sfactory(this,"IntArgEvent_2",new SCreator(IntArgEvent_2_factory));
11006new Sfactory(this,"WhileStatement",new SCreator(WhileStatement_factory)); 13230new Sfactory(this,"WhileStatement",new SCreator(WhileStatement_factory));
11007new Sfactory(this,"ForLoop_1",new SCreator(ForLoop_1_factory)); 13231new Sfactory(this,"ForLoop_1",new SCreator(ForLoop_1_factory));
11008new Sfactory(this,"Constant_2",new SCreator(Constant_2_factory)); 13232new Sfactory(this,"Constant_2",new SCreator(Constant_2_factory));
11009new Sfactory(this,"StatementList",new SCreator(StatementList_factory)); 13233new Sfactory(this,"VoidArgEvent",new SCreator(VoidArgEvent_factory));
11010new Sfactory(this,"StateBody_2",new SCreator(StateBody_2_factory)); 13234new Sfactory(this,"RotDeclaration",new SCreator(RotDeclaration_factory));
13235new Sfactory(this,"WhileStatement_1",new SCreator(WhileStatement_1_factory));
11011new Sfactory(this,"WhileStatement_2",new SCreator(WhileStatement_2_factory)); 13236new Sfactory(this,"WhileStatement_2",new SCreator(WhileStatement_2_factory));
13237new Sfactory(this,"VectorArgStateEvent_1",new SCreator(VectorArgStateEvent_1_factory));
11012new Sfactory(this,"IdentExpression_1",new SCreator(IdentExpression_1_factory)); 13238new Sfactory(this,"IdentExpression_1",new SCreator(IdentExpression_1_factory));
13239new Sfactory(this,"VectorArgumentDeclarationList",new SCreator(VectorArgumentDeclarationList_factory));
11013new Sfactory(this,"States",new SCreator(States_factory)); 13240new Sfactory(this,"States",new SCreator(States_factory));
13241new Sfactory(this,"VoidArgStateEvent",new SCreator(VoidArgStateEvent_factory));
11014} 13242}
11015public static object ExpressionArgument_1_factory(Parser yyp) { return new ExpressionArgument_1(yyp); } 13243public static object ExpressionArgument_1_factory(Parser yyp) { return new ExpressionArgument_1(yyp); }
11016public static object SimpleAssignment_8_factory(Parser yyp) { return new SimpleAssignment_8(yyp); } 13244public static object VectorArgStateEvent_factory(Parser yyp) { return new VectorArgStateEvent(yyp); }
13245public static object IntVecVecArgStateEvent_factory(Parser yyp) { return new IntVecVecArgStateEvent(yyp); }
13246public static object IntArgStateEvent_1_factory(Parser yyp) { return new IntArgStateEvent_1(yyp); }
13247public static object SimpleAssignment_9_factory(Parser yyp) { return new SimpleAssignment_9(yyp); }
11017public static object StatementList_1_factory(Parser yyp) { return new StatementList_1(yyp); } 13248public static object StatementList_1_factory(Parser yyp) { return new StatementList_1(yyp); }
13249public static object RotDeclaration_1_factory(Parser yyp) { return new RotDeclaration_1(yyp); }
13250public static object IntRotRotArgEvent_1_factory(Parser yyp) { return new IntRotRotArgEvent_1(yyp); }
11018public static object StateChange_1_factory(Parser yyp) { return new StateChange_1(yyp); } 13251public static object StateChange_1_factory(Parser yyp) { return new StateChange_1(yyp); }
11019public static object StateChange_2_factory(Parser yyp) { return new StateChange_2(yyp); } 13252public static object EmptyStatement_factory(Parser yyp) { return new EmptyStatement(yyp); }
11020public static object Declaration_factory(Parser yyp) { return new Declaration(yyp); } 13253public static object Declaration_factory(Parser yyp) { return new Declaration(yyp); }
11021public static object IdentExpression_factory(Parser yyp) { return new IdentExpression(yyp); } 13254public static object IdentExpression_factory(Parser yyp) { return new IdentExpression(yyp); }
11022public static object error_factory(Parser yyp) { return new error(yyp); } 13255public static object error_factory(Parser yyp) { return new error(yyp); }
@@ -11029,20 +13262,25 @@ public static object SimpleAssignment_19_factory(Parser yyp) { return new Simple
11029public static object BinaryExpression_9_factory(Parser yyp) { return new BinaryExpression_9(yyp); } 13262public static object BinaryExpression_9_factory(Parser yyp) { return new BinaryExpression_9(yyp); }
11030public static object VectorConstant_1_factory(Parser yyp) { return new VectorConstant_1(yyp); } 13263public static object VectorConstant_1_factory(Parser yyp) { return new VectorConstant_1(yyp); }
11031public static object ParenthesisExpression_factory(Parser yyp) { return new ParenthesisExpression(yyp); } 13264public static object ParenthesisExpression_factory(Parser yyp) { return new ParenthesisExpression(yyp); }
13265public static object StatementList_factory(Parser yyp) { return new StatementList(yyp); }
13266public static object IntRotRotArgEvent_factory(Parser yyp) { return new IntRotRotArgEvent(yyp); }
11032public static object UnaryExpression_factory(Parser yyp) { return new UnaryExpression(yyp); } 13267public static object UnaryExpression_factory(Parser yyp) { return new UnaryExpression(yyp); }
11033public static object IdentDotExpression_1_factory(Parser yyp) { return new IdentDotExpression_1(yyp); } 13268public static object IdentDotExpression_1_factory(Parser yyp) { return new IdentDotExpression_1(yyp); }
11034public static object ArgumentList_4_factory(Parser yyp) { return new ArgumentList_4(yyp); } 13269public static object ArgumentList_4_factory(Parser yyp) { return new ArgumentList_4(yyp); }
11035public static object Typename_factory(Parser yyp) { return new Typename(yyp); } 13270public static object Typename_factory(Parser yyp) { return new Typename(yyp); }
11036public static object IfStatement_1_factory(Parser yyp) { return new IfStatement_1(yyp); } 13271public static object IfStatement_1_factory(Parser yyp) { return new IfStatement_1(yyp); }
13272public static object RotationConstant_1_factory(Parser yyp) { return new RotationConstant_1(yyp); }
11037public static object Assignment_factory(Parser yyp) { return new Assignment(yyp); } 13273public static object Assignment_factory(Parser yyp) { return new Assignment(yyp); }
13274public static object IfStatement_4_factory(Parser yyp) { return new IfStatement_4(yyp); }
11038public static object CompoundStatement_1_factory(Parser yyp) { return new CompoundStatement_1(yyp); } 13275public static object CompoundStatement_1_factory(Parser yyp) { return new CompoundStatement_1(yyp); }
11039public static object CompoundStatement_2_factory(Parser yyp) { return new CompoundStatement_2(yyp); } 13276public static object CompoundStatement_2_factory(Parser yyp) { return new CompoundStatement_2(yyp); }
13277public static object KeyIntIntArgumentDeclarationList_1_factory(Parser yyp) { return new KeyIntIntArgumentDeclarationList_1(yyp); }
11040public static object BinaryExpression_8_factory(Parser yyp) { return new BinaryExpression_8(yyp); } 13278public static object BinaryExpression_8_factory(Parser yyp) { return new BinaryExpression_8(yyp); }
13279public static object VectorArgEvent_factory(Parser yyp) { return new VectorArgEvent(yyp); }
11041public static object ReturnStatement_1_factory(Parser yyp) { return new ReturnStatement_1(yyp); } 13280public static object ReturnStatement_1_factory(Parser yyp) { return new ReturnStatement_1(yyp); }
11042public static object IdentDotExpression_factory(Parser yyp) { return new IdentDotExpression(yyp); } 13281public static object IdentDotExpression_factory(Parser yyp) { return new IdentDotExpression(yyp); }
11043public static object Argument_factory(Parser yyp) { return new Argument(yyp); } 13282public static object Argument_factory(Parser yyp) { return new Argument(yyp); }
11044public static object State_2_factory(Parser yyp) { return new State_2(yyp); } 13283public static object State_2_factory(Parser yyp) { return new State_2(yyp); }
11045public static object WhileStatement_1_factory(Parser yyp) { return new WhileStatement_1(yyp); }
11046public static object GlobalDefinitions_3_factory(Parser yyp) { return new GlobalDefinitions_3(yyp); } 13284public static object GlobalDefinitions_3_factory(Parser yyp) { return new GlobalDefinitions_3(yyp); }
11047public static object GlobalDefinitions_4_factory(Parser yyp) { return new GlobalDefinitions_4(yyp); } 13285public static object GlobalDefinitions_4_factory(Parser yyp) { return new GlobalDefinitions_4(yyp); }
11048public static object Event_1_factory(Parser yyp) { return new Event_1(yyp); } 13286public static object Event_1_factory(Parser yyp) { return new Event_1(yyp); }
@@ -11052,9 +13290,9 @@ public static object Event_4_factory(Parser yyp) { return new Event_4(yyp); }
11052public static object Event_5_factory(Parser yyp) { return new Event_5(yyp); } 13290public static object Event_5_factory(Parser yyp) { return new Event_5(yyp); }
11053public static object SimpleAssignment_5_factory(Parser yyp) { return new SimpleAssignment_5(yyp); } 13291public static object SimpleAssignment_5_factory(Parser yyp) { return new SimpleAssignment_5(yyp); }
11054public static object Typename_1_factory(Parser yyp) { return new Typename_1(yyp); } 13292public static object Typename_1_factory(Parser yyp) { return new Typename_1(yyp); }
11055public static object Typename_2_factory(Parser yyp) { return new Typename_2(yyp); } 13293public static object VoidArgStateEvent_1_factory(Parser yyp) { return new VoidArgStateEvent_1(yyp); }
11056public static object Typename_3_factory(Parser yyp) { return new Typename_3(yyp); } 13294public static object Typename_3_factory(Parser yyp) { return new Typename_3(yyp); }
11057public static object Typename_4_factory(Parser yyp) { return new Typename_4(yyp); } 13295public static object IntRotRotArgStateEvent_factory(Parser yyp) { return new IntRotRotArgStateEvent(yyp); }
11058public static object Typename_5_factory(Parser yyp) { return new Typename_5(yyp); } 13296public static object Typename_5_factory(Parser yyp) { return new Typename_5(yyp); }
11059public static object Typename_6_factory(Parser yyp) { return new Typename_6(yyp); } 13297public static object Typename_6_factory(Parser yyp) { return new Typename_6(yyp); }
11060public static object Typename_7_factory(Parser yyp) { return new Typename_7(yyp); } 13298public static object Typename_7_factory(Parser yyp) { return new Typename_7(yyp); }
@@ -11062,10 +13300,16 @@ public static object ArgumentDeclarationList_factory(Parser yyp) { return new Ar
11062public static object ConstantExpression_factory(Parser yyp) { return new ConstantExpression(yyp); } 13300public static object ConstantExpression_factory(Parser yyp) { return new ConstantExpression(yyp); }
11063public static object LSLProgramRoot_1_factory(Parser yyp) { return new LSLProgramRoot_1(yyp); } 13301public static object LSLProgramRoot_1_factory(Parser yyp) { return new LSLProgramRoot_1(yyp); }
11064public static object LSLProgramRoot_2_factory(Parser yyp) { return new LSLProgramRoot_2(yyp); } 13302public static object LSLProgramRoot_2_factory(Parser yyp) { return new LSLProgramRoot_2(yyp); }
13303public static object KeyIntIntArgEvent_1_factory(Parser yyp) { return new KeyIntIntArgEvent_1(yyp); }
11065public static object States_1_factory(Parser yyp) { return new States_1(yyp); } 13304public static object States_1_factory(Parser yyp) { return new States_1(yyp); }
11066public static object States_2_factory(Parser yyp) { return new States_2(yyp); } 13305public static object States_2_factory(Parser yyp) { return new States_2(yyp); }
11067public static object FunctionCallExpression_1_factory(Parser yyp) { return new FunctionCallExpression_1(yyp); } 13306public static object FunctionCallExpression_1_factory(Parser yyp) { return new FunctionCallExpression_1(yyp); }
13307public static object KeyArgEvent_1_factory(Parser yyp) { return new KeyArgEvent_1(yyp); }
11068public static object ForLoopStatement_factory(Parser yyp) { return new ForLoopStatement(yyp); } 13308public static object ForLoopStatement_factory(Parser yyp) { return new ForLoopStatement(yyp); }
13309public static object IntArgStateEvent_factory(Parser yyp) { return new IntArgStateEvent(yyp); }
13310public static object StateBody_15_factory(Parser yyp) { return new StateBody_15(yyp); }
13311public static object IntRotRotArgumentDeclarationList_1_factory(Parser yyp) { return new IntRotRotArgumentDeclarationList_1(yyp); }
13312public static object IntArgEvent_9_factory(Parser yyp) { return new IntArgEvent_9(yyp); }
11069public static object DoWhileStatement_1_factory(Parser yyp) { return new DoWhileStatement_1(yyp); } 13313public static object DoWhileStatement_1_factory(Parser yyp) { return new DoWhileStatement_1(yyp); }
11070public static object DoWhileStatement_2_factory(Parser yyp) { return new DoWhileStatement_2(yyp); } 13314public static object DoWhileStatement_2_factory(Parser yyp) { return new DoWhileStatement_2(yyp); }
11071public static object ForLoopStatement_4_factory(Parser yyp) { return new ForLoopStatement_4(yyp); } 13315public static object ForLoopStatement_4_factory(Parser yyp) { return new ForLoopStatement_4(yyp); }
@@ -11074,74 +13318,93 @@ public static object SimpleAssignment_12_factory(Parser yyp) { return new Simple
11074public static object SimpleAssignment_13_factory(Parser yyp) { return new SimpleAssignment_13(yyp); } 13318public static object SimpleAssignment_13_factory(Parser yyp) { return new SimpleAssignment_13(yyp); }
11075public static object JumpLabel_factory(Parser yyp) { return new JumpLabel(yyp); } 13319public static object JumpLabel_factory(Parser yyp) { return new JumpLabel(yyp); }
11076public static object SimpleAssignment_15_factory(Parser yyp) { return new SimpleAssignment_15(yyp); } 13320public static object SimpleAssignment_15_factory(Parser yyp) { return new SimpleAssignment_15(yyp); }
11077public static object SimpleAssignment_17_factory(Parser yyp) { return new SimpleAssignment_17(yyp); } 13321public static object IntVecVecArgEvent_factory(Parser yyp) { return new IntVecVecArgEvent(yyp); }
11078public static object SimpleAssignment_18_factory(Parser yyp) { return new SimpleAssignment_18(yyp); } 13322public static object VecDeclaration_factory(Parser yyp) { return new VecDeclaration(yyp); }
11079public static object JumpStatement_1_factory(Parser yyp) { return new JumpStatement_1(yyp); } 13323public static object StateBody_14_factory(Parser yyp) { return new StateBody_14(yyp); }
11080public static object GlobalDefinitions_factory(Parser yyp) { return new GlobalDefinitions(yyp); } 13324public static object GlobalDefinitions_factory(Parser yyp) { return new GlobalDefinitions(yyp); }
13325public static object StateBody_16_factory(Parser yyp) { return new StateBody_16(yyp); }
13326public static object KeyIntIntArgumentDeclarationList_factory(Parser yyp) { return new KeyIntIntArgumentDeclarationList(yyp); }
13327public static object ConstantExpression_1_factory(Parser yyp) { return new ConstantExpression_1(yyp); }
13328public static object VoidArgEvent_4_factory(Parser yyp) { return new VoidArgEvent_4(yyp); }
11081public static object FunctionCall_1_factory(Parser yyp) { return new FunctionCall_1(yyp); } 13329public static object FunctionCall_1_factory(Parser yyp) { return new FunctionCall_1(yyp); }
11082public static object ArgumentList_3_factory(Parser yyp) { return new ArgumentList_3(yyp); } 13330public static object Assignment_1_factory(Parser yyp) { return new Assignment_1(yyp); }
11083public static object Assignment_2_factory(Parser yyp) { return new Assignment_2(yyp); } 13331public static object Assignment_2_factory(Parser yyp) { return new Assignment_2(yyp); }
13332public static object IntVecVecArgEvent_1_factory(Parser yyp) { return new IntVecVecArgEvent_1(yyp); }
11084public static object TypecastExpression_1_factory(Parser yyp) { return new TypecastExpression_1(yyp); } 13333public static object TypecastExpression_1_factory(Parser yyp) { return new TypecastExpression_1(yyp); }
11085public static object SimpleAssignment_21_factory(Parser yyp) { return new SimpleAssignment_21(yyp); } 13334public static object SimpleAssignment_21_factory(Parser yyp) { return new SimpleAssignment_21(yyp); }
11086public static object SimpleAssignment_22_factory(Parser yyp) { return new SimpleAssignment_22(yyp); } 13335public static object SimpleAssignment_22_factory(Parser yyp) { return new SimpleAssignment_22(yyp); }
11087public static object SimpleAssignment_23_factory(Parser yyp) { return new SimpleAssignment_23(yyp); } 13336public static object KeyIntIntArgStateEvent_factory(Parser yyp) { return new KeyIntIntArgStateEvent(yyp); }
11088public static object TypecastExpression_9_factory(Parser yyp) { return new TypecastExpression_9(yyp); } 13337public static object TypecastExpression_9_factory(Parser yyp) { return new TypecastExpression_9(yyp); }
13338public static object VoidArgEvent_2_factory(Parser yyp) { return new VoidArgEvent_2(yyp); }
13339public static object Event_9_factory(Parser yyp) { return new Event_9(yyp); }
11089public static object ArgumentDeclarationList_1_factory(Parser yyp) { return new ArgumentDeclarationList_1(yyp); } 13340public static object ArgumentDeclarationList_1_factory(Parser yyp) { return new ArgumentDeclarationList_1(yyp); }
11090public static object ArgumentDeclarationList_2_factory(Parser yyp) { return new ArgumentDeclarationList_2(yyp); } 13341public static object ArgumentDeclarationList_2_factory(Parser yyp) { return new ArgumentDeclarationList_2(yyp); }
11091public static object ArgumentDeclarationList_3_factory(Parser yyp) { return new ArgumentDeclarationList_3(yyp); }
11092public static object GlobalDefinitions_1_factory(Parser yyp) { return new GlobalDefinitions_1(yyp); } 13342public static object GlobalDefinitions_1_factory(Parser yyp) { return new GlobalDefinitions_1(yyp); }
11093public static object GlobalDefinitions_2_factory(Parser yyp) { return new GlobalDefinitions_2(yyp); } 13343public static object GlobalDefinitions_2_factory(Parser yyp) { return new GlobalDefinitions_2(yyp); }
11094public static object IncrementDecrementExpression_factory(Parser yyp) { return new IncrementDecrementExpression(yyp); } 13344public static object IncrementDecrementExpression_factory(Parser yyp) { return new IncrementDecrementExpression(yyp); }
11095public static object GlobalVariableDeclaration_factory(Parser yyp) { return new GlobalVariableDeclaration(yyp); } 13345public static object GlobalVariableDeclaration_factory(Parser yyp) { return new GlobalVariableDeclaration(yyp); }
11096public static object Event_11_factory(Parser yyp) { return new Event_11(yyp); } 13346public static object IntArgumentDeclarationList_1_factory(Parser yyp) { return new IntArgumentDeclarationList_1(yyp); }
13347public static object IntDeclaration_1_factory(Parser yyp) { return new IntDeclaration_1(yyp); }
13348public static object ArgumentDeclarationList_5_factory(Parser yyp) { return new ArgumentDeclarationList_5(yyp); }
13349public static object IntVecVecArgumentDeclarationList_factory(Parser yyp) { return new IntVecVecArgumentDeclarationList(yyp); }
13350public static object VectorArgumentDeclarationList_1_factory(Parser yyp) { return new VectorArgumentDeclarationList_1(yyp); }
13351public static object KeyArgumentDeclarationList_factory(Parser yyp) { return new KeyArgumentDeclarationList(yyp); }
11097public static object TypecastExpression_2_factory(Parser yyp) { return new TypecastExpression_2(yyp); } 13352public static object TypecastExpression_2_factory(Parser yyp) { return new TypecastExpression_2(yyp); }
11098public static object TypecastExpression_3_factory(Parser yyp) { return new TypecastExpression_3(yyp); } 13353public static object KeyArgStateEvent_factory(Parser yyp) { return new KeyArgStateEvent(yyp); }
11099public static object TypecastExpression_5_factory(Parser yyp) { return new TypecastExpression_5(yyp); } 13354public static object TypecastExpression_5_factory(Parser yyp) { return new TypecastExpression_5(yyp); }
11100public static object TypecastExpression_8_factory(Parser yyp) { return new TypecastExpression_8(yyp); } 13355public static object TypecastExpression_8_factory(Parser yyp) { return new TypecastExpression_8(yyp); }
11101public static object Constant_1_factory(Parser yyp) { return new Constant_1(yyp); } 13356public static object Constant_1_factory(Parser yyp) { return new Constant_1(yyp); }
11102public static object Expression_factory(Parser yyp) { return new Expression(yyp); } 13357public static object Expression_factory(Parser yyp) { return new Expression(yyp); }
11103public static object Constant_3_factory(Parser yyp) { return new Constant_3(yyp); } 13358public static object Constant_3_factory(Parser yyp) { return new Constant_3(yyp); }
11104public static object Constant_4_factory(Parser yyp) { return new Constant_4(yyp); } 13359public static object Constant_4_factory(Parser yyp) { return new Constant_4(yyp); }
13360public static object IntArgEvent_5_factory(Parser yyp) { return new IntArgEvent_5(yyp); }
11105public static object BinaryExpression_1_factory(Parser yyp) { return new BinaryExpression_1(yyp); } 13361public static object BinaryExpression_1_factory(Parser yyp) { return new BinaryExpression_1(yyp); }
11106public static object IfStatement_2_factory(Parser yyp) { return new IfStatement_2(yyp); } 13362public static object IfStatement_2_factory(Parser yyp) { return new IfStatement_2(yyp); }
11107public static object IfStatement_3_factory(Parser yyp) { return new IfStatement_3(yyp); } 13363public static object IfStatement_3_factory(Parser yyp) { return new IfStatement_3(yyp); }
11108public static object IfStatement_4_factory(Parser yyp) { return new IfStatement_4(yyp); } 13364public static object KeyArgEvent_factory(Parser yyp) { return new KeyArgEvent(yyp); }
11109public static object ReturnStatement_factory(Parser yyp) { return new ReturnStatement(yyp); }
11110public static object Event_2_factory(Parser yyp) { return new Event_2(yyp); } 13365public static object Event_2_factory(Parser yyp) { return new Event_2(yyp); }
13366public static object JumpLabel_1_factory(Parser yyp) { return new JumpLabel_1(yyp); }
11111public static object RotationConstant_factory(Parser yyp) { return new RotationConstant(yyp); } 13367public static object RotationConstant_factory(Parser yyp) { return new RotationConstant(yyp); }
11112public static object Statement_12_factory(Parser yyp) { return new Statement_12(yyp); } 13368public static object Statement_12_factory(Parser yyp) { return new Statement_12(yyp); }
13369public static object Statement_13_factory(Parser yyp) { return new Statement_13(yyp); }
11113public static object UnaryExpression_1_factory(Parser yyp) { return new UnaryExpression_1(yyp); } 13370public static object UnaryExpression_1_factory(Parser yyp) { return new UnaryExpression_1(yyp); }
11114public static object UnaryExpression_2_factory(Parser yyp) { return new UnaryExpression_2(yyp); } 13371public static object UnaryExpression_2_factory(Parser yyp) { return new UnaryExpression_2(yyp); }
11115public static object UnaryExpression_3_factory(Parser yyp) { return new UnaryExpression_3(yyp); } 13372public static object UnaryExpression_3_factory(Parser yyp) { return new UnaryExpression_3(yyp); }
11116public static object ArgumentList_1_factory(Parser yyp) { return new ArgumentList_1(yyp); } 13373public static object ArgumentList_1_factory(Parser yyp) { return new ArgumentList_1(yyp); }
11117public static object ArgumentList_2_factory(Parser yyp) { return new ArgumentList_2(yyp); } 13374public static object KeyIntIntArgEvent_factory(Parser yyp) { return new KeyIntIntArgEvent(yyp); }
13375public static object ArgumentList_3_factory(Parser yyp) { return new ArgumentList_3(yyp); }
11118public static object Constant_factory(Parser yyp) { return new Constant(yyp); } 13376public static object Constant_factory(Parser yyp) { return new Constant(yyp); }
11119public static object State_factory(Parser yyp) { return new State(yyp); } 13377public static object State_factory(Parser yyp) { return new State(yyp); }
11120public static object Event_13_factory(Parser yyp) { return new Event_13(yyp); } 13378public static object StateBody_13_factory(Parser yyp) { return new StateBody_13(yyp); }
13379public static object KeyArgStateEvent_1_factory(Parser yyp) { return new KeyArgStateEvent_1(yyp); }
13380public static object SimpleAssignment_8_factory(Parser yyp) { return new SimpleAssignment_8(yyp); }
11121public static object LSLProgramRoot_factory(Parser yyp) { return new LSLProgramRoot(yyp); } 13381public static object LSLProgramRoot_factory(Parser yyp) { return new LSLProgramRoot(yyp); }
11122public static object StateChange_factory(Parser yyp) { return new StateChange(yyp); } 13382public static object StateChange_factory(Parser yyp) { return new StateChange(yyp); }
11123public static object IncrementDecrementExpression_2_factory(Parser yyp) { return new IncrementDecrementExpression_2(yyp); } 13383public static object VecDeclaration_1_factory(Parser yyp) { return new VecDeclaration_1(yyp); }
11124public static object GlobalVariableDeclaration_1_factory(Parser yyp) { return new GlobalVariableDeclaration_1(yyp); } 13384public static object GlobalVariableDeclaration_1_factory(Parser yyp) { return new GlobalVariableDeclaration_1(yyp); }
11125public static object GlobalVariableDeclaration_2_factory(Parser yyp) { return new GlobalVariableDeclaration_2(yyp); } 13385public static object GlobalVariableDeclaration_2_factory(Parser yyp) { return new GlobalVariableDeclaration_2(yyp); }
11126public static object IncrementDecrementExpression_5_factory(Parser yyp) { return new IncrementDecrementExpression_5(yyp); } 13386public static object IncrementDecrementExpression_5_factory(Parser yyp) { return new IncrementDecrementExpression_5(yyp); }
11127public static object GlobalFunctionDefinition_2_factory(Parser yyp) { return new GlobalFunctionDefinition_2(yyp); } 13387public static object ReturnStatement_factory(Parser yyp) { return new ReturnStatement(yyp); }
11128public static object IncrementDecrementExpression_7_factory(Parser yyp) { return new IncrementDecrementExpression_7(yyp); } 13388public static object StateBody_10_factory(Parser yyp) { return new StateBody_10(yyp); }
11129public static object IncrementDecrementExpression_8_factory(Parser yyp) { return new IncrementDecrementExpression_8(yyp); } 13389public static object StateBody_11_factory(Parser yyp) { return new StateBody_11(yyp); }
11130public static object Assignment_1_factory(Parser yyp) { return new Assignment_1(yyp); } 13390public static object StateBody_12_factory(Parser yyp) { return new StateBody_12(yyp); }
11131public static object Event_21_factory(Parser yyp) { return new Event_21(yyp); } 13391public static object IntVecVecArgStateEvent_1_factory(Parser yyp) { return new IntVecVecArgStateEvent_1(yyp); }
11132public static object Event_22_factory(Parser yyp) { return new Event_22(yyp); } 13392public static object KeyDeclaration_factory(Parser yyp) { return new KeyDeclaration(yyp); }
13393public static object IntArgEvent_6_factory(Parser yyp) { return new IntArgEvent_6(yyp); }
13394public static object ArgumentDeclarationList_3_factory(Parser yyp) { return new ArgumentDeclarationList_3(yyp); }
13395public static object ArgumentList_2_factory(Parser yyp) { return new ArgumentList_2(yyp); }
13396public static object IntArgEvent_10_factory(Parser yyp) { return new IntArgEvent_10(yyp); }
11133public static object CompoundStatement_factory(Parser yyp) { return new CompoundStatement(yyp); } 13397public static object CompoundStatement_factory(Parser yyp) { return new CompoundStatement(yyp); }
11134public static object RotationConstant_1_factory(Parser yyp) { return new RotationConstant_1(yyp); } 13398public static object TypecastExpression_3_factory(Parser yyp) { return new TypecastExpression_3(yyp); }
11135public static object TypecastExpression_factory(Parser yyp) { return new TypecastExpression(yyp); } 13399public static object IntArgumentDeclarationList_factory(Parser yyp) { return new IntArgumentDeclarationList(yyp); }
13400public static object ArgumentDeclarationList_4_factory(Parser yyp) { return new ArgumentDeclarationList_4(yyp); }
11136public static object SimpleAssignment_3_factory(Parser yyp) { return new SimpleAssignment_3(yyp); } 13401public static object SimpleAssignment_3_factory(Parser yyp) { return new SimpleAssignment_3(yyp); }
11137public static object SimpleAssignment_4_factory(Parser yyp) { return new SimpleAssignment_4(yyp); } 13402public static object SimpleAssignment_4_factory(Parser yyp) { return new SimpleAssignment_4(yyp); }
11138public static object Statement_1_factory(Parser yyp) { return new Statement_1(yyp); } 13403public static object Statement_1_factory(Parser yyp) { return new Statement_1(yyp); }
11139public static object Statement_2_factory(Parser yyp) { return new Statement_2(yyp); } 13404public static object Statement_2_factory(Parser yyp) { return new Statement_2(yyp); }
11140public static object Statement_3_factory(Parser yyp) { return new Statement_3(yyp); }
11141public static object Statement_4_factory(Parser yyp) { return new Statement_4(yyp); } 13405public static object Statement_4_factory(Parser yyp) { return new Statement_4(yyp); }
11142public static object Statement_5_factory(Parser yyp) { return new Statement_5(yyp); } 13406public static object Statement_5_factory(Parser yyp) { return new Statement_5(yyp); }
11143public static object Statement_6_factory(Parser yyp) { return new Statement_6(yyp); } 13407public static object Statement_6_factory(Parser yyp) { return new Statement_6(yyp); }
11144public static object Statement_7_factory(Parser yyp) { return new Statement_7(yyp); }
11145public static object Statement_8_factory(Parser yyp) { return new Statement_8(yyp); } 13408public static object Statement_8_factory(Parser yyp) { return new Statement_8(yyp); }
11146public static object Statement_9_factory(Parser yyp) { return new Statement_9(yyp); } 13409public static object Statement_9_factory(Parser yyp) { return new Statement_9(yyp); }
11147public static object ExpressionArgument_factory(Parser yyp) { return new ExpressionArgument(yyp); } 13410public static object ExpressionArgument_factory(Parser yyp) { return new ExpressionArgument(yyp); }
@@ -11154,27 +13417,35 @@ public static object StateBody_factory(Parser yyp) { return new StateBody(yyp);
11154public static object Event_7_factory(Parser yyp) { return new Event_7(yyp); } 13417public static object Event_7_factory(Parser yyp) { return new Event_7(yyp); }
11155public static object Event_8_factory(Parser yyp) { return new Event_8(yyp); } 13418public static object Event_8_factory(Parser yyp) { return new Event_8(yyp); }
11156public static object IncrementDecrementExpression_1_factory(Parser yyp) { return new IncrementDecrementExpression_1(yyp); } 13419public static object IncrementDecrementExpression_1_factory(Parser yyp) { return new IncrementDecrementExpression_1(yyp); }
11157public static object IncrementDecrementExpression_3_factory(Parser yyp) { return new IncrementDecrementExpression_3(yyp); } 13420public static object IncrementDecrementExpression_2_factory(Parser yyp) { return new IncrementDecrementExpression_2(yyp); }
13421public static object IntVecVecArgumentDeclarationList_1_factory(Parser yyp) { return new IntVecVecArgumentDeclarationList_1(yyp); }
11158public static object IncrementDecrementExpression_4_factory(Parser yyp) { return new IncrementDecrementExpression_4(yyp); } 13422public static object IncrementDecrementExpression_4_factory(Parser yyp) { return new IncrementDecrementExpression_4(yyp); }
11159public static object IncrementDecrementExpression_6_factory(Parser yyp) { return new IncrementDecrementExpression_6(yyp); } 13423public static object IncrementDecrementExpression_6_factory(Parser yyp) { return new IncrementDecrementExpression_6(yyp); }
13424public static object IncrementDecrementExpression_7_factory(Parser yyp) { return new IncrementDecrementExpression_7(yyp); }
11160public static object StateEvent_factory(Parser yyp) { return new StateEvent(yyp); } 13425public static object StateEvent_factory(Parser yyp) { return new StateEvent(yyp); }
11161public static object Event_20_factory(Parser yyp) { return new Event_20(yyp); } 13426public static object IntArgEvent_3_factory(Parser yyp) { return new IntArgEvent_3(yyp); }
11162public static object Event_23_factory(Parser yyp) { return new Event_23(yyp); } 13427public static object IntArgEvent_4_factory(Parser yyp) { return new IntArgEvent_4(yyp); }
11163public static object Event_24_factory(Parser yyp) { return new Event_24(yyp); } 13428public static object KeyDeclaration_1_factory(Parser yyp) { return new KeyDeclaration_1(yyp); }
11164public static object Event_26_factory(Parser yyp) { return new Event_26(yyp); } 13429public static object Statement_3_factory(Parser yyp) { return new Statement_3(yyp); }
13430public static object IntArgEvent_7_factory(Parser yyp) { return new IntArgEvent_7(yyp); }
13431public static object IntArgEvent_8_factory(Parser yyp) { return new IntArgEvent_8(yyp); }
11165public static object SimpleAssignment_10_factory(Parser yyp) { return new SimpleAssignment_10(yyp); } 13432public static object SimpleAssignment_10_factory(Parser yyp) { return new SimpleAssignment_10(yyp); }
13433public static object StatementList_2_factory(Parser yyp) { return new StatementList_2(yyp); }
13434public static object IntRotRotArgStateEvent_1_factory(Parser yyp) { return new IntRotRotArgStateEvent_1(yyp); }
13435public static object VectorArgEvent_2_factory(Parser yyp) { return new VectorArgEvent_2(yyp); }
11166public static object Event_factory(Parser yyp) { return new Event(yyp); } 13436public static object Event_factory(Parser yyp) { return new Event(yyp); }
11167public static object SimpleAssignment_14_factory(Parser yyp) { return new SimpleAssignment_14(yyp); } 13437public static object SimpleAssignment_14_factory(Parser yyp) { return new SimpleAssignment_14(yyp); }
11168public static object SimpleAssignment_16_factory(Parser yyp) { return new SimpleAssignment_16(yyp); } 13438public static object SimpleAssignment_16_factory(Parser yyp) { return new SimpleAssignment_16(yyp); }
13439public static object SimpleAssignment_17_factory(Parser yyp) { return new SimpleAssignment_17(yyp); }
13440public static object SimpleAssignment_18_factory(Parser yyp) { return new SimpleAssignment_18(yyp); }
11169public static object Statement_10_factory(Parser yyp) { return new Statement_10(yyp); } 13441public static object Statement_10_factory(Parser yyp) { return new Statement_10(yyp); }
11170public static object Statement_11_factory(Parser yyp) { return new Statement_11(yyp); } 13442public static object Statement_11_factory(Parser yyp) { return new Statement_11(yyp); }
11171public static object SimpleAssignment_factory(Parser yyp) { return new SimpleAssignment(yyp); } 13443public static object SimpleAssignment_factory(Parser yyp) { return new SimpleAssignment(yyp); }
11172public static object Statement_13_factory(Parser yyp) { return new Statement_13(yyp); } 13444public static object TypecastExpression_factory(Parser yyp) { return new TypecastExpression(yyp); }
11173public static object Event_15_factory(Parser yyp) { return new Event_15(yyp); } 13445public static object JumpStatement_1_factory(Parser yyp) { return new JumpStatement_1(yyp); }
11174public static object Event_16_factory(Parser yyp) { return new Event_16(yyp); }
11175public static object Event_32_factory(Parser yyp) { return new Event_32(yyp); }
11176public static object Event_34_factory(Parser yyp) { return new Event_34(yyp); }
11177public static object SimpleAssignment_20_factory(Parser yyp) { return new SimpleAssignment_20(yyp); } 13446public static object SimpleAssignment_20_factory(Parser yyp) { return new SimpleAssignment_20(yyp); }
13447public static object Statement_7_factory(Parser yyp) { return new Statement_7(yyp); }
13448public static object SimpleAssignment_23_factory(Parser yyp) { return new SimpleAssignment_23(yyp); }
11178public static object SimpleAssignment_24_factory(Parser yyp) { return new SimpleAssignment_24(yyp); } 13449public static object SimpleAssignment_24_factory(Parser yyp) { return new SimpleAssignment_24(yyp); }
11179public static object SimpleAssignment_1_factory(Parser yyp) { return new SimpleAssignment_1(yyp); } 13450public static object SimpleAssignment_1_factory(Parser yyp) { return new SimpleAssignment_1(yyp); }
11180public static object SimpleAssignment_2_factory(Parser yyp) { return new SimpleAssignment_2(yyp); } 13451public static object SimpleAssignment_2_factory(Parser yyp) { return new SimpleAssignment_2(yyp); }
@@ -11182,67 +13453,80 @@ public static object BinaryExpression_factory(Parser yyp) { return new BinaryExp
11182public static object FunctionCallExpression_factory(Parser yyp) { return new FunctionCallExpression(yyp); } 13453public static object FunctionCallExpression_factory(Parser yyp) { return new FunctionCallExpression(yyp); }
11183public static object SimpleAssignment_6_factory(Parser yyp) { return new SimpleAssignment_6(yyp); } 13454public static object SimpleAssignment_6_factory(Parser yyp) { return new SimpleAssignment_6(yyp); }
11184public static object StateBody_1_factory(Parser yyp) { return new StateBody_1(yyp); } 13455public static object StateBody_1_factory(Parser yyp) { return new StateBody_1(yyp); }
11185public static object StatementList_2_factory(Parser yyp) { return new StatementList_2(yyp); } 13456public static object StateBody_2_factory(Parser yyp) { return new StateBody_2(yyp); }
11186public static object SimpleAssignment_9_factory(Parser yyp) { return new SimpleAssignment_9(yyp); } 13457public static object StateBody_3_factory(Parser yyp) { return new StateBody_3(yyp); }
11187public static object BinaryExpression_15_factory(Parser yyp) { return new BinaryExpression_15(yyp); } 13458public static object StateBody_4_factory(Parser yyp) { return new StateBody_4(yyp); }
11188public static object BinaryExpression_16_factory(Parser yyp) { return new BinaryExpression_16(yyp); } 13459public static object StateBody_5_factory(Parser yyp) { return new StateBody_5(yyp); }
11189public static object BinaryExpression_17_factory(Parser yyp) { return new BinaryExpression_17(yyp); } 13460public static object StateBody_6_factory(Parser yyp) { return new StateBody_6(yyp); }
11190public static object BinaryExpression_18_factory(Parser yyp) { return new BinaryExpression_18(yyp); } 13461public static object StateBody_7_factory(Parser yyp) { return new StateBody_7(yyp); }
11191public static object Event_25_factory(Parser yyp) { return new Event_25(yyp); } 13462public static object StateBody_8_factory(Parser yyp) { return new StateBody_8(yyp); }
11192public static object Event_9_factory(Parser yyp) { return new Event_9(yyp); } 13463public static object StateBody_9_factory(Parser yyp) { return new StateBody_9(yyp); }
11193public static object Statement_factory(Parser yyp) { return new Statement(yyp); } 13464public static object Statement_factory(Parser yyp) { return new Statement(yyp); }
13465public static object IncrementDecrementExpression_3_factory(Parser yyp) { return new IncrementDecrementExpression_3(yyp); }
11194public static object JumpStatement_factory(Parser yyp) { return new JumpStatement(yyp); } 13466public static object JumpStatement_factory(Parser yyp) { return new JumpStatement(yyp); }
11195public static object BinaryExpression_11_factory(Parser yyp) { return new BinaryExpression_11(yyp); } 13467public static object BinaryExpression_11_factory(Parser yyp) { return new BinaryExpression_11(yyp); }
11196public static object BinaryExpression_12_factory(Parser yyp) { return new BinaryExpression_12(yyp); } 13468public static object IntArgEvent_factory(Parser yyp) { return new IntArgEvent(yyp); }
11197public static object BinaryExpression_13_factory(Parser yyp) { return new BinaryExpression_13(yyp); } 13469public static object IncrementDecrementExpression_8_factory(Parser yyp) { return new IncrementDecrementExpression_8(yyp); }
11198public static object BinaryExpression_14_factory(Parser yyp) { return new BinaryExpression_14(yyp); } 13470public static object BinaryExpression_14_factory(Parser yyp) { return new BinaryExpression_14(yyp); }
13471public static object BinaryExpression_15_factory(Parser yyp) { return new BinaryExpression_15(yyp); }
13472public static object BinaryExpression_16_factory(Parser yyp) { return new BinaryExpression_16(yyp); }
11199public static object BinaryExpression_6_factory(Parser yyp) { return new BinaryExpression_6(yyp); } 13473public static object BinaryExpression_6_factory(Parser yyp) { return new BinaryExpression_6(yyp); }
11200public static object BinaryExpression_7_factory(Parser yyp) { return new BinaryExpression_7(yyp); } 13474public static object BinaryExpression_7_factory(Parser yyp) { return new BinaryExpression_7(yyp); }
13475public static object Typename_2_factory(Parser yyp) { return new Typename_2(yyp); }
13476public static object Typename_4_factory(Parser yyp) { return new Typename_4(yyp); }
11201public static object ArgumentList_factory(Parser yyp) { return new ArgumentList(yyp); } 13477public static object ArgumentList_factory(Parser yyp) { return new ArgumentList(yyp); }
11202public static object Event_10_factory(Parser yyp) { return new Event_10(yyp); } 13478public static object BinaryExpression_12_factory(Parser yyp) { return new BinaryExpression_12(yyp); }
11203public static object ConstantExpression_1_factory(Parser yyp) { return new ConstantExpression_1(yyp); } 13479public static object BinaryExpression_13_factory(Parser yyp) { return new BinaryExpression_13(yyp); }
11204public static object Event_12_factory(Parser yyp) { return new Event_12(yyp); } 13480public static object GlobalFunctionDefinition_2_factory(Parser yyp) { return new GlobalFunctionDefinition_2(yyp); }
11205public static object Event_14_factory(Parser yyp) { return new Event_14(yyp); } 13481public static object StateChange_2_factory(Parser yyp) { return new StateChange_2(yyp); }
11206public static object Event_17_factory(Parser yyp) { return new Event_17(yyp); } 13482public static object VoidArgEvent_1_factory(Parser yyp) { return new VoidArgEvent_1(yyp); }
11207public static object Event_18_factory(Parser yyp) { return new Event_18(yyp); } 13483public static object VoidArgEvent_3_factory(Parser yyp) { return new VoidArgEvent_3(yyp); }
11208public static object Event_19_factory(Parser yyp) { return new Event_19(yyp); }
11209public static object BinaryExpression_10_factory(Parser yyp) { return new BinaryExpression_10(yyp); } 13484public static object BinaryExpression_10_factory(Parser yyp) { return new BinaryExpression_10(yyp); }
13485public static object VoidArgEvent_5_factory(Parser yyp) { return new VoidArgEvent_5(yyp); }
13486public static object VoidArgEvent_6_factory(Parser yyp) { return new VoidArgEvent_6(yyp); }
13487public static object VoidArgEvent_7_factory(Parser yyp) { return new VoidArgEvent_7(yyp); }
13488public static object VoidArgEvent_8_factory(Parser yyp) { return new VoidArgEvent_8(yyp); }
13489public static object BinaryExpression_17_factory(Parser yyp) { return new BinaryExpression_17(yyp); }
11210public static object StateEvent_1_factory(Parser yyp) { return new StateEvent_1(yyp); } 13490public static object StateEvent_1_factory(Parser yyp) { return new StateEvent_1(yyp); }
11211public static object VectorConstant_factory(Parser yyp) { return new VectorConstant(yyp); } 13491public static object VectorConstant_factory(Parser yyp) { return new VectorConstant(yyp); }
11212public static object EmptyStatement_1_factory(Parser yyp) { return new EmptyStatement_1(yyp); } 13492public static object VectorArgEvent_1_factory(Parser yyp) { return new VectorArgEvent_1(yyp); }
13493public static object IntDeclaration_factory(Parser yyp) { return new IntDeclaration(yyp); }
13494public static object VectorArgEvent_3_factory(Parser yyp) { return new VectorArgEvent_3(yyp); }
11213public static object TypecastExpression_4_factory(Parser yyp) { return new TypecastExpression_4(yyp); } 13495public static object TypecastExpression_4_factory(Parser yyp) { return new TypecastExpression_4(yyp); }
11214public static object TypecastExpression_6_factory(Parser yyp) { return new TypecastExpression_6(yyp); } 13496public static object TypecastExpression_6_factory(Parser yyp) { return new TypecastExpression_6(yyp); }
11215public static object TypecastExpression_7_factory(Parser yyp) { return new TypecastExpression_7(yyp); } 13497public static object TypecastExpression_7_factory(Parser yyp) { return new TypecastExpression_7(yyp); }
11216public static object FunctionCall_factory(Parser yyp) { return new FunctionCall(yyp); } 13498public static object FunctionCall_factory(Parser yyp) { return new FunctionCall(yyp); }
11217public static object Event_27_factory(Parser yyp) { return new Event_27(yyp); }
11218public static object Event_28_factory(Parser yyp) { return new Event_28(yyp); }
11219public static object Event_29_factory(Parser yyp) { return new Event_29(yyp); }
11220public static object ListConstant_1_factory(Parser yyp) { return new ListConstant_1(yyp); } 13499public static object ListConstant_1_factory(Parser yyp) { return new ListConstant_1(yyp); }
13500public static object BinaryExpression_18_factory(Parser yyp) { return new BinaryExpression_18(yyp); }
11221public static object Event_6_factory(Parser yyp) { return new Event_6(yyp); } 13501public static object Event_6_factory(Parser yyp) { return new Event_6(yyp); }
13502public static object KeyArgEvent_2_factory(Parser yyp) { return new KeyArgEvent_2(yyp); }
11222public static object Declaration_1_factory(Parser yyp) { return new Declaration_1(yyp); } 13503public static object Declaration_1_factory(Parser yyp) { return new Declaration_1(yyp); }
13504public static object EmptyStatement_1_factory(Parser yyp) { return new EmptyStatement_1(yyp); }
11223public static object SimpleAssignment_7_factory(Parser yyp) { return new SimpleAssignment_7(yyp); } 13505public static object SimpleAssignment_7_factory(Parser yyp) { return new SimpleAssignment_7(yyp); }
11224public static object ForLoop_factory(Parser yyp) { return new ForLoop(yyp); } 13506public static object ForLoop_factory(Parser yyp) { return new ForLoop(yyp); }
11225public static object ForLoop_2_factory(Parser yyp) { return new ForLoop_2(yyp); } 13507public static object ForLoop_2_factory(Parser yyp) { return new ForLoop_2(yyp); }
11226public static object Event_30_factory(Parser yyp) { return new Event_30(yyp); } 13508public static object KeyIntIntArgStateEvent_1_factory(Parser yyp) { return new KeyIntIntArgStateEvent_1(yyp); }
11227public static object Event_31_factory(Parser yyp) { return new Event_31(yyp); } 13509public static object KeyArgumentDeclarationList_1_factory(Parser yyp) { return new KeyArgumentDeclarationList_1(yyp); }
11228public static object Event_33_factory(Parser yyp) { return new Event_33(yyp); }
11229public static object GlobalFunctionDefinition_1_factory(Parser yyp) { return new GlobalFunctionDefinition_1(yyp); } 13510public static object GlobalFunctionDefinition_1_factory(Parser yyp) { return new GlobalFunctionDefinition_1(yyp); }
11230public static object JumpLabel_1_factory(Parser yyp) { return new JumpLabel_1(yyp); }
11231public static object IfStatement_factory(Parser yyp) { return new IfStatement(yyp); } 13511public static object IfStatement_factory(Parser yyp) { return new IfStatement(yyp); }
11232public static object ForLoopStatement_1_factory(Parser yyp) { return new ForLoopStatement_1(yyp); } 13512public static object ForLoopStatement_1_factory(Parser yyp) { return new ForLoopStatement_1(yyp); }
11233public static object ForLoopStatement_2_factory(Parser yyp) { return new ForLoopStatement_2(yyp); } 13513public static object ForLoopStatement_2_factory(Parser yyp) { return new ForLoopStatement_2(yyp); }
11234public static object ForLoopStatement_3_factory(Parser yyp) { return new ForLoopStatement_3(yyp); } 13514public static object ForLoopStatement_3_factory(Parser yyp) { return new ForLoopStatement_3(yyp); }
11235public static object ArgumentDeclarationList_4_factory(Parser yyp) { return new ArgumentDeclarationList_4(yyp); } 13515public static object IntRotRotArgumentDeclarationList_factory(Parser yyp) { return new IntRotRotArgumentDeclarationList(yyp); }
11236public static object ArgumentDeclarationList_5_factory(Parser yyp) { return new ArgumentDeclarationList_5(yyp); } 13516public static object IntArgEvent_1_factory(Parser yyp) { return new IntArgEvent_1(yyp); }
11237public static object EmptyStatement_factory(Parser yyp) { return new EmptyStatement(yyp); } 13517public static object IntArgEvent_2_factory(Parser yyp) { return new IntArgEvent_2(yyp); }
11238public static object WhileStatement_factory(Parser yyp) { return new WhileStatement(yyp); } 13518public static object WhileStatement_factory(Parser yyp) { return new WhileStatement(yyp); }
11239public static object ForLoop_1_factory(Parser yyp) { return new ForLoop_1(yyp); } 13519public static object ForLoop_1_factory(Parser yyp) { return new ForLoop_1(yyp); }
11240public static object Constant_2_factory(Parser yyp) { return new Constant_2(yyp); } 13520public static object Constant_2_factory(Parser yyp) { return new Constant_2(yyp); }
11241public static object StatementList_factory(Parser yyp) { return new StatementList(yyp); } 13521public static object VoidArgEvent_factory(Parser yyp) { return new VoidArgEvent(yyp); }
11242public static object StateBody_2_factory(Parser yyp) { return new StateBody_2(yyp); } 13522public static object RotDeclaration_factory(Parser yyp) { return new RotDeclaration(yyp); }
13523public static object WhileStatement_1_factory(Parser yyp) { return new WhileStatement_1(yyp); }
11243public static object WhileStatement_2_factory(Parser yyp) { return new WhileStatement_2(yyp); } 13524public static object WhileStatement_2_factory(Parser yyp) { return new WhileStatement_2(yyp); }
13525public static object VectorArgStateEvent_1_factory(Parser yyp) { return new VectorArgStateEvent_1(yyp); }
11244public static object IdentExpression_1_factory(Parser yyp) { return new IdentExpression_1(yyp); } 13526public static object IdentExpression_1_factory(Parser yyp) { return new IdentExpression_1(yyp); }
13527public static object VectorArgumentDeclarationList_factory(Parser yyp) { return new VectorArgumentDeclarationList(yyp); }
11245public static object States_factory(Parser yyp) { return new States(yyp); } 13528public static object States_factory(Parser yyp) { return new States(yyp); }
13529public static object VoidArgStateEvent_factory(Parser yyp) { return new VoidArgStateEvent(yyp); }
11246} 13530}
11247public class LSLSyntax 13531public class LSLSyntax
11248: Parser { 13532: Parser {
diff --git a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
index 5a58f73..e02d35e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
@@ -81,6 +81,24 @@ namespace OpenSim.Region.ScriptEngine.Shared
81 } 81 }
82 } 82 }
83 83
84 /// <summary>
85 /// Used to signal when the script is stopping in co-operation with the script engine
86 /// (instead of through Thread.Abort()).
87 /// </summary>
88 [Serializable]
89 public class ScriptCoopStopException : Exception
90 {
91 public ScriptCoopStopException()
92 {
93 }
94
95 protected ScriptCoopStopException(
96 SerializationInfo info,
97 StreamingContext context)
98 {
99 }
100 }
101
84 public class DetectParams 102 public class DetectParams
85 { 103 {
86 public const int AGENT = 1; 104 public const int AGENT = 1;
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/Properties/AssemblyInfo.cs
index 470e1a1..b7c4bab 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.8.3.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 01a5e34..fa6e6fc 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -51,6 +51,7 @@ using OpenSim.Region.ScriptEngine.Shared.Api.Runtime;
51using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 51using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
52using OpenSim.Region.ScriptEngine.Shared.CodeTools; 52using OpenSim.Region.ScriptEngine.Shared.CodeTools;
53using OpenSim.Region.ScriptEngine.Interfaces; 53using OpenSim.Region.ScriptEngine.Interfaces;
54using System.Diagnostics;
54 55
55namespace OpenSim.Region.ScriptEngine.Shared.Instance 56namespace OpenSim.Region.ScriptEngine.Shared.Instance
56{ 57{
@@ -58,6 +59,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
58 { 59 {
59 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 60 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
60 61
62 public bool StatePersistedHere { get { return m_AttachedAvatar == UUID.Zero; } }
63
61 /// <summary> 64 /// <summary>
62 /// The current work item if an event for this script is running or waiting to run, 65 /// The current work item if an event for this script is running or waiting to run,
63 /// </summary> 66 /// </summary>
@@ -71,14 +74,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
71 private bool m_TimerQueued; 74 private bool m_TimerQueued;
72 private DateTime m_EventStart; 75 private DateTime m_EventStart;
73 private bool m_InEvent; 76 private bool m_InEvent;
74 private string m_Assembly; 77 private string m_assemblyPath;
78 private string m_dataPath;
75 private string m_CurrentEvent = String.Empty; 79 private string m_CurrentEvent = String.Empty;
76 private bool m_InSelfDelete; 80 private bool m_InSelfDelete;
77 private int m_MaxScriptQueue; 81 private int m_MaxScriptQueue;
78 private bool m_SaveState = true; 82 private bool m_SaveState;
79 private int m_ControlEventsInQueue; 83 private int m_ControlEventsInQueue;
80 private int m_LastControlLevel; 84 private int m_LastControlLevel;
81 private bool m_CollisionInQueue; 85 private bool m_CollisionInQueue;
86 private bool m_StateChangeInProgress;
82 87
83 // The following is for setting a minimum delay between events 88 // The following is for setting a minimum delay between events
84 private double m_minEventDelay; 89 private double m_minEventDelay;
@@ -95,6 +100,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
95 100
96 public int DebugLevel { get; set; } 101 public int DebugLevel { get; set; }
97 102
103 public WaitHandle CoopWaitHandle { get; private set; }
104 public Stopwatch ExecutionTimer { get; private set; }
105
98 public Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> LineMap { get; set; } 106 public Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> LineMap { get; set; }
99 107
100 private Dictionary<string,IScriptApi> m_Apis = new Dictionary<string,IScriptApi>(); 108 private Dictionary<string,IScriptApi> m_Apis = new Dictionary<string,IScriptApi>();
@@ -121,7 +129,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
121 } 129 }
122 } 130 }
123 131
124 public bool Running { get; set; } 132 public bool Running
133 {
134 get { return m_running; }
135
136 set
137 {
138 m_running = value;
139 if (m_running)
140 StayStopped = false;
141 }
142 }
143 private bool m_running;
125 144
126 public bool Suspended 145 public bool Suspended
127 { 146 {
@@ -153,23 +172,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
153 172
154 public string State { get; set; } 173 public string State { get; set; }
155 174
175 public bool StayStopped { get; set; }
176
156 public IScriptEngine Engine { get; private set; } 177 public IScriptEngine Engine { get; private set; }
157 178
158 public UUID AppDomain { get; set; } 179 public UUID AppDomain { get; set; }
159 180
181 public SceneObjectPart Part { get; private set; }
182
160 public string PrimName { get; private set; } 183 public string PrimName { get; private set; }
161 184
162 public string ScriptName { get; private set; } 185 public string ScriptName { get; private set; }
163 186
164 public UUID ItemID { get; private set; } 187 public UUID ItemID { get; private set; }
165 188
166 public UUID ObjectID { get; private set; } 189 public UUID ObjectID { get { return Part.UUID; } }
167 190
168 public uint LocalID { get; private set; } 191 public uint LocalID { get { return Part.LocalId; } }
169 192
170 public UUID RootObjectID { get; private set; } 193 public UUID RootObjectID { get { return Part.ParentGroup.UUID; } }
171 194
172 public uint RootLocalID { get; private set; } 195 public uint RootLocalID { get { return Part.ParentGroup.LocalId; } }
173 196
174 public UUID AssetID { get; private set; } 197 public UUID AssetID { get; private set; }
175 198
@@ -192,83 +215,92 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
192 215
193 public DateTime TimeStarted { get; private set; } 216 public DateTime TimeStarted { get; private set; }
194 217
195 public long MeasurementPeriodTickStart { get; private set; } 218 public MetricsCollectorTime ExecutionTime { get; private set; }
196 219
197 public long MeasurementPeriodExecutionTime { get; private set; } 220 private static readonly int MeasurementWindow = 30 * 1000; // show the *recent* time used by the script, to find currently active scripts
198 221
199 public static readonly long MaxMeasurementPeriod = 30 * TimeSpan.TicksPerMinute; 222 private bool m_coopTermination;
223
224 private EventWaitHandle m_coopSleepHandle;
200 225
201 public void ClearQueue() 226 public void ClearQueue()
202 { 227 {
203 m_TimerQueued = false; 228 m_TimerQueued = false;
229 m_StateChangeInProgress = false;
204 EventQueue.Clear(); 230 EventQueue.Clear();
205 } 231 }
206 232
207 public ScriptInstance(IScriptEngine engine, SceneObjectPart part, 233 public ScriptInstance(
208 UUID itemID, UUID assetID, string assembly, 234 IScriptEngine engine, SceneObjectPart part, TaskInventoryItem item,
209 AppDomain dom, string primName, string scriptName, 235 int startParam, bool postOnRez,
210 int startParam, bool postOnRez, StateSource stateSource, 236 int maxScriptQueue)
211 int maxScriptQueue)
212 { 237 {
213 State = "default"; 238 State = "default";
214 EventQueue = new Queue(32); 239 EventQueue = new Queue(32);
240 ExecutionTimer = new Stopwatch();
215 241
216 Engine = engine; 242 Engine = engine;
217 LocalID = part.LocalId; 243 Part = part;
218 ObjectID = part.UUID; 244 ScriptTask = item;
219 RootLocalID = part.ParentGroup.LocalId; 245
220 RootObjectID = part.ParentGroup.UUID; 246 // This is currently only here to allow regression tests to get away without specifying any inventory
221 ItemID = itemID; 247 // item when they are testing script logic that doesn't require an item.
222 AssetID = assetID; 248 if (ScriptTask != null)
223 PrimName = primName; 249 {
224 ScriptName = scriptName; 250 ScriptName = ScriptTask.Name;
225 m_Assembly = assembly; 251 ItemID = ScriptTask.ItemID;
252 AssetID = ScriptTask.AssetID;
253 }
254
255 PrimName = part.ParentGroup.Name;
226 StartParam = startParam; 256 StartParam = startParam;
227 m_MaxScriptQueue = maxScriptQueue; 257 m_MaxScriptQueue = maxScriptQueue;
228 m_stateSource = stateSource;
229 m_postOnRez = postOnRez; 258 m_postOnRez = postOnRez;
230 m_AttachedAvatar = part.ParentGroup.AttachedAvatar; 259 m_AttachedAvatar = Part.ParentGroup.AttachedAvatar;
231 m_RegionID = part.ParentGroup.Scene.RegionInfo.RegionID; 260 m_RegionID = Part.ParentGroup.Scene.RegionInfo.RegionID;
232 261
233 if (part != null) 262 m_SaveState = StatePersistedHere;
234 { 263
235 lock (part.TaskInventory) 264 ExecutionTime = new MetricsCollectorTime(MeasurementWindow, 10);
236 { 265
237 if (part.TaskInventory.ContainsKey(ItemID)) 266// m_log.DebugFormat(
238 { 267// "[SCRIPT INSTANCE]: Instantiated script instance {0} (id {1}) in part {2} (id {3}) in object {4} attached avatar {5} in {6}",
239 ScriptTask = part.TaskInventory[ItemID]; 268// ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, m_AttachedAvatar, Engine.World.Name);
240 } 269 }
241 } 270
242 } 271 /// <summary>
272 /// Load the script from an assembly into an AppDomain.
273 /// </summary>
274 /// <param name='dom'></param>
275 /// <param name='assembly'></param>
276 /// <param name='dataPath'>
277 /// Path for all script associated data (state, etc.). In a multi-region set up
278 /// with all scripts loading into the same AppDomain this may not be the same place as the DLL itself.
279 /// </param>
280 /// <param name='stateSource'></param>
281 /// <returns>false if load failed, true if suceeded</returns>
282 public bool Load(
283 IScript script, EventWaitHandle coopSleepHandle, string assemblyPath,
284 string dataPath, StateSource stateSource, bool coopTermination)
285 {
286 m_Script = script;
287 m_coopSleepHandle = coopSleepHandle;
288 m_assemblyPath = assemblyPath;
289 m_dataPath = dataPath;
290 m_stateSource = stateSource;
291 m_coopTermination = coopTermination;
292
293 if (m_coopTermination)
294 CoopWaitHandle = coopSleepHandle;
295 else
296 CoopWaitHandle = null;
243 297
244 ApiManager am = new ApiManager(); 298 ApiManager am = new ApiManager();
245 299
246 foreach (string api in am.GetApis()) 300 foreach (string api in am.GetApis())
247 { 301 {
248 m_Apis[api] = am.CreateApi(api); 302 m_Apis[api] = am.CreateApi(api);
249 m_Apis[api].Initialize(engine, part, ScriptTask); 303 m_Apis[api].Initialize(Engine, Part, ScriptTask);
250 }
251
252 try
253 {
254 if (dom != System.AppDomain.CurrentDomain)
255 m_Script = (IScript)dom.CreateInstanceAndUnwrap(
256 Path.GetFileNameWithoutExtension(assembly),
257 "SecondLife.Script");
258 else
259 m_Script = (IScript)Assembly.Load(
260 Path.GetFileNameWithoutExtension(assembly)).CreateInstance(
261 "SecondLife.Script");
262
263 //ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
264 //RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
265// lease.Register(this);
266 }
267 catch (Exception e)
268 {
269 m_log.ErrorFormat(
270 "[SCRIPT INSTANCE]: Error loading assembly {0}. Exception {1}{2}",
271 assembly, e.Message, e.StackTrace);
272 } 304 }
273 305
274 try 306 try
@@ -278,26 +310,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
278 m_Script.InitApi(kv.Key, kv.Value); 310 m_Script.InitApi(kv.Key, kv.Value);
279 } 311 }
280 312
281// // m_log.Debug("[Script] Script instance created"); 313 // // m_log.Debug("[Script] Script instance created");
282 314
283 part.SetScriptEvents(ItemID, 315 Part.SetScriptEvents(ItemID, (int)m_Script.GetStateEventFlags(State));
284 (int)m_Script.GetStateEventFlags(State));
285 } 316 }
286 catch (Exception e) 317 catch (Exception e)
287 { 318 {
288 m_log.ErrorFormat( 319 m_log.ErrorFormat(
289 "[SCRIPT INSTANCE]: Error loading script instance from assembly {0}. Exception {1}{2}", 320 "[SCRIPT INSTANCE]: Not starting script {0} (id {1}) in part {2} (id {3}) in object {4} in {5}. Error initializing script instance. Exception {6}{7}",
290 assembly, e.Message, e.StackTrace); 321 ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name, e.Message, e.StackTrace);
291 322
292 return; 323 return false;
293 } 324 }
294 325
295 m_SaveState = true; 326 // For attachments, XEngine saves the state into a .state file when XEngine.SetXMLState() is called.
327 string savedState = Path.Combine(m_dataPath, ItemID.ToString() + ".state");
296 328
297 string savedState = Path.Combine(Path.GetDirectoryName(assembly),
298 ItemID.ToString() + ".state");
299 if (File.Exists(savedState)) 329 if (File.Exists(savedState))
300 { 330 {
331 // m_log.DebugFormat(
332 // "[SCRIPT INSTANCE]: Found state for script {0} for {1} ({2}) at {3} in {4}",
333 // ItemID, savedState, Part.Name, Part.ParentGroup.Name, Part.ParentGroup.Scene.Name);
334
301 string xml = String.Empty; 335 string xml = String.Empty;
302 336
303 try 337 try
@@ -317,13 +351,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
317 ScriptSerializer.Deserialize(xml, this); 351 ScriptSerializer.Deserialize(xml, this);
318 352
319 AsyncCommandManager.CreateFromData(Engine, 353 AsyncCommandManager.CreateFromData(Engine,
320 LocalID, ItemID, ObjectID, 354 LocalID, ItemID, ObjectID,
321 PluginData); 355 PluginData);
322 356
323// m_log.DebugFormat("[Script] Successfully retrieved state for script {0}.{1}", PrimName, m_ScriptName); 357 // m_log.DebugFormat("[Script] Successfully retrieved state for script {0}.{1}", PrimName, m_ScriptName);
324 358
325 part.SetScriptEvents(ItemID, 359 Part.SetScriptEvents(ItemID,
326 (int)m_Script.GetStateEventFlags(State)); 360 (int)m_Script.GetStateEventFlags(State));
327 361
328 if (!Running) 362 if (!Running)
329 m_startOnInit = false; 363 m_startOnInit = false;
@@ -338,29 +372,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
338 m_SaveState = false; 372 m_SaveState = false;
339 m_startedFromSavedState = true; 373 m_startedFromSavedState = true;
340 } 374 }
375
376 // If this script is in an attachment then we no longer need the state file.
377 if (!StatePersistedHere)
378 RemoveState();
341 } 379 }
342 else 380 // else
343 { 381 // {
344 m_log.WarnFormat( 382 // m_log.WarnFormat(
345 "[SCRIPT INSTANCE]: Unable to load script state file {0} for script {1} {2} in {3} {4} (assembly {5}). Memory limit exceeded", 383 // "[SCRIPT INSTANCE]: Not starting script {0} (id {1}) in part {2} (id {3}) in object {4} in {5}. Unable to load script state file {6}. Memory limit exceeded.",
346 savedState, ScriptName, ItemID, PrimName, ObjectID, assembly); 384 // ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name, savedState);
347 } 385 // }
348 } 386 }
349 catch (Exception e) 387 catch (Exception e)
350 { 388 {
351 m_log.ErrorFormat( 389 m_log.ErrorFormat(
352 "[SCRIPT INSTANCE]: Unable to load script state file {0} for script {1} {2} in {3} {4} (assembly {5}). XML is {6}. Exception {7}{8}", 390 "[SCRIPT INSTANCE]: Not starting script {0} (id {1}) in part {2} (id {3}) in object {4} in {5}. Unable to load script state file {6}. XML is {7}. Exception {8}{9}",
353 savedState, ScriptName, ItemID, PrimName, ObjectID, assembly, xml, e.Message, e.StackTrace); 391 ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name, savedState, xml, e.Message, e.StackTrace);
354 } 392 }
355 } 393 }
356// else 394 // else
357// { 395 // {
358// ScenePresence presence = Engine.World.GetScenePresence(part.OwnerID); 396 // m_log.DebugFormat(
397 // "[SCRIPT INSTANCE]: Did not find state for script {0} for {1} ({2}) at {3} in {4}",
398 // ItemID, savedState, Part.Name, Part.ParentGroup.Name, Part.ParentGroup.Scene.Name);
399 // }
359 400
360// if (presence != null && (!postOnRez)) 401 return true;
361// presence.ControllingClient.SendAgentAlertMessage("Compile successful", false);
362
363// }
364 } 402 }
365 403
366 public void Init() 404 public void Init()
@@ -418,33 +456,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
418 PostEvent(new EventParams("attach", 456 PostEvent(new EventParams("attach",
419 new object[] { new LSL_Types.LSLString(m_AttachedAvatar.ToString()) }, new DetectParams[0])); 457 new object[] { new LSL_Types.LSLString(m_AttachedAvatar.ToString()) }, new DetectParams[0]));
420 } 458 }
421
422 } 459 }
423 } 460 }
424 461
425 private void ReleaseControls() 462 private void ReleaseControls()
426 { 463 {
427 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 464 int permsMask;
428 465 UUID permsGranter;
429 if (part != null) 466 lock (Part.TaskInventory)
430 { 467 {
431 int permsMask; 468 if (!Part.TaskInventory.ContainsKey(ItemID))
432 UUID permsGranter; 469 return;
433 lock (part.TaskInventory)
434 {
435 if (!part.TaskInventory.ContainsKey(ItemID))
436 return;
437 470
438 permsGranter = part.TaskInventory[ItemID].PermsGranter; 471 permsGranter = Part.TaskInventory[ItemID].PermsGranter;
439 permsMask = part.TaskInventory[ItemID].PermsMask; 472 permsMask = Part.TaskInventory[ItemID].PermsMask;
440 } 473 }
441 474
442 if ((permsMask & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) != 0) 475 if ((permsMask & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) != 0)
443 { 476 {
444 ScenePresence presence = Engine.World.GetScenePresence(permsGranter); 477 ScenePresence presence = Engine.World.GetScenePresence(permsGranter);
445 if (presence != null) 478 if (presence != null)
446 presence.UnRegisterControlEventsToScript(LocalID, ItemID); 479 presence.UnRegisterControlEventsToScript(LocalID, ItemID);
447 }
448 } 480 }
449 } 481 }
450 482
@@ -456,15 +488,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
456 488
457 public void RemoveState() 489 public void RemoveState()
458 { 490 {
459 string savedState = Path.Combine(Path.GetDirectoryName(m_Assembly), 491 string savedState = Path.Combine(m_dataPath, ItemID.ToString() + ".state");
460 ItemID.ToString() + ".state"); 492
493// m_log.DebugFormat(
494// "[SCRIPT INSTANCE]: Deleting state {0} for script {1} (id {2}) in part {3} (id {4}) in object {5} in {6}.",
495// savedState, ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name);
461 496
462 try 497 try
463 { 498 {
464 File.Delete(savedState); 499 File.Delete(savedState);
465 } 500 }
466 catch(Exception) 501 catch (Exception e)
467 { 502 {
503 m_log.Warn(
504 string.Format(
505 "[SCRIPT INSTANCE]: Could not delete script state {0} for script {1} (id {2}) in part {3} (id {4}) in object {5} in {6}. Exception ",
506 savedState, ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name),
507 e);
468 } 508 }
469 } 509 }
470 510
@@ -487,8 +527,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
487 Running = true; 527 Running = true;
488 528
489 TimeStarted = DateTime.Now; 529 TimeStarted = DateTime.Now;
490 MeasurementPeriodTickStart = Util.EnvironmentTickCount(); 530
491 MeasurementPeriodExecutionTime = 0; 531 // Note: we don't reset ExecutionTime. The reason is that runaway scripts are stopped and restarted
532 // automatically, and we *do* want to show that they had high CPU in that case. If we had reset
533 // ExecutionTime here then runaway scripts, paradoxically, would never show up in the "Top Scripts" dialog.
492 534
493 if (EventQueue.Count > 0) 535 if (EventQueue.Count > 0)
494 { 536 {
@@ -500,16 +542,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
500 } 542 }
501 } 543 }
502 544
503 public bool Stop(int timeout) 545 public bool Stop(int timeout, bool clearEventQueue = false)
504 { 546 {
505// m_log.DebugFormat( 547 if (DebugLevel >= 1)
506// "[SCRIPT INSTANCE]: Stopping script {0} {1} in {2} {3} with timeout {4} {5} {6}", 548 m_log.DebugFormat(
507// ScriptName, ItemID, PrimName, ObjectID, timeout, m_InSelfDelete, DateTime.Now.Ticks); 549 "[SCRIPT INSTANCE]: Stopping script {0} {1} in {2} {3} with timeout {4} {5} {6}",
550 ScriptName, ItemID, PrimName, ObjectID, timeout, m_InSelfDelete, DateTime.Now.Ticks);
508 551
509 IScriptWorkItem workItem; 552 IScriptWorkItem workItem;
510 553
511 lock (EventQueue) 554 lock (EventQueue)
512 { 555 {
556 if (clearEventQueue)
557 ClearQueue();
558
513 if (!Running) 559 if (!Running)
514 return true; 560 return true;
515 561
@@ -533,9 +579,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
533 } 579 }
534 580
535 // Wait for the current event to complete. 581 // Wait for the current event to complete.
536 if (!m_InSelfDelete && workItem.Wait(new TimeSpan((long)timeout * 100000))) 582 if (!m_InSelfDelete)
537 { 583 {
538 return true; 584 if (!m_coopTermination)
585 {
586 // If we're not co-operative terminating then try and wait for the event to complete before stopping
587 if (workItem.Wait(timeout))
588 return true;
589 }
590 else
591 {
592 if (DebugLevel >= 1)
593 m_log.DebugFormat(
594 "[SCRIPT INSTANCE]: Co-operatively stopping script {0} {1} in {2} {3}",
595 ScriptName, ItemID, PrimName, ObjectID);
596
597 // This will terminate the event on next handle check by the script.
598 m_coopSleepHandle.Set();
599
600 // For now, we will wait forever since the event should always cleanly terminate once LSL loop
601 // checking is implemented. May want to allow a shorter timeout option later.
602 if (workItem.Wait(Timeout.Infinite))
603 {
604 if (DebugLevel >= 1)
605 m_log.DebugFormat(
606 "[SCRIPT INSTANCE]: Co-operatively stopped script {0} {1} in {2} {3}",
607 ScriptName, ItemID, PrimName, ObjectID);
608
609 return true;
610 }
611 }
539 } 612 }
540 613
541 lock (EventQueue) 614 lock (EventQueue)
@@ -548,6 +621,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
548 621
549 // If the event still hasn't stopped and we the stop isn't the result of script or object removal, then 622 // If the event still hasn't stopped and we the stop isn't the result of script or object removal, then
550 // forcibly abort the work item (this aborts the underlying thread). 623 // forcibly abort the work item (this aborts the underlying thread).
624 // Co-operative termination should never reach this point.
551 if (!m_InSelfDelete) 625 if (!m_InSelfDelete)
552 { 626 {
553 m_log.DebugFormat( 627 m_log.DebugFormat(
@@ -570,12 +644,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
570 if (state == State) 644 if (state == State)
571 return; 645 return;
572 646
573 PostEvent(new EventParams("state_exit", new Object[0], 647 EventParams lastTimerEv = null;
574 new DetectParams[0])); 648
575 PostEvent(new EventParams("state", new Object[] { state }, 649 lock (EventQueue)
576 new DetectParams[0])); 650 {
577 PostEvent(new EventParams("state_entry", new Object[0], 651 // Remove all queued events, remembering the last timer event
578 new DetectParams[0])); 652 while (EventQueue.Count > 0)
653 {
654 EventParams tempv = (EventParams)EventQueue.Dequeue();
655 if (tempv.EventName == "timer") lastTimerEv = tempv;
656 }
657
658 // Post events
659 PostEvent(new EventParams("state_exit", new Object[0],
660 new DetectParams[0]));
661 PostEvent(new EventParams("state", new Object[] { state },
662 new DetectParams[0]));
663 PostEvent(new EventParams("state_entry", new Object[0],
664 new DetectParams[0]));
665
666 // Requeue the timer event after the state changing events
667 if (lastTimerEv != null) EventQueue.Enqueue(lastTimerEv);
668
669 // This will stop events from being queued and processed
670 // until the new state is started
671 m_StateChangeInProgress = true;
672 }
579 673
580 throw new EventAbortException(); 674 throw new EventAbortException();
581 } 675 }
@@ -607,6 +701,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
607 701
608 lock (EventQueue) 702 lock (EventQueue)
609 { 703 {
704 // The only events that persist across state changes are timers
705 if (m_StateChangeInProgress && data.EventName != "timer")
706 return;
707
610 if (EventQueue.Count >= m_MaxScriptQueue) 708 if (EventQueue.Count >= m_MaxScriptQueue)
611 return; 709 return;
612 710
@@ -677,196 +775,222 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
677 if (Suspended) 775 if (Suspended)
678 return 0; 776 return 0;
679 777
680 EventParams data = null; 778 ExecutionTimer.Restart();
779
780 try
781 {
782 return EventProcessorInt();
783 }
784 finally
785 {
786 ExecutionTimer.Stop();
787 ExecutionTime.AddSample(ExecutionTimer);
788 Part.ParentGroup.Scene.AddScriptExecutionTime(ExecutionTimer.ElapsedTicks);
789 }
790 }
791 }
792
793 private object EventProcessorInt()
794 {
795 EventParams data = null;
681 796
682 lock (EventQueue) 797 lock (EventQueue)
798 {
799 data = (EventParams)EventQueue.Dequeue();
800 if (data == null) // Shouldn't happen
683 { 801 {
684 data = (EventParams)EventQueue.Dequeue(); 802 if (EventQueue.Count > 0 && Running && !ShuttingDown)
685 if (data == null) // Shouldn't happen
686 { 803 {
687 if (EventQueue.Count > 0 && Running && !ShuttingDown) 804 m_CurrentWorkItem = Engine.QueueEventHandler(this);
688 {
689 m_CurrentWorkItem = Engine.QueueEventHandler(this);
690 }
691 else
692 {
693 m_CurrentWorkItem = null;
694 }
695 return 0;
696 } 805 }
697 806 else
698 if (data.EventName == "timer")
699 m_TimerQueued = false;
700 if (data.EventName == "control")
701 { 807 {
702 if (m_ControlEventsInQueue > 0) 808 m_CurrentWorkItem = null;
703 m_ControlEventsInQueue--;
704 } 809 }
705 if (data.EventName == "collision") 810 return 0;
706 m_CollisionInQueue = false;
707 } 811 }
708 812
709 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 813 if (data.EventName == "timer")
814 m_TimerQueued = false;
815 if (data.EventName == "control")
816 {
817 if (m_ControlEventsInQueue > 0)
818 m_ControlEventsInQueue--;
819 }
820 if (data.EventName == "collision")
821 m_CollisionInQueue = false;
822 }
710 823
711 if (DebugLevel >= 2) 824 if (DebugLevel >= 2)
825 m_log.DebugFormat(
826 "[SCRIPT INSTANCE]: Processing event {0} for {1}/{2}({3})/{4}({5}) @ {6}/{7}",
827 data.EventName,
828 ScriptName,
829 Part.Name,
830 Part.LocalId,
831 Part.ParentGroup.Name,
832 Part.ParentGroup.UUID,
833 Part.AbsolutePosition,
834 Part.ParentGroup.Scene.Name);
835
836 m_DetectParams = data.DetectParams;
837
838 if (data.EventName == "state") // Hardcoded state change
839 {
840 State = data.Params[0].ToString();
841
842 if (DebugLevel >= 1)
712 m_log.DebugFormat( 843 m_log.DebugFormat(
713 "[SCRIPT INSTANCE]: Processing event {0} for {1}/{2}({3})/{4}({5}) @ {6}/{7}", 844 "[SCRIPT INSTANCE]: Changing state to {0} for {1}/{2}({3})/{4}({5}) @ {6}/{7}",
714 data.EventName, 845 State,
715 ScriptName, 846 ScriptName,
716 part.Name, 847 Part.Name,
717 part.LocalId, 848 Part.LocalId,
718 part.ParentGroup.Name, 849 Part.ParentGroup.Name,
719 part.ParentGroup.UUID, 850 Part.ParentGroup.UUID,
720 part.AbsolutePosition, 851 Part.AbsolutePosition,
721 part.ParentGroup.Scene.Name); 852 Part.ParentGroup.Scene.Name);
722 853
723 m_DetectParams = data.DetectParams; 854 AsyncCommandManager.StateChange(Engine,
724 855 LocalID, ItemID);
725 if (data.EventName == "state") // Hardcoded state change 856 // we are effectively in the new state now, so we can resume queueing
857 // and processing other non-timer events
858 m_StateChangeInProgress = false;
859
860 Part.SetScriptEvents(ItemID, (int)m_Script.GetStateEventFlags(State));
861 }
862 else
863 {
864 if (Engine.World.PipeEventsForScript(LocalID) ||
865 data.EventName == "control") // Don't freeze avies!
726 { 866 {
727 State = data.Params[0].ToString(); 867 // m_log.DebugFormat("[Script] Delivered event {2} in state {3} to {0}.{1}",
868 // PrimName, ScriptName, data.EventName, State);
728 869
729 if (DebugLevel >= 1) 870 try
730 m_log.DebugFormat(
731 "[SCRIPT INSTANCE]: Changing state to {0} for {1}/{2}({3})/{4}({5}) @ {6}/{7}",
732 State,
733 ScriptName,
734 part.Name,
735 part.LocalId,
736 part.ParentGroup.Name,
737 part.ParentGroup.UUID,
738 part.AbsolutePosition,
739 part.ParentGroup.Scene.Name);
740
741 AsyncCommandManager.RemoveScript(Engine,
742 LocalID, ItemID);
743
744 if (part != null)
745 { 871 {
746 part.SetScriptEvents(ItemID, 872 m_CurrentEvent = data.EventName;
747 (int)m_Script.GetStateEventFlags(State)); 873 m_EventStart = DateTime.Now;
748 } 874 m_InEvent = true;
749 }
750 else
751 {
752 if (Engine.World.PipeEventsForScript(LocalID) ||
753 data.EventName == "control") // Don't freeze avies!
754 {
755 // m_log.DebugFormat("[Script] Delivered event {2} in state {3} to {0}.{1}",
756 // PrimName, ScriptName, data.EventName, State);
757 875
758 try 876 try
759 { 877 {
760 m_CurrentEvent = data.EventName;
761 m_EventStart = DateTime.Now;
762 m_InEvent = true;
763
764 int start = Util.EnvironmentTickCount();
765
766 // Reset the measurement period when we reach the end of the current one.
767 if (start - MeasurementPeriodTickStart > MaxMeasurementPeriod)
768 MeasurementPeriodTickStart = start;
769
770 m_Script.ExecuteEvent(State, data.EventName, data.Params); 878 m_Script.ExecuteEvent(State, data.EventName, data.Params);
771 879 }
772 MeasurementPeriodExecutionTime += Util.EnvironmentTickCount() - start; 880 finally
773 881 {
774 m_InEvent = false; 882 m_InEvent = false;
775 m_CurrentEvent = String.Empty; 883 m_CurrentEvent = String.Empty;
884 }
776 885
777 if (m_SaveState) 886 if (m_SaveState)
778 { 887 {
779 // This will be the very first event we deliver 888 // This will be the very first event we deliver
780 // (state_entry) in default state 889 // (state_entry) in default state
781 // 890 //
782 SaveState(m_Assembly); 891 SaveState();
783 892
784 m_SaveState = false; 893 m_SaveState = false;
785 }
786 } 894 }
787 catch (Exception e) 895 }
896 catch (Exception e)
897 {
898 // m_log.DebugFormat(
899 // "[SCRIPT] Exception in script {0} {1}: {2}{3}",
900 // ScriptName, ItemID, e.Message, e.StackTrace);
901
902 if ((!(e is TargetInvocationException)
903 || (!(e.InnerException is SelfDeleteException)
904 && !(e.InnerException is ScriptDeleteException)
905 && !(e.InnerException is ScriptCoopStopException)))
906 && !(e is ThreadAbortException))
788 { 907 {
789// m_log.DebugFormat( 908 try
790// "[SCRIPT] Exception in script {0} {1}: {2}{3}",
791// ScriptName, ItemID, e.Message, e.StackTrace);
792
793 m_InEvent = false;
794 m_CurrentEvent = String.Empty;
795
796 if ((!(e is TargetInvocationException) || (!(e.InnerException is SelfDeleteException) && !(e.InnerException is ScriptDeleteException))) && !(e is ThreadAbortException))
797 { 909 {
798 try 910 // DISPLAY ERROR INWORLD
799 { 911 string text = FormatException(e);
800 // DISPLAY ERROR INWORLD 912
801 string text = FormatException(e); 913 if (text.Length > 1000)
802 914 text = text.Substring(0, 1000);
803 if (text.Length > 1000) 915 Engine.World.SimChat(Utils.StringToBytes(text),
804 text = text.Substring(0, 1000); 916 ChatTypeEnum.DebugChannel, 2147483647,
805 Engine.World.SimChat(Utils.StringToBytes(text), 917 Part.AbsolutePosition,
806 ChatTypeEnum.DebugChannel, 2147483647, 918 Part.Name, Part.UUID, false);
807 part.AbsolutePosition, 919
808 part.Name, part.UUID, false); 920
809 921 m_log.Debug(string.Format(
810 922 "[SCRIPT INSTANCE]: Runtime error in script {0} (event {1}), part {2} {3} at {4} in {5} ",
811 m_log.DebugFormat( 923 ScriptName,
812 "[SCRIPT INSTANCE]: Runtime error in script {0}, part {1} {2} at {3} in {4}, displayed error {5}, actual exception {6}", 924 data.EventName,
813 ScriptName, 925 PrimName,
814 PrimName, 926 Part.UUID,
815 part.UUID, 927 Part.AbsolutePosition,
816 part.AbsolutePosition, 928 Part.ParentGroup.Scene.Name),
817 part.ParentGroup.Scene.Name, 929 e);
818 text.Replace("\n", "\\n"),
819 e.InnerException);
820 }
821 catch (Exception)
822 {
823 }
824 // catch (Exception e2) // LEGIT: User Scripting
825 // {
826 // m_log.Error("[SCRIPT]: "+
827 // "Error displaying error in-world: " +
828 // e2.ToString());
829 // m_log.Error("[SCRIPT]: " +
830 // "Errormessage: Error compiling script:\r\n" +
831 // e.ToString());
832 // }
833 } 930 }
834 else if ((e is TargetInvocationException) && (e.InnerException is SelfDeleteException)) 931 catch (Exception)
835 { 932 {
836 m_InSelfDelete = true;
837 if (part != null)
838 Engine.World.DeleteSceneObject(part.ParentGroup, false);
839 }
840 else if ((e is TargetInvocationException) && (e.InnerException is ScriptDeleteException))
841 {
842 m_InSelfDelete = true;
843 if (part != null)
844 part.Inventory.RemoveInventoryItem(ItemID);
845 } 933 }
934 // catch (Exception e2) // LEGIT: User Scripting
935 // {
936 // m_log.Error("[SCRIPT]: "+
937 // "Error displaying error in-world: " +
938 // e2.ToString());
939 // m_log.Error("[SCRIPT]: " +
940 // "Errormessage: Error compiling script:\r\n" +
941 // e.ToString());
942 // }
943 }
944 else if ((e is TargetInvocationException) && (e.InnerException is SelfDeleteException))
945 {
946 m_InSelfDelete = true;
947 Engine.World.DeleteSceneObject(Part.ParentGroup, false);
948 }
949 else if ((e is TargetInvocationException) && (e.InnerException is ScriptDeleteException))
950 {
951 m_InSelfDelete = true;
952 Part.Inventory.RemoveInventoryItem(ItemID);
953 }
954 else if ((e is TargetInvocationException) && (e.InnerException is ScriptCoopStopException))
955 {
956 if (DebugLevel >= 1)
957 m_log.DebugFormat(
958 "[SCRIPT INSTANCE]: Script {0}.{1} in event {2}, state {3} stopped co-operatively.",
959 PrimName, ScriptName, data.EventName, State);
846 } 960 }
847 } 961 }
848 } 962 }
963 }
849 964
850 // If there are more events and we are currently running and not shutting down, then ask the 965 // If there are more events and we are currently running and not shutting down, then ask the
851 // script engine to run the next event. 966 // script engine to run the next event.
852 lock (EventQueue) 967 lock (EventQueue)
968 {
969 // Increase processed events counter and prevent wrap;
970 if (++EventsProcessed == 1000000)
971 EventsProcessed = 100000;
972
973 if ((EventsProcessed % 100000) == 0 && DebugLevel > 0)
853 { 974 {
854 EventsProcessed++; 975 m_log.DebugFormat("[SCRIPT INSTANCE]: Script \"{0}\" (Object \"{1}\" {2} @ {3}.{4}, Item ID {5}, Asset {6}) in event {7}: processed {8:n0} script events",
976 ScriptTask.Name,
977 Part.ParentGroup.Name, Part.ParentGroup.UUID, Part.ParentGroup.AbsolutePosition, Part.ParentGroup.Scene.Name,
978 ScriptTask.ItemID, ScriptTask.AssetID, data.EventName, EventsProcessed);
979 }
855 980
856 if (EventQueue.Count > 0 && Running && !ShuttingDown) 981 if (EventQueue.Count > 0 && Running && !ShuttingDown)
857 { 982 {
858 m_CurrentWorkItem = Engine.QueueEventHandler(this); 983 m_CurrentWorkItem = Engine.QueueEventHandler(this);
859 }
860 else
861 {
862 m_CurrentWorkItem = null;
863 }
864 } 984 }
985 else
986 {
987 m_CurrentWorkItem = null;
988 }
989 }
865 990
866 m_DetectParams = null; 991 m_DetectParams = null;
867 992
868 return 0; 993 return 0;
869 }
870 } 994 }
871 995
872 public int EventTime() 996 public int EventTime()
@@ -888,19 +1012,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
888 ReleaseControls(); 1012 ReleaseControls();
889 1013
890 Stop(timeout); 1014 Stop(timeout);
891 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 1015 Part.Inventory.GetInventoryItem(ItemID).PermsMask = 0;
892 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0; 1016 Part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
893 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
894 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID); 1017 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
895 EventQueue.Clear(); 1018 EventQueue.Clear();
896 m_Script.ResetVars(); 1019 m_Script.ResetVars();
1020 StartParam = 0;
897 State = "default"; 1021 State = "default";
898 1022
899 part.SetScriptEvents(ItemID, 1023 Part.SetScriptEvents(ItemID,
900 (int)m_Script.GetStateEventFlags(State)); 1024 (int)m_Script.GetStateEventFlags(State));
901 if (running) 1025 if (running)
902 Start(); 1026 Start();
903 m_SaveState = true; 1027
1028 m_SaveState = StatePersistedHere;
1029
904 PostEvent(new EventParams("state_entry", 1030 PostEvent(new EventParams("state_entry",
905 new Object[0], new DetectParams[0])); 1031 new Object[0], new DetectParams[0]));
906 } 1032 }
@@ -913,21 +1039,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
913 ReleaseControls(); 1039 ReleaseControls();
914 1040
915 m_Script.ResetVars(); 1041 m_Script.ResetVars();
916 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 1042 Part.Inventory.GetInventoryItem(ItemID).PermsMask = 0;
917 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0; 1043 Part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
918 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
919 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID); 1044 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
920 1045
921 EventQueue.Clear(); 1046 EventQueue.Clear();
922 m_Script.ResetVars(); 1047 m_Script.ResetVars();
1048 string oldState = State;
1049 StartParam = 0;
923 State = "default"; 1050 State = "default";
924 1051
925 part.SetScriptEvents(ItemID, 1052 Part.SetScriptEvents(ItemID,
926 (int)m_Script.GetStateEventFlags(State)); 1053 (int)m_Script.GetStateEventFlags(State));
927 1054
928 if (m_CurrentEvent != "state_entry") 1055 if (m_CurrentEvent != "state_entry" || oldState != "default")
929 { 1056 {
930 m_SaveState = true; 1057 m_SaveState = StatePersistedHere;
931 PostEvent(new EventParams("state_entry", 1058 PostEvent(new EventParams("state_entry",
932 new Object[0], new DetectParams[0])); 1059 new Object[0], new DetectParams[0]));
933 throw new EventAbortException(); 1060 throw new EventAbortException();
@@ -944,6 +1071,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
944 1071
945 public void SetVars(Dictionary<string, object> vars) 1072 public void SetVars(Dictionary<string, object> vars)
946 { 1073 {
1074// foreach (KeyValuePair<string, object> kvp in vars)
1075// m_log.DebugFormat("[SCRIPT INSTANCE]: Setting var {0}={1}", kvp.Key, kvp.Value);
1076
947 m_Script.SetVars(vars); 1077 m_Script.SetVars(vars);
948 } 1078 }
949 1079
@@ -967,42 +1097,63 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
967 return m_DetectParams[idx].Key; 1097 return m_DetectParams[idx].Key;
968 } 1098 }
969 1099
970 public void SaveState(string assembly) 1100 public void SaveState()
971 { 1101 {
972 // If we're currently in an event, just tell it to save upon return 1102 if (!Running && !StayStopped)
973 //
974 if (m_InEvent)
975 {
976 m_SaveState = true;
977 return; 1103 return;
978 }
979 1104
1105 // We cannot call this inside the EventQueue lock since it will currently take AsyncCommandManager.staticLock.
1106 // This may already be held by AsyncCommandManager.DoOneCmdHandlerPass() which in turn can take EventQueue
1107 // lock via ScriptInstance.PostEvent().
980 PluginData = AsyncCommandManager.GetSerializationData(Engine, ItemID); 1108 PluginData = AsyncCommandManager.GetSerializationData(Engine, ItemID);
981 1109
982 string xml = ScriptSerializer.Serialize(this); 1110 // We need to lock here to avoid any race with a thread that is removing this script.
983 1111 lock (EventQueue)
984 // Compare hash of the state we just just created with the state last written to disk
985 // If the state is different, update the disk file.
986 UUID hash = UUID.Parse(Utils.MD5String(xml));
987
988 if (hash != m_CurrentStateHash)
989 { 1112 {
990 try 1113 // Check again to avoid a race with a thread in Stop()
1114 if (!Running && !StayStopped)
1115 return;
1116
1117 // If we're currently in an event, just tell it to save upon return
1118 //
1119 if (m_InEvent)
991 { 1120 {
992 FileStream fs = File.Create(Path.Combine(Path.GetDirectoryName(assembly), ItemID.ToString() + ".state")); 1121 m_SaveState = true;
993 Byte[] buf = Util.UTF8NoBomEncoding.GetBytes(xml); 1122 return;
994 fs.Write(buf, 0, buf.Length);
995 fs.Close();
996 } 1123 }
997 catch(Exception) 1124
1125 // m_log.DebugFormat(
1126 // "[SCRIPT INSTANCE]: Saving state for script {0} (id {1}) in part {2} (id {3}) in object {4} in {5}",
1127 // ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name);
1128
1129 string xml = ScriptSerializer.Serialize(this);
1130
1131 // Compare hash of the state we just just created with the state last written to disk
1132 // If the state is different, update the disk file.
1133 UUID hash = UUID.Parse(Utils.MD5String(xml));
1134
1135 if (hash != m_CurrentStateHash)
998 { 1136 {
999 // m_log.Error("Unable to save xml\n"+e.ToString()); 1137 try
1138 {
1139 using (FileStream fs = File.Create(Path.Combine(m_dataPath, ItemID.ToString() + ".state")))
1140 {
1141 Byte[] buf = Util.UTF8NoBomEncoding.GetBytes(xml);
1142 fs.Write(buf, 0, buf.Length);
1143 }
1144 }
1145 catch(Exception)
1146 {
1147 // m_log.Error("Unable to save xml\n"+e.ToString());
1148 }
1149 //if (!File.Exists(Path.Combine(Path.GetDirectoryName(assembly), ItemID.ToString() + ".state")))
1150 //{
1151 // throw new Exception("Completed persistence save, but no file was created");
1152 //}
1153 m_CurrentStateHash = hash;
1000 } 1154 }
1001 //if (!File.Exists(Path.Combine(Path.GetDirectoryName(assembly), ItemID.ToString() + ".state"))) 1155
1002 //{ 1156 StayStopped = false;
1003 // throw new Exception("Completed persistence save, but no file was created");
1004 //}
1005 m_CurrentStateHash = hash;
1006 } 1157 }
1007 } 1158 }
1008 1159
@@ -1072,7 +1223,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
1072 1223
1073 public string GetAssemblyName() 1224 public string GetAssemblyName()
1074 { 1225 {
1075 return m_Assembly; 1226 return m_assemblyPath;
1076 } 1227 }
1077 1228
1078 public string GetXMLState() 1229 public string GetXMLState()
@@ -1109,4 +1260,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
1109 Suspended = false; 1260 Suspended = false;
1110 } 1261 }
1111 } 1262 }
1263
1264 /// <summary>
1265 /// Xengine event wait handle.
1266 /// </summary>
1267 /// <remarks>
1268 /// This class exists becase XEngineScriptBase gets a reference to this wait handle. We need to make sure that
1269 /// when scripts are running in different AppDomains the lease does not expire.
1270 /// FIXME: Like LSL_Api, etc., this effectively leaks memory since the GC will never collect it. To avoid this,
1271 /// proper remoting sponsorship needs to be implemented across the board.
1272 /// </remarks>
1273 public class XEngineEventWaitHandle : EventWaitHandle
1274 {
1275 public XEngineEventWaitHandle(bool initialState, EventResetMode mode) : base(initialState, mode) {}
1276
1277 public override Object InitializeLifetimeService()
1278 {
1279 return null;
1280 }
1281 }
1112} 1282}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
new file mode 100644
index 0000000..5b9794b
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
@@ -0,0 +1,513 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Threading;
31using Nini.Config;
32using NUnit.Framework;
33using OpenMetaverse;
34using OpenSim.Framework;
35using OpenSim.Region.CoreModules.Scripting.WorldComm;
36using OpenSim.Region.Framework.Scenes;
37using OpenSim.Region.Framework.Interfaces;
38using OpenSim.Region.ScriptEngine.XEngine;
39using OpenSim.Tests.Common;
40
41namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
42{
43 /// <summary>
44 /// Test that co-operative script thread termination is working correctly.
45 /// </summary>
46 [TestFixture]
47 public class CoopTerminationTests : OpenSimTestCase
48 {
49 private TestScene m_scene;
50 private OpenSim.Region.ScriptEngine.XEngine.XEngine m_xEngine;
51
52 private AutoResetEvent m_chatEvent;
53 private AutoResetEvent m_stoppedEvent;
54
55 private OSChatMessage m_osChatMessageReceived;
56
57 /// <summary>
58 /// Number of chat messages received so far. Reset before each test.
59 /// </summary>
60 private int m_chatMessagesReceived;
61
62 /// <summary>
63 /// Number of chat messages expected. m_chatEvent is not fired until this number is reached or exceeded.
64 /// </summary>
65 private int m_chatMessagesThreshold;
66
67 [SetUp]
68 public void Init()
69 {
70 m_osChatMessageReceived = null;
71 m_chatMessagesReceived = 0;
72 m_chatMessagesThreshold = 0;
73 m_chatEvent = new AutoResetEvent(false);
74 m_stoppedEvent = new AutoResetEvent(false);
75
76 //AppDomain.CurrentDomain.SetData("APPBASE", Environment.CurrentDirectory + "/bin");
77// Console.WriteLine(AppDomain.CurrentDomain.BaseDirectory);
78 m_xEngine = new OpenSim.Region.ScriptEngine.XEngine.XEngine();
79 m_xEngine.DebugLevel = 1;
80
81 IniConfigSource configSource = new IniConfigSource();
82
83 IConfig startupConfig = configSource.AddConfig("Startup");
84 startupConfig.Set("DefaultScriptEngine", "XEngine");
85
86 IConfig xEngineConfig = configSource.AddConfig("XEngine");
87 xEngineConfig.Set("Enabled", "true");
88 xEngineConfig.Set("StartDelay", "0");
89
90 // These tests will not run with AppDomainLoading = true, at least on mono. For unknown reasons, the call
91 // to AssemblyResolver.OnAssemblyResolve fails.
92 xEngineConfig.Set("AppDomainLoading", "false");
93
94 xEngineConfig.Set("ScriptStopStrategy", "co-op");
95
96 // Make sure loops aren't actually being terminated by a script delay wait.
97 xEngineConfig.Set("ScriptDelayFactor", 0);
98
99 // This is really just set for debugging the test.
100 xEngineConfig.Set("WriteScriptSourceToDebugFile", true);
101
102 // Set to false if we need to debug test so the old scripts don't get wiped before each separate test
103// xEngineConfig.Set("DeleteScriptsOnStartup", false);
104
105 // This is not currently used at all for co-op termination. Bumping up to demonstrate that co-op termination
106 // has an effect - without it tests will fail due to a 120 second wait for the event to finish.
107 xEngineConfig.Set("WaitForEventCompletionOnScriptStop", 120000);
108
109 m_scene = new SceneHelpers().SetupScene("My Test", TestHelpers.ParseTail(0x9999), 1000, 1000, configSource);
110 SceneHelpers.SetupSceneModules(m_scene, configSource, m_xEngine);
111 m_scene.StartScripts();
112 }
113
114 /// <summary>
115 /// Test co-operative termination on derez of an object containing a script with a long-running event.
116 /// </summary>
117 /// <remarks>
118 /// TODO: Actually compiling the script is incidental to this test. Really want a way to compile test scripts
119 /// within the build itself.
120 /// </remarks>
121 [Test]
122 public void TestStopOnLongSleep()
123 {
124 TestHelpers.InMethod();
125// TestHelpers.EnableLogging();
126
127 string script =
128@"default
129{
130 state_entry()
131 {
132 llSay(0, ""Thin Lizzy"");
133 llSleep(60);
134 }
135}";
136
137 TestStop(script);
138 }
139
140 [Test]
141 public void TestNoStopOnSingleStatementForLoop()
142 {
143 TestHelpers.InMethod();
144// TestHelpers.EnableLogging();
145
146 string script =
147@"default
148{
149 state_entry()
150 {
151 integer i = 0;
152 for (i = 0; i <= 1; i++) llSay(0, ""Iter "" + (string)i);
153 }
154}";
155
156 TestSingleStatementNoStop(script);
157 }
158
159 [Test]
160 public void TestStopOnLongSingleStatementForLoop()
161 {
162 TestHelpers.InMethod();
163// TestHelpers.EnableLogging();
164
165 string script =
166@"default
167{
168 state_entry()
169 {
170 integer i = 0;
171 llSay(0, ""Thin Lizzy"");
172
173 for (i = 0; i < 2147483647; i++) llSay(0, ""Iter "" + (string)i);
174 }
175}";
176
177 TestStop(script);
178 }
179
180 [Test]
181 public void TestStopOnLongCompoundStatementForLoop()
182 {
183 TestHelpers.InMethod();
184// TestHelpers.EnableLogging();
185
186 string script =
187@"default
188{
189 state_entry()
190 {
191 integer i = 0;
192 llSay(0, ""Thin Lizzy"");
193
194 for (i = 0; i < 2147483647; i++)
195 {
196 llSay(0, ""Iter "" + (string)i);
197 }
198 }
199}";
200
201 TestStop(script);
202 }
203
204 [Test]
205 public void TestNoStopOnSingleStatementWhileLoop()
206 {
207 TestHelpers.InMethod();
208// TestHelpers.EnableLogging();
209
210 string script =
211@"default
212{
213 state_entry()
214 {
215 integer i = 0;
216 while (i < 2) llSay(0, ""Iter "" + (string)i++);
217 }
218}";
219
220 TestSingleStatementNoStop(script);
221 }
222
223 [Test]
224 public void TestStopOnLongSingleStatementWhileLoop()
225 {
226 TestHelpers.InMethod();
227// TestHelpers.EnableLogging();
228
229 string script =
230@"default
231{
232 state_entry()
233 {
234 integer i = 0;
235 llSay(0, ""Thin Lizzy"");
236
237 while (1 == 1)
238 llSay(0, ""Iter "" + (string)i++);
239 }
240}";
241
242 TestStop(script);
243 }
244
245 [Test]
246 public void TestStopOnLongCompoundStatementWhileLoop()
247 {
248 TestHelpers.InMethod();
249// TestHelpers.EnableLogging();
250
251 string script =
252@"default
253{
254 state_entry()
255 {
256 integer i = 0;
257 llSay(0, ""Thin Lizzy"");
258
259 while (1 == 1)
260 {
261 llSay(0, ""Iter "" + (string)i++);
262 }
263 }
264}";
265
266 TestStop(script);
267 }
268
269 [Test]
270 public void TestNoStopOnSingleStatementDoWhileLoop()
271 {
272 TestHelpers.InMethod();
273// TestHelpers.EnableLogging();
274
275 string script =
276@"default
277{
278 state_entry()
279 {
280 integer i = 0;
281
282 do llSay(0, ""Iter "" + (string)i++);
283 while (i < 2);
284 }
285}";
286
287 TestSingleStatementNoStop(script);
288 }
289
290 [Test]
291 public void TestStopOnLongSingleStatementDoWhileLoop()
292 {
293 TestHelpers.InMethod();
294// TestHelpers.EnableLogging();
295
296 string script =
297@"default
298{
299 state_entry()
300 {
301 integer i = 0;
302 llSay(0, ""Thin Lizzy"");
303
304 do llSay(0, ""Iter "" + (string)i++);
305 while (1 == 1);
306 }
307}";
308
309 TestStop(script);
310 }
311
312 [Test]
313 public void TestStopOnLongCompoundStatementDoWhileLoop()
314 {
315 TestHelpers.InMethod();
316// TestHelpers.EnableLogging();
317
318 string script =
319@"default
320{
321 state_entry()
322 {
323 integer i = 0;
324 llSay(0, ""Thin Lizzy"");
325
326 do
327 {
328 llSay(0, ""Iter "" + (string)i++);
329 } while (1 == 1);
330 }
331}";
332
333 TestStop(script);
334 }
335
336 [Test]
337 public void TestStopOnInfiniteJumpLoop()
338 {
339 TestHelpers.InMethod();
340 TestHelpers.EnableLogging();
341
342 string script =
343@"default
344{
345 state_entry()
346 {
347 integer i = 0;
348 llSay(0, ""Thin Lizzy"");
349
350 @p1;
351 llSay(0, ""Iter "" + (string)i++);
352 jump p1;
353 }
354}";
355
356 TestStop(script);
357 }
358
359 // Disabling for now as these are not particularly useful tests (since they fail due to stack overflow before
360 // termination can even be tried.
361// [Test]
362 public void TestStopOnInfiniteUserFunctionCallLoop()
363 {
364 TestHelpers.InMethod();
365// TestHelpers.EnableLogging();
366
367 string script =
368@"
369integer i = 0;
370
371ufn1()
372{
373 llSay(0, ""Iter ufn1() "" + (string)i++);
374 ufn1();
375}
376
377default
378{
379 state_entry()
380 {
381 integer i = 0;
382 llSay(0, ""Thin Lizzy"");
383
384 ufn1();
385 }
386}";
387
388 TestStop(script);
389 }
390
391 // Disabling for now as these are not particularly useful tests (since they fail due to stack overflow before
392 // termination can even be tried.
393// [Test]
394 public void TestStopOnInfiniteManualEventCallLoop()
395 {
396 TestHelpers.InMethod();
397// TestHelpers.EnableLogging();
398
399 string script =
400@"default
401{
402 state_entry()
403 {
404 integer i = 0;
405 llSay(0, ""Thin Lizzy"");
406
407 llSay(0, ""Iter"" + (string)i++);
408 default_event_state_entry();
409 }
410}";
411
412 TestStop(script);
413 }
414
415 private SceneObjectPart CreateScript(string script, string itemName, UUID userId)
416 {
417// UUID objectId = TestHelpers.ParseTail(0x100);
418// UUID itemId = TestHelpers.ParseTail(0x3);
419
420 SceneObjectGroup so
421 = SceneHelpers.CreateSceneObject(1, userId, string.Format("Object for {0}", itemName), 0x100);
422 m_scene.AddNewSceneObject(so, true);
423
424 InventoryItemBase itemTemplate = new InventoryItemBase();
425// itemTemplate.ID = itemId;
426 itemTemplate.Name = itemName;
427 itemTemplate.Folder = so.UUID;
428 itemTemplate.InvType = (int)InventoryType.LSL;
429
430 m_scene.EventManager.OnChatFromWorld += OnChatFromWorld;
431
432 return m_scene.RezNewScript(userId, itemTemplate, script);
433 }
434
435 private void TestSingleStatementNoStop(string script)
436 {
437 // In these tests we expect to see at least 2 chat messages to confirm that the loop is working properly.
438 m_chatMessagesThreshold = 2;
439
440 UUID userId = TestHelpers.ParseTail(0x1);
441// UUID objectId = TestHelpers.ParseTail(0x100);
442// UUID itemId = TestHelpers.ParseTail(0x3);
443 string itemName = "TestNoStop";
444
445 SceneObjectPart partWhereRezzed = CreateScript(script, itemName, userId);
446
447 // Wait for the script to start the event before we try stopping it.
448 m_chatEvent.WaitOne(60000);
449
450 if (m_osChatMessageReceived == null)
451 Assert.Fail("Script did not start");
452 else
453 Assert.That(m_chatMessagesReceived, Is.EqualTo(2));
454
455 bool running;
456 TaskInventoryItem scriptItem = partWhereRezzed.Inventory.GetInventoryItem(itemName);
457 Assert.That(
458 SceneObjectPartInventory.TryGetScriptInstanceRunning(m_scene, scriptItem, out running), Is.True);
459 Assert.That(running, Is.True);
460 }
461
462 private void TestStop(string script)
463 {
464 // In these tests we're only interested in the first message to confirm that the script has started.
465 m_chatMessagesThreshold = 1;
466
467 UUID userId = TestHelpers.ParseTail(0x1);
468// UUID objectId = TestHelpers.ParseTail(0x100);
469// UUID itemId = TestHelpers.ParseTail(0x3);
470 string itemName = "TestStop";
471
472 SceneObjectPart partWhereRezzed = CreateScript(script, itemName, userId);
473 TaskInventoryItem rezzedItem = partWhereRezzed.Inventory.GetInventoryItem(itemName);
474
475 // Wait for the script to start the event before we try stopping it.
476 m_chatEvent.WaitOne(60000);
477
478 if (m_osChatMessageReceived != null)
479 Console.WriteLine("Script started with message [{0}]", m_osChatMessageReceived.Message);
480 else
481 Assert.Fail("Script did not start");
482
483 // FIXME: This is a very poor way of trying to avoid a low-probability race condition where the script
484 // executes llSay() but has not started the next statement before we try to stop it.
485 Thread.Sleep(1000);
486
487 // We need a way of carrying on if StopScript() fail, since it won't return if the script isn't actually
488 // stopped. This kind of multi-threading is far from ideal in a regression test.
489 new Thread(() => { m_xEngine.StopScript(rezzedItem.ItemID); m_stoppedEvent.Set(); }).Start();
490
491 if (!m_stoppedEvent.WaitOne(30000))
492 Assert.Fail("Script did not co-operatively stop.");
493
494 bool running;
495 TaskInventoryItem scriptItem = partWhereRezzed.Inventory.GetInventoryItem(itemName);
496 Assert.That(
497 SceneObjectPartInventory.TryGetScriptInstanceRunning(m_scene, scriptItem, out running), Is.True);
498 Assert.That(running, Is.False);
499 }
500
501 private void OnChatFromWorld(object sender, OSChatMessage oscm)
502 {
503 Console.WriteLine("Got chat [{0}]", oscm.Message);
504 m_osChatMessageReceived = oscm;
505
506 if (++m_chatMessagesReceived >= m_chatMessagesThreshold)
507 {
508 m_scene.EventManager.OnChatFromWorld -= OnChatFromWorld;
509 m_chatEvent.Set();
510 }
511 }
512 }
513} \ No newline at end of file
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index fcb98a5..0ca5ff3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -102,19 +102,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
102 102
103 public override string ToString() 103 public override string ToString()
104 { 104 {
105 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z); 105 string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z);
106 return s; 106 return s;
107 } 107 }
108 108
109 public static explicit operator LSLString(Vector3 vec) 109 public static explicit operator LSLString(Vector3 vec)
110 { 110 {
111 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 111 string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
112 return new LSLString(s); 112 return new LSLString(s);
113 } 113 }
114 114
115 public static explicit operator string(Vector3 vec) 115 public static explicit operator string(Vector3 vec)
116 { 116 {
117 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 117 string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
118 return s; 118 return s;
119 } 119 }
120 120
@@ -371,6 +371,31 @@ namespace OpenSim.Region.ScriptEngine.Shared
371 371
372 #endregion 372 #endregion
373 373
374 #region Methods
375 public Quaternion Normalize()
376 {
377 double length = Math.Sqrt(x * x + y * y + z * z + s * s);
378 if (length < float.Epsilon)
379 {
380 x = 0;
381 y = 0;
382 z = 0;
383 s = 1;
384 }
385 else
386 {
387
388 double invLength = 1.0 / length;
389 x *= invLength;
390 y *= invLength;
391 z *= invLength;
392 s *= invLength;
393 }
394
395 return this;
396 }
397 #endregion
398
374 #region Overriders 399 #region Overriders
375 400
376 public override int GetHashCode() 401 public override int GetHashCode()
@@ -477,7 +502,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
477 } 502 }
478 503
479 [Serializable] 504 [Serializable]
480 public class list 505 public struct list
481 { 506 {
482 private object[] m_data; 507 private object[] m_data;
483 508
@@ -544,111 +569,136 @@ namespace OpenSim.Region.ScriptEngine.Shared
544 569
545 set {m_data = value; } 570 set {m_data = value; }
546 } 571 }
547 // Function to obtain LSL type from an index. This is needed 572
548 // because LSL lists allow for multiple types, and safely 573 /// <summary>
549 // iterating in them requires a type check. 574 /// Obtain LSL type from an index.
575 /// </summary>
576 /// <remarks>
577 /// This is needed because LSL lists allow for multiple types, and safely
578 /// iterating in them requires a type check.
579 /// </remarks>
580 /// <returns></returns>
581 /// <param name='itemIndex'></param>
550 public Type GetLSLListItemType(int itemIndex) 582 public Type GetLSLListItemType(int itemIndex)
551 { 583 {
552 return m_data[itemIndex].GetType(); 584 return Data[itemIndex].GetType();
553 } 585 }
554 586
555 // Member functions to obtain item as specific types. 587 /// <summary>
556 // For cases where implicit conversions would apply if items 588 /// Obtain float from an index.
557 // were not in a list (e.g. integer to float, but not float 589 /// </summary>
558 // to integer) functions check for alternate types so as to 590 /// <remarks>
559 // down-cast from Object to the correct type. 591 /// For cases where implicit conversions would apply if items
560 // Note: no checks for item index being valid are performed 592 /// were not in a list (e.g. integer to float, but not float
561 593 /// to integer) functions check for alternate types so as to
594 /// down-cast from Object to the correct type.
595 /// Note: no checks for item index being valid are performed
596 /// </remarks>
597 /// <returns></returns>
598 /// <param name='itemIndex'></param>
562 public LSL_Types.LSLFloat GetLSLFloatItem(int itemIndex) 599 public LSL_Types.LSLFloat GetLSLFloatItem(int itemIndex)
563 { 600 {
564 if (m_data[itemIndex] is LSL_Types.LSLInteger) 601 if (Data[itemIndex] is LSL_Types.LSLInteger)
565 { 602 {
566 return (LSL_Types.LSLInteger)m_data[itemIndex]; 603 return (LSL_Types.LSLInteger)Data[itemIndex];
567 } 604 }
568 else if (m_data[itemIndex] is Int32) 605 else if (Data[itemIndex] is Int32)
569 { 606 {
570 return new LSL_Types.LSLFloat((int)m_data[itemIndex]); 607 return new LSL_Types.LSLFloat((int)Data[itemIndex]);
571 } 608 }
572 else if (m_data[itemIndex] is float) 609 else if (Data[itemIndex] is float)
573 { 610 {
574 return new LSL_Types.LSLFloat((float)m_data[itemIndex]); 611 return new LSL_Types.LSLFloat((float)Data[itemIndex]);
575 } 612 }
576 else if (m_data[itemIndex] is Double) 613 else if (Data[itemIndex] is Double)
577 { 614 {
578 return new LSL_Types.LSLFloat((Double)m_data[itemIndex]); 615 return new LSL_Types.LSLFloat((Double)Data[itemIndex]);
579 } 616 }
580 else if (m_data[itemIndex] is LSL_Types.LSLString) 617 else if (Data[itemIndex] is LSL_Types.LSLString)
581 { 618 {
582 return new LSL_Types.LSLFloat(m_data[itemIndex].ToString()); 619 return new LSL_Types.LSLFloat(Data[itemIndex].ToString());
583 } 620 }
584 else 621 else
585 { 622 {
586 return (LSL_Types.LSLFloat)m_data[itemIndex]; 623 return (LSL_Types.LSLFloat)Data[itemIndex];
587 } 624 }
588 } 625 }
589 626
590 public LSL_Types.LSLString GetLSLStringItem(int itemIndex) 627 public LSL_Types.LSLString GetLSLStringItem(int itemIndex)
591 { 628 {
592 if (m_data[itemIndex] is LSL_Types.key) 629 if (Data[itemIndex] is LSL_Types.key)
593 { 630 {
594 return (LSL_Types.key)m_data[itemIndex]; 631 return (LSL_Types.key)Data[itemIndex];
595 } 632 }
596 else if (m_data[itemIndex] is String) 633 else
597 { 634 {
598 return new LSL_Types.LSLString((string)m_data[itemIndex]); 635 return new LSL_Types.LSLString(Data[itemIndex].ToString());
599 } 636 }
600 else if (m_data[itemIndex] is LSL_Types.LSLFloat)
601 {
602 return new LSL_Types.LSLString((LSLFloat)m_data[itemIndex]);
603 }
604 else if (m_data[itemIndex] is LSL_Types.LSLInteger)
605 {
606 return new LSL_Types.LSLString((LSLInteger)m_data[itemIndex]);
607 }
608 else
609 {
610 return (LSL_Types.LSLString)m_data[itemIndex];
611 }
612 } 637 }
613 638
614 public LSL_Types.LSLInteger GetLSLIntegerItem(int itemIndex) 639 public LSL_Types.LSLInteger GetLSLIntegerItem(int itemIndex)
615 { 640 {
616 if (m_data[itemIndex] is LSL_Types.LSLInteger) 641 if (Data[itemIndex] is LSL_Types.LSLInteger)
617 return (LSL_Types.LSLInteger)m_data[itemIndex]; 642 return (LSL_Types.LSLInteger)Data[itemIndex];
618 if (m_data[itemIndex] is LSL_Types.LSLFloat) 643 if (Data[itemIndex] is LSL_Types.LSLFloat)
619 return new LSLInteger((int)m_data[itemIndex]); 644 return new LSLInteger((int)Data[itemIndex]);
620 else if (m_data[itemIndex] is Int32) 645 else if (Data[itemIndex] is Int32)
621 return new LSLInteger((int)m_data[itemIndex]); 646 return new LSLInteger((int)Data[itemIndex]);
622 else if (m_data[itemIndex] is LSL_Types.LSLString) 647 else if (Data[itemIndex] is LSL_Types.LSLString)
623 return new LSLInteger(m_data[itemIndex].ToString()); 648 return new LSLInteger(Data[itemIndex].ToString());
624 else 649 else
625 throw new InvalidCastException(string.Format( 650 throw new InvalidCastException(string.Format(
626 "{0} expected but {1} given", 651 "{0} expected but {1} given",
627 typeof(LSL_Types.LSLInteger).Name, 652 typeof(LSL_Types.LSLInteger).Name,
628 m_data[itemIndex] != null ? 653 Data[itemIndex] != null ?
629 m_data[itemIndex].GetType().Name : "null")); 654 Data[itemIndex].GetType().Name : "null"));
630 } 655 }
631 656
632 public LSL_Types.Vector3 GetVector3Item(int itemIndex) 657 public LSL_Types.Vector3 GetVector3Item(int itemIndex)
633 { 658 {
634 if(m_data[itemIndex] is LSL_Types.Vector3) 659 if (Data[itemIndex] is LSL_Types.Vector3)
635 return (LSL_Types.Vector3)m_data[itemIndex]; 660 {
661 return (LSL_Types.Vector3)Data[itemIndex];
662 }
663 else if(Data[itemIndex] is OpenMetaverse.Vector3)
664 {
665 return new LSL_Types.Vector3(
666 (OpenMetaverse.Vector3)Data[itemIndex]);
667 }
636 else 668 else
669 {
637 throw new InvalidCastException(string.Format( 670 throw new InvalidCastException(string.Format(
638 "{0} expected but {1} given", 671 "{0} expected but {1} given",
639 typeof(LSL_Types.Vector3).Name, 672 typeof(LSL_Types.Vector3).Name,
640 m_data[itemIndex] != null ? 673 Data[itemIndex] != null ?
641 m_data[itemIndex].GetType().Name : "null")); 674 Data[itemIndex].GetType().Name : "null"));
675 }
642 } 676 }
643 677
644 public LSL_Types.Quaternion GetQuaternionItem(int itemIndex) 678 public LSL_Types.Quaternion GetQuaternionItem(int itemIndex)
645 { 679 {
646 return (LSL_Types.Quaternion)m_data[itemIndex]; 680 if (Data[itemIndex] is LSL_Types.Quaternion)
681 {
682 return (LSL_Types.Quaternion)Data[itemIndex];
683 }
684 else if(Data[itemIndex] is OpenMetaverse.Quaternion)
685 {
686 return new LSL_Types.Quaternion(
687 (OpenMetaverse.Quaternion)Data[itemIndex]);
688 }
689 else
690 {
691 throw new InvalidCastException(string.Format(
692 "{0} expected but {1} given",
693 typeof(LSL_Types.Quaternion).Name,
694 Data[itemIndex] != null ?
695 Data[itemIndex].GetType().Name : "null"));
696 }
647 } 697 }
648 698
649 public LSL_Types.key GetKeyItem(int itemIndex) 699 public LSL_Types.key GetKeyItem(int itemIndex)
650 { 700 {
651 return (LSL_Types.key)m_data[itemIndex]; 701 return (LSL_Types.key)Data[itemIndex];
652 } 702 }
653 703
654 public static list operator +(list a, list b) 704 public static list operator +(list a, list b)
@@ -662,8 +712,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
662 712
663 private void ExtendAndAdd(object o) 713 private void ExtendAndAdd(object o)
664 { 714 {
665 Array.Resize(ref m_data, Length + 1); 715 object[] tmp;
666 m_data.SetValue(o, Length - 1); 716 tmp = new object[Data.Length + 1];
717 Data.CopyTo(tmp, 0);
718 tmp.SetValue(o, tmp.Length - 1);
719 Data = tmp;
667 } 720 }
668 721
669 public static list operator +(list a, LSLString s) 722 public static list operator +(list a, LSLString s)
@@ -711,10 +764,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
711 public void Add(object o) 764 public void Add(object o)
712 { 765 {
713 object[] tmp; 766 object[] tmp;
714 tmp = new object[m_data.Length + 1]; 767 tmp = new object[Data.Length + 1];
715 m_data.CopyTo(tmp, 0); 768 Data.CopyTo(tmp, 0);
716 tmp[m_data.Length] = o; 769 tmp[Data.Length] = o; // Since this is tmp.Length - 1
717 m_data = tmp; 770 Data = tmp;
718 } 771 }
719 772
720 public bool Contains(object o) 773 public bool Contains(object o)
@@ -741,53 +794,53 @@ namespace OpenSim.Region.ScriptEngine.Shared
741 Object[] ret; 794 Object[] ret;
742 795
743 if (start < 0) 796 if (start < 0)
744 start=m_data.Length+start; 797 start=Data.Length+start;
745 798
746 if (start < 0) 799 if (start < 0)
747 start=0; 800 start=0;
748 801
749 if (end < 0) 802 if (end < 0)
750 end=m_data.Length+end; 803 end=Data.Length+end;
751 if (end < 0) 804 if (end < 0)
752 end=0; 805 end=0;
753 806
754 if (start > end) 807 if (start > end)
755 { 808 {
756 if (end >= m_data.Length) 809 if (end >= Data.Length)
757 return new list(new Object[0]); 810 return new list(new Object[0]);
758 811
759 if (start >= m_data.Length) 812 if (start >= Data.Length)
760 start=m_data.Length-1; 813 start=Data.Length-1;
761 814
762 return GetSublist(end, start); 815 return GetSublist(end, start);
763 } 816 }
764 817
765 // start >= 0 && end >= 0 here 818 // start >= 0 && end >= 0 here
766 if (start >= m_data.Length) 819 if (start >= Data.Length)
767 { 820 {
768 ret=new Object[m_data.Length]; 821 ret=new Object[Data.Length];
769 Array.Copy(m_data, 0, ret, 0, m_data.Length); 822 Array.Copy(Data, 0, ret, 0, Data.Length);
770 823
771 return new list(ret); 824 return new list(ret);
772 } 825 }
773 826
774 if (end >= m_data.Length) 827 if (end >= Data.Length)
775 end=m_data.Length-1; 828 end=Data.Length-1;
776 829
777 // now, this makes the math easier 830 // now, this makes the math easier
778 int remove=end+1-start; 831 int remove=end+1-start;
779 832
780 ret=new Object[m_data.Length-remove]; 833 ret=new Object[Data.Length-remove];
781 if (ret.Length == 0) 834 if (ret.Length == 0)
782 return new list(ret); 835 return new list(ret);
783 836
784 int src; 837 int src;
785 int dest=0; 838 int dest=0;
786 839
787 for (src = 0; src < m_data.Length; src++) 840 for (src = 0; src < Data.Length; src++)
788 { 841 {
789 if (src < start || src > end) 842 if (src < start || src > end)
790 ret[dest++]=m_data[src]; 843 ret[dest++]=Data[src];
791 } 844 }
792 845
793 return new list(ret); 846 return new list(ret);
@@ -807,12 +860,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
807 860
808 if (start < 0) 861 if (start < 0)
809 { 862 {
810 start = m_data.Length + start; 863 start = Data.Length + start;
811 } 864 }
812 865
813 if (end < 0) 866 if (end < 0)
814 { 867 {
815 end = m_data.Length + end; 868 end = Data.Length + end;
816 } 869 }
817 870
818 // The conventional case is start <= end 871 // The conventional case is start <= end
@@ -826,15 +879,15 @@ namespace OpenSim.Region.ScriptEngine.Shared
826 879
827 // Start sublist beyond length 880 // Start sublist beyond length
828 // Also deals with start AND end still negative 881 // Also deals with start AND end still negative
829 if (start >= m_data.Length || end < 0) 882 if (start >= Data.Length || end < 0)
830 { 883 {
831 return new list(); 884 return new list();
832 } 885 }
833 886
834 // Sublist extends beyond the end of the supplied list 887 // Sublist extends beyond the end of the supplied list
835 if (end >= m_data.Length) 888 if (end >= Data.Length)
836 { 889 {
837 end = m_data.Length - 1; 890 end = Data.Length - 1;
838 } 891 }
839 892
840 // Sublist still starts before the beginning of the list 893 // Sublist still starts before the beginning of the list
@@ -845,7 +898,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
845 898
846 ret = new object[end - start + 1]; 899 ret = new object[end - start + 1];
847 900
848 Array.Copy(m_data, start, ret, 0, end - start + 1); 901 Array.Copy(Data, start, ret, 0, end - start + 1);
849 902
850 return new list(ret); 903 return new list(ret);
851 904
@@ -856,7 +909,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
856 else 909 else
857 { 910 {
858 911
859 list result = null; 912 list result;
860 913
861 // If end is negative, then prefix list is empty 914 // If end is negative, then prefix list is empty
862 if (end < 0) 915 if (end < 0)
@@ -878,7 +931,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
878 931
879 // If start is outside of list, then just return 932 // If start is outside of list, then just return
880 // the prefix, whatever it is. 933 // the prefix, whatever it is.
881 if (start >= m_data.Length) 934 if (start >= Data.Length)
882 { 935 {
883 return result; 936 return result;
884 } 937 }
@@ -1056,11 +1109,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
1056 { 1109 {
1057 string output; 1110 string output;
1058 output = String.Empty; 1111 output = String.Empty;
1059 if (m_data.Length == 0) 1112 if (Data.Length == 0)
1060 { 1113 {
1061 return String.Empty; 1114 return String.Empty;
1062 } 1115 }
1063 foreach (object o in m_data) 1116 foreach (object o in Data)
1064 { 1117 {
1065 output = output + o.ToString(); 1118 output = output + o.ToString();
1066 } 1119 }
@@ -1255,12 +1308,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
1255 public string ToPrettyString() 1308 public string ToPrettyString()
1256 { 1309 {
1257 string output; 1310 string output;
1258 if (m_data.Length == 0) 1311 if (Data.Length == 0)
1259 { 1312 {
1260 return "[]"; 1313 return "[]";
1261 } 1314 }
1262 output = "["; 1315 output = "[";
1263 foreach (object o in m_data) 1316 foreach (object o in Data)
1264 { 1317 {
1265 if (o is String) 1318 if (o is String)
1266 { 1319 {
@@ -1327,27 +1380,6 @@ namespace OpenSim.Region.ScriptEngine.Shared
1327 } 1380 }
1328 } 1381 }
1329 1382
1330 //
1331 // BELOW IS WORK IN PROGRESS... IT WILL CHANGE, SO DON'T USE YET! :)
1332 //
1333
1334 public struct StringTest
1335 {
1336 // Our own little string
1337 internal string actualString;
1338 public static implicit operator bool(StringTest mString)
1339 {
1340 if (mString.actualString.Length == 0)
1341 return true;
1342 return false;
1343 }
1344 public override string ToString()
1345 {
1346 return actualString;
1347 }
1348
1349 }
1350
1351 [Serializable] 1383 [Serializable]
1352 public struct key 1384 public struct key
1353 { 1385 {
@@ -1401,6 +1433,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
1401 return false; 1433 return false;
1402 } 1434 }
1403 } 1435 }
1436
1437 public static bool operator true(key k)
1438 {
1439 return (Boolean)k;
1440 }
1441
1442 public static bool operator false(key k)
1443 {
1444 return !(Boolean)k;
1445 }
1404 1446
1405 static public implicit operator key(string s) 1447 static public implicit operator key(string s)
1406 { 1448 {
diff --git a/OpenSim/Region/ScriptEngine/Shared/Properties/AssemblyInfo.cs b/OpenSim/Region/ScriptEngine/Shared/Properties/AssemblyInfo.cs
index e6e8777..d08b0a6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.7.6.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.cs
new file mode 100644
index 0000000..af1da7c
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.cs
@@ -0,0 +1,158 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using System.Text;
32using log4net;
33using Nini.Config;
34using NUnit.Framework;
35using OpenMetaverse;
36using OpenMetaverse.Assets;
37using OpenMetaverse.StructuredData;
38using OpenSim.Framework;
39using OpenSim.Region.CoreModules.Avatar.AvatarFactory;
40using OpenSim.Region.OptionalModules.World.NPC;
41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
45using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
46using OpenSim.Services.Interfaces;
47using OpenSim.Tests.Common;
48using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
49using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
50
51namespace OpenSim.Region.ScriptEngine.Shared.Tests
52{
53 /// <summary>
54 /// Tests relating directly to avatars
55 /// </summary>
56 [TestFixture]
57 public class LSL_ApiAvatarTests : OpenSimTestCase
58 {
59 protected Scene m_scene;
60 protected XEngine.XEngine m_engine;
61
62 [SetUp]
63 public override void SetUp()
64 {
65 base.SetUp();
66
67 IConfigSource initConfigSource = new IniConfigSource();
68 IConfig config = initConfigSource.AddConfig("XEngine");
69 config.Set("Enabled", "true");
70
71 m_scene = new SceneHelpers().SetupScene();
72 SceneHelpers.SetupSceneModules(m_scene, initConfigSource);
73
74 m_engine = new XEngine.XEngine();
75 m_engine.Initialise(initConfigSource);
76 m_engine.AddRegion(m_scene);
77 }
78
79 /// <summary>
80 /// Test llSetLinkPrimtiveParams for agents.
81 /// </summary>
82 /// <remarks>
83 /// Also testing entity updates here as well. Possibly that's putting 2 different concerns into one test and
84 /// this should be separated.
85 /// </remarks>
86 [Test]
87 public void TestllSetLinkPrimitiveParamsForAgent()
88 {
89 TestHelpers.InMethod();
90// TestHelpers.EnableLogging();
91
92 UUID userId = TestHelpers.ParseTail(0x1);
93
94 SceneObjectPart part = SceneHelpers.AddSceneObject(m_scene).RootPart;
95 part.RotationOffset = new Quaternion(0.7071068f, 0, 0, 0.7071068f);
96
97 LSL_Api apiGrp1 = new LSL_Api();
98 apiGrp1.Initialize(m_engine, part, null);
99
100 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId);
101
102 // sp has to be less than 10 meters away from 0, 0, 0 (default part position)
103 Vector3 startPos = new Vector3(3, 2, 1);
104 sp.AbsolutePosition = startPos;
105
106 sp.HandleAgentRequestSit(sp.ControllingClient, sp.UUID, part.UUID, Vector3.Zero);
107
108 int entityUpdates = 0;
109 ((TestClient)sp.ControllingClient).OnReceivedEntityUpdate += (entity, flags) => { if (entity is ScenePresence) { entityUpdates++; }};
110
111 // Test position
112 {
113 Vector3 newPos = new Vector3(1, 2, 3);
114 apiGrp1.llSetLinkPrimitiveParams(2, new LSL_Types.list(ScriptBaseClass.PRIM_POSITION, newPos));
115
116 Assert.That(sp.OffsetPosition, Is.EqualTo(newPos));
117
118 m_scene.Update(1);
119 Assert.That(entityUpdates, Is.EqualTo(1));
120 }
121
122 // Test small reposition
123 {
124 Vector3 newPos = new Vector3(1.001f, 2, 3);
125 apiGrp1.llSetLinkPrimitiveParams(2, new LSL_Types.list(ScriptBaseClass.PRIM_POSITION, newPos));
126
127 Assert.That(sp.OffsetPosition, Is.EqualTo(newPos));
128
129 m_scene.Update(1);
130 Assert.That(entityUpdates, Is.EqualTo(2));
131 }
132
133 // Test world rotation
134 {
135 Quaternion newRot = new Quaternion(0, 0.7071068f, 0, 0.7071068f);
136 apiGrp1.llSetLinkPrimitiveParams(2, new LSL_Types.list(ScriptBaseClass.PRIM_ROTATION, newRot));
137
138 Assert.That(
139 sp.Rotation, new QuaternionToleranceConstraint(part.GetWorldRotation() * newRot, 0.000001));
140
141 m_scene.Update(1);
142 Assert.That(entityUpdates, Is.EqualTo(3));
143 }
144
145 // Test local rotation
146 {
147 Quaternion newRot = new Quaternion(0, 0.7071068f, 0, 0.7071068f);
148 apiGrp1.llSetLinkPrimitiveParams(2, new LSL_Types.list(ScriptBaseClass.PRIM_ROT_LOCAL, newRot));
149
150 Assert.That(
151 sp.Rotation, new QuaternionToleranceConstraint(newRot, 0.000001));
152
153 m_scene.Update(1);
154 Assert.That(entityUpdates, Is.EqualTo(4));
155 }
156 }
157 }
158}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiHttpTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiHttpTests.cs
new file mode 100644
index 0000000..9a5ebce
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiHttpTests.cs
@@ -0,0 +1,248 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.IO;
31using System.Net;
32using System.Reflection;
33using System.Text;
34using log4net;
35using Nini.Config;
36using NUnit.Framework;
37using OpenMetaverse;
38using OpenSim.Framework;
39using OpenSim.Framework.Servers;
40using OpenSim.Framework.Servers.HttpServer;
41using OpenSim.Region.CoreModules.Scripting.LSLHttp;
42using OpenSim.Region.Framework.Scenes;
43using OpenSim.Region.ScriptEngine.Shared;
44using OpenSim.Region.ScriptEngine.Shared.Api;
45using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
46using OpenSim.Services.Interfaces;
47using OpenSim.Tests.Common;
48
49namespace OpenSim.Region.ScriptEngine.Shared.Tests
50{
51 /// <summary>
52 /// Tests for HTTP related functions in LSL
53 /// </summary>
54 [TestFixture]
55 public class LSL_ApiHttpTests : OpenSimTestCase
56 {
57 private Scene m_scene;
58 private MockScriptEngine m_engine;
59 private UrlModule m_urlModule;
60
61 private TaskInventoryItem m_scriptItem;
62 private LSL_Api m_lslApi;
63
64 [TestFixtureSetUp]
65 public void TestFixtureSetUp()
66 {
67 // Don't allow tests to be bamboozled by asynchronous events. Execute everything on the same thread.
68 Util.FireAndForgetMethod = FireAndForgetMethod.RegressionTest;
69 }
70
71 [TestFixtureTearDown]
72 public void TestFixureTearDown()
73 {
74 // We must set this back afterwards, otherwise later tests will fail since they're expecting multiple
75 // threads. Possibly, later tests should be rewritten so none of them require async stuff (which regression
76 // tests really shouldn't).
77 Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod;
78 }
79
80 [SetUp]
81 public override void SetUp()
82 {
83 base.SetUp();
84
85 // This is an unfortunate bit of clean up we have to do because MainServer manages things through static
86 // variables and the VM is not restarted between tests.
87 uint port = 9999;
88 MainServer.RemoveHttpServer(port);
89
90 BaseHttpServer server = new BaseHttpServer(port, false, 0, "");
91 MainServer.AddHttpServer(server);
92 MainServer.Instance = server;
93
94 server.Start();
95
96 m_engine = new MockScriptEngine();
97 m_urlModule = new UrlModule();
98
99 m_scene = new SceneHelpers().SetupScene();
100 SceneHelpers.SetupSceneModules(m_scene, new IniConfigSource(), m_engine, m_urlModule);
101
102 SceneObjectGroup so = SceneHelpers.AddSceneObject(m_scene);
103 m_scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, so.RootPart);
104
105 // This is disconnected from the actual script - the mock engine does not set up any LSL_Api atm.
106 // Possibly this could be done and we could obtain it directly from the MockScriptEngine.
107 m_lslApi = new LSL_Api();
108 m_lslApi.Initialize(m_engine, so.RootPart, m_scriptItem);
109 }
110
111 [TearDown]
112 public void TearDown()
113 {
114 MainServer.Instance.Stop();
115 }
116
117 [Test]
118 public void TestLlReleaseUrl()
119 {
120 TestHelpers.InMethod();
121
122 m_lslApi.llRequestURL();
123 string returnedUri = m_engine.PostedEvents[m_scriptItem.ItemID][0].Params[2].ToString();
124
125 {
126 // Check that the initial number of URLs is correct
127 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
128 }
129
130 {
131 // Check releasing a non-url
132 m_lslApi.llReleaseURL("GARBAGE");
133 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
134 }
135
136 {
137 // Check releasing a non-existing url
138 m_lslApi.llReleaseURL("http://example.com");
139 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
140 }
141
142 {
143 // Check URL release
144 m_lslApi.llReleaseURL(returnedUri);
145 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls));
146
147 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(returnedUri);
148
149 bool gotExpectedException = false;
150
151 try
152 {
153 using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
154 {}
155 }
156 catch (WebException e)
157 {
158 using (HttpWebResponse response = (HttpWebResponse)e.Response)
159 gotExpectedException = response.StatusCode == HttpStatusCode.NotFound;
160 }
161
162 Assert.That(gotExpectedException, Is.True);
163 }
164
165 {
166 // Check releasing the same URL again
167 m_lslApi.llReleaseURL(returnedUri);
168 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls));
169 }
170 }
171
172 [Test]
173 public void TestLlRequestUrl()
174 {
175 TestHelpers.InMethod();
176
177 string requestId = m_lslApi.llRequestURL();
178 Assert.That(requestId, Is.Not.EqualTo(UUID.Zero.ToString()));
179 string returnedUri;
180
181 {
182 // Check that URL is correctly set up
183 Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
184
185 Assert.That(m_engine.PostedEvents.ContainsKey(m_scriptItem.ItemID));
186
187 List<EventParams> events = m_engine.PostedEvents[m_scriptItem.ItemID];
188 Assert.That(events.Count, Is.EqualTo(1));
189 EventParams eventParams = events[0];
190 Assert.That(eventParams.EventName, Is.EqualTo("http_request"));
191
192 UUID returnKey;
193 string rawReturnKey = eventParams.Params[0].ToString();
194 string method = eventParams.Params[1].ToString();
195 returnedUri = eventParams.Params[2].ToString();
196
197 Assert.That(UUID.TryParse(rawReturnKey, out returnKey), Is.True);
198 Assert.That(method, Is.EqualTo(ScriptBaseClass.URL_REQUEST_GRANTED));
199 Assert.That(Uri.IsWellFormedUriString(returnedUri, UriKind.Absolute), Is.True);
200 }
201
202 {
203 // Check that request to URL works.
204 string testResponse = "Hello World";
205
206 m_engine.ClearPostedEvents();
207 m_engine.PostEventHook
208 += (itemId, evp) => m_lslApi.llHTTPResponse(evp.Params[0].ToString(), 200, testResponse);
209
210// Console.WriteLine("Trying {0}", returnedUri);
211
212 AssertHttpResponse(returnedUri, testResponse);
213
214 Assert.That(m_engine.PostedEvents.ContainsKey(m_scriptItem.ItemID));
215
216 List<EventParams> events = m_engine.PostedEvents[m_scriptItem.ItemID];
217 Assert.That(events.Count, Is.EqualTo(1));
218 EventParams eventParams = events[0];
219 Assert.That(eventParams.EventName, Is.EqualTo("http_request"));
220
221 UUID returnKey;
222 string rawReturnKey = eventParams.Params[0].ToString();
223 string method = eventParams.Params[1].ToString();
224 string body = eventParams.Params[2].ToString();
225
226 Assert.That(UUID.TryParse(rawReturnKey, out returnKey), Is.True);
227 Assert.That(method, Is.EqualTo("GET"));
228 Assert.That(body, Is.EqualTo(""));
229 }
230 }
231
232 private void AssertHttpResponse(string uri, string expectedResponse)
233 {
234 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(uri);
235
236 using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
237 {
238 using (Stream stream = webResponse.GetResponseStream())
239 {
240 using (StreamReader reader = new StreamReader(stream))
241 {
242 Assert.That(reader.ReadToEnd(), Is.EqualTo(expectedResponse));
243 }
244 }
245 }
246 }
247 }
248}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
index cb7291a..9b7cab2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
@@ -41,9 +41,10 @@ using OpenSim.Region.OptionalModules.World.NPC;
41using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared; 42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api; 43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
44using OpenSim.Services.Interfaces; 45using OpenSim.Services.Interfaces;
45using OpenSim.Tests.Common; 46using OpenSim.Tests.Common;
46using OpenSim.Tests.Common.Mock; 47using PermissionMask = OpenSim.Framework.PermissionMask;
47 48
48namespace OpenSim.Region.ScriptEngine.Shared.Tests 49namespace OpenSim.Region.ScriptEngine.Shared.Tests
49{ 50{
@@ -90,7 +91,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
90 91
91 // Create an object embedded inside the first 92 // Create an object embedded inside the first
92 UUID itemId = TestHelpers.ParseTail(0x20); 93 UUID itemId = TestHelpers.ParseTail(0x20);
93 TaskInventoryHelpers.AddSceneObject(m_scene, so1.RootPart, inventoryItemName, itemId, userId); 94 TaskInventoryHelpers.AddSceneObject(m_scene.AssetService, so1.RootPart, inventoryItemName, itemId, userId);
94 95
95 LSL_Api api = new LSL_Api(); 96 LSL_Api api = new LSL_Api();
96 api.Initialize(m_engine, so1.RootPart, null); 97 api.Initialize(m_engine, so1.RootPart, null);
@@ -130,7 +131,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
130 131
131 // Create an object embedded inside the first 132 // Create an object embedded inside the first
132 UUID itemId = TestHelpers.ParseTail(0x20); 133 UUID itemId = TestHelpers.ParseTail(0x20);
133 TaskInventoryHelpers.AddSceneObject(m_scene, so1.RootPart, inventoryItemName, itemId, user1Id); 134 TaskInventoryHelpers.AddSceneObject(m_scene.AssetService, so1.RootPart, inventoryItemName, itemId, user1Id);
134 135
135 // Create a second object 136 // Create a second object
136 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, user2Id, "so2", 0x100); 137 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, user2Id, "so2", 0x100);
@@ -166,5 +167,122 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
166 Assert.That(copiedItems[0].Name, Is.EqualTo(inventoryItemName)); 167 Assert.That(copiedItems[0].Name, Is.EqualTo(inventoryItemName));
167 } 168 }
168 } 169 }
170
171 /// <summary>
172 /// Test giving inventory from an object to an avatar that is not the object's owner.
173 /// </summary>
174 [Test]
175 public void TestLlGiveInventoryO2DifferentAvatar()
176 {
177 TestHelpers.InMethod();
178 // TestHelpers.EnableLogging();
179
180 UUID user1Id = TestHelpers.ParseTail(0x1);
181 UUID user2Id = TestHelpers.ParseTail(0x2);
182 string inventoryItemName = "item1";
183
184 SceneObjectGroup so1 = SceneHelpers.CreateSceneObject(1, user1Id, "so1", 0x10);
185 m_scene.AddSceneObject(so1);
186 LSL_Api api = new LSL_Api();
187 api.Initialize(m_engine, so1.RootPart, null);
188
189 // Create an object embedded inside the first
190 UUID itemId = TestHelpers.ParseTail(0x20);
191 TaskInventoryHelpers.AddSceneObject(m_scene.AssetService, so1.RootPart, inventoryItemName, itemId, user1Id);
192
193 UserAccountHelpers.CreateUserWithInventory(m_scene, user2Id);
194
195 api.llGiveInventory(user2Id.ToString(), inventoryItemName);
196
197 InventoryItemBase receivedItem
198 = UserInventoryHelpers.GetInventoryItem(
199 m_scene.InventoryService, user2Id, string.Format("Objects/{0}", inventoryItemName));
200
201 Assert.IsNotNull(receivedItem);
202 }
203
204 /// <summary>
205 /// Test giving inventory from an object to an avatar that is not the object's owner and where the next
206 /// permissions do not include mod.
207 /// </summary>
208 [Test]
209 public void TestLlGiveInventoryO2DifferentAvatarNoMod()
210 {
211 TestHelpers.InMethod();
212// TestHelpers.EnableLogging();
213
214 UUID user1Id = TestHelpers.ParseTail(0x1);
215 UUID user2Id = TestHelpers.ParseTail(0x2);
216 string inventoryItemName = "item1";
217
218 SceneObjectGroup so1 = SceneHelpers.CreateSceneObject(1, user1Id, "so1", 0x10);
219 m_scene.AddSceneObject(so1);
220 LSL_Api api = new LSL_Api();
221 api.Initialize(m_engine, so1.RootPart, null);
222
223 // Create an object embedded inside the first
224 UUID itemId = TestHelpers.ParseTail(0x20);
225 TaskInventoryItem tii
226 = TaskInventoryHelpers.AddSceneObject(m_scene.AssetService, so1.RootPart, inventoryItemName, itemId, user1Id);
227 tii.NextPermissions &= ~((uint)PermissionMask.Modify);
228
229 UserAccountHelpers.CreateUserWithInventory(m_scene, user2Id);
230
231 api.llGiveInventory(user2Id.ToString(), inventoryItemName);
232
233 InventoryItemBase receivedItem
234 = UserInventoryHelpers.GetInventoryItem(
235 m_scene.InventoryService, user2Id, string.Format("Objects/{0}", inventoryItemName));
236
237 Assert.IsNotNull(receivedItem);
238 Assert.AreEqual(0, receivedItem.CurrentPermissions & (uint)PermissionMask.Modify);
239 }
240
241 [Test]
242 public void TestLlRemoteLoadScriptPin()
243 {
244 TestHelpers.InMethod();
245// TestHelpers.EnableLogging();
246
247 UUID user1Id = TestHelpers.ParseTail(0x1);
248 UUID user2Id = TestHelpers.ParseTail(0x2);
249
250 SceneObjectGroup sourceSo = SceneHelpers.AddSceneObject(m_scene, "sourceSo", user1Id);
251 m_scene.AddSceneObject(sourceSo);
252 LSL_Api api = new LSL_Api();
253 api.Initialize(m_engine, sourceSo.RootPart, null);
254 TaskInventoryHelpers.AddScript(m_scene.AssetService, sourceSo.RootPart, "script", "Hello World");
255
256 SceneObjectGroup targetSo = SceneHelpers.AddSceneObject(m_scene, "targetSo", user1Id);
257 SceneObjectGroup otherOwnedTargetSo = SceneHelpers.AddSceneObject(m_scene, "otherOwnedTargetSo", user2Id);
258
259 // Test that we cannot load a script when the target pin has never been set (i.e. it is zero)
260 api.llRemoteLoadScriptPin(targetSo.UUID.ToString(), "script", 0, 0, 0);
261 Assert.IsNull(targetSo.RootPart.Inventory.GetInventoryItem("script"));
262
263 // Test that we cannot load a script when the given pin does not match the target
264 targetSo.RootPart.ScriptAccessPin = 5;
265 api.llRemoteLoadScriptPin(targetSo.UUID.ToString(), "script", 3, 0, 0);
266 Assert.IsNull(targetSo.RootPart.Inventory.GetInventoryItem("script"));
267
268 // Test that we cannot load into a prim with a different owner
269 otherOwnedTargetSo.RootPart.ScriptAccessPin = 3;
270 api.llRemoteLoadScriptPin(otherOwnedTargetSo.UUID.ToString(), "script", 3, 0, 0);
271 Assert.IsNull(otherOwnedTargetSo.RootPart.Inventory.GetInventoryItem("script"));
272
273 // Test that we can load a script when given pin and dest pin match.
274 targetSo.RootPart.ScriptAccessPin = 3;
275 api.llRemoteLoadScriptPin(targetSo.UUID.ToString(), "script", 3, 0, 0);
276 TaskInventoryItem insertedItem = targetSo.RootPart.Inventory.GetInventoryItem("script");
277 Assert.IsNotNull(insertedItem);
278
279 // Test that we can no longer load if access pin is unset
280 targetSo.RootPart.Inventory.RemoveInventoryItem(insertedItem.ItemID);
281 Assert.IsNull(targetSo.RootPart.Inventory.GetInventoryItem("script"));
282
283 targetSo.RootPart.ScriptAccessPin = 0;
284 api.llRemoteLoadScriptPin(otherOwnedTargetSo.UUID.ToString(), "script", 3, 0, 0);
285 Assert.IsNull(otherOwnedTargetSo.RootPart.Inventory.GetInventoryItem("script"));
286 }
169 } 287 }
170} \ No newline at end of file 288}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs
index d9b17d7..14b1890 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs
@@ -41,10 +41,10 @@ using OpenSim.Region.OptionalModules.World.NPC;
41using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared; 42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api; 43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
44using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 45using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
45using OpenSim.Services.Interfaces; 46using OpenSim.Services.Interfaces;
46using OpenSim.Tests.Common; 47using OpenSim.Tests.Common;
47using OpenSim.Tests.Common.Mock;
48 48
49namespace OpenSim.Region.ScriptEngine.Shared.Tests 49namespace OpenSim.Region.ScriptEngine.Shared.Tests
50{ 50{
@@ -92,7 +92,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
92 // FIXME: This should really be a script item (with accompanying script) 92 // FIXME: This should really be a script item (with accompanying script)
93 TaskInventoryItem grp1Item 93 TaskInventoryItem grp1Item
94 = TaskInventoryHelpers.AddNotecard( 94 = TaskInventoryHelpers.AddNotecard(
95 m_scene, grp1.RootPart, "ncItem", TestHelpers.ParseTail(0x800), TestHelpers.ParseTail(0x900)); 95 m_scene.AssetService, grp1.RootPart, "ncItem", TestHelpers.ParseTail(0x800), TestHelpers.ParseTail(0x900), "Hello World!");
96 grp1Item.PermsMask |= ScriptBaseClass.PERMISSION_CHANGE_LINKS; 96 grp1Item.PermsMask |= ScriptBaseClass.PERMISSION_CHANGE_LINKS;
97 97
98 SceneObjectGroup grp2 = SceneHelpers.CreateSceneObject(2, ownerId, "grp2-", 0x20); 98 SceneObjectGroup grp2 = SceneHelpers.CreateSceneObject(2, ownerId, "grp2-", 0x20);
@@ -126,7 +126,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
126 // FIXME: This should really be a script item (with accompanying script) 126 // FIXME: This should really be a script item (with accompanying script)
127 TaskInventoryItem grp1Item 127 TaskInventoryItem grp1Item
128 = TaskInventoryHelpers.AddNotecard( 128 = TaskInventoryHelpers.AddNotecard(
129 m_scene, grp1.RootPart, "ncItem", TestHelpers.ParseTail(0x800), TestHelpers.ParseTail(0x900)); 129 m_scene.AssetService, grp1.RootPart, "ncItem", TestHelpers.ParseTail(0x800), TestHelpers.ParseTail(0x900), "Hello World!");
130 130
131 grp1Item.PermsMask |= ScriptBaseClass.PERMISSION_CHANGE_LINKS; 131 grp1Item.PermsMask |= ScriptBaseClass.PERMISSION_CHANGE_LINKS;
132 132
@@ -140,5 +140,47 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
140 SceneObjectGroup grp2 = m_scene.GetSceneObjectGroup("grp1-Part1"); 140 SceneObjectGroup grp2 = m_scene.GetSceneObjectGroup("grp1-Part1");
141 Assert.That(grp2, Is.Not.Null); 141 Assert.That(grp2, Is.Not.Null);
142 } 142 }
143
144 [Test]
145 public void TestllBreakAllLinks()
146 {
147 TestHelpers.InMethod();
148
149 UUID ownerId = TestHelpers.ParseTail(0x1);
150
151 SceneObjectGroup grp1 = SceneHelpers.CreateSceneObject(3, ownerId, "grp1-", 0x10);
152 grp1.AbsolutePosition = new Vector3(10, 10, 10);
153 m_scene.AddSceneObject(grp1);
154
155 // FIXME: This should really be a script item (with accompanying script)
156 TaskInventoryItem grp1Item
157 = TaskInventoryHelpers.AddNotecard(
158 m_scene.AssetService, grp1.RootPart, "ncItem", TestHelpers.ParseTail(0x800), TestHelpers.ParseTail(0x900), "Hello World!");
159
160 grp1Item.PermsMask |= ScriptBaseClass.PERMISSION_CHANGE_LINKS;
161
162 LSL_Api apiGrp1 = new LSL_Api();
163 apiGrp1.Initialize(m_engine, grp1.RootPart, grp1Item);
164
165 apiGrp1.llBreakAllLinks();
166
167 {
168 SceneObjectGroup nowGrp = m_scene.GetSceneObjectGroup("grp1-Part1");
169 Assert.That(nowGrp, Is.Not.Null);
170 Assert.That(nowGrp.Parts.Length, Is.EqualTo(1));
171 }
172
173 {
174 SceneObjectGroup nowGrp = m_scene.GetSceneObjectGroup("grp1-Part2");
175 Assert.That(nowGrp, Is.Not.Null);
176 Assert.That(nowGrp.Parts.Length, Is.EqualTo(1));
177 }
178
179 {
180 SceneObjectGroup nowGrp = m_scene.GetSceneObjectGroup("grp1-Part3");
181 Assert.That(nowGrp, Is.Not.Null);
182 Assert.That(nowGrp.Parts.Length, Is.EqualTo(1));
183 }
184 }
143 } 185 }
144} \ No newline at end of file 186}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiListTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiListTests.cs
index 98017d8..34a29e6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiListTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiListTests.cs
@@ -34,9 +34,9 @@ using OpenSim.Region.ScriptEngine.Shared;
34using OpenSim.Region.Framework.Scenes; 34using OpenSim.Region.Framework.Scenes;
35using Nini.Config; 35using Nini.Config;
36using OpenSim.Region.ScriptEngine.Shared.Api; 36using OpenSim.Region.ScriptEngine.Shared.Api;
37using OpenSim.Region.ScriptEngine.Shared.Instance;
37using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 38using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
38using OpenMetaverse; 39using OpenMetaverse;
39using OpenSim.Tests.Common.Mock;
40 40
41using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; 41using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
42using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; 42using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
@@ -133,4 +133,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
133 } 133 }
134 } 134 }
135 } 135 }
136 } \ No newline at end of file 136 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiNotecardTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiNotecardTests.cs
new file mode 100644
index 0000000..9ab3115
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiNotecardTests.cs
@@ -0,0 +1,269 @@
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Net;
5using System.Reflection;
6using System.Text;
7using log4net;
8using Nini.Config;
9using NUnit.Framework;
10using OpenMetaverse;
11using OpenSim.Framework;
12using OpenSim.Framework.Servers;
13using OpenSim.Framework.Servers.HttpServer;
14using OpenSim.Region.CoreModules.Scripting.LSLHttp;
15using OpenSim.Region.Framework.Scenes;
16using OpenSim.Region.ScriptEngine.Shared;
17using OpenSim.Region.ScriptEngine.Shared.Api;
18using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
19using OpenSim.Services.Interfaces;
20using OpenSim.Tests.Common;
21
22namespace OpenSim.Region.ScriptEngine.Shared.Tests
23{
24 /// <summary>
25 /// Tests for notecard related functions in LSL
26 /// </summary>
27 [TestFixture]
28 public class LSL_ApiNotecardTests : OpenSimTestCase
29 {
30 private Scene m_scene;
31 private MockScriptEngine m_engine;
32
33 private SceneObjectGroup m_so;
34 private TaskInventoryItem m_scriptItem;
35 private LSL_Api m_lslApi;
36
37 [TestFixtureSetUp]
38 public void TestFixtureSetUp()
39 {
40 // Don't allow tests to be bamboozled by asynchronous events. Execute everything on the same thread.
41 Util.FireAndForgetMethod = FireAndForgetMethod.RegressionTest;
42 }
43
44 [TestFixtureTearDown]
45 public void TestFixureTearDown()
46 {
47 // We must set this back afterwards, otherwise later tests will fail since they're expecting multiple
48 // threads. Possibly, later tests should be rewritten so none of them require async stuff (which regression
49 // tests really shouldn't).
50 Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod;
51 }
52
53 [SetUp]
54 public override void SetUp()
55 {
56 base.SetUp();
57
58 m_engine = new MockScriptEngine();
59
60 m_scene = new SceneHelpers().SetupScene();
61 SceneHelpers.SetupSceneModules(m_scene, new IniConfigSource(), m_engine);
62
63 m_so = SceneHelpers.AddSceneObject(m_scene);
64 m_scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, m_so.RootPart);
65
66 // This is disconnected from the actual script - the mock engine does not set up any LSL_Api atm.
67 // Possibly this could be done and we could obtain it directly from the MockScriptEngine.
68 m_lslApi = new LSL_Api();
69 m_lslApi.Initialize(m_engine, m_so.RootPart, m_scriptItem);
70 }
71
72 [Test]
73 public void TestLlGetNotecardLine()
74 {
75 TestHelpers.InMethod();
76
77 string[] ncLines = { "One", "Twoè", "Three" };
78
79 TaskInventoryItem ncItem
80 = TaskInventoryHelpers.AddNotecard(m_scene.AssetService, m_so.RootPart, "nc", "1", "10", string.Join("\n", ncLines));
81
82 AssertValidNotecardLine(ncItem.Name, 0, ncLines[0]);
83 AssertValidNotecardLine(ncItem.Name, 2, ncLines[2]);
84 AssertValidNotecardLine(ncItem.Name, 3, ScriptBaseClass.EOF);
85 AssertValidNotecardLine(ncItem.Name, 4, ScriptBaseClass.EOF);
86
87 // XXX: Is this correct or do we really expect no dataserver event to fire at all?
88 AssertValidNotecardLine(ncItem.Name, -1, "");
89 AssertValidNotecardLine(ncItem.Name, -2, "");
90 }
91
92 [Test]
93 public void TestLlGetNotecardLine_NoNotecard()
94 {
95 TestHelpers.InMethod();
96
97 AssertInValidNotecardLine("nc", 0);
98 }
99
100 [Test]
101 public void TestLlGetNotecardLine_NotANotecard()
102 {
103 TestHelpers.InMethod();
104
105 TaskInventoryItem ncItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, m_so.RootPart, "nc1", "Not important");
106
107 AssertInValidNotecardLine(ncItem.Name, 0);
108 }
109
110 private void AssertValidNotecardLine(string ncName, int lineNumber, string assertLine)
111 {
112 string key = m_lslApi.llGetNotecardLine(ncName, lineNumber);
113 Assert.That(key, Is.Not.EqualTo(UUID.Zero.ToString()));
114
115 Assert.That(m_engine.PostedEvents.Count, Is.EqualTo(1));
116 Assert.That(m_engine.PostedEvents.ContainsKey(m_scriptItem.ItemID));
117
118 List<EventParams> events = m_engine.PostedEvents[m_scriptItem.ItemID];
119 Assert.That(events.Count, Is.EqualTo(1));
120 EventParams eventParams = events[0];
121
122 Assert.That(eventParams.EventName, Is.EqualTo("dataserver"));
123 Assert.That(eventParams.Params[0].ToString(), Is.EqualTo(key));
124 Assert.That(eventParams.Params[1].ToString(), Is.EqualTo(assertLine));
125
126 m_engine.ClearPostedEvents();
127 }
128
129 private void AssertInValidNotecardLine(string ncName, int lineNumber)
130 {
131 string key = m_lslApi.llGetNotecardLine(ncName, lineNumber);
132 Assert.That(key, Is.EqualTo(UUID.Zero.ToString()));
133
134 Assert.That(m_engine.PostedEvents.Count, Is.EqualTo(0));
135 }
136
137// [Test]
138// public void TestLlReleaseUrl()
139// {
140// TestHelpers.InMethod();
141//
142// m_lslApi.llRequestURL();
143// string returnedUri = m_engine.PostedEvents[m_scriptItem.ItemID][0].Params[2].ToString();
144//
145// {
146// // Check that the initial number of URLs is correct
147// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
148// }
149//
150// {
151// // Check releasing a non-url
152// m_lslApi.llReleaseURL("GARBAGE");
153// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
154// }
155//
156// {
157// // Check releasing a non-existing url
158// m_lslApi.llReleaseURL("http://example.com");
159// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
160// }
161//
162// {
163// // Check URL release
164// m_lslApi.llReleaseURL(returnedUri);
165// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls));
166//
167// HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(returnedUri);
168//
169// bool gotExpectedException = false;
170//
171// try
172// {
173// using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
174// {}
175// }
176// catch (WebException e)
177// {
178// using (HttpWebResponse response = (HttpWebResponse)e.Response)
179// gotExpectedException = response.StatusCode == HttpStatusCode.NotFound;
180// }
181//
182// Assert.That(gotExpectedException, Is.True);
183// }
184//
185// {
186// // Check releasing the same URL again
187// m_lslApi.llReleaseURL(returnedUri);
188// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls));
189// }
190// }
191//
192// [Test]
193// public void TestLlRequestUrl()
194// {
195// TestHelpers.InMethod();
196//
197// string requestId = m_lslApi.llRequestURL();
198// Assert.That(requestId, Is.Not.EqualTo(UUID.Zero.ToString()));
199// string returnedUri;
200//
201// {
202// // Check that URL is correctly set up
203// Assert.That(m_lslApi.llGetFreeURLs().value, Is.EqualTo(m_urlModule.TotalUrls - 1));
204//
205// Assert.That(m_engine.PostedEvents.ContainsKey(m_scriptItem.ItemID));
206//
207// List<EventParams> events = m_engine.PostedEvents[m_scriptItem.ItemID];
208// Assert.That(events.Count, Is.EqualTo(1));
209// EventParams eventParams = events[0];
210// Assert.That(eventParams.EventName, Is.EqualTo("http_request"));
211//
212// UUID returnKey;
213// string rawReturnKey = eventParams.Params[0].ToString();
214// string method = eventParams.Params[1].ToString();
215// returnedUri = eventParams.Params[2].ToString();
216//
217// Assert.That(UUID.TryParse(rawReturnKey, out returnKey), Is.True);
218// Assert.That(method, Is.EqualTo(ScriptBaseClass.URL_REQUEST_GRANTED));
219// Assert.That(Uri.IsWellFormedUriString(returnedUri, UriKind.Absolute), Is.True);
220// }
221//
222// {
223// // Check that request to URL works.
224// string testResponse = "Hello World";
225//
226// m_engine.ClearPostedEvents();
227// m_engine.PostEventHook
228// += (itemId, evp) => m_lslApi.llHTTPResponse(evp.Params[0].ToString(), 200, testResponse);
229//
230//// Console.WriteLine("Trying {0}", returnedUri);
231// HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(returnedUri);
232//
233// AssertHttpResponse(returnedUri, testResponse);
234//
235// Assert.That(m_engine.PostedEvents.ContainsKey(m_scriptItem.ItemID));
236//
237// List<EventParams> events = m_engine.PostedEvents[m_scriptItem.ItemID];
238// Assert.That(events.Count, Is.EqualTo(1));
239// EventParams eventParams = events[0];
240// Assert.That(eventParams.EventName, Is.EqualTo("http_request"));
241//
242// UUID returnKey;
243// string rawReturnKey = eventParams.Params[0].ToString();
244// string method = eventParams.Params[1].ToString();
245// string body = eventParams.Params[2].ToString();
246//
247// Assert.That(UUID.TryParse(rawReturnKey, out returnKey), Is.True);
248// Assert.That(method, Is.EqualTo("GET"));
249// Assert.That(body, Is.EqualTo(""));
250// }
251// }
252//
253// private void AssertHttpResponse(string uri, string expectedResponse)
254// {
255// HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(uri);
256//
257// using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
258// {
259// using (Stream stream = webResponse.GetResponseStream())
260// {
261// using (StreamReader reader = new StreamReader(stream))
262// {
263// Assert.That(reader.ReadToEnd(), Is.EqualTo(expectedResponse));
264// }
265// }
266// }
267// }
268 }
269}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiObjectTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiObjectTests.cs
new file mode 100644
index 0000000..d957bf2
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiObjectTests.cs
@@ -0,0 +1,398 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using System.Text;
32using log4net;
33using Nini.Config;
34using NUnit.Framework;
35using OpenMetaverse;
36using OpenMetaverse.Assets;
37using OpenMetaverse.StructuredData;
38using OpenSim.Framework;
39using OpenSim.Region.CoreModules.Avatar.AvatarFactory;
40using OpenSim.Region.OptionalModules.World.NPC;
41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
45using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
46using OpenSim.Services.Interfaces;
47using OpenSim.Tests.Common;
48using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
49using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
50
51namespace OpenSim.Region.ScriptEngine.Shared.Tests
52{
53 [TestFixture]
54 public class LSL_ApiObjectTests : OpenSimTestCase
55 {
56 private const double VECTOR_COMPONENT_ACCURACY = 0.0000005d;
57 private const float FLOAT_ACCURACY = 0.00005f;
58
59 protected Scene m_scene;
60 protected XEngine.XEngine m_engine;
61
62 [SetUp]
63 public override void SetUp()
64 {
65 base.SetUp();
66
67 IConfigSource initConfigSource = new IniConfigSource();
68 IConfig config = initConfigSource.AddConfig("XEngine");
69 config.Set("Enabled", "true");
70
71 m_scene = new SceneHelpers().SetupScene();
72 SceneHelpers.SetupSceneModules(m_scene, initConfigSource);
73
74 m_engine = new XEngine.XEngine();
75 m_engine.Initialise(initConfigSource);
76 m_engine.AddRegion(m_scene);
77 }
78
79 [Test]
80 public void TestllGetLinkPrimitiveParams()
81 {
82 TestHelpers.InMethod();
83 TestHelpers.EnableLogging();
84
85 UUID ownerId = TestHelpers.ParseTail(0x1);
86
87 SceneObjectGroup grp1 = SceneHelpers.CreateSceneObject(2, ownerId, "grp1-", 0x10);
88 grp1.AbsolutePosition = new Vector3(10, 11, 12);
89 m_scene.AddSceneObject(grp1);
90
91 LSL_Api apiGrp1 = new LSL_Api();
92 apiGrp1.Initialize(m_engine, grp1.RootPart, null);
93
94 // Check simple 1 prim case
95 {
96 LSL_List resList
97 = apiGrp1.llGetLinkPrimitiveParams(1, new LSL_List(new LSL_Integer(ScriptBaseClass.PRIM_ROTATION)));
98
99 Assert.That(resList.Length, Is.EqualTo(1));
100 }
101
102 // Check 2 prim case
103 {
104 LSL_List resList
105 = apiGrp1.llGetLinkPrimitiveParams(
106 1,
107 new LSL_List(
108 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION),
109 new LSL_Integer(ScriptBaseClass.PRIM_LINK_TARGET),
110 new LSL_Integer(2),
111 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION)));
112
113 Assert.That(resList.Length, Is.EqualTo(2));
114 }
115
116 // Check invalid parameters are ignored
117 {
118 LSL_List resList
119 = apiGrp1.llGetLinkPrimitiveParams(3, new LSL_List(new LSL_Integer(ScriptBaseClass.PRIM_ROTATION)));
120
121 Assert.That(resList.Length, Is.EqualTo(0));
122 }
123
124 // Check all parameters are ignored if an initial bad link is given
125 {
126 LSL_List resList
127 = apiGrp1.llGetLinkPrimitiveParams(
128 3,
129 new LSL_List(
130 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION),
131 new LSL_Integer(ScriptBaseClass.PRIM_LINK_TARGET),
132 new LSL_Integer(1),
133 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION)));
134
135 Assert.That(resList.Length, Is.EqualTo(0));
136 }
137
138 // Check only subsequent parameters are ignored when we hit the first bad link number
139 {
140 LSL_List resList
141 = apiGrp1.llGetLinkPrimitiveParams(
142 1,
143 new LSL_List(
144 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION),
145 new LSL_Integer(ScriptBaseClass.PRIM_LINK_TARGET),
146 new LSL_Integer(3),
147 new LSL_Integer(ScriptBaseClass.PRIM_ROTATION)));
148
149 Assert.That(resList.Length, Is.EqualTo(1));
150 }
151 }
152
153 [Test]
154 // llSetPrimitiveParams and llGetPrimitiveParams test.
155 public void TestllSetPrimitiveParams()
156 {
157 TestHelpers.InMethod();
158
159 // Create Prim1.
160 Scene scene = new SceneHelpers().SetupScene();
161 string obj1Name = "Prim1";
162 UUID objUuid = new UUID("00000000-0000-0000-0000-000000000001");
163 SceneObjectPart part1 =
164 new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default,
165 Vector3.Zero, Quaternion.Identity,
166 Vector3.Zero) { Name = obj1Name, UUID = objUuid };
167 Assert.That(scene.AddNewSceneObject(new SceneObjectGroup(part1), false), Is.True);
168
169 LSL_Api apiGrp1 = new LSL_Api();
170 apiGrp1.Initialize(m_engine, part1, null);
171
172 // Note that prim hollow check is passed with the other prim params in order to allow the
173 // specification of a different check value from the prim param. A cylinder, prism, sphere,
174 // torus or ring, with a hole shape of square, is limited to a hollow of 70%. Test 5 below
175 // specifies a value of 95% and checks to see if 70% was properly returned.
176
177 // Test a sphere.
178 CheckllSetPrimitiveParams(
179 apiGrp1,
180 "test 1", // Prim test identification string
181 new LSL_Types.Vector3(6.0d, 9.9d, 9.9d), // Prim size
182 ScriptBaseClass.PRIM_TYPE_SPHERE, // Prim type
183 ScriptBaseClass.PRIM_HOLE_DEFAULT, // Prim hole type
184 new LSL_Types.Vector3(0.0d, 0.075d, 0.0d), // Prim cut
185 0.80f, // Prim hollow
186 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim twist
187 new LSL_Types.Vector3(0.32d, 0.76d, 0.0d), // Prim dimple
188 0.80f); // Prim hollow check
189
190 // Test a prism.
191 CheckllSetPrimitiveParams(
192 apiGrp1,
193 "test 2", // Prim test identification string
194 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
195 ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
196 ScriptBaseClass.PRIM_HOLE_CIRCLE, // Prim hole type
197 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
198 0.90f, // Prim hollow
199 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim twist
200 new LSL_Types.Vector3(2.0d, 1.0d, 0.0d), // Prim taper
201 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
202 0.90f); // Prim hollow check
203
204 // Test a box.
205 CheckllSetPrimitiveParams(
206 apiGrp1,
207 "test 3", // Prim test identification string
208 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
209 ScriptBaseClass.PRIM_TYPE_BOX, // Prim type
210 ScriptBaseClass.PRIM_HOLE_TRIANGLE, // Prim hole type
211 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
212 0.99f, // Prim hollow
213 new LSL_Types.Vector3(1.0d, 0.0d, 0.0d), // Prim twist
214 new LSL_Types.Vector3(1.0d, 1.0d, 0.0d), // Prim taper
215 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
216 0.99f); // Prim hollow check
217
218 // Test a tube.
219 CheckllSetPrimitiveParams(
220 apiGrp1,
221 "test 4", // Prim test identification string
222 new LSL_Types.Vector3(4.2d, 4.2d, 4.2d), // Prim size
223 ScriptBaseClass.PRIM_TYPE_TUBE, // Prim type
224 ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
225 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
226 0.00f, // Prim hollow
227 new LSL_Types.Vector3(1.0d, -1.0d, 0.0d), // Prim twist
228 new LSL_Types.Vector3(1.0d, 0.05d, 0.0d), // Prim hole size
229 // Expression for y selected to test precision problems during byte
230 // cast in SetPrimitiveShapeParams.
231 new LSL_Types.Vector3(0.0d, 0.35d + 0.1d, 0.0d), // Prim shear
232 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim profile cut
233 // Expression for y selected to test precision problems during sbyte
234 // cast in SetPrimitiveShapeParams.
235 new LSL_Types.Vector3(-1.0d, 0.70d + 0.1d + 0.1d, 0.0d), // Prim taper
236 1.11f, // Prim revolutions
237 0.88f, // Prim radius
238 0.95f, // Prim skew
239 0.00f); // Prim hollow check
240
241 // Test a prism.
242 CheckllSetPrimitiveParams(
243 apiGrp1,
244 "test 5", // Prim test identification string
245 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
246 ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
247 ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
248 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
249 0.99f, // Prim hollow
250 // Expression for x selected to test precision problems during sbyte
251 // cast in SetPrimitiveShapeBlockParams.
252 new LSL_Types.Vector3(0.7d + 0.2d, 0.0d, 0.0d), // Prim twist
253 // Expression for y selected to test precision problems during sbyte
254 // cast in SetPrimitiveShapeParams.
255 new LSL_Types.Vector3(2.0d, (1.3d + 0.1d), 0.0d), // Prim taper
256 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
257 0.70f); // Prim hollow check
258
259 // Test a sculpted prim.
260 CheckllSetPrimitiveParams(
261 apiGrp1,
262 "test 6", // Prim test identification string
263 new LSL_Types.Vector3(2.0d, 2.0d, 2.0d), // Prim size
264 ScriptBaseClass.PRIM_TYPE_SCULPT, // Prim type
265 "be293869-d0d9-0a69-5989-ad27f1946fd4", // Prim map
266 ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE); // Prim sculpt type
267 }
268
269 // Set prim params for a box, cylinder or prism and check results.
270 public void CheckllSetPrimitiveParams(LSL_Api api, string primTest,
271 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
272 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primTaper, LSL_Types.Vector3 primShear,
273 float primHollowCheck)
274 {
275 // Set the prim params.
276 api.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
277 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
278 primCut, primHollow, primTwist, primTaper, primShear));
279
280 // Get params for prim to validate settings.
281 LSL_Types.list primParams =
282 api.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
283
284 // Validate settings.
285 CheckllSetPrimitiveParamsVector(primSize, api.llList2Vector(primParams, 0), primTest + " prim size");
286 Assert.AreEqual(primType, api.llList2Integer(primParams, 1),
287 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
288 Assert.AreEqual(primHoleType, api.llList2Integer(primParams, 2),
289 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
290 CheckllSetPrimitiveParamsVector(primCut, api.llList2Vector(primParams, 3), primTest + " prim cut");
291 Assert.AreEqual(primHollowCheck, api.llList2Float(primParams, 4), FLOAT_ACCURACY,
292 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
293 CheckllSetPrimitiveParamsVector(primTwist, api.llList2Vector(primParams, 5), primTest + " prim twist");
294 CheckllSetPrimitiveParamsVector(primTaper, api.llList2Vector(primParams, 6), primTest + " prim taper");
295 CheckllSetPrimitiveParamsVector(primShear, api.llList2Vector(primParams, 7), primTest + " prim shear");
296 }
297
298 // Set prim params for a sphere and check results.
299 public void CheckllSetPrimitiveParams(LSL_Api api, string primTest,
300 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
301 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primDimple, float primHollowCheck)
302 {
303 // Set the prim params.
304 api.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
305 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
306 primCut, primHollow, primTwist, primDimple));
307
308 // Get params for prim to validate settings.
309 LSL_Types.list primParams =
310 api.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
311
312 // Validate settings.
313 CheckllSetPrimitiveParamsVector(primSize, api.llList2Vector(primParams, 0), primTest + " prim size");
314 Assert.AreEqual(primType, api.llList2Integer(primParams, 1),
315 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
316 Assert.AreEqual(primHoleType, api.llList2Integer(primParams, 2),
317 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
318 CheckllSetPrimitiveParamsVector(primCut, api.llList2Vector(primParams, 3), primTest + " prim cut");
319 Assert.AreEqual(primHollowCheck, api.llList2Float(primParams, 4), FLOAT_ACCURACY,
320 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
321 CheckllSetPrimitiveParamsVector(primTwist, api.llList2Vector(primParams, 5), primTest + " prim twist");
322 CheckllSetPrimitiveParamsVector(primDimple, api.llList2Vector(primParams, 6), primTest + " prim dimple");
323 }
324
325 // Set prim params for a torus, tube or ring and check results.
326 public void CheckllSetPrimitiveParams(LSL_Api api, string primTest,
327 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
328 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primHoleSize,
329 LSL_Types.Vector3 primShear, LSL_Types.Vector3 primProfCut, LSL_Types.Vector3 primTaper,
330 float primRev, float primRadius, float primSkew, float primHollowCheck)
331 {
332 // Set the prim params.
333 api.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
334 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
335 primCut, primHollow, primTwist, primHoleSize, primShear, primProfCut,
336 primTaper, primRev, primRadius, primSkew));
337
338 // Get params for prim to validate settings.
339 LSL_Types.list primParams =
340 api.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
341
342 // Valdate settings.
343 CheckllSetPrimitiveParamsVector(primSize, api.llList2Vector(primParams, 0), primTest + " prim size");
344 Assert.AreEqual(primType, api.llList2Integer(primParams, 1),
345 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
346 Assert.AreEqual(primHoleType, api.llList2Integer(primParams, 2),
347 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
348 CheckllSetPrimitiveParamsVector(primCut, api.llList2Vector(primParams, 3), primTest + " prim cut");
349 Assert.AreEqual(primHollowCheck, api.llList2Float(primParams, 4), FLOAT_ACCURACY,
350 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
351 CheckllSetPrimitiveParamsVector(primTwist, api.llList2Vector(primParams, 5), primTest + " prim twist");
352 CheckllSetPrimitiveParamsVector(primHoleSize, api.llList2Vector(primParams, 6), primTest + " prim hole size");
353 CheckllSetPrimitiveParamsVector(primShear, api.llList2Vector(primParams, 7), primTest + " prim shear");
354 CheckllSetPrimitiveParamsVector(primProfCut, api.llList2Vector(primParams, 8), primTest + " prim profile cut");
355 CheckllSetPrimitiveParamsVector(primTaper, api.llList2Vector(primParams, 9), primTest + " prim taper");
356 Assert.AreEqual(primRev, api.llList2Float(primParams, 10), FLOAT_ACCURACY,
357 "TestllSetPrimitiveParams " + primTest + " prim revolutions fail");
358 Assert.AreEqual(primRadius, api.llList2Float(primParams, 11), FLOAT_ACCURACY,
359 "TestllSetPrimitiveParams " + primTest + " prim radius fail");
360 Assert.AreEqual(primSkew, api.llList2Float(primParams, 12), FLOAT_ACCURACY,
361 "TestllSetPrimitiveParams " + primTest + " prim skew fail");
362 }
363
364 // Set prim params for a sculpted prim and check results.
365 public void CheckllSetPrimitiveParams(LSL_Api api, string primTest,
366 LSL_Types.Vector3 primSize, int primType, string primMap, int primSculptType)
367 {
368 // Set the prim params.
369 api.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
370 ScriptBaseClass.PRIM_TYPE, primType, primMap, primSculptType));
371
372 // Get params for prim to validate settings.
373 LSL_Types.list primParams =
374 api.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
375
376 // Validate settings.
377 CheckllSetPrimitiveParamsVector(primSize, api.llList2Vector(primParams, 0), primTest + " prim size");
378 Assert.AreEqual(primType, api.llList2Integer(primParams, 1),
379 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
380 Assert.AreEqual(primMap, (string)api.llList2String(primParams, 2),
381 "TestllSetPrimitiveParams " + primTest + " prim map check fail");
382 Assert.AreEqual(primSculptType, api.llList2Integer(primParams, 3),
383 "TestllSetPrimitiveParams " + primTest + " prim type scuplt check fail");
384 }
385
386 public void CheckllSetPrimitiveParamsVector(LSL_Types.Vector3 vecCheck, LSL_Types.Vector3 vecReturned, string msg)
387 {
388 // Check each vector component against expected result.
389 Assert.AreEqual(vecCheck.x, vecReturned.x, VECTOR_COMPONENT_ACCURACY,
390 "TestllSetPrimitiveParams " + msg + " vector check fail on x component");
391 Assert.AreEqual(vecCheck.y, vecReturned.y, VECTOR_COMPONENT_ACCURACY,
392 "TestllSetPrimitiveParams " + msg + " vector check fail on y component");
393 Assert.AreEqual(vecCheck.z, vecReturned.z, VECTOR_COMPONENT_ACCURACY,
394 "TestllSetPrimitiveParams " + msg + " vector check fail on z component");
395 }
396
397 }
398}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
index c41d1e7..d929da8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
@@ -33,10 +33,10 @@ using OpenSim.Region.ScriptEngine.Shared;
33using OpenSim.Region.Framework.Scenes; 33using OpenSim.Region.Framework.Scenes;
34using Nini.Config; 34using Nini.Config;
35using OpenSim.Region.ScriptEngine.Shared.Api; 35using OpenSim.Region.ScriptEngine.Shared.Api;
36using OpenSim.Region.ScriptEngine.Shared.Instance;
36using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 37using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
37using OpenMetaverse; 38using OpenMetaverse;
38using System; 39using System;
39using OpenSim.Tests.Common.Mock;
40 40
41namespace OpenSim.Region.ScriptEngine.Shared.Tests 41namespace OpenSim.Region.ScriptEngine.Shared.Tests
42{ 42{
@@ -46,9 +46,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
46 [TestFixture, LongRunning] 46 [TestFixture, LongRunning]
47 public class LSL_ApiTest 47 public class LSL_ApiTest
48 { 48 {
49 private const double ANGLE_ACCURACY_IN_RADIANS = 1E-6;
50 private const double VECTOR_COMPONENT_ACCURACY = 0.0000005d; 49 private const double VECTOR_COMPONENT_ACCURACY = 0.0000005d;
51 private const float FLOAT_ACCURACY = 0.00005f; 50 private const double ANGLE_ACCURACY_IN_RADIANS = 1E-6;
52 private LSL_Api m_lslApi; 51 private LSL_Api m_lslApi;
53 52
54 [SetUp] 53 [SetUp]
@@ -254,241 +253,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
254 } 253 }
255 254
256 [Test] 255 [Test]
257 // llSetPrimitiveParams and llGetPrimitiveParams test.
258 public void TestllSetPrimitiveParams()
259 {
260 TestHelpers.InMethod();
261
262 // Create Prim1.
263 Scene scene = new SceneHelpers().SetupScene();
264 string obj1Name = "Prim1";
265 UUID objUuid = new UUID("00000000-0000-0000-0000-000000000001");
266 SceneObjectPart part1 =
267 new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default,
268 Vector3.Zero, Quaternion.Identity,
269 Vector3.Zero) { Name = obj1Name, UUID = objUuid };
270 Assert.That(scene.AddNewSceneObject(new SceneObjectGroup(part1), false), Is.True);
271
272 // Note that prim hollow check is passed with the other prim params in order to allow the
273 // specification of a different check value from the prim param. A cylinder, prism, sphere,
274 // torus or ring, with a hole shape of square, is limited to a hollow of 70%. Test 5 below
275 // specifies a value of 95% and checks to see if 70% was properly returned.
276
277 // Test a sphere.
278 CheckllSetPrimitiveParams(
279 "test 1", // Prim test identification string
280 new LSL_Types.Vector3(6.0d, 9.9d, 9.9d), // Prim size
281 ScriptBaseClass.PRIM_TYPE_SPHERE, // Prim type
282 ScriptBaseClass.PRIM_HOLE_DEFAULT, // Prim hole type
283 new LSL_Types.Vector3(0.0d, 0.075d, 0.0d), // Prim cut
284 0.80f, // Prim hollow
285 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim twist
286 new LSL_Types.Vector3(0.32d, 0.76d, 0.0d), // Prim dimple
287 0.80f); // Prim hollow check
288
289 // Test a prism.
290 CheckllSetPrimitiveParams(
291 "test 2", // Prim test identification string
292 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
293 ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
294 ScriptBaseClass.PRIM_HOLE_CIRCLE, // Prim hole type
295 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
296 0.90f, // Prim hollow
297 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim twist
298 new LSL_Types.Vector3(2.0d, 1.0d, 0.0d), // Prim taper
299 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
300 0.90f); // Prim hollow check
301
302 // Test a box.
303 CheckllSetPrimitiveParams(
304 "test 3", // Prim test identification string
305 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
306 ScriptBaseClass.PRIM_TYPE_BOX, // Prim type
307 ScriptBaseClass.PRIM_HOLE_TRIANGLE, // Prim hole type
308 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
309 0.95f, // Prim hollow
310 new LSL_Types.Vector3(1.0d, 0.0d, 0.0d), // Prim twist
311 new LSL_Types.Vector3(1.0d, 1.0d, 0.0d), // Prim taper
312 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
313 0.95f); // Prim hollow check
314
315 // Test a tube.
316 CheckllSetPrimitiveParams(
317 "test 4", // Prim test identification string
318 new LSL_Types.Vector3(4.2d, 4.2d, 4.2d), // Prim size
319 ScriptBaseClass.PRIM_TYPE_TUBE, // Prim type
320 ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
321 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
322 0.00f, // Prim hollow
323 new LSL_Types.Vector3(1.0d, -1.0d, 0.0d), // Prim twist
324 new LSL_Types.Vector3(1.0d, 0.05d, 0.0d), // Prim hole size
325 // Expression for y selected to test precision problems during byte
326 // cast in SetPrimitiveShapeParams.
327 new LSL_Types.Vector3(0.0d, 0.35d + 0.1d, 0.0d), // Prim shear
328 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim profile cut
329 // Expression for y selected to test precision problems during sbyte
330 // cast in SetPrimitiveShapeParams.
331 new LSL_Types.Vector3(-1.0d, 0.70d + 0.1d + 0.1d, 0.0d), // Prim taper
332 1.11f, // Prim revolutions
333 0.88f, // Prim radius
334 0.95f, // Prim skew
335 0.00f); // Prim hollow check
336
337 // Test a prism.
338 CheckllSetPrimitiveParams(
339 "test 5", // Prim test identification string
340 new LSL_Types.Vector3(3.5d, 3.5d, 3.5d), // Prim size
341 ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
342 ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
343 new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
344 0.95f, // Prim hollow
345 // Expression for x selected to test precision problems during sbyte
346 // cast in SetPrimitiveShapeBlockParams.
347 new LSL_Types.Vector3(0.7d + 0.2d, 0.0d, 0.0d), // Prim twist
348 // Expression for y selected to test precision problems during sbyte
349 // cast in SetPrimitiveShapeParams.
350 new LSL_Types.Vector3(2.0d, (1.3d + 0.1d), 0.0d), // Prim taper
351 new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
352 0.70f); // Prim hollow check
353
354 // Test a sculpted prim.
355 CheckllSetPrimitiveParams(
356 "test 6", // Prim test identification string
357 new LSL_Types.Vector3(2.0d, 2.0d, 2.0d), // Prim size
358 ScriptBaseClass.PRIM_TYPE_SCULPT, // Prim type
359 "be293869-d0d9-0a69-5989-ad27f1946fd4", // Prim map
360 ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE); // Prim sculpt type
361 }
362
363 // Set prim params for a box, cylinder or prism and check results.
364 public void CheckllSetPrimitiveParams(string primTest,
365 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
366 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primTaper, LSL_Types.Vector3 primShear,
367 float primHollowCheck)
368 {
369 // Set the prim params.
370 m_lslApi.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
371 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
372 primCut, primHollow, primTwist, primTaper, primShear));
373
374 // Get params for prim to validate settings.
375 LSL_Types.list primParams =
376 m_lslApi.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
377
378 // Validate settings.
379 CheckllSetPrimitiveParamsVector(primSize, m_lslApi.llList2Vector(primParams, 0), primTest + " prim size");
380 Assert.AreEqual(primType, m_lslApi.llList2Integer(primParams, 1),
381 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
382 Assert.AreEqual(primHoleType, m_lslApi.llList2Integer(primParams, 2),
383 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
384 CheckllSetPrimitiveParamsVector(primCut, m_lslApi.llList2Vector(primParams, 3), primTest + " prim cut");
385 Assert.AreEqual(primHollowCheck, m_lslApi.llList2Float(primParams, 4), FLOAT_ACCURACY,
386 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
387 CheckllSetPrimitiveParamsVector(primTwist, m_lslApi.llList2Vector(primParams, 5), primTest + " prim twist");
388 CheckllSetPrimitiveParamsVector(primTaper, m_lslApi.llList2Vector(primParams, 6), primTest + " prim taper");
389 CheckllSetPrimitiveParamsVector(primShear, m_lslApi.llList2Vector(primParams, 7), primTest + " prim shear");
390 }
391
392 // Set prim params for a sphere and check results.
393 public void CheckllSetPrimitiveParams(string primTest,
394 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
395 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primDimple, float primHollowCheck)
396 {
397 // Set the prim params.
398 m_lslApi.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
399 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
400 primCut, primHollow, primTwist, primDimple));
401
402 // Get params for prim to validate settings.
403 LSL_Types.list primParams =
404 m_lslApi.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
405
406 // Validate settings.
407 CheckllSetPrimitiveParamsVector(primSize, m_lslApi.llList2Vector(primParams, 0), primTest + " prim size");
408 Assert.AreEqual(primType, m_lslApi.llList2Integer(primParams, 1),
409 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
410 Assert.AreEqual(primHoleType, m_lslApi.llList2Integer(primParams, 2),
411 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
412 CheckllSetPrimitiveParamsVector(primCut, m_lslApi.llList2Vector(primParams, 3), primTest + " prim cut");
413 Assert.AreEqual(primHollowCheck, m_lslApi.llList2Float(primParams, 4), FLOAT_ACCURACY,
414 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
415 CheckllSetPrimitiveParamsVector(primTwist, m_lslApi.llList2Vector(primParams, 5), primTest + " prim twist");
416 CheckllSetPrimitiveParamsVector(primDimple, m_lslApi.llList2Vector(primParams, 6), primTest + " prim dimple");
417 }
418
419 // Set prim params for a torus, tube or ring and check results.
420 public void CheckllSetPrimitiveParams(string primTest,
421 LSL_Types.Vector3 primSize, int primType, int primHoleType, LSL_Types.Vector3 primCut,
422 float primHollow, LSL_Types.Vector3 primTwist, LSL_Types.Vector3 primHoleSize,
423 LSL_Types.Vector3 primShear, LSL_Types.Vector3 primProfCut, LSL_Types.Vector3 primTaper,
424 float primRev, float primRadius, float primSkew, float primHollowCheck)
425 {
426 // Set the prim params.
427 m_lslApi.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
428 ScriptBaseClass.PRIM_TYPE, primType, primHoleType,
429 primCut, primHollow, primTwist, primHoleSize, primShear, primProfCut,
430 primTaper, primRev, primRadius, primSkew));
431
432 // Get params for prim to validate settings.
433 LSL_Types.list primParams =
434 m_lslApi.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
435
436 // Valdate settings.
437 CheckllSetPrimitiveParamsVector(primSize, m_lslApi.llList2Vector(primParams, 0), primTest + " prim size");
438 Assert.AreEqual(primType, m_lslApi.llList2Integer(primParams, 1),
439 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
440 Assert.AreEqual(primHoleType, m_lslApi.llList2Integer(primParams, 2),
441 "TestllSetPrimitiveParams " + primTest + " prim hole default check fail");
442 CheckllSetPrimitiveParamsVector(primCut, m_lslApi.llList2Vector(primParams, 3), primTest + " prim cut");
443 Assert.AreEqual(primHollowCheck, m_lslApi.llList2Float(primParams, 4), FLOAT_ACCURACY,
444 "TestllSetPrimitiveParams " + primTest + " prim hollow check fail");
445 CheckllSetPrimitiveParamsVector(primTwist, m_lslApi.llList2Vector(primParams, 5), primTest + " prim twist");
446 CheckllSetPrimitiveParamsVector(primHoleSize, m_lslApi.llList2Vector(primParams, 6), primTest + " prim hole size");
447 CheckllSetPrimitiveParamsVector(primShear, m_lslApi.llList2Vector(primParams, 7), primTest + " prim shear");
448 CheckllSetPrimitiveParamsVector(primProfCut, m_lslApi.llList2Vector(primParams, 8), primTest + " prim profile cut");
449 CheckllSetPrimitiveParamsVector(primTaper, m_lslApi.llList2Vector(primParams, 9), primTest + " prim taper");
450 Assert.AreEqual(primRev, m_lslApi.llList2Float(primParams, 10), FLOAT_ACCURACY,
451 "TestllSetPrimitiveParams " + primTest + " prim revolutions fail");
452 Assert.AreEqual(primRadius, m_lslApi.llList2Float(primParams, 11), FLOAT_ACCURACY,
453 "TestllSetPrimitiveParams " + primTest + " prim radius fail");
454 Assert.AreEqual(primSkew, m_lslApi.llList2Float(primParams, 12), FLOAT_ACCURACY,
455 "TestllSetPrimitiveParams " + primTest + " prim skew fail");
456 }
457
458 // Set prim params for a sculpted prim and check results.
459 public void CheckllSetPrimitiveParams(string primTest,
460 LSL_Types.Vector3 primSize, int primType, string primMap, int primSculptType)
461 {
462 // Set the prim params.
463 m_lslApi.llSetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, primSize,
464 ScriptBaseClass.PRIM_TYPE, primType, primMap, primSculptType));
465
466 // Get params for prim to validate settings.
467 LSL_Types.list primParams =
468 m_lslApi.llGetPrimitiveParams(new LSL_Types.list(ScriptBaseClass.PRIM_SIZE, ScriptBaseClass.PRIM_TYPE));
469
470 // Validate settings.
471 CheckllSetPrimitiveParamsVector(primSize, m_lslApi.llList2Vector(primParams, 0), primTest + " prim size");
472 Assert.AreEqual(primType, m_lslApi.llList2Integer(primParams, 1),
473 "TestllSetPrimitiveParams " + primTest + " prim type check fail");
474 Assert.AreEqual(primMap, (string)m_lslApi.llList2String(primParams, 2),
475 "TestllSetPrimitiveParams " + primTest + " prim map check fail");
476 Assert.AreEqual(primSculptType, m_lslApi.llList2Integer(primParams, 3),
477 "TestllSetPrimitiveParams " + primTest + " prim type scuplt check fail");
478 }
479
480 public void CheckllSetPrimitiveParamsVector(LSL_Types.Vector3 vecCheck, LSL_Types.Vector3 vecReturned, string msg)
481 {
482 // Check each vector component against expected result.
483 Assert.AreEqual(vecCheck.x, vecReturned.x, VECTOR_COMPONENT_ACCURACY,
484 "TestllSetPrimitiveParams " + msg + " vector check fail on x component");
485 Assert.AreEqual(vecCheck.y, vecReturned.y, VECTOR_COMPONENT_ACCURACY,
486 "TestllSetPrimitiveParams " + msg + " vector check fail on y component");
487 Assert.AreEqual(vecCheck.z, vecReturned.z, VECTOR_COMPONENT_ACCURACY,
488 "TestllSetPrimitiveParams " + msg + " vector check fail on z component");
489 }
490
491 [Test]
492 public void TestllVecNorm() 256 public void TestllVecNorm()
493 { 257 {
494 TestHelpers.InMethod(); 258 TestHelpers.InMethod();
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiUserTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiUserTests.cs
new file mode 100644
index 0000000..a8964bf
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiUserTests.cs
@@ -0,0 +1,157 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Threading;
31using Nini.Config;
32using NUnit.Framework;
33using OpenMetaverse;
34using OpenSim.Framework;
35using OpenSim.Region.Framework.Scenes;
36using OpenSim.Region.ScriptEngine.Shared.Api;
37using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
38using OpenSim.Services.Interfaces;
39using OpenSim.Tests.Common;
40
41namespace OpenSim.Region.ScriptEngine.Shared.Tests
42{
43 [TestFixture]
44 public class LSL_ApiUserTests : OpenSimTestCase
45 {
46 private Scene m_scene;
47 private MockScriptEngine m_engine;
48
49 [SetUp]
50 public override void SetUp()
51 {
52 base.SetUp();
53
54 m_engine = new MockScriptEngine();
55
56 m_scene = new SceneHelpers().SetupScene();
57 SceneHelpers.SetupSceneModules(m_scene, m_engine);
58 }
59
60 [Test]
61 public void TestLlRequestAgentDataOnline()
62 {
63 TestHelpers.InMethod();
64// TestHelpers.EnableLogging();
65
66 UUID userId = TestHelpers.ParseTail(0x1);
67
68 UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(m_scene, userId);
69
70 SceneObjectPart part = SceneHelpers.AddSceneObject(m_scene).RootPart;
71 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, part);
72
73 LSL_Api apiGrp1 = new LSL_Api();
74 apiGrp1.Initialize(m_engine, part, scriptItem);
75
76 // Initially long timeout to test cache
77 apiGrp1.LlRequestAgentDataCacheTimeoutMs = 20000;
78
79 // Offline test
80 {
81 apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);
82
83 Assert.That(m_engine.PostedEvents.ContainsKey(scriptItem.ItemID));
84
85 List<EventParams> events = m_engine.PostedEvents[scriptItem.ItemID];
86 Assert.That(events.Count, Is.EqualTo(1));
87 EventParams eventParams = events[0];
88 Assert.That(eventParams.EventName, Is.EqualTo("dataserver"));
89
90 string data = eventParams.Params[1].ToString();
91 Assert.AreEqual(0, int.Parse(data));
92
93 m_engine.PostedEvents.Clear();
94 }
95
96 // Online test. Should get the 'wrong' result because of caching.
97 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1);
98
99 {
100 apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);
101
102 Assert.That(m_engine.PostedEvents.ContainsKey(scriptItem.ItemID));
103
104 List<EventParams> events = m_engine.PostedEvents[scriptItem.ItemID];
105 Assert.That(events.Count, Is.EqualTo(1));
106 EventParams eventParams = events[0];
107 Assert.That(eventParams.EventName, Is.EqualTo("dataserver"));
108
109 string data = eventParams.Params[1].ToString();
110 Assert.AreEqual(0, int.Parse(data));
111
112 m_engine.PostedEvents.Clear();
113 }
114
115 apiGrp1.LlRequestAgentDataCacheTimeoutMs = 1;
116
117 // Make absolutely sure that we should trigger cache timeout.
118 Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 1);
119
120 {
121 apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);
122
123 Assert.That(m_engine.PostedEvents.ContainsKey(scriptItem.ItemID));
124
125 List<EventParams> events = m_engine.PostedEvents[scriptItem.ItemID];
126 Assert.That(events.Count, Is.EqualTo(1));
127 EventParams eventParams = events[0];
128 Assert.That(eventParams.EventName, Is.EqualTo("dataserver"));
129
130 string data = eventParams.Params[1].ToString();
131 Assert.AreEqual(1, int.Parse(data));
132
133 m_engine.PostedEvents.Clear();
134 }
135
136 m_scene.CloseAgent(userId, false);
137
138 Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 1 + 1);
139
140 {
141 apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);
142
143 Assert.That(m_engine.PostedEvents.ContainsKey(scriptItem.ItemID));
144
145 List<EventParams> events = m_engine.PostedEvents[scriptItem.ItemID];
146 Assert.That(events.Count, Is.EqualTo(1));
147 EventParams eventParams = events[0];
148 Assert.That(eventParams.EventName, Is.EqualTo("dataserver"));
149
150 string data = eventParams.Params[1].ToString();
151 Assert.AreEqual(0, int.Parse(data));
152
153 m_engine.PostedEvents.Clear();
154 }
155 }
156 }
157}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAppearanceTest.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAppearanceTest.cs
index 1381d2b..2f9a564 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAppearanceTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAppearanceTest.cs
@@ -41,9 +41,9 @@ using OpenSim.Region.OptionalModules.World.NPC;
41using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared; 42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api; 43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
44using OpenSim.Services.Interfaces; 45using OpenSim.Services.Interfaces;
45using OpenSim.Tests.Common; 46using OpenSim.Tests.Common;
46using OpenSim.Tests.Common.Mock;
47 47
48namespace OpenSim.Region.ScriptEngine.Shared.Tests 48namespace OpenSim.Region.ScriptEngine.Shared.Tests
49{ 49{
@@ -158,4 +158,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
158 Assert.That(savedAppearance.AvatarHeight, Is.EqualTo(sp.Appearance.AvatarHeight)); 158 Assert.That(savedAppearance.AvatarHeight, Is.EqualTo(sp.Appearance.AvatarHeight));
159 } 159 }
160 } 160 }
161} \ No newline at end of file 161}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAttachmentTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAttachmentTests.cs
index 5ed1f3d..b6b3f12 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAttachmentTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiAttachmentTests.cs
@@ -41,9 +41,9 @@ using OpenSim.Region.CoreModules.Framework.InventoryAccess;
41using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Region.ScriptEngine.Shared; 42using OpenSim.Region.ScriptEngine.Shared;
43using OpenSim.Region.ScriptEngine.Shared.Api; 43using OpenSim.Region.ScriptEngine.Shared.Api;
44using OpenSim.Region.ScriptEngine.Shared.Instance;
44using OpenSim.Services.Interfaces; 45using OpenSim.Services.Interfaces;
45using OpenSim.Tests.Common; 46using OpenSim.Tests.Common;
46using OpenSim.Tests.Common.Mock;
47 47
48namespace OpenSim.Region.ScriptEngine.Shared.Tests 48namespace OpenSim.Region.ScriptEngine.Shared.Tests
49{ 49{
@@ -96,7 +96,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
96 UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(m_scene, 0x1); 96 UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(m_scene, 0x1);
97 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1.PrincipalID); 97 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1.PrincipalID);
98 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID); 98 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID);
99 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene, inWorldObj.RootPart); 99 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, inWorldObj.RootPart);
100 100
101 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem); 101 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem);
102 OSSL_Api osslApi = new OSSL_Api(); 102 OSSL_Api osslApi = new OSSL_Api();
@@ -105,7 +105,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
105// SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, ua1.PrincipalID); 105// SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, ua1.PrincipalID);
106 106
107 // Create an object embedded inside the first 107 // Create an object embedded inside the first
108 TaskInventoryHelpers.AddSceneObject(m_scene, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, ua1.PrincipalID); 108 TaskInventoryHelpers.AddSceneObject(m_scene.AssetService, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, ua1.PrincipalID);
109 109
110 osslApi.osForceAttachToAvatarFromInventory(taskInvObjItemName, (int)attachPoint); 110 osslApi.osForceAttachToAvatarFromInventory(taskInvObjItemName, (int)attachPoint);
111 111
@@ -142,7 +142,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
142 UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(m_scene, 0x1); 142 UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(m_scene, 0x1);
143 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1.PrincipalID); 143 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1.PrincipalID);
144 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID); 144 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID);
145 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene, inWorldObj.RootPart); 145 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, inWorldObj.RootPart);
146 146
147 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem); 147 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem);
148 OSSL_Api osslApi = new OSSL_Api(); 148 OSSL_Api osslApi = new OSSL_Api();
@@ -150,7 +150,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
150 150
151 // Create an object embedded inside the first 151 // Create an object embedded inside the first
152 TaskInventoryHelpers.AddNotecard( 152 TaskInventoryHelpers.AddNotecard(
153 m_scene, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, TestHelpers.ParseTail(0x900)); 153 m_scene.AssetService, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, TestHelpers.ParseTail(0x900), "Hello World!");
154 154
155 bool exceptionCaught = false; 155 bool exceptionCaught = false;
156 156
@@ -190,14 +190,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
190 190
191 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1); 191 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, ua1);
192 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID); 192 SceneObjectGroup inWorldObj = SceneHelpers.AddSceneObject(m_scene, "inWorldObj", ua1.PrincipalID);
193 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene, inWorldObj.RootPart); 193 TaskInventoryItem scriptItem = TaskInventoryHelpers.AddScript(m_scene.AssetService, inWorldObj.RootPart);
194 194
195 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem); 195 new LSL_Api().Initialize(m_engine, inWorldObj.RootPart, scriptItem);
196 OSSL_Api osslApi = new OSSL_Api(); 196 OSSL_Api osslApi = new OSSL_Api();
197 osslApi.Initialize(m_engine, inWorldObj.RootPart, scriptItem); 197 osslApi.Initialize(m_engine, inWorldObj.RootPart, scriptItem);
198 198
199 // Create an object embedded inside the first 199 // Create an object embedded inside the first
200 TaskInventoryHelpers.AddSceneObject(m_scene, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, ua1.PrincipalID); 200 TaskInventoryHelpers.AddSceneObject(
201 m_scene.AssetService, inWorldObj.RootPart, taskInvObjItemName, taskInvObjItemId, ua1.PrincipalID);
201 202
202 ScenePresence sp2 = SceneHelpers.AddScenePresence(m_scene, ua2); 203 ScenePresence sp2 = SceneHelpers.AddScenePresence(m_scene, ua2);
203 204
@@ -228,4 +229,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
228 Assert.That(sp2.Appearance.GetAttachpoint(attachmentsInAppearance2[0].ItemID), Is.EqualTo((uint)attachPoint)); 229 Assert.That(sp2.Appearance.GetAttachpoint(attachmentsInAppearance2[0].ItemID), Is.EqualTo((uint)attachPoint));
229 } 230 }
230 } 231 }
231} \ No newline at end of file 232}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
index d6c82f1..99bff83 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
@@ -42,10 +42,10 @@ using OpenSim.Region.OptionalModules.World.NPC;
42using OpenSim.Region.Framework.Scenes; 42using OpenSim.Region.Framework.Scenes;
43using OpenSim.Region.ScriptEngine.Shared; 43using OpenSim.Region.ScriptEngine.Shared;
44using OpenSim.Region.ScriptEngine.Shared.Api; 44using OpenSim.Region.ScriptEngine.Shared.Api;
45using OpenSim.Region.ScriptEngine.Shared.Instance;
45using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 46using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
46using OpenSim.Services.Interfaces; 47using OpenSim.Services.Interfaces;
47using OpenSim.Tests.Common; 48using OpenSim.Tests.Common;
48using OpenSim.Tests.Common.Mock;
49 49
50namespace OpenSim.Region.ScriptEngine.Shared.Tests 50namespace OpenSim.Region.ScriptEngine.Shared.Tests
51{ 51{
@@ -179,6 +179,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
179 public void TestOsNpcLoadAppearance() 179 public void TestOsNpcLoadAppearance()
180 { 180 {
181 TestHelpers.InMethod(); 181 TestHelpers.InMethod();
182 //TestHelpers.EnableLogging();
182 183
183 // Store an avatar with a different height from default in a notecard. 184 // Store an avatar with a different height from default in a notecard.
184 UUID userId = TestHelpers.ParseTail(0x1); 185 UUID userId = TestHelpers.ParseTail(0x1);
@@ -221,7 +222,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
221 // Store an avatar with a different height from default in a notecard. 222 // Store an avatar with a different height from default in a notecard.
222 UUID userId = TestHelpers.ParseTail(0x1); 223 UUID userId = TestHelpers.ParseTail(0x1);
223 float firstHeight = 1.9f; 224 float firstHeight = 1.9f;
224 float secondHeight = 2.1f; 225// float secondHeight = 2.1f;
225 string firstAppearanceNcName = "appearanceNc1"; 226 string firstAppearanceNcName = "appearanceNc1";
226 string secondAppearanceNcName = "appearanceNc2"; 227 string secondAppearanceNcName = "appearanceNc2";
227 228
@@ -347,4 +348,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
347 Assert.That(npc, Is.Null); 348 Assert.That(npc, Is.Null);
348 } 349 }
349 } 350 }
350} \ No newline at end of file 351}