From bcbfcab2f671cd1565ba6dc78f010a8de7842687 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 22 Apr 2024 00:32:14 -0700 Subject: [PATCH] improve layout of 1996/august/index.html Improved indenting of information in a code block. Ran `bin/readme2index.sh -v 1 1996/august` to perform the above. --- 1996/august/README.md | 26 +++++++++++++------------- 1996/august/index.html | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/1996/august/README.md b/1996/august/README.md index b7b57ba8e..a3fdd526c 100644 --- a/1996/august/README.md +++ b/1996/august/README.md @@ -216,7 +216,7 @@ Terminals are in quotes, `()` is used for bracketing. ``` program: decl* - decl: vardecl + decl: vardecl fundecl vardecl: type NAME ; @@ -224,14 +224,14 @@ Terminals are in quotes, `()` is used for bracketing. fundecl: type NAME "(" args ")" "{" body "}" - args: /*empty*/ + args: /*empty*/ ( arg "," )* arg - arg: type NAME + arg: type NAME - body: vardecl* stmt* + body: vardecl* stmt* - stmt: ifstmt + stmt: ifstmt whilestmt dowhilestmt "return" expr ";" @@ -239,14 +239,14 @@ Terminals are in quotes, `()` is used for bracketing. "{" stmt* "}" ";" - ifstmt: "if" "(" expr ")" stmt + ifstmt: "if" "(" expr ")" stmt "if" "(" expr ")" stmt "else" stmt whilestmt: "while" "(" expr ")" stmt - dowhilestmt: "do" stmt "while" "(" expr ")" ";" + dowhilestmt:"do" stmt "while" "(" expr ")" ";" - expr: expr binop expr + expr: expr binop expr unop expr expr "[" expr "]" "(" expr ")" @@ -256,19 +256,19 @@ Terminals are in quotes, `()` is used for bracketing. CHAR STRING - exprs: /*empty*/ + exprs: /*empty*/ (expr ",")* expr - binop: "+" | "-" | "*" | "/" | "%" | + binop: "+" | "-" | "*" | "/" | "%" | "=" | "<" | "==" | "!=" - unop: "!" | "-" | "*" + unop: "!" | "-" | "*" - type: "int" stars + type: "int" stars "char" stars - stars: "*"* + stars: "*"* ```
diff --git a/1996/august/index.html b/1996/august/index.html index c9d46e3c7..f19ed990d 100644 --- a/1996/august/index.html +++ b/1996/august/index.html @@ -264,7 +264,7 @@ defined. getchar() and putchar() are predefined functi

Terminals are in quotes, () is used for bracketing.

    program:    decl*
 
-    decl:               vardecl
+    decl:       vardecl
                     fundecl
 
     vardecl:    type NAME ;
@@ -272,14 +272,14 @@ defined. getchar() and putchar() are predefined functi
 
     fundecl:    type NAME "(" args ")" "{" body "}"
 
-    args:               /*empty*/
+    args:       /*empty*/
                     ( arg "," )* arg
 
-    arg:                type NAME
+    arg:        type NAME
 
-    body:               vardecl* stmt*
+    body:       vardecl* stmt*
 
-    stmt:               ifstmt
+    stmt:       ifstmt
                     whilestmt
                     dowhilestmt
                     "return" expr ";"
@@ -287,14 +287,14 @@ defined. getchar() and putchar() are predefined functi
                     "{" stmt* "}"
                     ";"
 
-    ifstmt:             "if" "(" expr ")" stmt
+    ifstmt:     "if" "(" expr ")" stmt
                     "if" "(" expr ")" stmt "else" stmt
 
     whilestmt:  "while" "(" expr ")" stmt
 
-    dowhilestmt:        "do" stmt "while" "(" expr ")" ";"
+    dowhilestmt:"do" stmt "while" "(" expr ")" ";"
 
-    expr:               expr binop expr
+    expr:       expr binop expr
                     unop expr
                     expr "[" expr "]"
                     "(" expr ")"
@@ -304,19 +304,19 @@ defined. getchar() and putchar() are predefined functi
                     CHAR
                     STRING
 
-    exprs:              /*empty*/
+    exprs:      /*empty*/
                     (expr ",")* expr
 
-    binop:              "+" | "-" | "*" | "/" | "%" |
+    binop:      "+" | "-" | "*" | "/" | "%" |
                     "=" |
                     "<" | "==" | "!="
 
-    unop:               "!" | "-" | "*"
+    unop:       "!" | "-" | "*"
 
-    type:               "int" stars
+    type:       "int" stars
                     "char" stars
 
-    stars:              "*"*
+ stars: "*"*

Well, that is enough ranting for now.