programming language translation jamie mcatamney
DESCRIPTION
Methodology Translation algorithm Formatting Remove programming idiosyncrasies Single-Pass translator Handles syntax whose context is on the same line Two-Pass translator Handles syntax whose context is elsewhere in the program Formatting Makes everything look niceTRANSCRIPT
![Page 1: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/1.jpg)
Programming Language Translation
Jamie McAtamney
![Page 2: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/2.jpg)
Background
Similar research Jazillian pay-per-program translation company Terekhov & Verhoef’s paper on translation difficulties Lili Qiu's paper on procedural vs. object-oriented
languages Erik Demaine’s paper on pointers Todd Proebsting’s paper on Java to C translation Anonymous paper on structs
![Page 3: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/3.jpg)
Methodology
Translation algorithm Formatting
Remove programming idiosyncrasies Single-Pass translator
Handles syntax whose context is on the same line Two-Pass translator
Handles syntax whose context is elsewhere in the program
Formatting Makes everything look nice
![Page 4: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/4.jpg)
Methodology
Finished Primitive types Arrays Method headers Input/output Preprocessor
directives Most package
methods Structs Pointers
Mostly Done Graphics
Possible future topics Computer-to-computer
communication
![Page 5: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/5.jpg)
Methodology
Testing & Analysis Testing old C programs
Have a few “fake” programs to test particular modules Script to do testing 4th Quarter Results
Compilable and runnable Pointers finished
![Page 6: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/6.jpg)
Progress
Results Thus Far Program is still error-free All implemented areas fully translated
Minus graphics, of course Translator outputs compilable and runnable program ~96% C syntax translatable
![Page 7: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/7.jpg)
Sample Screenshots
![Page 8: Programming Language Translation Jamie McAtamney](https://reader036.vdocuments.us/reader036/viewer/2022082600/5a4d1af27f8b9ab05997f36e/html5/thumbnails/8.jpg)
Progress
Analysis Finished exactly what I wanted to
Managed to get pointers done despite the research papers on the topic
Where to go from here Might keep fiddling with it. Possibly revisit graphics if I can get JOGL working Maybe do MPI