Strip comments from a string: Difference between revisions

m
Line 647:
 
: COMMENT-STRIP ( addr len -- addr 'len) -LEADING -COMMENT -TRAILING ;
</lang>Tested at the Forth console
 
<lang Forthpre>S" apples, pears # and bananas" COMMENT-STRIP TYPE apples, pears ok
Tested at the Forth console
S" apples, pears ; and bananas" COMMENT-STRIP TYPE apples, pears ok</langpre>
 
<lang Forth>S" apples, pears # and bananas" COMMENT-STRIP TYPE apples, pears ok
S" apples, pears ; and bananas" COMMENT-STRIP TYPE apples, pears ok</lang>
 
=={{header|Fortran}}==
Anonymous user