From 5213439988951b21a120a7887d4b8f5f64376b6f Mon Sep 17 00:00:00 2001 From: alexey Date: Fri, 4 Dec 2020 07:56:51 +0300 Subject: [PATCH 1/2] Edit 2.2.3.md Add brackets to minus sign --- ch02/2.3/2.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch02/2.3/2.3.md b/ch02/2.3/2.3.md index 51bb5cf5..d8467917 100644 --- a/ch02/2.3/2.3.md +++ b/ch02/2.3/2.3.md @@ -56,7 +56,7 @@ translation schemes: ``` expr -> expr {print("+")} expr + - | expr {print("-")} expr - + | expr {print("-(")} expr {print(")"} - | {print("(")} expr {print(")*(")} expr {print(")")} * | {print("(")} expr {print(")/(")} expr {print(")")} / | digit {print(digit)} From 245d009ea615e880500a45935a84b6f4c705f43a Mon Sep 17 00:00:00 2001 From: alexey Date: Sun, 10 Jan 2021 02:09:18 +0300 Subject: [PATCH 2/2] add my roman numerals --- ch02/2.2/rom | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ch02/2.2/rom diff --git a/ch02/2.2/rom b/ch02/2.2/rom new file mode 100644 index 00000000..f0f90bff --- /dev/null +++ b/ch02/2.2/rom @@ -0,0 +1,37 @@ +head->X +sub->sub|head +low->head|headhead|headheadhead +subed->L|C +mid->C +lh->low +hh->midlow +tens->lh|hh|headsubed|e + +head->I +sub->sub|head +low->head|headhead|headheadhead +subed->V|X +mid->V +lh->low +hh->midlow +ones->lh|hh|headsubed|e + +head->C +sub->sub|head +low->head|headhead|headheadhead +subed->M|D +mid->D +lh->low +hh->midlow +hundrs->lh|hh|headsubed|e + +head->M +low->head|headhead|headheadhead +thouth->low|e + +rim->thouth_hundrs_ones + + + + +