Skip to content

Commit ccaa87c

Browse files
author
John Nonweiler
committed
Move examples from code-walkthrough to linked module
1 parent 0695df6 commit ccaa87c

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

doc/architectural/code-walkthrough.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,10 @@ testing
1010
The core structures used for representing abstract syntax trees are all
1111
documented in \ref util.
1212

13-
\subsection ast-examples-section Examples: how to represent the AST of statements, in C and in java
14-
15-
\subsubsection ast-example-1-section x = y + 123
16-
17-
To be documented..
18-
19-
\subsubsection ast-example-2-section if (x > 10) { y = 2 } else { v[3] = 4 }
20-
21-
To be documented.
22-
23-
\subsubsection ast-example-3-section Java arrays: struct Array { int length, int *data };
24-
25-
To be documented.
26-
27-
2813
\section data-structures-from-ast-to-goto-program-section Data structures: from AST to GOTO program
2914

30-
\subsection goto-programt-section goto_programt
31-
3215
See \ref goto-programs, \ref goto_programt and [instructiont](\ref goto_programt::instructiont).
3316

34-
\subsection goto-program-example-section Example:
35-
36-
\subsubsection goto-program-example-1-section Unsigned mult (unsigned a, unsigned b) { int acc, i; for (i = 0; i < b; i++) acc += a; return acc; }
37-
38-
To be documented.
39-
40-
4117
\section front-end-languages-generating-codet-from-multiple-languages-section Front-end languages: generating codet from multiple languages
4218

4319
\subsection language-uit-section language_uit, language_filest, languaget classes:

src/goto-programs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,9 @@ previous stage:
371371
block.
372372

373373
This stage concludes the *analysis-independent* program transformations.
374+
375+
\subsection goto-program-example-section Example:
376+
377+
\subsubsection goto-program-example-1-section Unsigned mult (unsigned a, unsigned b) { int acc, i; for (i = 0; i < b; i++) acc += a; return acc; }
378+
379+
To be documented.

src/util/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,17 @@ digraph G {
130130
2 -> 3 [label="Command line options, file names"];
131131
}
132132
\enddot
133+
134+
\subsection ast-examples-section Examples: how to represent the AST of statements, in C and in java
135+
136+
\subsubsection ast-example-1-section x = y + 123
137+
138+
To be documented..
139+
140+
\subsubsection ast-example-2-section if (x > 10) { y = 2 } else { v[3] = 4 }
141+
142+
To be documented.
143+
144+
\subsubsection ast-example-3-section Java arrays: struct Array { int length, int *data };
145+
146+
To be documented.

0 commit comments

Comments
 (0)