caleb531 / automata

A Python library for simulating finite automata, pushdown automata, and Turing machines
https://caleb531.github.io/automata/
MIT License
336 stars 63 forks source link

Unicode characters with regexp ? #232

Open kunchtler opened 1 month ago

kunchtler commented 1 month ago

Hello all, Is there a reason why general unicode characters are not usable with regexp ? I'm using this library to compute the regular expressions of automata with large alphabet (> 100 letters sometimes) so it would be nice to have this feature. (I seem to have it working on my side by changing a single line of code with all tests still passing) Thanks !

eliotwrobson commented 1 month ago

This had to do with the regex we used to do parsing. If you have a change that enables using any Unicode character, we'd be happy to review and accept a pull request!