Commit Graph

2 Commits (3f5c397e834e862a9d92f177f69944d16ee5f2e6)

Author SHA1 Message Date
Mike Gerwitz 3f5c397e83
animate: Add -c option for variable-width frames
Not all scripts produce fixed-width frames.  Variable-width frames leave
behind artifacts caused by characters from the previous frame not being
overwritten.

* regex/animate (usage): Document new `-c' flag.
  (main): Handle new `-c' flag.
    [refresh]: New variable.
* regex/base10-mul.sed: Remove extra whitespace used for frame clearing for
    animate script (just use `-c' now).
2018-11-24 23:57:48 -05:00
Mike Gerwitz 338bb0cdf0
base10-mul.sed: Multiply two base-10 numbers using regexes
This was a pretty fun hack---it looks esoteric and sounds impressive (or
even impossible to some), but is really easy given the proper
intuition.  Perhaps at some point I'll write more on DFAs and some of the
theory and limitations behind this, but for now, that's beyond the scope of
what I had intended for this repo.  (I suspect that my intentions are
shifting.)

Enjoy!

* regex/base10-inc.sed: Reference new script.
* regex/base10-mul.sed: New script.
2018-11-24 00:02:26 -05:00