Changes between Version 1 and Version 2 of Print
- Timestamp:
- 11/22/10 20:14:15 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Print
v1 v2 4 4 e.g. 5 5 {{{ 6 #!cobra 6 7 print 'My name is Cobra.' 7 8 }}} … … 13 14 token after the expression list. ( There is no ',' before this token) 14 15 {{{ 16 #!cobra 15 17 print 'No newline' stop 16 18 }}} … … 19 21 single space. 20 22 {{{ 23 #!cobra 21 24 print 'No moa', 'No moa', 'in all aotearoa' 22 25 # emits 'No moa No moa in all aotearoa\n' … … 35 38 == Grammar == 36 39 {{{ 40 #!cobra 37 41 print 38 42 … … 48 52 == Examples == 49 53 {{{ 54 #!cobra 50 55 print # emit a blank line 51 56 print 'Hello World' … … 53 58 54 59 {{{ 60 #!cobra 55 61 print 'Prompt:' stop 56 62 input = Console.readline … … 62 68 63 69 {{{ 70 #!cobra 64 71 print "one", '2', 'free' 65 72 # emits 'one 2 free\n' … … 71 78 72 79 {{{ 80 #!cobra 73 81 74 82 # print to std error