LeXicoEl poder de los simple

  

SOFTWARE TOOLS TO SUPPORT AN OBJECTS-FIRST CURRICULUM

Lexico, a didactic and object-oriented language


Download the Lexico compiler from here

Lexico is a didactic language for programming in Spanish destinated to facilitate the learning and teaching of the objects orientated programming.
It pretends, and the researches made with it have shown that its true, improve the performance of the students and motivate them to advance in the generation of abilities in programming logic because it permits them to experiment with the algorithms design with out having to learn a
language for months so they can “see” their creations. The structure is simple and some elements of efficiency that are unnecessary in
a training have been retreated.

The compiler support the internationally demanded characteristics of the paradigm, runs on the distribuible platform.net of Microsoft and it can be
download from his portal in http://riosur.net.

It has the sufficient simpleness to permit a person train with the basic concepts in algorithms in the behavior tarea way so the person can practice
the fundamental structures in logic (sequence with {…}, decision with es? and repetitions with the loop mientras) and the classic composed data
structure called array, until the pure paradigm of the objects orientated programming, POO.

The medullar center is the orientation to objects for wich it has the apropiated soport and it has been simplificated at maximum so it can
help with the immersion in the concepts.

The objects can be constructed on base with the two fundamental types, quantity and characters, basing on the types that have been established
for the programmer and basing in the 7000 definitions of the platform.net of Microsoft, that permits to develop true applications that
include controls and events management.

The types can be defined in the file of the central program or in extern files and in the way of herencia with base on the FCL library
(Fundamental Classes Library of the Microsoft`s framework). Those that haven’t been defined in the main file are incorporated whit
the instruction incluya.


An example of a description of a message, algorithm or behavior:
incluya "Lexico_palabras_claves_castellano_e_ingles.lx"

/* OR replace the above sentence by this:
synonymous "entre" "read", "tarea" "algorithm", "el" "the", "objeto" "objects", "variando" "for", "cantidad" "amounts", 
"muestre" "display", "es_un" "are", "hasta" "until", "desde" "from", "haga" "do" */ algorithm { the objects nat, N are amounts read N for nat from 1 until N do: display "number ", nat }

Another one: A Form application in english using Lexico
incluya "Lexico_palabras_claves_castellano_e_ingles.lx"

/* OR replace the above sentence by this:
synonymous "clase" "class", "mensajes" "methods", "derivada_de" "extend" , 
"publicos" "public", "copie" "copy", "en" "in"*/

/* To write a title at the window (caption bar) modify the 
attribute text (it's inherited from Form class) */ 


class window extend "System.Windows.Forms.Form" 
{ 
public: 
methods: 
window copy " This is the title" in window.text 
}

Another one:
/*Fibonacci 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
            } 
}

An example of OOP that uses a professional type of .net and permits the use in events:
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
}

The .NET Framework Class Library is here
(Jun.8.2005) in coming
 
Todos los derechos reservados :: Powered by Riosur :: Diseñado por EnDeT