Commit Graph

2 Commits (master)

Author SHA1 Message Date
Mike Gerwitz 9478082e2e
env-{fixed,dyn}.sed: Accessing and manipulating envs
env-dyn kind of violated the spirit of this repository---to relax and simply
have fun.  While I did enjoy implementing it, there did become a point where
it got to be quite stressful and I just wanted to get it finished to move on
to other things.  Hopefully others find it interesting.

Keep in mind that, as explained in the comments, this could have been
implemented much more trivially using backreferences.  I chose not to do so,
since that is more of a challenge.  But it may be worth creating a version
of it that _does_ use backreferences to compare against and obviate the
limitiations of finite automata.

* regex/cmp.sed: Reference `env-dyn.sed'.
* regex/env-dyn.sed:
* regex/env-fixed.sed: New scripts.
2018-11-28 20:57:58 -05:00
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