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
(did not find a better way than to write just here, since you do not have any maillist)
I was highly inspired by the docopt idea in general, which should cover all my C requirements for perfect command line parser, but unfortunately this project seems dead, and c++ variant is too heavy and clumsy (I simply can't agree that std::map<std::string, docopt::value> is a better way to represent parsed arguments than plain old structure).
So I decided to repeat original basic docopt functionality, but instead of implementing parser myself I used yacc & lex (i.e. bison & flex). That works for me quite well. As I said I did not try to follow full docopt specification, rather tried to cover my own needs.
Hey guys,
(did not find a better way than to write just here, since you do not have any maillist)
I was highly inspired by the docopt idea in general, which should cover all my C requirements for perfect command line parser, but unfortunately this project seems dead, and c++ variant is too heavy and clumsy (I simply can't agree that std::map<std::string, docopt::value> is a better way to represent parsed arguments than plain old structure).
So I decided to repeat original basic docopt functionality, but instead of implementing parser myself I used yacc & lex (i.e. bison & flex). That works for me quite well. As I said I did not try to follow full docopt specification, rather tried to cover my own needs.
If someone has an interest: https://github.com/rouming/docopt.c
--
Roman
The text was updated successfully, but these errors were encountered: