-- With the following incorrect syntax the parser/formatter gives 
-- the shown error:

-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--1-- If the program is some text file, the parser gives "No" and quits.
-- However, if a line of arbitrary text is followed by a design unit
-- it may give "Syntax error: Unexpected end of file"
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--2--  VHDL DESIGN UNIT
package body mos_logic_package3 is       -- CORRECT

-- package mos_logic_package3 is            -- INCORRECT

    function mos_node_resolution(input : mos_node_resolution_array) return mos_node_record is 
        variable output, temp : mos_node_record;
    begin 
        output.l.s := 'B';
        output.l.v := 'B';
        for i in input  loop 
            temp := input(i);
        end loop ;
         return output;
    end mos_node_resolution;
end mos_logic_package3;

--   Missing "body" yields  "Syntax error: Unexpected end of file"
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--3--
PACKAGE BODY tickler IS
	PROCEDURE quirk IS
                  VARIABLE  a : tr'  RANGE;  -- CORRECT
                         -- a : tr'; RANGE;  -- INCORRECT
        BEGIN

        END quirk;
END PACKAGE BODY tickler;

--  Missing ";" yields "WARNING: Out of local stack"
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
