As it seems that the jsPack is a partial sollution to our compression/comment stripping needs, plus forces sources to have some restrictions ( ending functions with ; and such ) I've been trying to find an alternative solution. I've asked a friend of mine that works with this stuff to create a Javascript compiler that can properly do the packing. Those of you familiar with compilers and language analisys might be aware of ANTLR. ANTLR is a free compiler compiler. That is, you specify a set of lexic and gramatic rules, as well as associated code, and then it generates a compiler program that does the compiling and yields the errors and results. Ok, that was a very rough description. Since the specification of javascript is available ( you don't have to think of all the rules yourself ) as an ANTLR file ( .g ) the 'only' thing that is needed is adding the code that will remove comments, spaces, and all types of compressions you can think of. ANTLR is Java based and generates a Java-Based compiler for the given grammar file. I know it can generate other code but haven't tried. I don't know if once this compiler java class has been generated we could have sourceforge do the packing of the nighly builds, but anyway we could make the class available so everybody can download and run it locally. I don't know when is it going to be done. Maybe never. My friend is busy ( who isn't ? ) but he's promised to try to find the time to do it. Just in case I wanted you to know that the process has been started. http://www.antlr.org _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev
[Dynapi-Dev] Javascript compiler / packer
Jordi - IlMaestro - Ministral Tue, 13 Mar 2001 05:32:22 -0800
- Re: [Dynapi-Dev] Javascript compiler / packe... Jordi - IlMaestro - Ministral
- Re: [Dynapi-Dev] Javascript compiler / ... Eytan Heidingsfeld
- Re: [Dynapi-Dev] Javascript compiler / ... .:: OCB ::.
