summaryrefslogtreecommitdiff
path: root/chapter03/docs
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-09-22 11:25:05 -0700
committerCliff Click <cliffc@acm.org>2026-09-22 11:25:05 -0700
commit29fb671e69f90ad3b04c6fa8d746caf857f89e77 (patch)
tree2f39d082f8a6de6a2b60b66406f8c9f0190d25c2 /chapter03/docs
parent1d961838cff168a101069d08a8ab6594f49f0911 (diff)
downloadSimple-29fb671e69f90ad3b04c6fa8d746caf857f89e77.tar.gz
Simple-29fb671e69f90ad3b04c6fa8d746caf857f89e77.zip
Add shared graph viewer to all chapters
Diffstat (limited to 'chapter03/docs')
-rw-r--r--chapter03/docs/03-grammar.md4
-rw-r--r--chapter03/docs/03-graph1.gv2
-rw-r--r--chapter03/docs/03-graph2.gv2
-rw-r--r--chapter03/docs/03-graph3.gv2
4 files changed, 3 insertions, 7 deletions
diff --git a/chapter03/docs/03-grammar.md b/chapter03/docs/03-grammar.md
index 14a7d5fa..1d36b532 100644
--- a/chapter03/docs/03-grammar.md
+++ b/chapter03/docs/03-grammar.md
@@ -12,12 +12,8 @@ statement
| declStatement
| blockStatment
| expressionStatement
- | metaStatement
;
-metaStatement
- : '#showGraph' ';'
- ;
expressionStatement
: IDENTIFIER '=' expression ';'
diff --git a/chapter03/docs/03-graph1.gv b/chapter03/docs/03-graph1.gv
index 2bdca351..7008a44e 100644
--- a/chapter03/docs/03-graph1.gv
+++ b/chapter03/docs/03-graph1.gv
@@ -1,6 +1,6 @@
digraph chapter03 {
/*
-int a=1; int b=2; int c=0; { int b=3; c=a+b; #showGraph; } return c; #showGraph;
+int a=1; int b=2; int c=0; { int b=3; c=a+b; } return c;
*/
rankdir=BT;
ordering="in";
diff --git a/chapter03/docs/03-graph2.gv b/chapter03/docs/03-graph2.gv
index 460b63c8..cafa7f25 100644
--- a/chapter03/docs/03-graph2.gv
+++ b/chapter03/docs/03-graph2.gv
@@ -1,6 +1,6 @@
digraph chapter03 {
/*
-int a=1; int b=2; int c=0; { int b=3; c=a+b; #showGraph; } return c; #showGraph;
+int a=1; int b=2; int c=0; { int b=3; c=a+b; } return c;
*/
rankdir=BT;
ordering="in";
diff --git a/chapter03/docs/03-graph3.gv b/chapter03/docs/03-graph3.gv
index 50cb6d27..791a7dc1 100644
--- a/chapter03/docs/03-graph3.gv
+++ b/chapter03/docs/03-graph3.gv
@@ -1,6 +1,6 @@
digraph chapter03 {
/*
-int x0=1; int y0=2; int x1=3; int y1=4; return (x0-x1)*(x0-x1) + (y0-y1)*(y0-y1); #showGraph;
+int x0=1; int y0=2; int x1=3; int y1=4; return (x0-x1)*(x0-x1) + (y0-y1)*(y0-y1);
*/
rankdir=BT;
ordering="in";