example.prm 252 B

123456789101112131415
  1. (aa,b) (ba,a) (bc,a) (c,start) (d,) (b,finish) (,)
  2. Example program from the PROLAN/M documentation. If you run it with the
  3. input string "abcabcd", the result is "finish", going through the
  4. following steps:
  5. abcabcd
  6. aaabcd
  7. babcd
  8. abcd
  9. aad
  10. bd
  11. b
  12. finish