You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skimming the paper, the "CSV rewriting" section looked interesting, so I tried making an input. My first attempt was missing a column:
a , b , c , d , e
And the error message was:
Match error at input symbol 17!
Match error at input symbol 0!
As a Kleenex user, I have no idea how this message relates to my input.
If I could see the automata I might be able to work it out, but it's probably easier for me to either:
re-read the CFG, try another input, repeat
or split my grammar into smaller parts, try making inputs for those
(Incidentally, this is how I debug all my regular expressions -- break them into smaller regular expressions and make sure each part works.)
It would be great if I could just give Kleenex a grammar and have it generate example inputs matching the grammar. This would solve my exact problem of seeing how the CSV rewriter would work, and it would also be useful for generating test cases or making sure my grammars disallow the correct inputs.
And so if you have the time or manpower, I would like this feature.
(Maybe it's already implemented and I missed it?)
The text was updated successfully, but these errors were encountered:
You can actually see the automata - kexc visualize --visstage transducer file.kex will give you the transducer generated from you program. You can replace transducer by any of oracle, action, oraclesst and actionsst to see, respectively, the oracle transducer, the action machine, the oracle SST and the action SST.
Debugging tools is definitely on the todo list! When I get the time, I will probably make something web-based to assist in debugging. Example input generation is a good idea.
Feature Request!
Skimming the paper, the "CSV rewriting" section looked interesting, so I tried making an input. My first attempt was missing a column:
And the error message was:
As a Kleenex user, I have no idea how this message relates to my input.
If I could see the automata I might be able to work it out, but it's probably easier for me to either:
(Incidentally, this is how I debug all my regular expressions -- break them into smaller regular expressions and make sure each part works.)
It would be great if I could just give Kleenex a grammar and have it generate example inputs matching the grammar. This would solve my exact problem of seeing how the CSV rewriter would work, and it would also be useful for generating test cases or making sure my grammars disallow the correct inputs.
And so if you have the time or manpower, I would like this feature.
(Maybe it's already implemented and I missed it?)
The text was updated successfully, but these errors were encountered: