From 29fb671e69f90ad3b04c6fa8d746caf857f89e77 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Tue, 22 Sep 2026 11:25:05 -0700 Subject: Add shared graph viewer to all chapters --- chapter07/docs/07-grammar.md | 4 ---- chapter07/docs/07-graph1.gv | 2 +- chapter07/docs/07-graph2.gv | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'chapter07/docs') diff --git a/chapter07/docs/07-grammar.md b/chapter07/docs/07-grammar.md index 29a730b6..21c5ad0a 100644 --- a/chapter07/docs/07-grammar.md +++ b/chapter07/docs/07-grammar.md @@ -14,7 +14,6 @@ statement | expressionStatement | ifStatement | whileStatement - | metaStatement ; whileStatement @@ -25,9 +24,6 @@ ifStatement : 'if' '(' expression ')' statement ('else' statement)? ; -metaStatement - : '#showGraph' ';' - ; expressionStatement : IDENTIFIER '=' expression ';' diff --git a/chapter07/docs/07-graph1.gv b/chapter07/docs/07-graph1.gv index ba806a28..5957a931 100644 --- a/chapter07/docs/07-graph1.gv +++ b/chapter07/docs/07-graph1.gv @@ -2,7 +2,7 @@ digraph chapter07 { /* while(arg < 10) { arg = arg + 1; - #showGraph; + } return arg; diff --git a/chapter07/docs/07-graph2.gv b/chapter07/docs/07-graph2.gv index f4cfcb45..4ff5ff35 100644 --- a/chapter07/docs/07-graph2.gv +++ b/chapter07/docs/07-graph2.gv @@ -2,7 +2,7 @@ digraph chapter07 { /* while(arg < 10) { arg = arg + 1; - #showGraph; + } return arg; -- cgit v1.2.3