Skip to content

C-code generator based on yacc & lex #37

@rouming

Description

@rouming

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions