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 - downloadIndex: ┃ B T ┃
Length: 2504 (0x9c8) Types: TextFile Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧
with List; with Msg_Report; with Object; with Scanner; with Unparse_Report; package body Args is type Node_Structure is record Liste : List.Node := List.Empty_Node; Lign : Integer; end record; procedure Parse (N : in out Node; Error : out Boolean) is Failed : Boolean := False; use Scanner; begin Msg_Report.Information ("I enter in argument's parse"); N := new Node_Structure; N.Lign := Scanner.Line_Number; if Scanner.Symbol = L_Avec then Scanner.Next; if List.Is_First (Scanner.Symbol) then List.Parse (N.Liste, Failed); if Scanner.Symbol = L_Dot then Scanner.Next; else Failed := True; Msg_Report.Syntax_Error (". expected, not"); end if; else Failed := True; Msg_Report.Syntax_Error ("incorrect follow of AVEC : "); end if; end if; Msg_Report.Information ("I leave argument's parse with failed = " & Boolean'Image (Failed)); Error := Failed; end Parse; procedure Unparse (N : Node) is begin Unparse_Report.Write ("AVEC "); List.Unparse (N.Liste); Unparse_Report.Write ("."); end Unparse; function Is_First (T : Scanner.Token) return Boolean is use Scanner; begin return T = L_Avec; end Is_First; function Interpret (N : Node; Inherited : Object.Reference := Object.Void_Reference; A_Keyword_Mess : Message.Selector := Message.Void_Selector; A_List : Arguments.List := Arguments.Void_Arguments) return Object.Reference is Result : Object.Reference; begin Msg_Report.Information ("I enter in argument's interpret"); Msg_Report.Set_Line_Number (N.Lign); Result := List.Interpret (N.Liste, A_Keyword_Mess => A_Keyword_Mess, A_List => A_List); Msg_Report.Information ("I leave argument's interpret with result :"); Msg_Report.Continue ("class = " & Object.Class'Image (Object.The_Class (Result)) & " ident = " & Integer'Image (Object.Identificator (Result))); return Result; end Interpret; end Args;