[Snowball-discuss] Suggestion: 'aci'(<-'at')

Martin Porter martin.f.porter at gmail.com
Fri Apr 4 13:34:39 BST 2014


Snowball is of course defined at a much lower level than the command
line level ... but can you do some work locally to get optional
behaviour. Suppose options appear in a command line argument, say,

    ... -o PxQ2 ...

and that this is argv[n], you define an external read_opts in the
snowball script that reads the string 'PxQ2' and sets up a few
corresponding booleans as true etc., and call it with

    struct SN_env * z = H_create_env();
    SN_set_current(z, strlen(argv[n]), (symbol *) argv[n]);
    H_read_opts(z);

It's not built-in, but it can be done quite easily.



More information about the Snowball-discuss mailing list