Write a Lex program that converts a file to "Pig latin." Specifically, assume the file is a sequence of words (groups of letters) separated by whitespace. Every time you encounter a word:1. If the first letter is a consonant, move it to the end of the word and then add ay.2. If the first letter is a vowel, just add ay to the end of the word.All nonletters are copied intact to the output.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here