in reply to Re: Seeking Advice: Writing a parser
in thread Seeking Advice: Writing a parser
For the second part you can be smart. Declare your parser as not lazy, then if mx has not yet been seen but m and x have there is implicit multiplication. On the gripping hand say m, x, and mx are defined. I'd opt for mx and force explicit multiplcation for m and x.
--
perl -pe "s/\b;([st])/'\1/mg"
|
|---|