Skip to content

Instantly share code, notes, and snippets.

@igaray
Created February 18, 2017 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaray/87c6ff9a07d802b0fe273c887852f4ef to your computer and use it in GitHub Desktop.
Save igaray/87c6ff9a07d802b0fe273c887852f4ef to your computer and use it in GitHub Desktop.
# GRAMMAR:
# _Start -> "*" "GOALS" "\n" _Goals
# _Goals -> _Goal
# | _Goal _Goals
# _Goal -> "**" <active> <text> "\n" _Projects
# _Projects -> _Project
# | _Project Projects
# _Project -> "***" <active> <text> "\n"> _ProjectChildren
# _ProjectChildren -> _SubProjects
# | _Tasks
# _Subprojects -> _Subproject
# | _Subproject _Subprojects
# _Subproject -> "****" <active> <text> "\n" _Tasks
# _Tasks -> _Task
# | _Tasks
# _Task -> "-" <completion> <text> "\n"
# | "-" <completion> <text> "\n" _Subtasks
# _Subtasks -> _Subtask
# | _Subtasks
# _Subtask -> " -" <completion> <text> "\n"
Examples:
todo1.org:
* GOALS
** + goal: g1
*** + project: p1
- [ ] task: t1
todo2.org:
* GOALS
** + goal: g1
*** + project: p1
- [ ] task: t1
- [ ] subtask: st1
todo3.org:
* GOALS
** + goal: g1
*** + project: p1
**** + subproject: sp1
- [ ] task: t1
todo4.org:
* GOALS
** + goal: g1
*** + project: p1
**** + subproject: sp1
- [ ] task: t1
- [ ] subtask: st1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment