[Opensim-dev] Critical Plugin Check
Mike Mazur
mmazur at gmail.com
Mon Jun 23 08:35:16 UTC 2008
Hi,
On Thu, 19 Jun 2008 08:21:38 -0500
krtaylor <krtaylor at linux.vnet.ibm.com> wrote:
> Please share your plans - as this is an area I have also been working
> on, although it sounds like you are further along...
I'm generating a lexer and parser, currently with Compiler tools in C#
written by Malcolm Crowe[1]. It generates C# code and is lightweight
(ie: doesn't require me to install Java ;).
When I get the abstract syntax tree, I first traverse it and perform
transformations on it. This is where "integer" is changed to
"LSL_Types.LSLInteger" and additional nodes, such as for explicit casts
where needed, can be inserted.
Finally I traverse the tree again and print out the C# code.
Mike
[1] http://cis.paisley.ac.uk/crow-ci0/
More information about the Opensim-dev
mailing list