content
stringlengths
23
1.05M
with System; with Startup; package body MSPGD.Board is procedure Init is begin Clock.Init; LED_RED.Init; LED_GREEN.Init; RX.Init; TX.Init; BUTTON.Init; UART.Init; end Init; end MSPGD.Board;
with Ada.Wide_Text_IO, Ada.Characters.Handling, Ada.Exceptions, Asis.Compilation_Units, Asis.Exceptions, Asis.Errors, Asis.Implementation, AdaM.Assist.Query.find_Entities.unit_Processing; package body AdaM.Assist.Query.find_Entities.context_Processing is function Get_Unit_...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with ABR; procedure Test_ABR is package ABR_String_Integer is new ABR (T_Cle => Character, T_Donnee => Integer, "<" => "<"); use ABR_String_Integer; procedure Afficher (C : in Character) is begin Put ("'" & C & "...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Display.Modes is type Mode is record Width, Height : Natural; Red_Bits, Green_Bits, Blue_Bits : Natural; end record; type Mode_List is array (Positive range <>) of Mo...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package annee is function Est_Bissextile (Annee : Integer) return Boolean; end annee;
with Ada.Exceptions; with ACO.Log; package body ACO.Drivers.Socket is use ACO.Log; overriding procedure Receive_Message_Blocking (This : in out CAN_Driver; Msg : out ACO.Messages.Message) is Frame : SocketCAN.Can_Frame; begin SocketCAN.Receive_Socket_Blocking (This.Socket, ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Profile(Ravenscar); pragma Reviewable; with Bcontrol;use Bcontrol; with Control; use Control; --with Gio; --with Reg_Het; with System; use System; with Ada.Real_Time;use Ada.Real_Time; procedure Main is --pragma Priority(Priority'Last); Stop : Boolean := False; S: String(1..5) := (others => ASCII.NUL...
----------------------------------------------------------------------- -- servlet-rest-definition -- REST API Definition -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fil...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
with Ada.Text_IO; with Ada.Numerics.Float_Random; procedure Rock_Paper_Scissors is package Rand renames Ada.Numerics.Float_Random; Gen: Rand.Generator; type Choice is (Rock, Paper, Scissors); Cnt: array (Choice) of Natural := (1, 1, 1); -- for the initialization: pretend that each of Rock, Paper, ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising f...
-- { dg-do compile } with Ada.Text_IO; use Ada.Text_IO; procedure String_Comparison is package Bool_IO is new Enumeration_IO (Boolean); use Bool_IO; begin Put (Boolean'Image (True) = "True"); end;
-- ----------------------------------------------------------------- -- -- ASDL_Mixer -- -- Binding to SDL mixer lib -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } with Ada.Containers.Ordered_Sets; procedure Set_In_Pproc is protected type Ptype is procedure Pproc; end; protected body Ptype is procedure Pproc is package Sets is new Ada.Containers.Ordered_Sets (Element_Type => Integer); begin null;...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Discr41 is type Vector is array (Positive range <>) of Long_Float; type Date is record LF : Long_Float := 0.0; end record; type Date_Vector is array (Positive range <>) of Date; type Rec (D : Natural) is record B1 : Boolean := False; DL : Date_Vector (1 .. D); VL : Vec...
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Polymorphic_Copy is package Base is type T is tagged null record; type T_ptr is access all T'Class; function Name (X : T) return String; end Base; use Base; package body Base is function Name (X : T) return String is begin ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Main; procedure RunImage is --pragma Suppress(All_Checks); begin Main.Main; end RunImage;
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
-- { dg-do run } with System.Storage_Elements; use System.Storage_Elements; with Ada.Unchecked_Deallocation; procedure Align_MAX is Align : constant := Standard'Maximum_Alignment; generic type Data_Type (<>) is private; type Access_Type is access Data_Type; with function Allocate return Acc...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2015 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
pragma License (Unrestricted); with Ada.Task_Identification; -- use Ada.Task_Identification; generic type Attribute is private; Initial_Value : Attribute; package Ada.Task_Attributes is type Attribute_Handle is access all Attribute; function Value ( T : Task_Identification.Task_Id := Task_Identifica...
with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; with Ada.Text_IO; use Ada.Text_IO; procedure Matrix_Transpose is procedure Put (X : Real_Matrix) is type Fixed is delta 0.01 range -500.0..500.0; begin for I in X'Range (1) loop for J in X'Range (2) loop ...
----------------------------sparksADA---------------------------- procedure dice_rolling (in loop: int, out results: int[6]) global dice=: int[1,2,3,4,5,6] pre => results = 0 loop /= 0 post => results /= 0 for i 1...loop: rand_num=:rand_num() if rand_num=1; results[1] := results[1] + 1 ...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required...
----------------------------------------------------------------------- -- gperfhash -- Perfect hash Ada generator -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
----------------------------------------------------------------------- -- gen-model-xmi -- UML-XMI model -- Copyright (C) 2012, 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless req...
with Matreshka.Internals.Unicode.Ucd; separate (WebIDL.Scanners) package body Tables is subtype First_Stage_Index is Matreshka.Internals.Unicode.Ucd.First_Stage_Index; subtype Second_Stage_Index is Matreshka.Internals.Unicode.Ucd.Second_Stage_Index; type Second_Stage_Array is array (Second_Stage_I...
----------------------------------------------------------------------- -- mgrep-matcher -- Print mail grep results -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
package body Poly with SPARK_Mode is function Horner (X: Integer; A: Vector) return Integer is Acc: Integer := 0; Aux: Integer := 0 with Ghost; begin for Index in reverse A'First .. A'Last loop Acc := A (Index) + (Acc * X); Aux := Aux + A (Index) * (X ** (Index - A'First)); ...
package body TestPosition is procedure run_test is begin -- testEquals declare p1 : Position := makeFromArray(new IntArray'(1,1)); p2 : Position := makeFromArray(new IntArray'(1,1)); begin assert(p1.equals(p2), "Error in equals"); end; -- testNormalize declare p : Position := makeFromArray(new IntArray'(...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" generic type Object_Type (<>) is new GL_Object with private; with function Generate_From_Id (Id : UInt) return Object_Type; package GL.Objects.Lists is pragma Preelaborate; type List (<>) i...
package body Lto20_Pkg is type Obj is record I : Integer; end record; procedure Proc (A : Arr) is begin null; end; end Lto20_Pkg;
with Ada.Text_IO; use Ada.Text_IO; procedure Task_Demo is task type Worker is entry Square(X: Integer); entry Ping; end Worker; task body Worker is Y: Integer; begin loop select accept Square(X: Integer) do Y := X; end; Put_Line(Integer'Image(Y) & "^2 = " & Integer'Image...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Generic Types -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) -- -- @summary: Commonly used functions on basic types package Generic_Types with SPARK_Mode is generic ...
pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__main.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__main.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_main is pragma Warnings (Off); E074 : Short_Integer; pragma Import (Ada, E074, "system_...
with Protypo.Api.Interpreters; procedure Protypo.Scanning.Test is begin -- Dump (Tokenize ("\wpitem{#WP.index}{#WP.start}{#WP.end}")); Dump (Tokenize (Api.Interpreters.Slurp ("test-data/scanner.txt"), "")); end Protypo.Scanning.Test;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Vecteurs_Creux; use Vecteurs_Creux; procedure Test_Vecteurs_Creux is procedure Initialiser (VC0, VC1, VC2 : out T_Vecteur_Creux) is begin -- VC0 est un vecteur nul Initialiser (VC0); -- VC1 est un vecteur à deux composante Initialiser (VC1); Modifier (VC...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- private with Ada.Containers.Hashed_Sets; private with Incr.Nodes.Hash; with LSP.Messages; with LSP.Types; with Ada_LSP.Ada_Parser_Da...
----------------------------------------------------------------------- -- security-auth-oauth-facebook -- Facebook OAuth based authentication -- Copyright (C) 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Yaml.Lexer.Buffering_Test; with Yaml.Lexer.Tokenization_Test; with Yaml.Parser.Event_Test; package body Yaml.Loading_Tests.Suite is Result : aliased AUnit.Test_Suites.Test_Suite; Buffering...
-- Lua.Userdata -- Adding Ada objects of a specified tagged type to the Lua environment -- Copyright (c) 2015-2021, James Humphry - see LICENSE for terms with Ada.Tags; with System.Address_To_Access_Conversions; with Interfaces, Interfaces.C, Interfaces.C.Strings; use Interfaces; with Lua.Internal, Lua.AuxInternal...
package body String_Utils is --------------- -- To_String -- --------------- function To_String (Input : Int32) return String is Result : constant String := Input'Image; begin if Input < 0 then return Result; -- including the first char, which is the minus sign else ...
-- AOC, Day 6 with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Day is type Orbit_Entry is record Left : Unbounded_String := Null_Unbounded_String; Right : Unbounded_String := Null_Unbounded_String; end record; package Orbit_List is new Ada.Containers.Vectors ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
-- { dg-do run } procedure aggr1 is package Coord is type T is private; private type T is record A, B, C : Float; end record; end Coord; -- generic type T is private; package gen is type Rec (Discr : Boolean := True) is record needs_update : Boolean; ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Long_Integer_Text_IO; use Ada.Long_Integer_Text_IO; procedure Fib is function Fib (N : Long_Integer) return Long_Integer is begin if N <= 1 then return 1; end if; return Fib (N - 1) + Fib (N - 2); end Fib; begin Put (Fib (4...
-- -- The demo of type hierarchy use: declarations, loops, dereferencing.. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more detai...
-- with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Interfaces.C.Pointers; with System; package body Amp.Stereo is use type LADSPA.Data_Ptr; use type LADSPA.Handles; type Amplifiers is record Gain_Value : LADSPA.Data_Ptr; Inp...
pragma Ada_2012; package body AUnit.Assertions.Generic_Helpers is ------------------ -- Assert_Error -- ------------------ procedure Assert_Error (Message : String; Source : String := GNAT.Source_Info.File; Line : Natural := GNAT.Source_Info.Line) is begin AUnit.Assertions.Assert...
------------------------------------------------------------------------------ -- cooks.ads -- -- This package supplies a task type for the Cooks in the Enhanced Dining -- Philosophers simulation. It also defines an array of cooks. -- -- Entries: -- -- Here_Is_Your_Name (Name) assigns the name Name to the ...
package Vole_Shift_Reduce is type Small_Integer is range -32_000 .. 32_000; type Shift_Reduce_Entry is record T : Small_Integer; Act : Small_Integer; end record; pragma Pack(Shift_Reduce_Entry); subtype Row is Integer range -1 .. Integer'Last; --pragma suppress(index_check); ...
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Strings.Unbounded; with Ada.Strings.Fixed; with Ada.Command_Line; procedure Main is p : Long_Long_Integer; q : Long_Long_Integer; phi : Long_Long_Integer; n : Long_Long_Integer; e : Long_Long_Integer; d : Long_Long_Integer; message : Long_Long_...
with Ada.Real_Time; use Ada.Real_Time; with STM_Board; use STM_Board; with Inverter_ADC; use Inverter_ADC; with Inverter_PWM; use Inverter_PWM; package body Startup is -- procedure Wait_Until_V_Battery; -- Wait until battery voltage is between minimum and maximum. -- Enable this routine only when t...
package Exception_Rename is MyException : exception; MyOtherException : exception renames MyException; end Exception_Rename;
type Four_Bits is array (1..4) of Boolean; procedure Half_Adder (Input_1, Input_2 : Boolean; Output, Carry : out Boolean) is begin Output := Input_1 xor Input_2; Carry := Input_1 and Input_2; end Half_Adder; procedure Full_Adder (Input_1, Input_2 : Boolean; Output : out Boolean; Carry : in out Boolean) is T...
package Loop_Optimization22 is type Discrim_Type (Count : Positive) is null record; procedure Foo (X : Discrim_Type); end Loop_Optimization22;
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ unknown base pools -- -- |___/_|\_\_|_|____| by: Timm Felden ...
package body Opt35_Pkg is function F (I : Integer) return Integer is begin if I = 0 then raise E; end if; return -I; end; end Opt35_Pkg;
with Sodium.Functions; use Sodium.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is message : constant String := "Arbitrary text to hash"; key : constant String := "123456789 123456789 123456789 12"; begin if not initialize_sodium_library then Put_Line ("Initialization failed"); ...
package Mission with SPARK_Mode is -- the mission can only go forward type Mission_State_Type is ( UNKNOWN, INITIALIZING, WAITING_FOR_GPS, STARTING, WAITING_FOR_ASCEND, ASCENDING, DETACHING, DESCENDING, WAITING_ON_GROUND, WAITING_FOR_RESET ); t...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Entities; use Entities; with Rectangles; with Worlds; with Materials; with Vectors2D; use Vectors2D; with Renderer; use Renderer; with DemoLogic; use DemoLogic; with Utils; use Utils; package body AdaPhysics2DDemo is procedure Start(This : in out Menu) is SCeiling, SFloor, SRight, SLeft : EntityClass...
with AUnit.Test_Suites; package Dl.Test_All_Suit is function Suite return AUnit.Test_Suites.Access_Test_Suite; -- Return the test suite end Dl.Test_All_Suit;
-- { dg-excess-errors "no code generated" } generic type T is private; package Size_Attribute1_Pkg2 is procedure Proc; end Size_Attribute1_Pkg2;
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with ahven.Text_Runner, ahven.Framework, math_Tests.linear_Algebra_2d, math_Tests.linear_Algebra_3d, math_Tests.Geometry_2d; procedure launch_math_Testsuite is S : constant ahven.Framework.test_Suite_access := ahven.Framework.create_Suite ("All Math Tests"); begin S.add_Test (new math_Tests...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.QSPI is pragma Preelaborate; --------------- -- Registers -- --------------- -- Control A type QSPI_CTRLA_Register is...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
with Tokenize.Private_Token_Lists; package body Tokenize with SPARK_Mode => On is use Private_Token_Lists; function To_Array (List : Token_List) return Token_Array; function Basic_Split (To_Be_Splitted : String; Separator : Ada.Strings.Maps.Character_Set; ...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- package Status is type State_Type is ...
with System.Machine_Code; use System.Machine_Code; with MSP430_SVD; use MSP430_SVD; with MSP430_SVD.SYSTEM_CLOCK; use MSP430_SVD.SYSTEM_CLOCK; with MSP430_SVD.WATCHDOG_TIMER; use MSP430_SVD.WATCHDOG_TIMER; with MSP430_SVD.SPECIAL_FUNCTION; use MSP430_SVD.SPECIAL_FUNCTION; package body MSPGD.Clock.Source is procedu...
with Test_Solution; use Test_Solution; with Ada.Numerics; use Ada.Numerics; with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Ada.Containers.Vectors; package Problem_5 is type Int64 is range -2**63 .. 2**63 - 1; type Prime_Count is record Prime : Int64; Count...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Messages.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Messages.Test_Data .Test with n...
-- { dg-excess-errors "no code generated" } with Varsize_Return_Pkg2; generic type Id_T is range <>; package Varsize_Return_Pkg1 is type Variable_Data_T (Fixed : Boolean := False) is record case Fixed is when True => Length : Natural; when False => null; end ...
pragma License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.Generic_Equal_Case_Insensitive; function Ada.Strings.Wide_Equal_Case_Insensitive is new Generic_Equal_Case_Insensitive ( Wide_Character, Wide_String, Characters.Conversions.Get); -- pragma Pure (Ada.Strin...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package AdaBase.Logger is pragma Pure; type Base_Pure is abstract tagged private; private type Base_Pure is abstract tagged record null; end record; end AdaBase.Logger;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Input is type Button_State is (Released, Pressed); type Sticky_Toggle is (Sticky_Keys, Sticky_Mouse_Buttons); procedure Poll_Events; procedure Wait_For_Events; private for ...
-- Abstract : -- -- see spec. -- -- Copyright (C) 2017 - 2020 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) ...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package ABR is type T_ABR is limited private; Cle_Presente_Exception : Exception; -- une clé est déjà présente dans un ABR Cle_Absente_Exception : Exception; -- une clé est absente d'un ABR -- Initialiser un ABR Abr. L'ABR est vide. procedure Initialiser(Abr: out T_ABR) with Post => Est_Vide (Abr); -- Es...
with Interfaces.C.Strings, System; use type System.Address; package body FLTK.Widgets.Valuators.Sliders.Scrollbars is procedure scrollbar_set_draw_hook (W, D : in System.Address); pragma Import (C, scrollbar_set_draw_hook, "scrollbar_set_draw_hook"); pragma Inline (scrollbar_...
generic -- Contains the genetic information which will be evolved. Often this is a -- record of floats, with each float determining a specific parameter to be -- optimized. type Gene is private; -- Determine the fitness of a gene. The greater the number returned, the -- better this gene is. with ...
------------------------------------------------------------------------------ -- -- -- Common UUID Handling Package -- -- - RFC 4122 Implementation - -- -- ...
-- Single Delimiters & ' ( ) * + , - . / : ; < = > | -- Compound Delimiters => .. ** := /= >= <= << >> <> -- Special cases =>= <=> <<> <<>> <>> character_literal('a') apostrophe'delimiter Variable'Access Character'('a')
with AUnit.Assertions; use AUnit.Assertions; with Ada.Text_IO; with Ada.Containers; use Ada.Containers; with Ada.Numerics.Float_Random; with CSV; with MathUtils; use MathUtils.Float_Vec; package body CSVTests is procedure Register_Tests (T: in out TestCase) is use AUnit.Test_Cases.Registration; begin ...
-------------------------------------------------------------------------------- -- File : first_negative_or_null.adb -- Author : MOUDDENE Hamza -- Target : Réviser les tables de multiplications -- Created : Saturday Nov 30 2019 ------------------------------------------------------------------...
with SimpleAda.IO; procedure Simple_Hello_World is begin SimpleAda.IO.Put_Line("Hello, world!"); end Simple_Hello_World;
with Ada.Text_IO; with Ada.Containers.Vectors; procedure Ludic_Numbers is package Lucid_Lists is new Ada.Containers.Vectors (Positive, Natural); use Lucid_Lists; List : Vector; procedure Fill is use type Ada.Containers.Count_Type; Vec : Vector; Lucid : Natural; Index : Po...