-- file: calc.ads -- ($Id: calc.ads,v 1.1 2005/09/06 11:20:18 baker Exp baker $) -- a calculator for simple integer expressions based on the following grammar: -- -> | -- -> -- -> -- -> | -- -> '(' ')' | '-' | -- -> | -- where: -- stands for the start of input file/stream. -- stands for the end of an input line -- stands for any integer literal. -- stands for the null string package Calc is function Calc return Integer; Syntax_Error : exception; End_Error : exception; end Calc;