Commit Graph

2 Commits (master)

Author SHA1 Message Date
Mike Gerwitz 3031364e14
regex: Add equality scripts
Continuing to build up a useful set of primitive examples.  This type of
thing is useful if we do not know all possible strings for comparison ahead
of time.

* regex/bitwise.sed: Add equality operator.  Modify existing OR and XOR
    regexes to accept this new operator.
* cmp.sed: New script.
2018-11-25 00:25:17 -05:00
Mike Gerwitz 2dd5b590f9
bitwise.sed: Common bitwise operators using only regular expressions
This was less of a hack, but I wanted to formally document these operators
as a larger body of work to serve as an example to others.  In that sense,
I'm abusing the original intent of this repository, but it'll be fun to be
able to show others a more comprehensive body of regex-based hacks for doing
all sorts of fundamental things.

* regex/bitwise.sed: New script.
2018-11-24 00:02:31 -05:00