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

⟦33996a032⟧ Ada Source

    Length: 8192 (0x2000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Aflex, seg_030b2b

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



---------------------------------
-- aflex.a
---------------------------------

-- TITLE aflex - main program
--
-- AUTHOR: John Self (UCI)
-- DESCRIPTION main subprogram of aflex, calls the major routines in order
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/aflex.a,v 1.11 90/10/15 20:00:40 self Exp Locker: self $
--***************************************************************************
--                              aflex
--                          version 1.1c
--***************************************************************************
--
--                            Arcadia Project
--               Department of Information and Computer Science
--                        University of California
--                        Irvine, California 92717
--
--    Send requests for aflex information to alex-info@ics.uci.edu
--
--    Send bug reports for aflex to alex-bugs@ics.uci.edu
--
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this paragraph are
-- duplicated in all such forms and that any documentation,
-- advertising materials, and other materials related to such
-- distribution and use acknowledge that the software was developed
-- by the University of California, Irvine.  The name of the
-- University may not be used to endorse or promote products derived
-- from this software without specific prior written permission.
-- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
--
--    This program is based on the flex program written by Vern Paxson.
--
--    The following is the copyright notice from flex, from which aflex is
--    derived.
--\x09Copyright (c) 1989 The Regents of the University of California.
--\x09All rights reserved.
--
--\x09This code is derived from software contributed to Berkeley by
--\x09Vern Paxson.
--
--      The United States Government has rights in this work pursuant to
--\x09contract no. DE-AC03-76SF00098 between the United States Department of
--\x09Energy and the University of California.
--
--\x09Redistribution and use in source and binary forms are permitted
--\x09provided that the above copyright notice and this paragraph are
--\x09duplicated in all such forms and that any documentation,
--\x09advertising materials, and other materials related to such
--\x09distribution and use acknowledge that the software was developed
--\x09by the University of California, Berkeley.  The name of the
--\x09University may not be used to endorse or promote products derived
--\x09from this software without specific prior written permission.
--\x09THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
--\x09IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
--\x09WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
--
--***************************************************************************

-- History
-- 14-Jun-1991\x09\x09Rolf EBERT\x09
--    changed to a parameterless procedure; in the error case the exit
--    status is set by the compiler dependent procedure (Alsys)
--    'Set_Exit_Status'.

with Main_Body, Dfa, Gen, Misc_Defs, Text_Io, Misc;
with Tstring, Template_Manager, External_File_Manager;
use Misc_Defs, Text_Io, Tstring, External_File_Manager;

with System_Environment;
use System_Environment;

--function AFLEX return INTEGER is
procedure Aflex is
    Copyright : constant String :=
       "@(#) Copyright (c) 1990 Regents of the University of California.";
    Copyright2 : constant String := "All rights reserved.";
begin
    Main_Body.Aflexinit;

    Main_Body.Readin;

    if (Syntaxerror) then
        Main_Body.Aflexend (1);
    end if;

    if (Performance_Report) then
        if (Interactive) then
            Text_Io.Put_Line
               (Standard_Error,
                "-I (interactive) entails a minor performance penalty");
        end if;


    end if;

    if (Variable_Trailing_Context_Rules) then
        Misc.Aflexerror ("can't handle variable trailing context rules");
    end if;

    -- convert the ndfa to a dfa
    Dfa.Ntod;

    -- generate the Ada state transition tables from the DFA
    Gen.Make_Tables;

    Template_Manager.Generate_Io_File;
    Template_Manager.Generate_Dfa_File;
    Main_Body.Aflexend (0);
--  return 0;
exception
    when Main_Body.Aflex_Terminate =>
--    return MAIN_BODY.TERMINATION_STATUS;
        Set_Exit_Status (Exit_Status (Main_Body.Termination_Status));
end Aflex;

-------------------------------
-- command_lineB.a
-------------------------------
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this paragraph are
-- duplicated in all such forms and that any documentation,
-- advertising materials, and other materials related to such
-- distribution and use acknowledge that the software was developed
-- by the University of California, Irvine.  The name of the
-- University may not be used to endorse or promote products derived
-- from this software without specific prior written permission.
-- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

-- TITLE command line interface
-- AUTHOR: John Self (UCI)
-- DESCRIPTION command line interface body for use with the VERDIX VADS system.
-- NOTES this file is system dependent
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/command_lineB.a,v 1.3 90/01/12 15:19:44 self Exp Locker: self $

-- History
-- 14-Jun-1991\x09\x09Rolf EBERT\x09
--    use of the Alsys predefinded package 'System_Environment'.

E3 Meta Data

    nblk1=7
    nid=0
    hdr6=e
        [0x00] rec0=19 rec1=00 rec2=01 rec3=07c
        [0x01] rec0=14 rec1=00 rec2=02 rec3=04c
        [0x02] rec0=14 rec1=00 rec2=03 rec3=040
        [0x03] rec0=1d rec1=00 rec2=04 rec3=01a
        [0x04] rec0=25 rec1=00 rec2=05 rec3=020
        [0x05] rec0=14 rec1=00 rec2=06 rec3=00e
        [0x06] rec0=08 rec1=00 rec2=07 rec3=001
    tail 0x21529830484a6514b94c5 0x42a00088462060003