aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-07-31Adds support to ScriptModuleComms for region modules to exportMic Bowman1-2/+37
constants to the script engine.
2012-03-15Protect the scriptmodulecomms interface.Mic Bowman1-1/+4
2012-03-15Adds a new script command 'modInvoke' to invoke registered functionsMic Bowman1-2/+26
from region modules. The LSL translator is extended to generate the modInvoke format of commands for directly inlined function calls. A region module can register a function Test() with the name "Test". LSL code can call that function as "Test()". The compiler will translate that invocation into modInvoke("Test", ...)
2012-03-06Fix off by one error in script error reporting.Justin Clark-Casey (justincc)1-1/+1
2012-02-07Add a regression test to compile and start a script. Remove ↵Justin Clark-Casey (justincc)1-0/+6
Path.GetDirectoryName when getting assembly loading path in Compiler.CompileFromDotNetText(). The Path.GetDirectoryName call in Compiler.CompileFromDotNetText is unnecessary since AppDomain.CurrentDomain.BaseDirectory is always a directory. Later path concatenation is already done by Path.Combine() which handles any trailing slash. Removing Path.GetDirectoryName() will not affect the runtime but allows NUnit to work since it doesn't add a trailing slash to AppDomain.CurrentDomain.BaseDirectory.
2009-12-22FINALLY! Script compile errors now appear in the script error pane,Melanie1-1/+1
not in a funky debug window.
2009-11-20Fix http://opensimulator.org/mantis/view.php?id=3874 - parenthesis in for ↵Justin Clark-Casey (justincc)1-1/+19
statements cause script compile failures This fixes a problem in OpenSim where statements of the form for ((i = 0); (i < 10); (++i)) { ... } do not compile even though they are valid lsl.
2009-06-10Formatting cleanup.Jeff Ames1-6/+6
2009-06-07Skip lone ident statments or for-loop assignmentsMike Mazur1-3/+14
SL's LSL supports lone idents: integer x; x; as well as lone idents in for-loop assignments: for (x; x < 10; x++) { ... } while those are errors in C# (MONO at least). This patch skips lone idents in such places. Fixes Mantis #3042.
2009-06-07Allow empty assignment in for-loopMike Mazur1-1/+7
For loops with no assignment are no longer syntax errors. For example, this is now valid: for ( ; i < 10; i++) { ... } Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs. Fixes Mantis #2501. Fixes Mantis #2884.
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-02-25Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke1-0/+1
Deals with the multiple warning side affect introduced earlier.
2009-02-23Mantis#3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke1-0/+77
Adds a warning for an LSL construct that exploits a popular list memory saving hack.
2009-02-20Thanks DoranZemlja for a patch implementing non-shortcircuiting inMike Mazur1-4/+19
logical and and logical or in LSL. Fixes Mantis #3174.
2009-02-09Thanks Tommi Laukkanen for a patch that allows theMike Mazur1-3/+7
CSCodeGeneratorTest.TestStringsWithEscapedQuotesAndComments unit test to pass on Windows. Fixes Mantis #3104.
2008-11-06Mantis #2571Melanie Thielker1-2/+2
Thank you, idb, for a patch that fixes the jump function in LSL.
2008-11-04Prefix LSL variables which are C# keywords with @ instead of _ when ↵Mike Mazur1-1/+1
translating from LSL to C#. Thanks idb for the patch. Fix issue 2546.
2008-11-01Mantis #2518Melanie Thielker1-9/+30
Thank you, idb, for a patch that fixes the conflicts of lsl identifiers with c# keywords
2008-10-07Restore "friendly errors" to the XEngineMelanie Thielker1-2/+11
2008-09-27Add friendly error messages to both engines.Melanie Thielker1-1/+18
2008-09-23Update svn properties, formatting cleanup.Jeff Ames1-2/+2
2008-09-23Refactor XEngine parser as per suggestions from mikemMelanie Thielker1-8/+9
2008-09-02First batch of the unit test changes for the new constants semanticsMelanie Thielker1-1/+1
in XEngine. This turned out to be a lot of work to catch up.
2008-09-02Remove the ((bool)()) cast, since it can make c# barfMelanie Thielker1-2/+2
2008-09-02Add an explicit cast to bool for the if expression so that any base typesMelanie Thielker1-2/+2
that slip in will not cause it to break
2008-09-01This is an attempt to fix the handling of constants in LSL.Melanie Thielker1-4/+7
It wraps constants in new LSLType(x), so that lists with constant values are processed correctly. Contains changes to the lsl.parser.cs that are not (yet) reflected in opensim-libs, since this experimental patch affects XEngine only. Also contains nuts.
2008-07-31Fix issue 1860; exception thrown in the parser on if/if-else/for/while/do-whileMike Mazur1-5/+9
statements with no body.
2008-07-23First version of position mapping between LSL <-> C# implemented.Mike Mazur1-111/+246
2008-07-12Patch #9142 (No mantis)Melanie Thielker1-7/+7
Add a config option to OpenSim.ini to select between script compilers in the XEngine without recompile. Set UseNewCompiler=true in OpenSim.ini and try it out. Creates the ICodeConverter interface and adapts the new compiler to it.
2008-07-10Patch from Mike: errors from the LSL/C# compilers are now reported to the ↵Johan Berntsson1-1/+1
user in-world
2008-07-08another patch from Mike: the llscript compiler is now available in XEngine ↵Johan Berntsson1-1/+1
as well. Thanks Mike
2008-07-08llscript compiler patch from Mike: adds LSL jumps and implicit variable ↵Johan Berntsson1-1/+29
initializations
2008-07-04The new llScript-cs parser. Thanks MikeJohan Berntsson1-0/+775