desed
desed copied to clipboard
Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal.
> Is this a joke? > I thought it was. But apparently it's actually useful for some people. Are you kidding me? :smile: This tool is super-useful! I wish you’d...
This aims to fix all issues related to broken sed parsing, that is #3 and #15.
The current `--debug` flag is mostly useless. Proper logging mechanism should be added and actually used. Particularly with the new parser that's under rewrite.
for example: ``` $ cat kniha.sed /^[1-9][1-9]*\.[^1-9]/a\ ===========\ /^[1-9][1-9]*\.*[1-9]/a\ ----------------- ``` ``` $ cat kniha.txt 1. Kapitola Pomoci teto kapitoly je ukazano, jak funguji funkce 1, i, c, d a...
When one makes an error in script and loads it with desed or presses `l` to reload source code, and the sed script makes sed enter infinite loop, desed hangs...
Example of sed debug output: ``` MATCHED REGEX REGISTERS regex[0] = 0-12 ',3; :1 2:3 4' regex[1] = 0-9 ',3; :1 2:' regex[2] = 1-2 '3' ``` The way it...
- Migrate to Ratatui from tui-rs - Update to crossterm 0.27.0
To quote from the [`cargo` FAQ](https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries): > it is recommended that all binaries check in their Cargo.lock.
Running this sed code through desed without -E option on macos 13 generates an error attached below. ```sed #!/usr/bin/sed -nE -f /Platnost/ { s_[^0-9]*([^,]*)[^0-9]*([0-9]*).*_\1 #\2_ s/([0-9]+.) ([0-9]+.) ([0-9]+)/\1\2\3/p } /([^