DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦02a37a37f⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Term, seg_0389f3

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Lex, Factor, Debug;

package body Term is
    procedure Parse (N : in out Binary_Tree.Node; Success : in out Boolean) is  
        N1, N2 : Binary_Tree.Node;
        Ok : Boolean := True;
    begin  
        Success := True;  
        N1 := new Binary_Tree.Node_Structure;
        N := N1;
        Factor.Parse (N1.Left_Son, Ok);
        Success := Success and Ok;
        while Lex.Current_Token_Is (Lex.Multiply) loop
            N2 := new Binary_Tree.Node_Structure;
            N1.Right_Son := N2;  
            N1.The_Type := Binary_Tree.Mul_Type;
            Debug.Put (540);
            Lex.Next;
            Factor.Parse (N2.Left_Son, Ok);
            Success := Success and Ok;
            N1 := N2;
        end loop;
    end Parse;


    procedure Generate (N : in out Binary_Tree.Node;
                        The_Value : in out Natural) is
        Value1, Value2 : Natural;
    begin
        Factor.Generate (N.Left_Son, Value1);
        if Binary_Tree."=" (N.Right_Son, null) then
            The_Value := Value1;
        else
            Generate (N.Right_Son, Value2);
            case N.The_Type is
                when Binary_Tree.Mul_Type =>
                    The_Value := Value1 * Value2;
                when others =>
                    null;
            end case;
        end if;
    end Generate;

end Term;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=00e
        [0x01] rec0=0f rec1=00 rec2=02 rec3=001
    tail 0x21735f62084e74bf39e94 0x42a00088462060003