摘要 |
<p>PROBLEM TO BE SOLVED: To provide a control program division device determining dependence of an input signal or a temporary variable on an output signal in advance, collectively dividing a source code to source codes each having similar dependence, and achieving reduction in control program execution time.SOLUTION: A control program division device includes: an input processing unit 10 reading a symbol string of a source code; a lexical analysis processing unit 11 to which the symbol string is input and that generates a token string; a syntax analysis processing unit 12 to which the token string is input, and that generates an input/output signal table, a dependence table, and a syntax tree from the token string; a division processing unit 13 collectively dividing the source code to a plurality of source codes each having dependence on an output signal from meaning of syntax rules described in the input/output signal table, the dependence table, and the syntax tree; and an output processing unit 14 outputting the divided source codes as a symbol string, the source code of a control program being collectively divided to the source codes each having similar dependence on the output signal.</p> |