home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / Demo / turing / README < prev    next >
Text File  |  1994-03-03  |  777b  |  24 lines

  1. Subject: Turing machine Python benchmark
  2. From: amrit@xvt.com (Consultant)
  3. To: guido@cwi.nl
  4. Date: Wed, 2 Mar 1994 15:52:23 -0700 (MST)
  5.  
  6. I thought I would upload the Turing machine simulation that I wrote.
  7. I like this demo because I found that Python was the easiest language
  8. to write this program in.  (It was originally a 3 file C++ program; the
  9. Python is the shortest version of the program.  This is due to the powerful
  10. python library (very good regular expressions), the high level datatypes, and
  11. of course the functional programming stuff I added!) 
  12.  
  13. Actually, The Icon version is a smaller due to the __cram everything in one
  14. line if you can__ style of Icon, but I like this version the best.
  15.  
  16. To test:
  17.  
  18.     % python turing.py double aaa
  19.  
  20. Should print:
  21.  
  22.     ### aaaaaa
  23.     ^
  24.