Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-code generator based on yacc & lex #37

Open
rouming opened this issue Feb 14, 2017 · 0 comments
Open

C-code generator based on yacc & lex #37

rouming opened this issue Feb 14, 2017 · 0 comments

Comments

@rouming
Copy link

rouming commented Feb 14, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant