Translating from POJay to OJay

For project 7---to give both you and me a little bit of a break---you will not be implementing a translation from POJay to OJay.

Instead, you will be describing, informally but completely, a translation algorithm or strategy from POJay to OJay.

In class on Monday, you started thinking through a translation of a specific POJay program. In this project you need to generalize the process you thought through to make an algorithm which will translate from any POJay program to a valid, equivalent OJay program.

Your solution should include answers to

Your solution should also include the translation of the sample POJay program from class using your strategy, as an example of how it works. Here is a clean copy of the program, plus the grammars for OJay and POJay.

In working on this, you will want to make some examples of your own. It is not required to turn these in, but you may if you think it will help you describe your algorithm.

Turn in your answer on paper to me. Make sure that your submission is project quality. This is not a "short exercise" daily homework problem. Your algorithms need to be complete and as unambiguous as possible. Use complete sentences (or grammatically parallel phrases in bullet lists). If your handwriting isn't legible, then type your solution.

To give you a big first push, I will say that I can think of three solutions to this problem. They can be summarized (or, hinted at) as

DUE: Wednesday, March 31, at 5:00 pm.


Thomas VanDrunen
Last modified: Tue Mar 23 16:44:21 CDT 2010