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"
In reply to Re: Re: Seeking Advice: Writing a parser
by belg4mit
in thread Seeking Advice: Writing a parser
by Flame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |