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

⟦6f1b70733⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Une_Position, seg_047789

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 Complements;

with Syntax_Error;
with Lexical;
with Compiler_Token;
use Compiler_Token;

package body Une_Position is
    procedure Parse (Une_Position_Synth : in out
                        Lexical.Our_String.Variable_String;
                     Une_Position_Ok : out Boolean) is
    begin  
        Une_Position_Ok := False;
        if Lexical.Get_Token = L_Dans then
            Lexical.Next;  
            if Lexical.Get_Token = L_Id then  
                Une_Position_Synth :=
                   Lexical.Our_String.Value (Lexical.Get_Value);
                if Complements.Exists (Lexical.Our_String.Image
                                          (Une_Position_Synth)) then
                    case Complements.Kind_Of
                            (Lexical.Our_String.Image (Une_Position_Synth)) is
                        when Complements.Personnage |
                             Complements.Item | Complements.Room =>
                            Une_Position_Ok := True;
                        when Complements.Way =>
                            Syntax_Error.Semantique
                               ("Un acces ne peut pas contenir quelque chose");
                        when Complements.No_One =>
                            Syntax_Error.Semantique
                               (Lexical.Our_String.Image (Une_Position_Synth) &
                                " n'est ni un personnage, ni un objet, ni une piece");  
                    end case;
                else
                    Syntax_Error.Semantique
                       (Lexical.Our_String.Image (Une_Position_Synth) &
                        " n'existe pas");
                end if;
                Lexical.Next;
            else  
                Syntax_Error.Syntaxique (R_Une_Position, "L_Id");
            end if;
            --   else
            --       while not Compiler_Token.Is_Follow
            --                    (Lexical.Get_Token, Compiler_Token.R_Une_Position) loop
            --           Lexical.Next;
            --       end loop;
        end if;
    end Parse;
end Une_Position;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=1a rec1=00 rec2=01 rec3=042
        [0x01] rec0=14 rec1=00 rec2=03 rec3=076
        [0x02] rec0=06 rec1=00 rec2=04 rec3=000
        [0x03] rec0=0e rec1=00 rec2=04 rec3=000
    tail 0x2174af23286545681fb14 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 00 78 80 03 6f 6f 70 03 00 1d 20 20 20 20  ┆   x  oop       ┆