annotate samples/slist.tp @ 235:cc1260872322

Fix printing of function/method calls in parser module
author Michael Pavone <pavone@retrodev.com>
date Fri, 03 Jan 2014 19:25:40 -0800
parents 18598163e3ef
children
rev   line source
pavone@170 1 #{
pavone@170 2 sum <- :l {
pavone@170 3 l fold: 0 with: :acc el {
pavone@170 4 acc + el
pavone@170 5 }
pavone@170 6 }
pavone@170 7 main <- {
pavone@170 8 print: (string: (sum: [])) . "\n"
pavone@170 9 print: (string: (sum: [1 2 3 4])) . "\n"
pavone@170 10 print: (string: (sum: 1 | 2 | 3 | 4 | [])) . "\n"
pavone@170 11 print: (string: (sum: [1 2] . [3 4])) . "\n"
pavone@170 12 }
pavone@170 13 }