CN103365634A - Method for transferring controlling processes into program control statements in flow chart - Google Patents

Method for transferring controlling processes into program control statements in flow chart Download PDF

Info

Publication number
CN103365634A
CN103365634A CN2012100864279A CN201210086427A CN103365634A CN 103365634 A CN103365634 A CN 103365634A CN 2012100864279 A CN2012100864279 A CN 2012100864279A CN 201210086427 A CN201210086427 A CN 201210086427A CN 103365634 A CN103365634 A CN 103365634A
Authority
CN
China
Prior art keywords
flow diagram
process flow
code block
flow chart
judgment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100864279A
Other languages
Chinese (zh)
Inventor
牟春林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Jingyihui Information Technology Co., Ltd.
Original Assignee
SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd filed Critical SUZHOU INDUSTRIAL PARK JINYI TECHNOLOGY Co Ltd
Priority to CN2012100864279A priority Critical patent/CN103365634A/en
Publication of CN103365634A publication Critical patent/CN103365634A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention aims to transfer a judgment controlling process and a loop controlling process in a flow chart into a judgment code block and loop code block of specific programming language as required according to a flow formed by line connection. The method includes determining a start of a judgment code block according to judgment node information in a flow chart, and determining an end of the judgment code block according to intersection information of the flow of the judgment nodes; if two flows intersected in the flow chart contains same flow identification information, determining a start of a loop code block according to intersected node information, and determining an end of the loop code block according to judgment node information of the corresponding flow in the flow chart. In the process of producing or adjusting the flow chart, corresponding comment tags and codes can be generated synchronously, and corresponding contents can be accessed through the comment tags. The transferring process can be realized through the comment tags, and program control codes can be generated in the process of flowcharting; the method has the advantages that the flow chart is easy to realize, and nodes can be shared; the corresponding flow chart is clear and easy to maintain.

Description

