Re: Suggestion: 'aci'(<-'at')
Martin Porter <[email protected]> Fri, 4 Apr 2014 13:34:39 +0100
| Newsgroups | gmane.comp.search.snowball |
|---|---|
| Message-ID | <CALc6duwuxQp1encESnupxViPDM2ETRXCw6QvZtRoPcJ71pCfpw@mail.gmail.com> |
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.