Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: add codes key/legend for debug output in regex-automata #1175

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Crypto-Spartan
Copy link

@Crypto-Spartan Crypto-Spartan commented Mar 13, 2024

While I was looking at debug outputs of DFAs I found myself wondering what some of the symbols meant. D & Q were fairly intuitive, but it took me some additional digging to figure out what some of the other symbols meant. I took some inspiration from networking command output and added it to the debug output for the 3 DFA types (onepass, dense, & sparse) as well as the Thompson NFA.

Output of a network command:
image

My proposed change:
image

You can see the Codes key/legend added at the top of the debug output.

It's a rather small PR, but I felt that the extra detail may help someone looking at the debug output in the future.

@Crypto-Spartan
Copy link
Author

also fixed some of the write! & writeln! clippy lints

@Crypto-Spartan Crypto-Spartan changed the title add codes key/legend for debug output in regex-automata PR: add codes key/legend for debug output in regex-automata Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant