-- file: calc2.ads -- ($Id$) -- 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 Calc2 is function Calc return Integer; Syntax_Error : exception; End_Error : exception; end Calc2;