aboutsummaryrefslogtreecommitdiff
path: root/2021/day5/05a_grammar.rkt
diff options
context:
space:
mode:
Diffstat (limited to '2021/day5/05a_grammar.rkt')
-rw-r--r--2021/day5/05a_grammar.rkt6
1 files changed, 6 insertions, 0 deletions
diff --git a/2021/day5/05a_grammar.rkt b/2021/day5/05a_grammar.rkt
new file mode 100644
index 0000000..cc78e6a
--- /dev/null
+++ b/2021/day5/05a_grammar.rkt
@@ -0,0 +1,6 @@
+#lang brag
+vents: (line "\n")* ["\n"]
+line: coord " " "-" ">" " " coord
+coord: number "," number
+number: digit*
+digit: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"