3 ms·
Are the examples all actual outputs of the program? It's entirely possible that my understanding of the grammar is off, but it looks like these examples are wr
by i3oi3 2y ago
Are the examples all actual outputs of the program? It's entirely possible that my understanding of the grammar is off, but it looks like these examples are wrong:
$ echo 'cat dog' | trre 'c:bat|d:hog'
bat hog
$ echo '' | trre ':a*' # <- do NOT do this
dog
$ echo '' | trre ':(repeat-10-times){10}'
dog
- c0nstantine 2y agoThe second line actually is an output. I've modified the README. The last example is a typo. Fixed. Thanks!
- meonkeys 2y agoAnd the first one? Wouldn't the output be batat hogog
- c0nstantine 2y agoCan't reproduce. I have the following: > echo 'cat dog' | ./trre 'c:bat|d:hog' bat hog
- robertlutece 2y agoit reads like '(c:b)at|(d:h)og' and not 'c:(bat)|d:(hog)'