Easy Character-Stream Filters with APL2 Defined Operators Michael Kent uses the result of the marking routine to compress the input stream: V Z O(M [I] FO)I;B;D;K;N;T N+ pB ' ' [2] [3] [ 4] [5 ] Li:D+I GET N (O=K +pD)/L3 N N+X B B ,D Shearson L e h m a n Brothers Corporate Analytics Department 388 Greenwich Street N e w York, N Y 10013 212-464-2410 Character stream filters are programs which take characters from a source, transform them in s o m e way, and send the transformed characters to s o m e destination. The filter idea is the basis for a large class of useful programs, including m a n y U N I X and M S - D O S utilities_ It is particularly suitable for processing text, for instance by inserting printer control codes, interpreting formatting commands, or compressing files. A Filter can be conceptually broken up as follows: there is a main pair of subroutines, one marking characters from a source, and another processing the m a r k e d characters; another pair of subroutines handles input and output; and a main "driver" routine manages-the process. This division
/lp/association-for-computing-machinery/easy-character-stream-filters-with-apl2-defined-operators-kcQut0PKlb