FILE CONVERSION DEVICE, FILE CONVERSION METHOD, AND FILE CONVERSION PROGRAM
First Claim
1. A file conversion device which converts a file form written in a given language to a file form that can be interpreted by another language, the device comprising:
- a file readout device which reads description contents of an inputted file by each line, and manages the description contents by adding an index to each line of the read description contents;
a syntax tree creating device which converts the description contents into a syntax tree of a tree structure based on the indexes through linearly scanning the indexes of the file managed by the file readout device;
a syntax tree optimizing device which optimizes the tree structure of the syntax tree as a flowchart according to an optimization rule; and
a file dividing device which divides the inputted file by having controllers in the flowchart optimized by the syntax tree optimizing device as identifiers.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a file conversion device which converts a file form written in a given language to a file form that can be interpreted by another language, which includes: a file readout device which reads description contents of an inputted file by each line, and manages the description contents by adding an index to each line of the read description contents; a syntax tree creating device which converts the description contents into a syntax tree of a tree structure based on the indexes through linearly scanning the indexes of the file managed by the file readout device; a syntax tree optimizing device which optimizes the tree structure of the syntax tree as a flowchart according to an optimization rule; and a file dividing device which divides the inputted file by having controllers in the flowchart optimized by the syntax tree optimizing device as identifiers.
-
Citations
9 Claims
-
1. A file conversion device which converts a file form written in a given language to a file form that can be interpreted by another language, the device comprising:
-
a file readout device which reads description contents of an inputted file by each line, and manages the description contents by adding an index to each line of the read description contents; a syntax tree creating device which converts the description contents into a syntax tree of a tree structure based on the indexes through linearly scanning the indexes of the file managed by the file readout device; a syntax tree optimizing device which optimizes the tree structure of the syntax tree as a flowchart according to an optimization rule; and a file dividing device which divides the inputted file by having controllers in the flowchart optimized by the syntax tree optimizing device as identifiers. - View Dependent Claims (2, 3, 4)
-
-
5. A file conversion method for converting a file form written in a given language to a file form that can be interpreted by another language, the method comprising:
-
reading description contents of an inputted file by each line, and managing the description contents by adding an index to each line of the read description contents; converting the description contents into a syntax tree of a tree structure based on the indexes through linearly scanning the indexes of the managed file; optimizing the tree structure of the syntax tree as a flowchart according to an optimization rule; and dividing the inputted file by having controllers in the flowchart as identifiers. - View Dependent Claims (6, 7, 8)
-
-
9. A file conversion device which converts a file form written in a given language to a file form that can be interpreted by another language, the device comprising:
-
file readout device means for reading description contents of an inputted file by each line, and managing the description contents by adding an index to each line of the read description contents; syntax tree creating means for converting the description contents into a syntax tree of a tree structure based on the indexes through linearly scanning the indexes of the file managed by the file readout device; syntax tree optimizing means for optimizing the tree structure of the syntax tree as a flowchart according to an optimization rule; and file dividing means for dividing the inputted file by having controllers in the flowchart optimized by the syntax tree optimizing device as identifiers.
-
Specification