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.
This commit is contained in:
Landon Curt Noll committed 2024-04-22 00:32:14 -07:00
1 parent 9b6f722906
commit bcbfcab2f6
2 files changed
+26 -26

No files matched your search

+13 -13
View File
@@ -216,7 +216,7 @@ Terminals are in quotes, `()` is used for bracketing.
``` ```
program: decl* program: decl*
decl: vardecl decl: vardecl
fundecl fundecl
vardecl: type NAME ; vardecl: type NAME ;
@@ -224,14 +224,14 @@ Terminals are in quotes, `()` is used for bracketing.
fundecl: type NAME "(" args ")" "{" body "}" fundecl: type NAME "(" args ")" "{" body "}"
args: /*empty*/ args: /*empty*/
( arg "," )* arg ( arg "," )* arg
arg: type NAME arg: type NAME
body: vardecl* stmt* body: vardecl* stmt*
stmt: ifstmt stmt: ifstmt
whilestmt whilestmt
dowhilestmt dowhilestmt
"return" expr ";" "return" expr ";"
@@ -239,14 +239,14 @@ Terminals are in quotes, `()` is used for bracketing.
"{" stmt* "}" "{" stmt* "}"
";" ";"
ifstmt: "if" "(" expr ")" stmt ifstmt: "if" "(" expr ")" stmt
"if" "(" expr ")" stmt "else" stmt "if" "(" expr ")" stmt "else" stmt
whilestmt: "while" "(" expr ")" 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 unop expr
expr "[" expr "]" expr "[" expr "]"
"(" expr ")" "(" expr ")"
@@ -256,19 +256,19 @@ Terminals are in quotes, `()` is used for bracketing.
CHAR CHAR
STRING STRING
exprs: /*empty*/ exprs: /*empty*/
(expr ",")* expr (expr ",")* expr
binop: "+" | "-" | "*" | "/" | "%" | binop: "+" | "-" | "*" | "/" | "%" |
"=" | "=" |
"<" | "==" | "!=" "<" | "==" | "!="
unop: "!" | "-" | "*" unop: "!" | "-" | "*"
type: "int" stars type: "int" stars
"char" stars "char" stars
stars: "*"* stars: "*"*
``` ```
<hr style="width:10%;text-align:left;margin-left:0"> <hr style="width:10%;text-align:left;margin-left:0">
+13 -13
View File
@@ -264,7 +264,7 @@ defined. <code>getchar()</code> and <code>putchar()</code> are predefined functi
<p>Terminals are in quotes, <code>()</code> is used for bracketing.</p> <p>Terminals are in quotes, <code>()</code> is used for bracketing.</p>
<pre><code> program: decl* <pre><code> program: decl*
decl: vardecl decl: vardecl
fundecl fundecl
vardecl: type NAME ; vardecl: type NAME ;
@@ -272,14 +272,14 @@ defined. <code>getchar()</code> and <code>putchar()</code> are predefined functi
fundecl: type NAME &quot;(&quot; args &quot;)&quot; &quot;{&quot; body &quot;}&quot; fundecl: type NAME &quot;(&quot; args &quot;)&quot; &quot;{&quot; body &quot;}&quot;
args: /*empty*/ args: /*empty*/
( arg &quot;,&quot; )* arg ( arg &quot;,&quot; )* arg
arg: type NAME arg: type NAME
body: vardecl* stmt* body: vardecl* stmt*
stmt: ifstmt stmt: ifstmt
whilestmt whilestmt
dowhilestmt dowhilestmt
&quot;return&quot; expr &quot;;&quot; &quot;return&quot; expr &quot;;&quot;
@@ -287,14 +287,14 @@ defined. <code>getchar()</code> and <code>putchar()</code> are predefined functi
&quot;{&quot; stmt* &quot;}&quot; &quot;{&quot; stmt* &quot;}&quot;
&quot;;&quot; &quot;;&quot;
ifstmt: &quot;if&quot; &quot;(&quot; expr &quot;)&quot; stmt ifstmt: &quot;if&quot; &quot;(&quot; expr &quot;)&quot; stmt
&quot;if&quot; &quot;(&quot; expr &quot;)&quot; stmt &quot;else&quot; stmt &quot;if&quot; &quot;(&quot; expr &quot;)&quot; stmt &quot;else&quot; stmt
whilestmt: &quot;while&quot; &quot;(&quot; expr &quot;)&quot; stmt whilestmt: &quot;while&quot; &quot;(&quot; expr &quot;)&quot; stmt
dowhilestmt: &quot;do&quot; stmt &quot;while&quot; &quot;(&quot; expr &quot;)&quot; &quot;;&quot; dowhilestmt:&quot;do&quot; stmt &quot;while&quot; &quot;(&quot; expr &quot;)&quot; &quot;;&quot;
expr: expr binop expr expr: expr binop expr
unop expr unop expr
expr &quot;[&quot; expr &quot;]&quot; expr &quot;[&quot; expr &quot;]&quot;
&quot;(&quot; expr &quot;)&quot; &quot;(&quot; expr &quot;)&quot;
@@ -304,19 +304,19 @@ defined. <code>getchar()</code> and <code>putchar()</code> are predefined functi
CHAR CHAR
STRING STRING
exprs: /*empty*/ exprs: /*empty*/
(expr &quot;,&quot;)* expr (expr &quot;,&quot;)* expr
binop: &quot;+&quot; | &quot;-&quot; | &quot;*&quot; | &quot;/&quot; | &quot;%&quot; | binop: &quot;+&quot; | &quot;-&quot; | &quot;*&quot; | &quot;/&quot; | &quot;%&quot; |
&quot;=&quot; | &quot;=&quot; |
&quot;&lt;&quot; | &quot;==&quot; | &quot;!=&quot; &quot;&lt;&quot; | &quot;==&quot; | &quot;!=&quot;
unop: &quot;!&quot; | &quot;-&quot; | &quot;*&quot; unop: &quot;!&quot; | &quot;-&quot; | &quot;*&quot;
type: &quot;int&quot; stars type: &quot;int&quot; stars
&quot;char&quot; stars &quot;char&quot; stars
stars: &quot;*&quot;*</code></pre> stars: &quot;*&quot;*</code></pre>
<hr style="width:10%;text-align:left;margin-left:0"> <hr style="width:10%;text-align:left;margin-left:0">
<p>Well, that is enough ranting for now.</p> <p>Well, that is enough ranting for now.</p>
<!-- <!--