Skip to main content
QUICK REVIEW

[Paper Review] A visual programming language for drawing and executing flowcharts

Drazen Lucanin, Ivan Fabek|arXiv (Cornell University)|Feb 10, 2012
Model-Driven Software Engineering TechniquesComputer Science11 references5 citations
TL;DR

This paper presents vIDE, a visual programming language built on the Eclipse IDE using the GMF framework, enabling users to design flowcharts that are automatically transformed into readable Python code. By leveraging OCL for real-time constraint checking and a GOTO-to-WHILE transformation algorithm, vIDE ensures syntactic correctness and semantic clarity, offering a user-friendly, educationally effective environment for learning programming through visual algorithm design.

ABSTRACT

With recent advances in graphical user interfaces, more and more tasks on computers have become easier to perform. Out of the belief that creating computer programs can also be one of them, visual programming languages (VPLs) have emerged. The goal of VPLs is to shift a part of work from the programmer to the IDE so that the programmer can focus more on algorithm logic than the syntax of the implementation programming language. In this article, the methods required to build a VPL are presented, with an emphasis on a novel method of code generation in a WHILE language. Also, the methods for achieving basic principles of VPLs will be shown - suitable visual presentation of information and guiding the programmer in the right direction using constraints. These methods are demonstrated on an example of vIDE, a VPL based on the Eclipse integrated development environment (IDE). The design of vIDE with respect to the Eclipse Graphical Modeling Framework (GMF) is described. The concept of a flowchart graphical notation is examined in contrast with the algorithm model it maps to. Finally, the disambiguity of the model representation of an algorithm is discussed and the methods for transforming it to an actual implementation in a programming language.

Motivation & Objective

  • To reduce the barrier to entry for programming by enabling users to design algorithms visually through flowcharts.
  • To develop a system that automatically generates correct, readable Python code from visual flowchart representations.
  • To implement real-time constraint checking using OCL to prevent invalid program structures during design.
  • To support a smooth transition from visual programming to classical coding by exposing generated source code.
  • To enhance usability through intelligent UI inference, such as dynamically hiding redundant options based on existing connections.

Proposed method

  • The vIDE system is implemented as an Eclipse plug-in using the Eclipse Graphical Modeling Framework (GMF) for diagram modeling and rendering.
  • Flowcharts are modeled as tree-structured abstract syntax trees in a structured WHILE language, enabling unambiguous algorithm representation.
  • A GOTO-to-WHILE transformation algorithm detects loops in flowcharts by identifying backward-pointing connections, enabling loop code generation.
  • Code generation is performed via depth-first traversal of the abstract syntax tree, mapping each instruction to equivalent Python syntax.
  • Object Constraint Language (OCL) is used to define and enforce real-time syntactic and structural constraints (e.g., no self-connections).
  • Intelligent UI inference is implemented in Java to deduce user intent (e.g., hiding redundant 'true/false' options after one is selected), reducing visual clutter.

Experimental results

Research questions

  • RQ1How can a visual programming environment be designed to support both intuitive flowchart creation and correct code generation?
  • RQ2What mechanisms can ensure real-time syntactic and semantic constraint checking during flowchart construction?
  • RQ3How can visual programming tools infer user intent and reduce interface complexity through dynamic UI adaptation?
  • RQ4To what extent can a visual flowchart representation be unambiguously transformed into a structured programming language like Python?
  • RQ5Can a visual programming environment effectively support a transition to classical programming by exposing generated source code?

Key findings

  • The vIDE system successfully generates correct, human-readable Python code from user-drawn flowcharts, as demonstrated with Euclid’s algorithm.
  • Real-time constraint checking via OCL prevents invalid structures such as self-connections, improving usability and error prevention.
  • The GOTO-to-WHILE transformation algorithm correctly identifies loops in flowcharts by detecting backward-pointing connections, enabling proper WHILE loop generation.
  • Intelligent UI inference reduces visual noise by dynamically hiding semantically redundant options, such as omitting the 'false' choice when a 'true' branch already exists.
  • The system enables a seamless educational pathway by exposing the underlying Python code, supporting transition to textual programming.
  • The integration of GMF and OCL allows for a robust, extensible framework that supports both visual modeling and formal constraint validation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.