The Phonecode program was devised by Lutz Prechelt for comparing versions written in several programming languages.
An Empirical Comparison of Seven Programming Languages
http://page.mi.fu-berlin.de/prechelt/Biblio/jccpprtTR.pdf
The Gilda implementation consists of 5 files. The code is well commented and includes error handling to demonstrate the use of Gilda's exception handling mechanism. The partial.g procedure is an example of using a Sequence.
phonecode.clg - The class file phonecode.g - Top level driver load.dictionary.g - Read in the dictionary file encode.phone.g - Print out phone number encodings partial.g - A sequence to match numeric prefixes
There are also two files that were automatically generated from "phonecode.g" using the new.gilda.exe program. The phonecode.clg; file was also generated and then modified by hand.
root.phonecode.g help.phonecode.g
Here is a zip file with all the files, test data, and a Windows executable. If you feed illegal input into the program you will be able to see the exceptions being processed.
phonecode_gilda.zip