Lexico
|
Lexico is a Spanish language based object-oriented, educational programming language based on the .NET Framework.
Created to facilitate the programming education, specifically object-oriented programming techniques, Lexico has been shown to be successful in introducing Spanish-speaking students to the design of algorithms and data structures. Lexico was created by Pretends and other researchers, who verified that it does indeed help students learn faster and keeps them motivated. They hypothesize that this is due to the fact that students can experiment with algorithm design from the start of their journey in the programming world.
Being an educational language, Lexico's structure is simple: simplicity was chosen before performance. It's sufficiently simple to allow a person to learn the basic concepts of logic, algorithms, data structures. Object-oriented concepts have been simplified by the authors making students' introduction to OO paradigms easier.
Lexico's blocks are delimited by { ... } like C#, but conditional execution is done with the keyword es? and iteration with the loop mientras. Lexico's two fundamental types are numbers and strings, but it also supports the full .NET Framework types and constructs. It is thus possible to write complete windowed application in Lexico with events and controls. The lexico free compiler produces programs that can operate on any plateform where the .NET Framework is installed.
Here's an example of the Fibonacci algorithm in a console application.
/*Fibonacci source (http://factus.mat.uson.mx/papers/varios/articulo97.html)*/ tarea: { los objetos i, n, primero, segundo, tercero son cantidades muestre: "Entre el numero de terminos deseados: " entre: n copie 0 en i, primero copie 1 en segundo mientras i<n haga: { copie i + 1 en i muestre primero copie primero + segundo en tercero copie segundo en primero copie tercero en segundo } }
Here's an object oriented example.
incluya "System.Windows.Forms" clase ventana derivada_de "System.Windows.Forms.Form" { publicos: mensajes: ventana copie "Este es el título de mi primera ventana" en ventana.text }