Use PEGs to parse taskwarrior command format #2

Open
opened 2024-08-06 20:14:09 -07:00 by aynish · 2 comments
Owner

If I use PEGs I can keep parsing definitions ~almost equivalent between the js and go clients.
Penguin for Go
PEG.js for js

These two mostly share a syntax for grammar definitions.

Examples of things I want to parse:

  • task add pro:chores +purchase "buy groceries"
  • filters like (status:pending limit:0 -BLOCKED not.pro:finances)

https://taskwarrior.org/docs/report/ has some more information

If I use PEGs I can keep parsing definitions ~almost equivalent between the js and go clients. Penguin for Go PEG.js for js These two mostly share a syntax for grammar definitions. Examples of things I want to parse: - task add pro:chores +purchase "buy groceries" - filters like (status:pending limit:0 -BLOCKED not.pro:finances) https://taskwarrior.org/docs/report/ has some more information
Author
Owner
https://taskwarrior.org/docs/filter/
Author
Owner
https://taskwarrior.org/docs/syntax/
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: aynish/mast#2
No description provided.