The invention discloses a method for generating a symbol table and a static data flow graph in a COStream grammatical analysis process, and belongs to the field of compiling. For a special grammar structure in COStream and reading and writing requirements on variable values, data flow types and Composite parameters in a static data flow diagram generation process, a hierarchical structure action domain and three symbol tables are designed, so that quick storage and reading of the action domain are realized. On the basis of the symbol table, simulation of an execution context is achieved, and parameter information transferred by Composite calling is calculated in the compiling process; in combination with the parameter information called by the Composite, a program execution path containingthe Composite call is determined, constant transmission of the conditional statements and the loop statements is achieved, and more constant information contained in a program is mined. According tothe constant information, the program containing a variable control computing node is compiled. By implementation of the nested data stream structure, when a COStream is used for programming, Spitjoinand Pipeline programming structures can be used in a nested manner, so that the user friendliness of the COStream is improved.