Bidirectional translation between text-based and block-based programming languages in the Logo tradition

Authors

  • Hristo Hristov Institute of Mathematics and Informatics, Bulgarian Academy of Sciences, Sofia, Bulgaria

DOI:

https://doi.org/10.55630/mem.2026.55.117-125

Keywords:

turtle, robot, programming, logo, geometry

Abstract

This article presents a free and open-source, minimal implementation of bidirectional translation between text and blocks for a subset of Berkeley Logo, designed for programming turtle robots in mathematics and informatics explorations. The robots are intended to be assembled by students using off-the-shelf electronic components. The programming environment is web-based and can also be used offline. It supports switching between two editing modes – blocks and text – and four turtle-geometry commands: FORWARD and BACK (for relative translation), LEFT and RIGHT (for relative rotation). Its purpose is to provide a foundation for more advanced implementations that build on the blocks–text translation and can also be applied to projects beyond turtle geometry. Blocks mode is easier for beginners, particularly on touchscreen devices, while text mode offers greater flexibility. Switching between modes allows students to work in the way best suited to their skill level and device.

Author Biography

Hristo Hristov, Institute of Mathematics and Informatics, Bulgarian Academy of Sciences, Sofia, Bulgaria

Institute of Mathematics and Informatics
Bulgarian Academy of Sciences
Acad. G. Bonchev Str., Block 8
1113 Sofia, Bulgaria

References

Dong, Yihuan and Marwan, Samiha and Catete, Veronica and Price, Thomas and Barnes, Tiffany (2019) Defining Tinkering Behavior in Openended Block-based Programming Assignments, Association for Computing Machinery, SIGCSE ’19, pp. 1204–1210, https://doi.org/10.1145/3287324.3287437

Hristov, H. (2025) Turtle Geometry with Arduino and Snap! – Developing Interactive Tools for Learning and Experimentation in Mathematics and Informatics, Mathematics, Computer Science and Education, Volume 8 Issue 1, pp. 48-68, https://journals.uni-vt.bg/mcse/eng/vol8/iss1/art7

Papert, Seymour A. (1999) What is Logo? And Who Needs It?. Logo philosophy and implementation. Logo Computer Systems Inc., https://dailypapert.com/what-is-logo-and-who-needs-it/

Papert, Seymour A. (1980) Mindstorms: children, computers, and powerful ideas. ISBN:978-0-465-04627-0, https://www.media.mit.edu/publications/mindstorms/

Papert, Seymour A. and Solomon, Cynthia (1971) Twenty Things To Do With A Computer https://doi.org/1721.1/5836

Perin, Ana Paula Juliana and dos S. Silva, Deivid Eive and Natasha M. C. Valentim (2023) Investigating block programming tools in high school to support Education 4.0: A Systematic Mapping Study, Informatics in Education, volume 22, issue 3, pp. 463-498, https://doi.org/10.15388/infedu.2023.21

Sendova, Evgenia (2021) An Eternal Source of Inspiration or What the Bulgarian Turtle Told Achilles This Time in Gary Stager, Twenty Things to Do with a Computer Forward 50, Constructing Modern Knowledge Press, 63-92, ISBN 978-1-955604-01-7

Zhang, Deyu and Wang Jiawen and Jing Yanbin and Shen Ao (2024) The impact of robotics on STEM education: Facilitating cognitive and interdisciplinary advancements, Applied and Computational Engineering, volume 69, pp. 7-12, https://doi.org/10.54254/2755-2721/69/20241433

Downloads

Published

2026-05-19

How to Cite

[1]
Hristov, H. 2026. Bidirectional translation between text-based and block-based programming languages in the Logo tradition. Mathematics and Education in Mathematics. 55, (May 2026), 117–125. DOI:https://doi.org/10.55630/mem.2026.55.117-125.

Issue

Section

Section B: Mathematical Modelling and Informatics