Re: Solution to QOTW #23 in language of QOTW #24

Jon Ericson <[email protected]> Mon, 20 Sep 2004 14:51:36 -0700
Newsgroups gmane.comp.lang.perl.qotw.discuss
Organization I speak for myself; not JPL, NASA nor the US Government
Message-ID <[email protected]>
Daniel Martin <martin-+m399P62/[email protected]> writes:

> As a demonstration that turing machines can indeed do all the things
> more convenient computer systems can, I attach a solution to the
> "parens" problem of a few weeks ago in the turing machine language
> of QOTW #24.

Cool. :-)

> If you're missing a decent version of tr, you can do:
>
> perl tm.pl parens.tm 4 | perl -pe '$_=tr/xo_/()\n/'

I think you meant:

  perl tm.pl parens.tm 4 | perl -pe 'tr/xo_/()\n/'

I wouldn't have noticed, but I've been obsesively testing all the TM
code being sent to the list.

Jon