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))))