Files
gnatstudio/examples/tutorial/struct/instructions.ads
Pascal Obry 9478d269f2 Fix file permissions.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@131475 936e1b1b-40f2-da11-902a-00137254ae57
2008-10-25 14:18:11 +00:00

22 lines
479 B
Ada

-- Implements the instructions available in sdc.
package Instructions is
type Instruction is private;
-- The actual instruction type.
function Read (Word : String) return Instruction;
-- If Word contains the name of a valid instruction the instruction is
-- returned, otherwise Except.User_Error is raised.
procedure Process (I : Instruction);
-- Processes an Instruction.
private
type Instruction is (Clear, Print, Quit);
end Instructions;