programming language translation jamie mcatamney

8
Programming Language Translation Jamie McAtamney

Upload: jack-nichols

Post on 08-Jan-2018

218 views

Category:

Documents


0 download

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

Page 1: Programming Language Translation Jamie McAtamney

Programming Language Translation

Jamie McAtamney

Page 2: 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

Page 3: Programming Language Translation Jamie McAtamney

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

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

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

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

Sample Screenshots

Page 8: Programming Language Translation Jamie McAtamney

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