stutter
stutter copied to clipboard
CLI string generator based on regex-like operations
Cool tool! It might be educational to include in the README mention of McIlroy's 2004 Functional Pearl "Enumerating the strings of regular languages" http://www.cs.dartmouth.edu/~doug/nfa.ps.gz
- [ ] Nixpkgs - [x] Add stutter as top-level package ( NixOS/nixpkgs@da192f2741d055bf03376b391e29c1fef373b4cd ) - [ ] Make sure system tests are run on nix build ( #15 ) -...
"system tests" are implemented as a bash script. Having them written in haskell would make it easier to * Run them through the test-suite * Report failures * Maintain the...
The module `Stutter.Producer` uses `ByteString`s in some places, though it's not clear whether it's really needed. They could probably be replaced with functions from the `text` library.
See what happens with [`ProducerGroup`](https://github.com/nmattia/stutter/blob/212f1579e6075d45c394040de6888f9dfd56671e/src/Stutter/Producer.hs#L28) expressed in tagless final style
Add support to save useful producers to a file: ``` words: (@/usr/share/dict/american-english) days: Mon+Tue+Wed+Thu+Fri+Sat+Sun ``` and then ``` $ stutter '' Mon Tue ... ```
It would be useful to have a command to list the symbols to escape: ``` shell $ stutter --symbols [ ] @ ... ```