todotxt / todo.txt

‼️ A complete primer on the whys and hows of todo.txt.
GNU General Public License v3.0
2.33k stars 102 forks source link

Provide a reference parser implementation #18

Open bricef opened 6 years ago

bricef commented 6 years ago

It is useful for implementers of tools that work with the todo.txt format to have a formal grammar and reference implementation to implement the format correctly.

I just had to write a parser, and while incomplete and likely incorrect (whitespace includes newlines, parser is for line, not file, etc...) it would be a good starting point and will very likely be useful for future implementers.

I would recommend that this is followed up by a formal grammar specification for the format.

dessalines commented 5 years ago

This is a really good idea, I'd like to see this merged.

samuelallan72 commented 1 year ago

A reference parser grammar in some standardised format would be a real nice to have actually. Something like EBNF for example.

This is nice, but I'm not sure a language-specific parser fits in the spec. It would be cool as a linked project however. :+1: