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

⟦5f447957f⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Expression_Node_Old, seg_04124b

Derivation

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

E3 Source Code



with Text_Io, Expression_Node_Old;
use Text_Io;
procedure Test_Expression_Node_Old is

    Father, Left, Right : Expression_Node_Old.P_Object;
    use Expression_Node_Old.Kind;

begin

    Put_Line ("-- expression_node_old.make(3) --");
    Left := Expression_Node_Old.Make (3);

    Put_Line ("-- expression_node_old.evaluate --");
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Left.all)));

    Put_Line ("-- expression_node_old.make(6) --");
    Right := Expression_Node_Old.Make (6);

    Put_Line ("-- expression_node_old.evaluate --");
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Right.all)));


    Put_Line ("-- expression_node_old.make(*,left,right) --");
    Put_Line ("-- expression_node_old.evaluate --");

    Father := Expression_Node_Old.Make ('*', Left, Right);
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Father.all)));

    Put_Line ("-- expression_node_old.make(8) --");
    Put_Line ("-- expression_node_old.evaluate --");

    Left := Expression_Node_Old.Make (8);
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Left.all)));

    Put_Line ("-- expression_node_old.make(4) --");  
    Put_Line ("-- expression_node_old.evaluate --");

    Right := Expression_Node_Old.Make (4);
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Right.all)));

    Put_Line ("-- expression.make ('/'left,right) --");
    Put_Line ("-- expression.evaluate --");

    Right := Expression_Node_Old.Make ('/', Left, Right);
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Right.all)));
    Left := Father;

    Put_Line ("-- expression.make ('-'left,right) --");
    Put_Line ("-- expression.evaluate --");
    Father := Expression_Node_Old.Make ('-', Left, Right);
    Put_Line (Integer'Image (Expression_Node_Old.Evaluate (Father.all)));



end Test_Expression_Node_Old;

E3 Meta Data

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