From 49c69a495fbdb9f711d6e6bdb5dae63c42df3952 Mon Sep 17 00:00:00 2001 From: Jacob Signorovitch Date: Thu, 9 Oct 2025 11:15:50 -0400 Subject: [PATCH] Hmm. --- 05-parsing/main.rkt | 69 ++++++++++++++++++++++++++++++++++++++++++++ 05-parsing/main.rkt~ | 3 ++ 2 files changed, 72 insertions(+) create mode 100644 05-parsing/main.rkt create mode 100644 05-parsing/main.rkt~ diff --git a/05-parsing/main.rkt b/05-parsing/main.rkt new file mode 100644 index 0000000..e5da014 --- /dev/null +++ b/05-parsing/main.rkt @@ -0,0 +1,69 @@ +;; The first three lines of this file were inserted by DrRacket. They record metadata +;; about the language level of this file in a form that our tools can easily process. +#reader(lib "htdp-intermediate-reader.ss" "lang")((modname main) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) +#| + + ::= + (1) + | (2) + + ::= * (3) + | (4) + + ::= (5) + | { } (6) + +"5" + (5) + 5 + +"{5}" + (6) + (2) + (4) + (5) + 5 + +"{2 + 5}" + (6) + (1) + (4) + (5) + 2 + (2) + (4) + (5) + 5 + +"{{{2 + 5}} * {5 * {{3 + 6}}}}" + (6) + (2) + (3) + (6) + (6) + (1) + (4) + (5) + 2 + (2) + (4) + (5) + 5 + (4) + (6) + (3) + (5) + 5 + (4) + (6) + (6) + (1) + (4) + (5) + 3 + (2) + (4) + (5) + 6 + +|# + diff --git a/05-parsing/main.rkt~ b/05-parsing/main.rkt~ new file mode 100644 index 0000000..32ca8ce --- /dev/null +++ b/05-parsing/main.rkt~ @@ -0,0 +1,3 @@ +;; The first three lines of this file were inserted by DrRacket. They record metadata +;; about the language level of this file in a form that our tools can easily process. +#reader(lib "htdp-intermediate-reader.ss" "lang")((modname main) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))