On Fri, 10 Feb 2017, Allin Cottrell wrote:
On Fri, 10 Feb 2017, Sven Schreiber wrote:
> Also, I think we should offer a little more support. A script that catches
> and perhaps even autocorrects the most common occurrences for example. As
> Oleh indicated, a "=" in the same line as an "if" for example can
only mean
> "==" I think (right?). (... outside of a foreign block, that is....)
The hansl parser knows what cases need fixing, but it doesn't have the
facility to change its input (or at least not so the change will be saved).
Hmm, may be worth investigating though.
Having now looked into this, the answer's Sorry, no, far too
complicated. The human brain and eyeball are the best tools for the
job.
There were huge warning counts for some packages, but that's because
of iteration. I suspect that in most if not all cases it's really
just a matter of a dozen, or a few dozen, statements that need to be
corrected -- and it would be a serious waste of my time to try to do
this via artificial intelligence.
Allin