Control procedure in the process flow diagram is converted to the method for program control statement
Technical field
The invention relates to a kind of method that control procedure in the process flow diagram is converted to program control statement, the stream that particularly the judgement control procedure in the process flow diagram and cycle control process is formed according to line is converted to judgement code block and the loop code piece of specific program language as required.
Background technology
The patent of invention that the applicant has applied for a kind of system and method for graphical making software on March 12nd, 2012, application number is 201210062317.9, this patent is made the system and method for software systems for the non-computer professional provides an Analysis of Nested Design, the user can be by graphical interfaces the mode design object, then by the mode of the drawing process flow diagram logic of designing program.Function for the logic of designing program by the mode of drawing process flow diagram, need conversion equipment the control procedure of process flow diagram to be converted to the programmed control code of specific program language, and then be converted to object code, the invention provides a kind of method that control procedure in the process flow diagram is converted to program control statement.
Summary of the invention
The object of the invention is the stream that the judgement control procedure in the process flow diagram and cycle control process form according to line is converted to as required judgement code block and the loop code piece of specific program language, described stream is the logic flow that is connected to form through line by one or more nodes in the process flow diagram, be divided into a plurality of streams by decision node therebetween, described judgement code is that judging such as if of using in the program code processed code block, and described loop code piece is the loop code piece such as the while circulation that uses in the program code.
Determine that according to the decision node information in the process flow diagram one judges the beginning of code block, determine the end of this judgement code block according to the joint information of this decision node stream out.If contain identical flow identification information in two streams that cross in the process flow diagram, then determine the beginning of loop code piece by the nodal information that crosses, determine the end of loop code piece according to the decision node information of corresponding stream in the process flow diagram.Making or adjusting in the process of process flow diagram, generate simultaneously corresponding comment token and code, and can pass through the corresponding content of comment token access.
The transfer process that realizes by above method can be in the flowchart drawing process generator program control routine simultaneously, have process flow diagram and easily realize, node such as can share at advantage, the simultaneously corresponding clear easy care of process flow diagram.
Description of drawings
Fig. 1 is control procedure in the process flow diagram of the present invention and the corresponding relation of program control statement.
Embodiment
Below realize preferred example of the present invention by example explanation.
Please refer to Fig. 1, left area 1 is a process flow diagram among Fig. 1, and zone, the right 2 is corresponding with it programmed control code.Comprise traffic identifier and expression formula information in each node in the zone 1, wherein the part of " " symbol front end is the traffic identifier symbol, and " " symbol rear end is expression formula, can be with the place that certain can be read and write that is kept at of traffic identifier recessiveness in the practice process; Such as " 1@a=x in the start node 10; ", namely the traffic identifier at this node place is 1, expression formula is a=x; And in the node 110 " 1@c12c=z ", show that then two affluent-dividings 1.2 of traffic identifier 1 and the stream of 1.3 correspondences all pass through this node, the rest may be inferred.
Please refer to Fig. 1, the corresponding programmed control code that the right edge regions 2 of Fig. 1 converts to for regional 1 process flow diagram.Wherein every row " " symbol is comment token, and " [] " symbol is used for the flag node type, uses if in this example and judges type and while cyclical patterns, is defaulted as type expression, the expression formula of corresponding its next line of every row comment token.
In making the process of process flow diagram, the traffic identifier of node 10 and 11 is defined as 1, decision node 12 has two affluent-dividings, respectively its traffic identifier is defined as 1.2 and 1.3; For node 110, crossed by two affluent-dividings 1.2 and 1.3 that flow 1, it is equivalent to stream 1.Comment token is 01 note and code subsequently in the node 10 direct formation zones 2; Node 11 has two streams to cross, and contain simultaneously stream 1, then be converted to the beginning of loop code piece, cycling condition finds the condition of its initial decision node 111 to generate according to stream information, generate comment token and be 02 note and code subsequently, and its expression formula is generated the note of corresponding comment token 03 and follow-up code; Next process stream 1.2, generate comment token 04 and code subsequently; Node 17 generates comment token 16 and code subsequently; Though node 18 has stream to cross, do not contain the phase homogeneous turbulence, generate comment token 17 and code subsequently; Node 19 generates comment token 18 and code subsequently; Node 110 is crossed by stream 1.2 and 1.3, indicates that two shuntings of node 12 all cross, and stream 1.2 finishes, and generates comment token 04[ifend]; Next process stream 1.3, generate comment token 20 and code subsequently; Node 112 is decision node, generates comment token 21 and code subsequently; Node 113 and 114 generates comment token 22 and 23 codes that reach subsequently successively; Contain stream 1 in the node 110, indicate that two shuntings of node 12 all cross, stream 1.3 finishes, and generates comment token 21[ifend] and 20[elseend] and code subsequently; So far two of node 12 shuntings are disposed, and generate comment token 26 and code subsequently according to node 110; Node 111 is the decision node of circulation, generates comment token 02[whileend]; Node 112 does not have expression formula, does not process.
When process flow diagram changes, can pass through comment token access corresponding contents, in this example, next behavior expression formula of each comment token, each judges the end comment token of a correspondence of control.
The transfer process that realizes by above method can be in the flowchart drawing process generator program control routine simultaneously, have process flow diagram and easily realize, node such as can share at advantage, the simultaneously corresponding clear easy care of process flow diagram.
The above embodiment only is the better embodiment of the present invention; and unrestricted claim of the present invention; the structural change of the modification that any utilization instructions related content of the present invention is done and equivalence and enforcement and the corresponding inspection method of carrying out all should be included within the scope of patent protection of the present invention.

Claims (5)

1. method that the control procedure in the process flow diagram is converted to program control statement, its process is, the feature of the stream that forms according to the line in the process flow diagram is converted to the judgement control procedure in the process flow diagram and cycle control process judgement code block and the loop code piece of program language as required, it is characterized in that, use the identification information of stream in the described transfer process, comprise comment token in the judgement code block of described program language and the loop code piece, this comment token can be used for code corresponding to access.
2. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1, it is characterized in that, determine that according to the decision node information in the process flow diagram one judges the beginning of code block, determine the end of this judgement code block according to the feature that crosses of decision node stream out, then generate the comment token of above-mentioned beginning and end.
3. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1, it is characterized in that, if contain identical flow identification information in two streams that cross in the process flow diagram, then determine the beginning of loop code piece according to the feature of this node that crosses, determine the end of loop code piece according to the decision node feature of corresponding stream in the process flow diagram, then generate the comment token of above-mentioned beginning and end.
4. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1 is characterized in that, containing in the identification information of described stream directly or indirectly to provide the function of distinguishing a plurality of streams.
5. a kind of method that control procedure in the process flow diagram is converted to program control statement as claimed in claim 1 is characterized in that, described comment token has the advantages that not affect steering logic.
CN2012100864279A 2012-03-29 2012-03-29 Method for transferring controlling processes into program control statements in flow chart Pending CN103365634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100864279A CN103365634A (en) 2012-03-29 2012-03-29 Method for transferring controlling processes into program control statements in flow chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100864279A CN103365634A (en) 2012-03-29 2012-03-29 Method for transferring controlling processes into program control statements in flow chart

Publications (1)

Publication Number Publication Date
CN103365634A true CN103365634A (en) 2013-10-23

Family

ID=49367077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100864279A Pending CN103365634A (en) 2012-03-29 2012-03-29 Method for transferring controlling processes into program control statements in flow chart

