Turtle application: from flowchart to source code
Posté: 03 Juil 2022, 16:21
Hello
There is an app called Flowgorithm http://www.flowgorithm.org/preview/index.html that allows you to code an algorithm using a flowchart.
In the latest version, it includes the preview version of line drawing and rotation via a turtle-style pixel management window.
Flowgorithm allows you to export any flowchart to a professional language like (C#, Java, JavaScript...), but Flowgorithm does not currently generate source code for turtle diagrams.
If you want to help translate the code, you are welcome, you can put the translations here and then I will send them to the author.
For example, the following pseudocode translates to Python as
pseudocode
Python
List of languages to incorporate code translation, you can include some external library or custom methods.
There is an app called Flowgorithm http://www.flowgorithm.org/preview/index.html that allows you to code an algorithm using a flowchart.
In the latest version, it includes the preview version of line drawing and rotation via a turtle-style pixel management window.
Flowgorithm allows you to export any flowchart to a professional language like (C#, Java, JavaScript...), but Flowgorithm does not currently generate source code for turtle diagrams.
If you want to help translate the code, you are welcome, you can put the translations here and then I will send them to the author.
For example, the following pseudocode translates to Python as
pseudocode
- Code: Tout sélectionner
Function Main
Draw 50
Turn right 45
Draw 60
Turn left 45
Draw 56
Send Turtle Home
End
Python
- Code: Tout sélectionner
import turtle
draw = turtle.Turtle()
draw.forward(50)
draw.right(45)
draw.forward(60)
draw.left(45)
draw.forward(56)
draw.home()
List of languages to incorporate code translation, you can include some external library or custom methods.
- Ada 95
Nim
Swift
Applescript
Bash
C#
C++
Fortran 2003
Java
JavaScript
Lua
Pascal
Perl
PHP
Powershell
Python
QBasic
Ruby
Scala
Transact-SQL
Typescript
VBA
Visual Basic.NET
Gaddis Pseudocode
IBO Pseudocode
Auto Pseudocode
MATLAB
Smalltalk