From: pjb@... (Pascal J. Bourguignon) Date: 2009-08-03T17:20:17+09:00 Subject: Re: RUBY vs COMMON LISP fft1976 writes: > By the way, here is in 1 line of BF, a complete BF reader that is able > to > read all the BF syntax needed to write it: > > ,+[-.,+] > > Here's how to try it: > > $ sudo apt-get install bf > $ cat > reader.bf > ,+[-.,+] > $ bf reader.bf < reader.bf > > Your 150 lines don't look very impressive now, do they? > > Ruby < Lisp <<< BF! I specified a syntactic reader. Not just a reader. READ-SEQUENCE, or a loop on READ-CHAR is trivial both in Ruby and in Lisp. Building a data structure isomorphe to the syntax of the language is less trivial. First you will have to think about how to build an abstract data structure in BF. Have fun! -- __Pascal Bourguignon__