#nawk script to generaet
 for html
#
#WBL 4 August 2004 created $Revision: 1.00 $"
#
#Inputs: file containing program as text

#Example gawk -f lisp2dot.awk example.txt > example.dot

BEGIN { 
    printf("\n",strftime("c"));
}

(FNR==1) {
    printf("\n",FILENAME);
    printf("
\n");
}

(NF>=0) {
    l=length($0);
    for(i=1;i<=length;i++) {
	c=substr($0,i,1);
	if(c=="<")      printf("<");
	else if(c==">") printf(">");
	else if(c=="&") printf("&");
        else            printf("%s",c);
    }
    printf("\n");
}


END{
    printf("
\n"); }