Mechanix: software for shape drawing and programming
Închide
Articolul precedent
Articolul urmator
42 0
SM ISO690:2012
CEMÎRTAN, Cristian, CAPCELEA, Maria. Mechanix: software for shape drawing and programming. In: Mathematics and Information Technologies: Research and Education, Ed. 2023, 26-29 iunie 2023, Chişinău. Chişinău: 2023, pp. 78-79. ISBN 978-9975-62-535-7.
EXPORT metadate:
Google Scholar
Crossref
CERIF

DataCite
Dublin Core
Mathematics and Information Technologies: Research and Education 2023
Conferința "Mathematics and Information Technologies: Research and Education"
2023, Chişinău, Moldova, 26-29 iunie 2023

Mechanix: software for shape drawing and programming


Pag. 78-79

Cemîrtan Cristian, Capcelea Maria
 
Moldova State University
 
 
Disponibil în IBN: 26 aprilie 2024


Rezumat

In the current paper, a computer program was developed to teach the fundamentals of programming to learners interested in computer science. The strategy used is to let the learners draw their own paintings by writing algorithms. The program’s environment allows the end user to import source codes, or alternatively, script files, that can be used to draw diverse shapes on a graphical container known as the canvas. In runtime, the drawing process is made possible by moving the brush, characterised by a kangaroo using its tail, around the canvas in accordance with the special commands specified in the compiled script file. Under the hood, Mechanix consists of two proper key components: the Tian programming language and the Ciochina virtual machine. Tian is a procedural programming language used to write importable source codes, and it features variables, functions, procedures, structure types, pointers, operator overloading, etc. The keywords specified in Tian’s grammar are in Romanian, effectively making Mechanix targeted to the Romanian-speaking audience. The Ciochina virtual machine acts as the bridge between Tian and the runtime. When importing a source code, it is processed for the absence of Tian-related errors (e.g., syntax errors). Afterwards, the generated syntax tree compiles into bytecode so it can be executed directly by the virtual machine at runtime. The scientific novelty of Mechanix is to implement functionalities that are not featured in its inspiration, Cangur. Cangur is educational software developed in 1998 [1], and is featured in a textbook for Moldovan secondary schools [2]. At the time, Cangur’s internal programming language was insufficient to cover most of the programming fundamentals, as it supported only conditionals, procedures, and loops. The language used in Mechanix, Tian, is meant to solve the problem by inheriting most of the crucial language constructs featured in general-purpose programming languages such as C++, Pascal, and Python. Tian’s rich grammar allows the learner to create full-blown scripts with the capability of drawing complex shapes, as opposed to ”reinventing the whee” in Cangur.