Pig Latin in Delphi Pascal
Implement a program that translates from English to Pig Latin
exercism fetch delphi pig-latin
Implement a program that translates from English to Pig Latin.
Pig Latin is a made-up children's language that's intended to be confusing. It obeys a few simple rules (below), but when it's spoken quickly it's really difficult for non-children (and non-native speakers) to understand.
- Rule 1: If a word begins with a vowel sound, add an "ay" sound to the end of the word.
- Rule 2: If a word begins with a consonant sound, move it to the end of the word, and then add an "ay" sound to the end of the word.
There are a few more rules for edge cases, and there are regional variants too.
See http://en.wikipedia.org/wiki/Pig_latin for more details.
In order to run the tests for this track, you will need to install DUnitX. Please see the installation instructions for more information.
Loading Exercises into Delphi
If Delphi is properly installed, and
*.dpr file types have been associated with Delphi, then double clicking the supplied
*.dpr file will start Delphi and load the exercise/project.
control + F9 is the keyboard shortcut to compile the project or pressing
F9 will compile and run the project.
Alternatively you may opt to start Delphi and load your project via. the
File drop down menu.
When Questions Come Up
Note that, when trying to submit an exercise, make sure the exercise file you're submitting is in the
For example, if you're submitting
ubob.pas for the Bob exercise, the submit command would be something like
exercism submit <path_to_exercism_dir>/delphi/bob/ubob.pas.
The Pig Latin exercise at Test First Teaching by Ultrasaurus https://github.com/ultrasaurus/test-first-teaching/blob/master/learn_ruby/pig_latin/
Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.