aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix http://opensimulator.org/mantis/view.php?id=3874 - parenthesis in for ↵Justin Clark-Casey (justincc)2009-11-201-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.
* Formatting cleanup.Jeff Ames2009-06-101-6/+6
|
* Skip lone ident statments or for-loop assignmentsMike Mazur2009-06-071-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.
* Allow empty assignment in for-loopMike Mazur2009-06-071-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.
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-011-1/+1
| | | | LICENSE.txt.
* Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke2009-02-251-0/+1
| | | | | Deals with the multiple warning side affect introduced earlier.
* Mantis#3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke2009-02-231-0/+77
| | | | | | | Adds a warning for an LSL construct that exploits a popular list memory saving hack.
* Thanks DoranZemlja for a patch implementing non-shortcircuiting inMike Mazur2009-02-201-4/+19
| | | | | logical and and logical or in LSL. Fixes Mantis #3174.
* Thanks Tommi Laukkanen for a patch that allows theMike Mazur2009-02-091-3/+7
| | | | | | CSCodeGeneratorTest.TestStringsWithEscapedQuotesAndComments unit test to pass on Windows. Fixes Mantis #3104.
* Mantis #2571Melanie Thielker2008-11-061-2/+2
| | | | | | Thank you, idb, for a patch that fixes the jump function in LSL.
* Prefix LSL variables which are C# keywords with @ instead of _ when ↵Mike Mazur2008-11-041-1/+1
| | | | translating from LSL to C#. Thanks idb for the patch. Fix issue 2546.
* Mantis #2518Melanie Thielker2008-11-011-9/+30
| | | | | | | Thank you, idb, for a patch that fixes the conflicts of lsl identifiers with c# keywords
* Restore "friendly errors" to the XEngineMelanie Thielker2008-10-071-2/+11
|
* Add friendly error messages to both engines.Melanie Thielker2008-09-271-1/+18
|
* Update svn properties, formatting cleanup.Jeff Ames2008-09-231-2/+2
|
* Refactor XEngine parser as per suggestions from mikemMelanie Thielker2008-09-231-8/+9
|
* First batch of the unit test changes for the new constants semanticsMelanie Thielker2008-09-021-1/+1
| | | | | | in XEngine. This turned out to be a lot of work to catch up.
* Remove the ((bool)()) cast, since it can make c# barfMelanie Thielker2008-09-021-2/+2
|
* Add an explicit cast to bool for the if expression so that any base typesMelanie Thielker2008-09-021-2/+2
| | | | | | that slip in will not cause it to break
* This is an attempt to fix the handling of constants in LSL.Melanie Thielker2008-09-011-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.
* Fix issue 1860; exception thrown in the parser on if/if-else/for/while/do-whileMike Mazur2008-07-311-5/+9
| | | | | | statements with no body.
* First version of position mapping between LSL <-> C# implemented.Mike Mazur2008-07-231-111/+246
|
* Patch #9142 (No mantis)Melanie Thielker2008-07-121-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.
* Patch from Mike: errors from the LSL/C# compilers are now reported to the ↵Johan Berntsson2008-07-101-1/+1
| | | | user in-world
* another patch from Mike: the llscript compiler is now available in XEngine ↵Johan Berntsson2008-07-081-0/+803
as well. Thanks Mike