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

Reactoring introduce new docopt grammar parser #69

Open
Sylvain303 opened this issue Sep 11, 2022 · 0 comments
Open

Reactoring introduce new docopt grammar parser #69

Sylvain303 opened this issue Sep 11, 2022 · 0 comments

Comments

@Sylvain303
Copy link
Collaborator

Sylvain303 commented Sep 11, 2022

More to come and to be edited in this issue / tracking discussion.

See grammar branch

The docopt parent project is stalled so mostly all parser improvement. I love parsing, as most of the couple of parser developer around the world. They are very few, search bison / yacc / GNU Lex / grammar generator / Abstract Syntax Tree and such topic.

I'm in the process of a total rewrite the grammar parser of docopt so removing dependencies of also stalled go-docopt lib.

The main goal is error handling while building the docopts definition. Error handling is difficult in parsing and should be done with care.

I did spend a couple of hundred hours experiencing grammar code generator for this purpose but: generator are not so well flexible on error handling and docopt grammar is quite complex to describe with standard tool.

So I decided, for fun too, to rewrite a grammar parser from scratch hand crafted!

More to come.

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

No branches or pull requests

1 participant