[Opensim-dev] LSL to C# translator preview

Mike Mazur mmazur at gmail.com
Wed Jul 2 23:47:12 UTC 2008


Hi,

I was in a bit of a hurry sending that first email so I missed out a
few details.

On Wed, 02 Jul 2008 08:32:40 -0400
Sean Dague <sean at dague.net> wrote:

> On Wed, Jul 02, 2008 at 05:36:44PM +0900, Mike Mazur wrote:
> > I've been working on an LSL compiler for OpenSim.
> 
> Pretty cool stuff.  Was just reading through the code.  I saw some
> references to other people in some of the code with dates, that
> looked a little like copyright.  What's the origin of all of this?
> We'd want to make sure that was all fully clean before putting this
> is.

All the code in the Tools/ subfolder is written by Malcolm Crowe[1].
That code generates three files needed by the compiler: lg.exe, pg.exe
and Tools.dll.

lg.exe and pg.exe are the lexer and parser generators, respectively.
They turn the .lexer and .parser files into C# code that, along with my
code, is compiled into the compiler. Tools.dll is referenced by the
compiler (using Tools;).

So technically these three binaries don't have to be rebuilt every
time, and I don't foresee any changes being made to those source files.
The binaries could be shipped in the bin/ directory in trunk, like
so many other .dll files there already.

I will get in touch with the original author though and ask his
permission to include any of this in OpenSim.

> There seems to be a lot of hard tabs in the code, good to switch those
> to 4 spaces instead when you get a chance.

They are all in the code for the tools I'm using to generate the
compiler. I'll change that should the source find its way into the tree.

> I'm +1 on this, and would suggest a patch as soon as you get a chance.

If all goes well expect an issue on Mantis by the weekend :)

Mike

[1] "Compiler tools in C#" at http://cis.paisley.ac.uk/crow-ci0/



More information about the Opensim-dev mailing list