programming language translation jamie mcatamney

Post on 08-Jan-2018

218 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

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 nice

TRANSCRIPT

Programming Language Translation

Jamie McAtamney

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

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

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

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

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

Sample Screenshots

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

top related