pageparse.ai / grammars /task.gbnf
Varun2007's picture
initial clean deployment commit with compilers
8c3e275
Raw
History Blame Contribute Delete
768 Bytes
# SPDX-FileCopyrightText: 2026 Team Centurions
# SPDX-License-Identifier: AGPL-3.0-or-later
root ::= object
object ::= "{" ws "\"source_page\"" ws ":" ws string ws "," ws "\"captured_date\"" ws ":" ws (string | "null") ws "," ws "\"tasks\"" ws ":" ws "[" ws task-list ws "]" ws "}"
task-list ::= task (ws "," ws task)*
task ::= "{" ws "\"task\"" ws ":" ws string ws "," ws "\"due_date\"" ws ":" ws (string | "null") ws "," ws "\"priority\"" ws ":" ws priority ws "," ws "\"category\"" ws ":" ws (string | "null") ws "," ws "\"status\"" ws ":" ws status ws "," ws "\"ocr_confidence\"" ws ":" ws number ws "}"
priority ::= "\"high\"" | "\"medium\"" | "\"low\""
status ::= "\"todo\"" | "\"done\""
string ::= "\"" [^"]* "\""
number ::= [0-9]+ "."? [0-9]*
ws ::= [ \t\n]*