Anonymous user
Strip comments from a string: Difference between revisions
m
→{{header|Forth}}
Line 647:
: COMMENT-STRIP ( addr len -- addr 'len) -LEADING -COMMENT -TRAILING ;
</lang>Tested at the Forth console▼
▲Tested at the Forth console
▲<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}}==
|