File: basic_decl.ads

package info (click to toggle)
asis 2014-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,064 kB
  • ctags: 37
  • sloc: ada: 146,541; makefile: 364; sh: 50; xml: 48; csh: 10
file content (56 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--  Leading comment

with Text_IO;
with Ada.Text_IO, Ada.Strings.Unbounded;
use Ada;
use Ada.Text_IO;

with Ada;         use Ada;
with Ada.Text_IO; use Ada.Text_IO;
with Ada;         use Ada;

with Ada.Text_IO; use Ada.Text_IO;
with Ada;         use Ada;
with Ada;         use Ada;

with Ada;         use Ada;
with Ada;         use Ada;
with Ada.Text_IO; use Ada.Text_IO;

with Ada; use Ada;
--  A comment in the middle.
with Ada.Text_IO; use Ada.Text_IO;
with Ada;         use Ada;

with Ada.Text_IO; use Ada.Text_IO;
with Ada;         use Ada;
--  A comment in the middle.
with Ada; use Ada;

with Ada; use Ada;
--  A comment in the middle.
with Ada;         use Ada;
with Ada.Text_IO; use Ada.Text_IO;

--  Another comment

package Basic_Decl is -- An end-of-line comment.

   type Short_Range -- An end-of-line comment in an odd place.
   is range 1 .. 10;

   subtype Same_Short_Range is Short_Range;

   type Mid_Range is range Integer'First .. Natural'Last;

   type A_Record is record
      A : Integer;
      S : Short_Range;
      M : Mid_Range range 10 .. Mid_Range (Short_Range'Last);
   end record;

   A_Very_Very_Very_Very_Very_Very_Long_Identifier,
   Another_Very_Very_Very_Very_Very_Very_Long_Identifier,
   Still_Another_Very_Very_Very_Very_Very_Very_Long_Identifier : Integer;

end Basic_Decl;