Menu

using extensions

AwkUser
2009-07-10
2013-05-28
  • AwkUser

    AwkUser - 2009-07-10

    Is there a way to use extensions and to not distribute the source for the AWK script?

     
  • ddaglas

    ddaglas - 2009-10-24

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.