1 (use-modules (skribilo source c))
6 :title (source :language c [square()\;])
8 (p [here's the output of ,(prog (source :language c [square()\;]))])
11 (image :file "square.png" :height 500))
12 (p [openscad draws a square for the code
13 ,(source :language c [square()\;]).])
14 (p [there are a couple other things worth noting here.
15 square is followed by an open and close parenthesis
16 ,(source :language c [()]), and then by a semicolon
17 ,(source :language c [\;])]))
21 (p [here's the output of ,(source :language c [square(1)\;])])
24 (image :file "square1.png" :height 500))
25 (p [note that it's identical to the
26 ,(source :language c [square()\;]) output. this is because
27 by default, openscad guesses a value of 1 whenever a value
28 is left unspecified.]))
32 (p [here's the output of ,(source :language c [square(2)\;])])
35 (image :file "square2.png" :height 500))
36 (p [note that it is twice the size of the prior 2 examples.]))
40 (p [here's the output of ,(source :language c [square(3)\;])])
41 (p [how big do you expect this square to be?])
44 (image :file "square3.png" :height 500))))