Country Status (1)

Country Link
CN (1) CN103365634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371823A (en) * 2016-08-22 2017-02-01 广州酷狗计算机科技有限公司 Code block generation method and apparatus
CN107977236A (en) * 2017-12-21 2018-05-01 上海智臻智能网络科技股份有限公司 Generation method, terminal device, storage medium and the question answering system of question answering system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20030177471A1 (en) * 2002-03-12 2003-09-18 Yen-Chang Chiu System and method for graphically developing a program
CN1459719A (en) * 2002-05-17 2003-12-03 义隆电子股份有限公司 System of pattern development program and method
CN1967574A (en) * 2005-11-17 2007-05-23 深圳市东进通讯技术股份有限公司 Method and system to realize generating of integrated communications platform process
CN101776999A (en) * 2010-01-28 2010-07-14 苏州工业园区进一科技有限公司 Platform for developing and implementing software system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20030177471A1 (en) * 2002-03-12 2003-09-18 Yen-Chang Chiu System and method for graphically developing a program
CN1459719A (en) * 2002-05-17 2003-12-03 义隆电子股份有限公司 System of pattern development program and method
CN1967574A (en) * 2005-11-17 2007-05-23 深圳市东进通讯技术股份有限公司 Method and system to realize generating of integrated communications platform process
CN101776999A (en) * 2010-01-28 2010-07-14 苏州工业园区进一科技有限公司 Platform for developing and implementing software system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钟志超 等: "流程图与类C语言实时转换方法", 《东南大学学报(自然科学版)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371823A (en) * 2016-08-22 2017-02-01 广州酷狗计算机科技有限公司 Code block generation method and apparatus
CN107977236A (en) * 2017-12-21 2018-05-01 上海智臻智能网络科技股份有限公司 Generation method, terminal device, storage medium and the question answering system of question answering system
CN107977236B (en) * 2017-12-21 2020-11-13 上海智臻智能网络科技股份有限公司 Question-answering system generation method, terminal device, storage medium and question-answering system

Similar Documents

Publication Publication Date Title
TWI743078B (en) Flattening portal bridge
CN103218296B (en) A kind of method of abundant detection null pointer dereference defect
US7383422B2 (en) Very long instruction word (VLIW) computer having an efficient instruction code format
US20160241481A1 (en) Traffic scheduling device
CN109154924A (en) Multiple uplink side jaws equipments
CN106095376B (en) A kind of implementation method of quick configuration monitoring picture
CN104391770B (en) The on-line debugging of a kind of embedded data security system SOC and Upper machine communication module
CN104007954B (en) Processor and the control method for processor
CN107423054A (en) Self-defined graphical algorithm configuration devices, systems, and methods based on FPGA
US20080282007A1 (en) METHOD AND SYSTEM FOR CONTROLLING TRANSMISSION and EXECUTION OF COMMANDS IN AN INTEGRATED CIRCUIT DEVICE
JP2021511576A (en) Deep learning accelerator system and its method
CN103365634A (en) Method for transferring controlling processes into program control statements in flow chart
CN104407921A (en) Time-based method for dynamically scheduling yarn task resources
Borgia et al. STEP-NC compliant approach for setup planning problem on multiple fixture pallets
CN103914416A (en) Regulating direct memory access descriptor execution
CN101901161A (en) Energy consumption related software/hardware partition-oriented hierarchical control and data flow graph modeling method
CN107301353A (en) A kind of streaming Method on Dense Type of Data Using desensitization method and its data desensitization equipment
TWI694412B (en) Configuration of application software on multi-core image processor
CN102981827A (en) Display interface data treatment method and platform based on middle piece
CN106469026A (en) Flexible interface for nand flash memory
CN103365636A (en) Method for converting control processes in flow chart into program control statements
CN103365635A (en) Method for converting control processes in flow chart into program control statements
Boucher et al. Dynamic routing and the performance of automated manufacturing cells
CN102566973A (en) Dynamic allocation method for instruction memory cell for multi-core heterogeneous system
CN104603701B (en) input and output response control setting device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SUZHOU JINGYIHUI INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SIP JINYI TECH CO., LTD.

Effective date: 20140901

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140901

Address after: 215000 Jiangsu Province, Suzhou City Industrial Park, building 69 room 905 guests

Applicant after: Suzhou Jingyihui Information Technology Co., Ltd.

Address before: 215000 Jiangsu Province, Suzhou City Industrial Park, building 69 room 905 guests

Applicant before: Suzhou Industrial Park Jinyi Technology Co., Ltd.

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131023

WD01 Invention patent application deemed withdrawn after publication