At one time I was trying to translate G-Code into Robot Code and I assume that is similar. I did not complete the project but had a workflow setup.
G-Code movement commands generally can be boiled down to a direction, and a speed. So what I wanted to do was setup a program to do this:
-Read the G-Code file
-Identify each movement, ignoring tool changes and such
-Drop each movement into a database file (MS Access or MYSQL)
-Create a Post-Processor for whatever output you need.
--Post Processor reads the Database
--Transcribes the movements in the database to robot code, using proper syntax
As a bonus, if you do manage to set this up there is another possibility. You can build a secondary program interface to manually add movements to the database directly, and you are on your way to writing your own CAM program.
Hope this helps some.
Stuff i can use: AutoCAD 2010, AutoCAD Inventor 2010, Solidworks 2009, MasterCAM X2/X4, CNC's FADAL, and Hurco 3-axis CNC Mill