Commit Graph

221 Commits

Author SHA1 Message Date
Jeff Ames
6ef9d4da90 Formatting cleanup. 2008-08-18 00:39:10 +00:00
Charles Krinke
323ada012d Mantis#1931. Thank you kindly, Kinoc for a patch that:
* Yield Prolog 1.0.1 Released : it passes all but 9 of the 
421 tests in the ISO Prolog test suite (97.8%) .
* support dynamic predicates and rules.
* support 'import' to use external static functions 
improves connection to C# functions
* Matches Yield Prolog r831
2008-08-13 14:13:49 +00:00
Mike Mazur
16cf5aa2b8 Allow the list hack from issue 1863 to compile, however its behavior is
different than in SL. See http://opensimulator.org/mantis/view.php?id=1863 for
details.
2008-07-31 07:11:49 +00:00
Mike Mazur
56c4cc39ff Allow assignments in if/while/do-while control statements. Fix issue 1862. 2008-07-31 04:13:46 +00:00
Mike Mazur
eef3864278 Fix issue 1860; exception thrown in the parser on if/if-else/for/while/do-while
statements with no body.
2008-07-31 01:27:33 +00:00
Mike Mazur
9e58ce60c0 Use new LSL compiler by default in DotNetEngine and XEngine. Fix issues 1651, 1339. 2008-07-27 23:53:18 +00:00
Mike Mazur
e17520621c Log to console if C# line/column lookup fails. 2008-07-27 10:41:44 +00:00
Mike Mazur
bb777a9c3c Replace the try/catch with a null check. 2008-07-24 05:23:42 +00:00
Jeff Ames
80d8e2889e Update svn properties. Formatting cleanup. Remove a compiler warning. 2008-07-23 13:24:25 +00:00
Mike Mazur
f9e2f41d7c Enable LSL <-> C# source location mapping when reporing compiler errors to the user in-world. This method is not yet perfect but is an improvement in accuracy over the existing method. 2008-07-23 06:53:38 +00:00
Mike Mazur
ba17b0df27 First version of position mapping between LSL <-> C# implemented. 2008-07-23 02:51:45 +00:00
Charles Krinke
cda3206633 Mantis#1801. Thank you kindly, Junta_Kohime for a patch that:
I found a problem trying to get s value directly from a quaternion q.
Compiling a script which directly access to q.s value, caused the 
following error:
CS0103: 'The . symbol cannot be used in LSL except in float values 
or vector components'. Detected around: q.s
I did a small change to allow alphabetic letter "s" to be interpretated 
as valid identifier. This solves the problem.
2008-07-21 13:44:56 +00:00
Dr Scofield
1e39bfb036 squashing warnings critters 2008-07-16 09:42:14 +00:00
Charles Krinke
620f7926f3 Mantis#1753. Thank you kindly, Kinoc for a patch that:
Brings Yield Prolog up to date with sourceforge version 0.9.10
Patched applies to both DotNet and XEngine.
2008-07-16 01:00:40 +00:00
Charles Krinke
476e08286e Mantis#1728. Thank you kindly, Mikem for a patch that solves:
The compiler was missing grammar rules for += etc. operators on 
vector.member variables, which the attached patch implements.
2008-07-14 01:07:21 +00:00
Johan Berntsson
130d8047a2 Thanks Mike for another LSL compiler patch which fixes a bug where 'vector v=<0, 0, -0.5>' caused a syntax error, and implements multiple assignments in one line (x = y = 3;) 2008-07-11 08:33:53 +00:00
Johan Berntsson
d41c1f40a8 Patch from Mike: errors from the LSL/C# compilers are now reported to the user in-world 2008-07-10 05:40:45 +00:00
Johan Berntsson
5609292101 Patch from Mike which removes a lexer warning in the LSL compiler. 2008-07-09 07:37:42 +00:00
Johan Berntsson
a73e3b4e3f another patch from Mike: the llscript compiler is now available in XEngine as well. Thanks Mike 2008-07-08 03:02:11 +00:00
Johan Berntsson
e75ff8f0a3 llscript compiler patch from Mike: adds LSL jumps and implicit variable initializations 2008-07-08 02:34:45 +00:00
Jeff Ames
d470d30c09 Copyright notices and formatting cleanup. 2008-07-06 14:02:22 +00:00
Dr Scofield
2dadbc2f70 mini-warnings-safari, plus cleanup of IUserServices method naming. 2008-07-04 10:19:58 +00:00
Johan Berntsson
382fb8cea6 The new llScript-cs parser. Thanks Mike 2008-07-04 08:59:41 +00:00
Dr Scofield
748f72326d last round of warning squashing. calling it a day now. 2008-06-27 23:03:39 +00:00
Charles Krinke
80079e14e3 Mantis#1475. Thank you kindly, Kinoc for a patch that:
This patch brings the Yield Prolog in sync with the YP r669.
Biggest item is support for functions asserta and assertz , 
providing dynamic databases.
2008-06-07 15:43:16 +00:00
Charles Krinke
3a4b54adaa Mantis#1451. Thank you kindly, Mikem for a patch that addresses:
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-06-05 13:54:20 +00:00
Charles Krinke
687090f79a Mantis#1441. Thank you kindly, Kinoc for a patch that:
This patch adds the prolog interperter helper object ONLY for YP code, 
and not every script compiled. 
Mirrors the other languages like JS and VB more closely.
2008-06-04 14:40:17 +00:00
Jeff Ames
4ec4e16c80 Formatting cleanup, minor refactoring, svn properties. 2008-06-04 09:59:27 +00:00
Sean Dague
7f6fcdc77b remove the prolog parser from all LSL/C# scripts (it was adding overhead
to every script in most environments).  This will break prolog
support.  Prolog code needs to generate it's template script more like 
how javascript does.
2008-06-02 20:27:40 +00:00
Jeff Ames
d22a54a195 Update svn properties. 2008-06-01 03:01:33 +00:00
lbsa71
7f9967d310 * Enabled the Yield Prolog Script Engine 2008-05-31 18:47:26 +00:00
Justin Clarke Casey
5873ad3760 * minor: Add copyright statement 2008-05-31 18:43:19 +00:00
Justin Clarke Casey
6e5b416d14 * Remove rogue ? to get things compiling again 2008-05-31 18:36:45 +00:00
Charles Krinke
25b7d9944d Mantis#1314. Thank you kindly, Kinoc for YieldProlog.
I have added everything *except* the patch to 
.../LSL/Compiler.cs. The Compiler.cs patch has a 
namespace issue. Lets make a second patch to close
the gap.
2008-05-31 17:52:44 +00:00
Jeff Ames
0462510956 Update svn properties. Formatting cleanup. 2008-05-30 08:35:57 +00:00
Teravus Ovares
83bd85ce7f * Fix string literal with URL + LLcommand();
* 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-29 16:21:41 +00:00
Teravus Ovares
fb1c7e62d2 * Resolves comment removal in string literals in the LSL2CSConverter 2008-05-28 01:47:33 +00:00
Sean Dague
46d91df2a8 another take on the whole string cleansing, by adding specific poison
keywords in foo.bar strings.  Add items to the poison array to block them.
2008-05-27 22:25:14 +00:00
Teravus Ovares
1487699045 * Revert last commit as it opens sim owners up to all sorts of nasty scripts.
* If the regex that we're using isn't good enough, we really need to make it better.
2008-05-27 19:07:57 +00:00
Sean Dague
e436120d60 comment out the x.y security check in the script engine because it's so aggressive
it blocks string = "http://osgrid.org", amoung other things.
2008-05-27 18:40:49 +00:00
Jeff Ames
6ec680918b Formatting cleanup, minor refactoring. Fixed some comparisons of value types and null. 2008-05-18 23:06:50 +00:00
Teravus Ovares
74fb5e1a94 * whoops, misplaced / where should have been \ 2008-05-17 18:48:06 +00:00
Teravus Ovares
6bcb0e8685 * Update on the script engine LSL parser. Blocks all static objects and method references. 2008-05-17 18:37:51 +00:00
Jeff Ames
65c5efe43b Formatting cleanup. 2008-05-16 01:22:11 +00:00
Teravus Ovares
3c7e6b0c1e * Tweaked a regex that was returning invalid results in some cases. 2008-05-13 23:19:18 +00:00
Justin Clarke Casey
e49bdd2628 * Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline 2008-05-07 23:21:24 +00:00
Charles Krinke
dc80fd2048 Thank you, Middelink for a patch that fixes the regular expresion
missing the numbers after the initial letter of the identifier.
2008-05-07 15:51:50 +00:00
Teravus Ovares
c803e0cca1 * Deletes my EventReader ScriptRewriter. It isn't required to rewrite the script to publish the events anymore.
* Introduces a language(regex) independent event recognizer and publishes the events the script listens.
2008-05-01 16:39:02 +00:00
Teravus Ovares
36bf16d35e Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or 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-30 03:36:13 +00:00
Teravus Ovares
8f6d508b43 * For info about this commit, see last commit. 2008-04-26 07:43:11 +00:00