expander.icn: Procedures to convert character pattern expressions

procedure pfl2str:         pattern-form to plain string
procedure pfl2pwl:         pattern form to Painter expression
procedure pfl2gxp:         pattern form to generating expression
procedure pwl2pfl:         Painter expression to pattern form

link expander
May 2, 2001; Ralph E. Griswold
This file is in the public domain.

pfl2str(pattern) expands pattern-form expressions, which have the form

     [<expr><op><expr>]

to the corresponding string.

The value of <op> determines the operation to be performed.

pfl2gxp(pattern) expands pattern-form expressions into generators
that, when compiled and evaluated, produce the corresponding
string.

pfl2pwl(pattern) converts pattern-form expressions to Painter's
weaving language.

Source code | Program Library Page | Icon Home Page