[colug-432] Compiler compiler?

Vince Herried Vince at PlanetVince.com
Wed Sep 5 17:38:37 EDT 2012

I write programs in a language called LInden Scripting language (LSL), that
runs on Second Life.
Their program development environment consisted of a simple text editor and
the save command.
If one makes an error it is only found at save time, and them it only finds
a single error.  Obviously this makes it
time consuming to develop complex programs.

Some one created a very fancy Eclipse plugin for LSL, called LslPlus.
Unfortunately this project seems to have died.
The plugin available from sourceforge is written in Haskell and Java.
Trying to update it I get into a huge prerequisite
list.  Eg, to compile module A, requires library component x1 version > 1.0
and < 1.5.  So when I try to compile
that x1 component I get another grumble.  After chasing down six or seven
arrrg.  To top it off these things are
written in Haskell.

So finally my question.  Can one of the compilers generated by a
compiler-compiler detect multiple syntax errors
in one shot?  I don't really want it to generate any executable code,  just
want it to know about all the built in
functions, their arguments and the language syntax which is some what
similiar to C with do, for and if constructs
etc...  It also contains some strange data types as follows.
vector  VectorVariable = <1.2, 3.4, 5.6>;
rotation RotationVariable = <1.2, 3.4, 5.6, 6.7>;
list ListVariable = ["list text",2.3,<1.2,3.4,5.6>];

other examples:
if ( a == b ) { a += 1; }
// this is a comment
for (i=0;i<n;i++) {

on_rez(integer int) {
// do something cool
llOwnerSay("Entered \"on_rez()\"");

So compiler compiler to  syntax check all in one shot???

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20120905/8456de39/attachment.html 

More information about the colug-432 mailing list