DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T V

⟦ce0723a52⟧ TextFile

    Length: 922 (0x39a)
    Types: TextFile
    Names: »V«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

-- This package parses and interprets the following rules:
-- rule 0:
--           <primary> ::= integer
--            primary.result = integer
-- rule 1:
--           <primary> ::= string
--            primary.result = string
-- rule 2:
--           <primary> ::= identifier
--            primary.result = identifier
-- rule 3:
--           <primary> ::= '(' <value> ')'
--            primary.result = value.result
-- rule 4:
--           <primary> ::= <bloc>
--            primary.result = bloc


with Scanner;
with Object;

package Primary is
    type Node is private;
    Empty_Node : constant Node;

    procedure Parse (N : in out Node);
    procedure Unparse (N : Node);
    function Is_First (T : Scanner.Token) return Boolean;
    function Interpret (N : Node) return Object.Reference;

private
    type Node_Structure;
    type Node is access Node_Structure;
    Empty_Node : constant Node := null;
end Primary;