Move examples from code-walkthrough to linked module

This commit is contained in:
John Nonweiler 2018-08-15 16:44:17 +01:00
parent 0695df68e1
commit ccaa87cef8
3 changed files with 20 additions and 24 deletions

View File

@ -10,34 +10,10 @@ testing
The core structures used for representing abstract syntax trees are all
documented in \ref util.
\subsection ast-examples-section Examples: how to represent the AST of statements, in C and in java
\subsubsection ast-example-1-section x = y + 123
To be documented..
\subsubsection ast-example-2-section if (x > 10) { y = 2 } else { v[3] = 4 }
To be documented.
\subsubsection ast-example-3-section Java arrays: struct Array { int length, int *data };
To be documented.
\section data-structures-from-ast-to-goto-program-section Data structures: from AST to GOTO program
\subsection goto-programt-section goto_programt
See \ref goto-programs, \ref goto_programt and [instructiont](\ref goto_programt::instructiont).
\subsection goto-program-example-section Example:
\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; }
To be documented.
\section front-end-languages-generating-codet-from-multiple-languages-section Front-end languages: generating codet from multiple languages
\subsection language-uit-section language_uit, language_filest, languaget classes:

View File

@ -371,3 +371,9 @@ previous stage:
block.
This stage concludes the *analysis-independent* program transformations.
\subsection goto-program-example-section Example:
\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; }
To be documented.

View File

@ -130,3 +130,17 @@ digraph G {
2 -> 3 [label="Command line options, file names"];
}
\enddot
\subsection ast-examples-section Examples: how to represent the AST of statements, in C and in java
\subsubsection ast-example-1-section x = y + 123
To be documented..
\subsubsection ast-example-2-section if (x > 10) { y = 2 } else { v[3] = 4 }
To be documented.
\subsubsection ast-example-3-section Java arrays: struct Array { int length, int *data };
To be documented.