I'm not sure what (particularly the 2nd sentence) in
Quote:
Then I plan on using GCC C++ to ARM. I already have C++ code for ARM to act as a runtime.
means - can you elaborate ?
Certainly I see no real issue using Antlr or COCO/R or ? to take IEC 61131 Structured Text, and build a 'parse tree', and then take that parse tree and produce [something] - had you not have indicated that you want to run on an ARM processor, I was originally thinking of
IEC 61131 ST --parse--> 'P-Code' ---//---> Destination machine with 'P-Code' interpreter
where 'P-Code' was a machine dependant dare I say byte-code representation. Your version 'looks like'
IEC 61131 ST --parse--> c++ source --compile for ARM using GCC--> ARM MCU binary
If I interpret what you're saying correctly.
I'd say stick with Antlr or such, get the tools to work, build a grammar, possibly starting as you say with a Pascal type grammar, then walk the Parse/AST tree and produce your c++ file