Developer Introduction

Supervisor: Mr.Joseph Kehoe
Student ID:C00131017
Student Name: Shaoguang Miao.
Institute of Technology, Carlow

Project Introduction

Occam to C++ Translator is software which translates an Occam source file into C++ source code file. User could input a Occam source file into the software, the output shuold be a matched C++ file. There are two separate processes for doing it : Lexer and Parser. Lexer part will separate the Occam source file into tokens, and then make the tokens from each line into a linked list. Pass the linked list to Parser after Lexer finish recognise each line. Parser part will translate the linked list to C++ source code according to the C++ grammars.

Where is the project idea comes from ?

Parallel programming is becoming more and more important. However, it is very difficult to write parallel programs using normal programming language, Like C, C++, and Java. Communication between two tow threads (processors) is also a big problem using those programming languages. There is an easy way to write a multi-threads program which allows the communication between threads in Occam. Occam is designed for multi-tasks working concurrency. If we can write multi-thread part using Occam and the other part using the other suitable programming language could improve the developing speed and quality. It will give programmer sets of troubles if they make an API by themselves. Thus, building a translator which could translate Occam to target language becomes a suitable idea for all parallel programs. What we expected is that just input some simple Occam code, the software will output the complex C/C++ code for us to implement parallel part.