Debian Codegraph @

examples/prism-ada.html

raw symbols SCIP
1 <h2>Strings</h2>
2 <pre><code>"foo ""bar"" baz"
3 "Multi-line strings are appended with a " &
4 "ampersand symbole."</code></pre>
5
6 <h2>Ada83 example</h2>
7 <pre><code>WITH ADA.TEXT_IO;
8
9 -- Comments look like this.
10
11 PROCEDURE TEST IS
12 BEGIN
13 ADA.TEXT_IO.PUT_LINE ("Hello"); -- Comments look like this.
14 END TEST;</code></pre>
15
16 <h2>Ada 2012 full example</h2>
17 <pre><code>with Ada.Text_IO; Use Ada.Text_IO;
18
19 -- Comments look like this.
20 procedure Test is
21 procedure Bah with
22 Import => True, -- Shows the new aspect feature of the language.
23 Convention => C,
24 External_Name => "bah";
25
26 type Things is range 1 .. 10;
27 begin
28 Put_Line ("Hello"); -- Comments look like this.
29
30 Bah; -- Call C function.
31
32 for Index in Things'Range loop
33 null;
34 end loop;
35 end Test;</code></pre>