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 (24 lines) | stat: -rw-r--r-- 492 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
-- Leading comment

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

-- Another comment
package Basic_Decl is

   type Short_Range 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; -- line ending comment
      S : Short_Range;
      M : Mid_Range range 10 .. Mid_Range(Short_Range'Last);
   end record;

end Basic_Decl;
-- Trailing comment