Skip to content

Reactoring introduce new docopt grammar parser #69

@Sylvain303

Description

@Sylvain303

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.

Metadata

Metadata

Assignees

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