The compression program we use wouldn't have a problem except that it
removes new lines, and not everyone is in the habit of putting semicolons at
the end of a line. However if we told it not to remove newlines, then we
could use it.
I actually found a problem with just removing all one line comments if you
happen to have a URL somewhere in your code, e.g.
http://dynapi.sourceforge.net suddenly becomes http:
The DynAPI fortunately doesn't have anything like the above in it (so far).
The only foolproof solution would be to rewrite a compiler that parses the
code correctly and rewrites it the way we want, without comments, and
without newlines. This is not an easy task...
Any computer science students out there with an LALR grammar for Javascript
and a desire to write a parser?
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel
> Holmen
> Sent: 30 March 2001 21:08
> To: DynAPI-Dev list
> Subject: Re: [Dynapi-Dev] SSL error for IE 5.5
>
>
> What if everyone adds their comments as one-line comments (//). These are
> easy to strip without any fuzz.
>
> ----- Original Message -----
> From: "Cameron Hart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 1:22 AM
> Subject: RE: [Dynapi-Dev] SSL error for IE 5.5
>
>
> >
> >
> > It was a workaround for a problem where IE did not receive
> events in empty
> > layers. So as long as you don't want to catch events on empty layers you
> > can
> > remove it.
> >
> > As for the commments, there was talk of having a fully
> commented version,
> > and a compressed version. But the compressor (jspack) was pretty fussy,
> and
> > with all the different coding styles of the contributors to
> this project,
> > it
> > didn't work very well. So I think we are back to very few
> comments again.
>
>
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev