Install scaffolding for Peggy grammar generator

This commit is contained in:
2025-01-14 14:27:53 +01:00
parent fc48be9407
commit f1f87bc8e8
9 changed files with 90 additions and 7 deletions

5
grammar/task.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = {
input: "grammar/task.pegjs",
output: "src/generated/grammar/task.js",
dts: true
}

6
grammar/task.pegjs Normal file
View File

@@ -0,0 +1,6 @@
start = task
task = "-" _ "[" status:. "]" { return status; }
_ "whitespace"
= [ \t\n\r]*