Open Buitragox opened 1 day ago
Hey @Buitragox thank you for your contribution! That's an error, isn't intended to work like that. I think that should be interesting to add an optional argument like prefix = "q"
to allow the user to use a custom prefix.
class NFA:
...
def renumber(self, states_prefix = "q") -> None:
...
If you want, you can open a PR with this refactor :)
If you want, you can open a PR with this refactor :)
Sure, I'll be working on it.
Hi Robin, I'm currently working on rewriting a lot of the current documentation for better readability.
I found an inconsistency while rewriting the documentation of the
renumber
method fromnfa.md
. It says, "The new states will be named asq0
,q1
,q2
, and so on."But this is what I get with the following code:
It's renaming them to numbers and not putting a 'q' as a prefix. Is this intended and the documentation is incorrect? Or is this a bug?