You can save a parsed form of the script into an intermediate form with the -c parameter. By default, -c parses and dumps the awk script into an intermediate form and saves it to "a.ai" (or to a different filename via the -o param). Running jawk with the "a.ai" script runs jawk in interpreted mode. Therefore, you can use the -ext and -ni with "a.ai", allowing you to distribute the app without distributing the source.
Note that it is not impossible to reverse-engineer "a.ai". Anyone determined can construct a decompiler for jawk, although I don't think any exist at this point.
Hope this helps.
Regards,
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to use extensions and to not distribute the source for the AWK script?
awkuser,
Sorry for the big delay.
You can save a parsed form of the script into an intermediate form with the -c parameter. By default, -c parses and dumps the awk script into an intermediate form and saves it to "a.ai" (or to a different filename via the -o param). Running jawk with the "a.ai" script runs jawk in interpreted mode. Therefore, you can use the -ext and -ni with "a.ai", allowing you to distribute the app without distributing the source.
Note that it is not impossible to reverse-engineer "a.ai". Anyone determined can construct a decompiler for jawk, although I don't think any exist at this point.
Hope this helps.
Regards,
Dan