aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-06-05Mantis#1451. Thank you kindly, Mikem for a patch that addresses:Charles Krinke1-1/+1
LSL scripts in which a float type is cast to a string or a string type is cast to a float do not compile. When the script is translated from LSL to C#, the LSL float type is translated into double. There is no string <-> double cast in C#, so compilation fails. There is a LSLFloat type, however it seems unfinished and is not used. I am attaching a patch that implements the LSLFloat type. I have also added two methods to the LSLString type to facilitate float <-> string casts.
2008-05-30Update svn properties. Formatting cleanup.Jeff Ames1-4/+4
2008-05-29* Fix string literal with URL + LLcommand();Teravus Ovares1-5/+5
* Added 'detected around: value' when a x.Y detect occurs to help debug. * Fixed object text is too long to store to the database (wikilith)
2008-05-28* Resolves comment removal in string literals in the LSL2CSConverterTeravus Ovares1-17/+19
2008-05-27another take on the whole string cleansing, by adding specific poisonSean Dague1-2/+5
keywords in foo.bar strings. Add items to the poison array to block them.
2008-05-27* Revert last commit as it opens sim owners up to all sorts of nasty ↵Teravus Ovares1-3/+3
scripts. * If the regex that we're using isn't good enough, we really need to make it better.
2008-05-27comment out the x.y security check in the script engine because it's so ↵Sean Dague1-3/+6
aggressive it blocks string = "http://osgrid.org", amoung other things.
2008-05-18Formatting cleanup, minor refactoring. Fixed some comparisons of value ↵Jeff Ames1-12/+3
types and null.
2008-05-17* whoops, misplaced / where should have been \Teravus Ovares1-1/+1
2008-05-17* Update on the script engine LSL parser. Blocks all static objects and ↵Teravus Ovares1-8/+50
method references.
2008-05-16Formatting cleanup.Jeff Ames1-23/+4
2008-05-13* Tweaked a regex that was returning invalid results in some cases.Teravus Ovares1-1/+1
2008-05-07Thank you, Middelink for a patch that fixes the regular expresionCharles Krinke1-2/+2
missing the numbers after the initial letter of the identifier.
2008-04-30Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or ↵Teravus Ovares1-241/+9
explicitly in many cases Thanks Melanie! * Also, I moved the event parser and re-writer to a separate static object. More work will be done here shortly.
2008-04-26* For info about this commit, see last commit.Teravus Ovares1-3/+16
2008-04-26* Error on System. references with 'CS20003: 'System' is null or not an object"Teravus Ovares1-0/+5
2008-04-25* Implements llTarget, llTargetRemove, at_target(), not_at_target()Teravus Ovares1-5/+5
2008-04-23* Fixed an annoying pop-up box when crossing borders.Teravus Ovares1-2/+2
2008-04-23* Fixes lsl scripts with no state_entry event at allTeravus Ovares1-1/+39
* Fixes event reporting on states with no state_entry in lsl scripts.
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-11/+11
(this took a while to run).
2008-04-20* Fixed up event discovery regexes to work with a specific string format m#1012Teravus Ovares1-2/+2
2008-04-20* Updates LSL2CS converterTeravus Ovares1-1/+199
* All objects are not touchable by default now * When a script listens for one of the touch events in the state, an object becomes touchable. * All LSL scripts report which events they consume now ** This uses semi-complicated Regex to discover the events, stick them in a dictionary, and then write a method call into each script state's state_entry() event. ** Tedd may figure out a better way to do this in the future. For now, this works for LSL.
2008-04-15Fixed LSL State support.Teravus Ovares1-33/+43
* Re-applied Tedd's patch that got overwritten. * Replaced (state)\s+([^;\n\r]+)([\r\n\s];) with (state)\s+([^;\n\r]+)(;[\r\n\s]) * Added a state(string) method to BuiltIn_Commands_BaseClass
2008-03-18Formatting cleanup.Jeff Ames1-29/+26
2008-02-20Minor cleanup.Jeff Ames1-1/+1
2008-02-10The very beginnings of attachments (no detachments! :)Dalien Talbot1-14/+7
2008-02-10Bugfix to state command:Tedd Hansen1-2/+6
"state default;" rewrite to "state ("default");"
2008-02-10Bugfix on that last Quaternion/Vector patchTedd Hansen1-2/+2
2008-02-10Untested bugfix in state supportTedd Hansen1-4/+7
Replaced (?<s1>(?![a-zA-Z_]+)\s*)" + @"([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){ with (?<s1>(?![a-zA-Z_]+)\s*)" + @"(state\s+)?([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){ Lets see what happens now... :)
2008-02-10Added support for function calls as values in LSL-specific <0,0,0> and ↵Tedd Hansen1-2/+2
<0,0,0,0> Quaternion and Vector
2008-02-06Fixed regex in LSL2CSConverter so it will properly handle casting to ↵alondria1-2/+2
(string) part of vector (eg. vector.z) This fixes Mantis 388
2008-02-02Temporarily disabled AllowedCompilers so all 3 compilers are allowed.Tedd Hansen1-29/+11
Fixed bug in how code is handled, hopefully we can now run all 3 languages? :)
2008-01-22Giving Mantis #388 a shotTedd Hansen1-2/+3
2008-01-15* Mother of all commits:Adam Frisby1-18/+19
* Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
2008-01-12Major reorganizing of DotNetEngine. Moved common script engine parts to ↵Tedd Hansen1-1/+1
ScriptEngine.Common, only .Net-specific code in DotNetEngine. AppDomains, event handling, event execution queue and multithreading, script load/unload queue, etc has been moved to ScriptEngine.Common. Loads of things has been put into interfaces instead of the specific class. We are now one step closer to ScriptServer, and its very easy to implement new script languages. Just a few lines required to make them a OpenSim script module with all its glory.
2008-01-01Fixed string issue in compilerTedd Hansen1-1/+1
2007-12-31Correction of last commitTedd Hansen1-1/+1
2007-12-30In this commit I am using an editor feature called "Save All" before I commit.Tedd Hansen1-0/+4
2007-12-27* Optimized usingslbsa711-2/+2
* shortened references * Removed redundant 'this' * Normalized EOF
2007-12-18Many Thanks to Alondria for adding:Charles Krinke1-2/+2
The list type and a bunch of support functions to LSL Added/ReImplmented: llGetListLength(), llList2Integer(), osList2Double() (note rename), llList2Float(), llList2String(), llList2Key(), llList2Vector(), llList2Rot(), llList2List(), llDeleteSubList(), llGetListEntryType(), llList2CSV(), llCSV2List(), llListInsertList(), llDumpList2String(), Borked Still: llListSort(), llListRandomize(), llList2ListStrided(), llListFindList(), Changed: llHTTPRequest() (Made wrapper of LSL_Types.list->List<string>)
2007-12-15Thanks again to Alondria for adding: math support forCharles Krinke1-4/+7
rot * rot, vec / rot, == and != overriders for Rotations and Vectors. Also: llRotBetween(), llGetRegionTimeDilation(). And fixing: Error in LSL2CSConverter that botched a variable with a type name in it (ex: rotationCenter) Fixed: Error in LSL2CSConverter that parsed which() loops incorrectly. Fixed: Changed definition of Quaternion to <x, y, z, r> from <x, y, z, t> (As per LSL) Finished: llEuler2Rot()
2007-12-14Again, thanks to Alondria for: adding llGetTime, llResetTime, and ↵Charles Krinke1-3/+3
llGetAndResetTime. Also for fixing Rot/Vector Regex from being too greedy by removing bug in the LSL->C# converter that was causing the vector and rotation parser.
2007-12-09"list" becomes "List" in LSL2CSConverter and (f,3) becomes (f,0) in llRound. ↵Charles Krinke1-1/+1
Thanks to ChrisD/Gromit for pointing these out.
2007-11-01ScriptServer fixes: Added more debug logging, mutex lock (to be ↵Tedd Hansen1-0/+4
extra-super-sure) on script load/unload, removed experimental Grid-scriptengine from compile because of dynamic module loader, and added random string to script filename to bypass module loader file lock. Please delete your copy of bin/ScriptEngine/OpenSim.Grid.ScriptEngine.DotNetEngine.dll.
2007-10-30* Optimized usingslbsa711-30/+52
* Shortened type references * Removed redundant 'this' qualifier
2007-10-15* Applied patch #418 : copyright-r2012.patch - some errors, but got most thrulbsa711-0/+28
2007-09-16Implemented: llSetText, llResetScript Tedd Hansen1-5/+5
Implemented: llHTTPRequest (queue, thread, etc -- but not actuall call)
2007-09-15Now loading "OpenSim.Region.ScriptEngine.Common.dll" into scripts AppDomain ↵Tedd Hansen1-5/+6
and "using OpenSim.Region.ScriptEngine.Common;" at start of script when converted from LSL. Vectors and rotations now works.
2007-09-13remove ^M, as native storage should be UNIX format, and ^M in/out mashingSean Dague1-265/+265
will happen on the windows side now that eol-style is correct
2007-09-13Hiding evidence that I once was a VB coder (thanks to refactoring). Renamed ↵Tedd Hansen1-16/+16
member names to smallcapsy.