Method for automatic converting program language in higher level to activity diagram
A programming language and automatic conversion technology, applied in the direction of program control devices, etc., can solve the problems of hardware component design problems, design problems, and inability to directly convert into hardware description language.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0063] Example 1 For Statement conversion:
[0064] Its syntax is as follows, please refer to Figure 4a Shown:
[0065] for([ForInit()]; [Expression()]; [ForUpdate()])Statement()
[0066] It is described as follows with a Java source code:
[0067]
[0068] The above Java source code conversion process is as follows:
[0069] step1: Parsing "for" and "(";
[0070] step2: Analyze (For Init()), draw the node represented by circle 1 in the figure, set In-Node and Out-Node, and connect online;
[0071] step3: parse ";";
[0072] step4: Analyze (Expression()) execute the newly added java program processConditionExpression(), generate Decode Node (D), and generate the wiring below the Decode node and the edge label on it
[0073] Completely draw the subgraph (a collection of nodes) represented by circle 2 in the figure, and set the In-Node and Out-Node;
[0074] step5: parse ";";
[0075] step6: Analyze (ForUpdate), draw the node represented by circle 3 in the figure;
...
example 2
[0084] Example 2 Conversion of While Statement:
[0085] Its syntax is as follows,
[0086] while(Expression())Statement()
[0087] Here is a Java source code conversion description as follows:
[0088]
[0089] The conversion process is as follows, please refer to Figure 4b Shown:
[0090] step1: Analyze "while" and "(";
[0091] Step2: Analyze Expression(), and generate circle 1 in the figure, and obtain the Out-Node of the sub-graph;
[0092] Step3: Execute the newly added java program processConditionExpression(), generate Decode Node (D), and generate the wiring below the Decode node and the edge label on it, and completely draw the subgraph represented by circle 2 in the figure (node set), set In-Node and Out-Node;
[0093] step4: connect the Out-Node of circle 2 (Expression()) and the In-Node of circle 1 (Statement());
[0094] step5: generate a Merge node, as shown in circle 3;
[0095] step6: connect the Out-Node of circle 1 (Statement()) to the Merge node...
example 3
[0098] Example 3 Conversion of Do Statement:
[0099] Its syntax is as follows,
[0100] do Statement() while(Expression());
[0101] Here is a Java source code conversion description as follows:
[0102]
[0103] The conversion process is as follows, please refer to Figure 4c Shown:
[0104] step1: parse "do";
[0105] Step2: Parse Statement() to generate as circle 1 in the figure, and obtain its Out-Node;
[0106] step3: Analyze "while" and "(";
[0107] Step4: Execute the newly added java program processConditionExpression(), generate DecodeNode(D), and generate the wiring below the Decode node and the edge label on it, and completely draw the subgraph represented by circle 2 in the figure (node's Collection), set In-Node and Out-Node;
[0108] step5: analyze ")" and ";";
[0109] step6: Connect the Out-Node of circle 1 (Expression()) and the In-Node of circle 2 (Statement());
[0110] step7: Generate a Merge node, as shown in circle 3;
[0111] step7: connect...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com