------------------------------------------------------------ -------------------- -- -- -- OCARINA COMPONENTS -- -- -- -- G A I A . P R O C E S S O R . N O D E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2007, GET-Telecom Paris. -- -- -- -- Ocarina 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 2, or (at your option) any -- -- later version. Ocarina 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 details. You should have received a copy of the -- -- GNU General Public License distributed with Ocarina; see file COPYING. -- -- If not, write to the Free Software Foundation, 51 Franklin Street, Fifth -- -- Floor, Boston, MA 02111-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- Ocarina is maintained by the Ocarina team -- -- (ocarina-users@listes.enst.fr) -- -- -- ------------------------------------------------------------------------------ pragma style_checks ("NM32766"); -- This file has been generated automatically by `mknodes'. Do not -- hand modify this file since your changes will be overridden. with GNAT.Table; pragma warnings (Off); with Locations; use Locations; with Types; use Types; pragma warnings (On); package Gaia.Processor.Nodes is type node_kind is (k_node_id, k_list_id, k_identifier, k_gaia_definition, k_scoped_name, k_property, k_gaia_scope_definition, k_package_name_element, k_root_node, k_distributed_application, k_declaration_list, k_namespace, k_call_sequence, k_subprogram, k_thread, k_process, k_parameter, k_parameter_connection, k_thread_reference, k_port, k_destination_port, k_variable_definition, k_subprogram_call, k_subprogram_reference, k_symbolic_value, k_type_definition); -- -- Node_Id -- -- Next_Node : Node_Id -- -- -- List_Id -- -- First_Node : Node_Id -- Last_Node : Node_Id -- -- -- Identifier -- -- Next_Node : Node_Id -- Name : Name_Id -- Backend_Node : Node_Id -- Corresponding_Entity : Node_Id -- procedure W_Identifier (N : node_id); -- -- Gaia_Definition -- -- Next_Node : Node_Id -- Identifier : Node_Id -- procedure W_Gaia_Definition (N : node_id); -- -- Scoped_Name -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Parent_Scoped_Name : Node_Id -- Reference : Node_Id -- procedure W_Scoped_Name (N : node_id); -- -- Property -- -- Next_Node : Node_Id -- Entity : Name_Id -- Value : Node_Id -- procedure W_Property (N : node_id); -- -- Gaia_Scope_Definition -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- procedure W_Gaia_Scope_Definition (N : node_id); -- -- Package_Name_Element -- -- Next_Node : Node_Id -- Identifier : Node_Id -- procedure W_Package_Name_Element (N : node_id); -- -- Root_Node -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Namespaces : List_Id -- Node_Location : Name_Id -- Port_Number : Value_Id -- Thread_Number : Int -- Priority_Managed : Boolean -- procedure W_Root_Node (N : node_id); -- -- Distributed_Application -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Root_Nodes : List_Id -- Protocol : Name_Id -- procedure W_Distributed_Application (N : node_id); -- -- Declaration_List -- -- First_Node : Node_Id -- Last_Node : Node_Id -- procedure W_Declaration_List (N : list_id); -- -- Namespace -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Public_Declarations : List_Id -- Private_Declarations : List_Id -- procedure W_Namespace (N : node_id); -- -- Call_Sequence -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Statements : List_Id -- procedure W_Call_Sequence (N : node_id); -- -- Subprogram -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Variables : List_Id -- Parameters : List_Id -- Implemented_By : Name_Id -- Implementation_Language : Name_Id -- Call_Sequences : List_Id -- Connections : List_Id -- Owner_Data : Node_Id -- procedure W_Subprogram (N : node_id); -- -- Thread -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Ports : List_Id -- Call_Sequences : List_Id -- Connections : List_Id -- Variables : List_Id -- Period : Value_Id -- Priority : Value_Id -- Storage_Size : Value_Id -- Access_Provided_By : Node_Id -- Unique : Boolean -- Sources_Number : Int -- procedure W_Thread (N : node_id); -- -- Process -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Variables : List_Id -- Threads : List_Id -- Ports : List_Id -- Connections : List_Id -- procedure W_Process (N : node_id); -- -- Parameter -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Is_In : Boolean -- Is_Out : Boolean -- Type_Spec : Node_Id -- procedure W_Parameter (N : node_id); -- -- Parameter_Connection -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Source : Node_Id -- Simple_Source : Name_Id -- Destination : Node_Id -- Simple_Destination : Name_Id -- Source_Subprogram_Call : Node_Id -- Destination_Subprogram_Ca: Node_Id -- procedure W_Parameter_Connection (N : node_id); -- -- Thread_Reference -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Corresponding_Thread : Node_Id -- procedure W_Thread_Reference (N : node_id); -- -- Port -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Fifo_Size : Value_Id -- Trigger : Boolean -- Is_In : Boolean -- Is_Out : Boolean -- Type_Spec : Node_Id -- Destinations : List_Id -- procedure W_Port (N : node_id); -- -- Destination_Port -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Frontend_Node : Node_Id -- Thread_Location : Name_Id -- Thread_Name : Name_Id -- Process_Name : Name_Id -- Port_Number : Value_Id -- procedure W_Destination_Port (N : node_id); -- -- Variable_Definition -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Type_Spec : Node_Id -- Access_Provided_By : Node_Id -- procedure W_Variable_Definition (N : node_id); -- -- Subprogram_Call -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Call_Name : Name_Id -- Parameters : List_Id -- Corresponding_Subprogram : Node_Id -- Access_Provided_By : Node_Id -- procedure W_Subprogram_Call (N : node_id); -- -- Subprogram_Reference -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Corresponding_Subprogram : Node_Id -- procedure W_Subprogram_Reference (N : node_id); -- -- Symbolic_Value -- -- Next_Node : Node_Id -- Value_Name : Value_Id -- procedure W_Symbolic_Value (N : node_id); -- -- Type_Definition -- -- Next_Node : Node_Id -- Identifier : Node_Id -- Scoped_Name : Node_Id -- Properties : List_Id -- Frontend_Node : Node_Id -- Subtypes : List_Id -- Predefined_Simple_Type : Byte -- Maximal_Length : Value_Id -- Symbolic_Values : List_Id -- Subprograms : List_Id -- Access_Protocol : Name_Id -- Updating_Policy : Name_Id -- procedure W_Type_Definition (N : node_id); function Kind (N : node_id) return node_kind; procedure Set_Kind (N : node_id; V : node_kind); function Loc (N : node_id) return location; procedure Set_Loc (N : node_id; V : location); function Next_Node (N : node_id) return node_id; procedure Set_Next_Node (N : node_id; V : node_id); function First_Node (N : list_id) return node_id; procedure Set_First_Node (N : list_id; V : node_id); function Last_Node (N : list_id) return node_id; procedure Set_Last_Node (N : list_id; V : node_id); function Name (N : node_id) return name_id; procedure Set_Name (N : node_id; V : name_id); function Backend_Node (N : node_id) return node_id; procedure Set_Backend_Node (N : node_id; V : node_id); function Corresponding_Entity (N : node_id) return node_id; procedure Set_Corresponding_Entity (N : node_id; V : node_id); function Identifier (N : node_id) return node_id; procedure Set_Identifier (N : node_id; V : node_id); function Parent_Scoped_Name (N : node_id) return node_id; procedure Set_Parent_Scoped_Name (N : node_id; V : node_id); function Reference (N : node_id) return node_id; procedure Set_Reference (N : node_id; V : node_id); function Entity (N : node_id) return name_id; procedure Set_Entity (N : node_id; V : name_id); function Value (N : node_id) return node_id; procedure Set_Value (N : node_id; V : node_id); function Scoped_Name (N : node_id) return node_id; procedure Set_Scoped_Name (N : node_id; V : node_id); function Properties (N : node_id) return list_id; procedure Set_Properties (N : node_id; V : list_id); function Namespaces (N : node_id) return list_id; procedure Set_Namespaces (N : node_id; V : list_id); function Node_Location (N : node_id) return name_id; procedure Set_Node_Location (N : node_id; V : name_id); function Port_Number (N : node_id) return value_id; procedure Set_Port_Number (N : node_id; V : value_id); function Thread_Number (N : node_id) return int; procedure Set_Thread_Number (N : node_id; V : int); function Priority_Managed (N : node_id) return Boolean; procedure Set_Priority_Managed (N : node_id; V : Boolean); function Root_Nodes (N : node_id) return list_id; procedure Set_Root_Nodes (N : node_id; V : list_id); function Protocol (N : node_id) return name_id; procedure Set_Protocol (N : node_id; V : name_id); function Public_Declarations (N : node_id) return list_id; procedure Set_Public_Declarations (N : node_id; V : list_id); function Private_Declarations (N : node_id) return list_id; procedure Set_Private_Declarations (N : node_id; V : list_id); function Statements (N : node_id) return list_id; procedure Set_Statements (N : node_id; V : list_id); function Variables (N : node_id) return list_id; procedure Set_Variables (N : node_id; V : list_id); function Parameters (N : node_id) return list_id; procedure Set_Parameters (N : node_id; V : list_id); function Implemented_By (N : node_id) return name_id; procedure Set_Implemented_By (N : node_id; V : name_id); function Implementation_Language (N : node_id) return name_id; procedure Set_Implementation_Language (N : node_id; V : name_id); function Call_Sequences (N : node_id) return list_id; procedure Set_Call_Sequences (N : node_id; V : list_id); function Connections (N : node_id) return list_id; procedure Set_Connections (N : node_id; V : list_id); function Owner_Data (N : node_id) return node_id; procedure Set_Owner_Data (N : node_id; V : node_id); function Ports (N : node_id) return list_id; procedure Set_Ports (N : node_id; V : list_id); function Period (N : node_id) return value_id; procedure Set_Period (N : node_id; V : value_id); function Priority (N : node_id) return value_id; procedure Set_Priority (N : node_id; V : value_id); function Storage_Size (N : node_id) return value_id; procedure Set_Storage_Size (N : node_id; V : value_id); function Access_Provided_By (N : node_id) return node_id; procedure Set_Access_Provided_By (N : node_id; V : node_id); function Unique (N : node_id) return Boolean; procedure Set_Unique (N : node_id; V : Boolean); function Sources_Number (N : node_id) return int; procedure Set_Sources_Number (N : node_id; V : int); function Threads (N : node_id) return list_id; procedure Set_Threads (N : node_id; V : list_id); function Is_In (N : node_id) return Boolean; procedure Set_Is_In (N : node_id; V : Boolean); function Is_Out (N : node_id) return Boolean; procedure Set_Is_Out (N : node_id; V : Boolean); function Type_Spec (N : node_id) return node_id; procedure Set_Type_Spec (N : node_id; V : node_id); function Source (N : node_id) return node_id; procedure Set_Source (N : node_id; V : node_id); function Simple_Source (N : node_id) return name_id; procedure Set_Simple_Source (N : node_id; V : name_id); function Destination (N : node_id) return node_id; procedure Set_Destination (N : node_id; V : node_id); function Simple_Destination (N : node_id) return name_id; procedure Set_Simple_Destination (N : node_id; V : name_id); function Source_Subprogram_Call (N : node_id) return node_id; procedure Set_Source_Subprogram_Call (N : node_id; V : node_id); function Destination_Subprogram_Call (N : node_id) return node_id; procedure Set_Destination_Subprogram_Call (N : node_id; V : node_id); function Corresponding_Thread (N : node_id) return node_id; procedure Set_Corresponding_Thread (N : node_id; V : node_id); function Fifo_Size (N : node_id) return value_id; procedure Set_Fifo_Size (N : node_id; V : value_id); function Trigger (N : node_id) return Boolean; procedure Set_Trigger (N : node_id; V : Boolean); function Destinations (N : node_id) return list_id; procedure Set_Destinations (N : node_id; V : list_id); function Frontend_Node (N : node_id) return node_id; procedure Set_Frontend_Node (N : node_id; V : node_id); function Thread_Location (N : node_id) return name_id; procedure Set_Thread_Location (N : node_id; V : name_id); function Thread_Name (N : node_id) return name_id; procedure Set_Thread_Name (N : node_id; V : name_id); function Process_Name (N : node_id) return name_id; procedure Set_Process_Name (N : node_id; V : name_id); function Call_Name (N : node_id) return name_id; procedure Set_Call_Name (N : node_id; V : name_id); function Corresponding_Subprogram (N : node_id) return node_id; procedure Set_Corresponding_Subprogram (N : node_id; V : node_id); function Value_Name (N : node_id) return value_id; procedure Set_Value_Name (N : node_id; V : value_id); function Subtypes (N : node_id) return list_id; procedure Set_Subtypes (N : node_id; V : list_id); function Predefined_Simple_Type (N : node_id) return byte; procedure Set_Predefined_Simple_Type (N : node_id; V : byte); function Maximal_Length (N : node_id) return value_id; procedure Set_Maximal_Length (N : node_id; V : value_id); function Symbolic_Values (N : node_id) return list_id; procedure Set_Symbolic_Values (N : node_id; V : list_id); function Subprograms (N : node_id) return list_id; procedure Set_Subprograms (N : node_id; V : list_id); function Access_Protocol (N : node_id) return name_id; procedure Set_Access_Protocol (N : node_id; V : name_id); function Updating_Policy (N : node_id) return name_id; procedure Set_Updating_Policy (N : node_id; V : name_id); procedure W_Node (N : node_id); type boolean_array is array (1 .. 3) of Boolean; type byte_array is array (1 .. 1) of byte; type int_array is array (1 .. 14) of int; type node_entry is record Kind : node_kind; B : boolean_array; O : byte_array; L : int_array; Loc : location; end record; Default_Node : constant node_entry := (node_kind'first, (others => False), (others => 0), (others => 0), No_Location); package Entries is new GNAT.Table (node_entry, node_id, No_Node + 1, 1000, 100); end Gaia.Processor.Nodes;