task_list_parser

Crates.iotask_list_parser
lib.rstask_list_parser
version0.1.5
sourcesrc
created_at2024-11-13 17:09:30.964721
updated_at2024-11-16 17:30:36.2621
descriptionA Rust-based parser for task lists with priority, status, date, and description fields.
homepage
repository
max_upload_size
id1446839
size25,368
Denys Davydov (den4hic)

documentation

README

Task List Parser in Rust

Overview

This project is a task list parser written in Rust using the pest parsing library. It can read and interpret structured task lists, with fields like priority, completion status, start date, optional tags, time estimate, and description.

Grammar Rules

  • Priority: Indicates importance using !, !!, or !!!.
  • Status: [ ] for incomplete, [x] for completed.
  • Date: {YYYY-MM-DD} format.
  • Tags: Hashtags for categorization (e.g., #urgent).
  • Time Estimate: Time estimate in hours (h) or minutes (m).

Example Input

  • !! [ ] {2024-11-05} #shopping 1h Buy groceries
  • !!! [x] {2024-12-01} #work 2h Finish Rust project
  • ! [ ] {2025-01-15} #learning 5h Prepare presentation

Running the Parser

cargo run -- --file tasks.txt
Commit count: 0

cargo fmt