Install scaffolding for Peggy grammar generator
This commit is contained in:
5
grammar/task.js
Normal file
5
grammar/task.js
Normal 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
6
grammar/task.pegjs
Normal file
@@ -0,0 +1,6 @@
|
||||
start = task
|
||||
|
||||
task = "-" _ "[" status:. "]" { return status; }
|
||||
|
||||
_ "whitespace"
|
||||
= [ \t\n\r]*
|
||||
Reference in New Issue
Block a user