Architecture of a Retargetable Ladder Logic Diagrams Tool