Here is a simple add-on that imports robot points from csv file as motion statements. X,Y,Z data is mandatory but on top of that you can include orientation, speed and other motion related data on the file. First line determines the data fields. Add-on includes an example file that you can use for testing.
All python add-ons are installed by unzipping the package and copying the contents to your \Documents\Visual Components\4.2\My Commands\ folder. Note that app version in folder path might be different. After copying the add-on launch VC and you should see some UI button associated to the add-on. In this case init.py adds menu button to “VcTabTeach/Import” path which means that it should be found on “Program” tab on group “Import”.
This example just imports positions. What you are describing is more like full blown pre-processor for some language which I can’t recognize based on your brief description. For pre-processor biggest limitation is that often VC robot language is smaller than native robot language and therefore translation is impossible or at least very difficult. For example VC doesn’t have “FOR” loop but only “WHILE” loop.