|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 2392 (0x958)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
separate (Compilation_Unit.Produce_Metrics)
procedure Abort_Statement
(Current_Compilation_Unit : in out Ada_Compilation_Unit;
Program_Unit : in Program_Unit_State_Machine;
Halstead : in Halstead_State_Machine;
Loc : in Loc_State_Machine;
Mccabe : in Mccabe_State_Machine) is
--===========================================================
-- ABORT_Statement ::= "ABORT" Name { "," Name } ";"
--===========================================================
Dummy_Name_Kind : Name_Kind;
Current_Token : Token_Package.Token;
No_More_Names : Boolean := False;
begin
-- ABORT_Statement
Get_Next_Token (Out_Token => Current_Token,
From => Current_Compilation_Unit,
Current_Loc => Loc);
if "/=" (Token_Package.Value_Of (Current_Token),
Token_Package.Abort_Token) then
raise Syntax_Error;
end if;
-- increment Halstead ABORT operator count
Halstead.Store_Operator ((Kind => Halstead_Operator.Abort_Halstead));
Process_Names:
loop
Name (Current_Compilation_Unit => Current_Compilation_Unit,
Program_Unit => Program_Unit,
Halstead => Halstead,
Loc => Loc,
Mccabe => Mccabe,
Out_Name_Kind => Dummy_Name_Kind);
-- if ";" is found, then set No_More_Names to TRUE
Get_Next_Token (Out_Token => Current_Token,
From => Current_Compilation_Unit,
Current_Loc => Loc);
case Token_Package.Value_Of (Current_Token) is
when Token_Package.Comma_Token =>
-- increment Halstead COMMA operator count
Halstead.Store_Operator
((Kind => Halstead_Operator.Comma_Halstead));
when others =>
No_More_Names := True;
end case;
exit Process_Names when No_More_Names;
end loop Process_Names;
if "/=" (Token_Package.Value_Of (Current_Token),
Token_Package.Semicolon_Token) then
raise Syntax_Error;
end if;
-- increment Halstead SEMICOLON operator count
Halstead.Store_Operator ((Kind => Halstead_Operator.Semicolon_Halstead));
end Abort_Statement;