WHITESPACE = _{ " " | "\n" }
COMMENT = _{ "--" ~ ANY* ~ "\n"}

field = { "full_text"
        | "is_completed"
        | "id"
        | "is_blocking_for"
        | "is_blocked"
        | "creation_date"
        | "completion_date"
        | "priority"
        | "context"
        | "contexts"
        | "project"
        | "projects"
        | "due_date"
        | "threshold_date"
        | "is_hidden"
        }
select_fields_star = { "*" }
select_fields_list = { "(" ~ (field ~ ",")* ~ field ~ ")" }
from_table = { "-"  // STDIN
             | "todo_txt"
             | "done_txt"
             // TODO: other views
             }
select = { "select" ~ select_fields_star
         ~ "from" ~ from_table }

