pwightman / nfa_evaluator

NFA evaluation
1 stars 1 forks source link

Printing python-friendly strings #3

Open pwightman opened 12 years ago

pwightman commented 12 years ago

To simplify testing, we're going to need to print out our NFA's the same way python prints them out so we can pipe them into mindfa.py and have it do all the heavy work. I just wondered if any of the debugPrint stuff you wrote are already doing this or if they're just general debugging outputs?

ghost commented 12 years ago

Nope, but I can try to fix it up so that it will. Just have to figure out how it's printed in mindfa.py, which is no problem.

On Mon, Nov 28, 2011 at 4:31 PM, Parker < reply@reply.github.com

wrote:

To simplify testing, we're going to need to print out our NFA's the same way python prints them out so we can pipe them into mindfa.py and have it do all the heavy work. I just wondered if any of the debugPrint stuff you wrote are already doing this or if they're just general debugging outputs?


Reply to this email directly or view it on GitHub: https://github.com/pwightman/nfa_evaluator/issues/3

pwightman commented 12 years ago

I was going to give it a whirl, but if it's just a matter of making a few changes to your debugString method than that might be easier. I created a toPyString() method in the header file, so create that in the cpp file if you'd like.