HOME

TheInfoList



OR:

LSE (french: Langage symbolique d'enseignement) is a
programming language A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language. The description of a programming l ...
developed at
Supélec École supérieure d'électricité, commonly known as Supélec (), was a French graduate school of engineering. It was one of the most prestigious grande écoles in France in the field of electrical engineering, energy and information sciences. ...
and Télémécanique from the late 1960s to the mid-1970s."La Saga du LSE et de sa famille (LSD/LSG/LST)", by Yves Noyelle, May 1988. http://www.epi.asso.fr/revue/54/b54p216.htm (in French) "Toutes ces contraintes ont mené entre Mars 1968 et Mars 1969 à la conception de LSD ... La saga du LSE suit celle du LSD, et son origine est le colloque CERI/OCDE de Sèvres (mars 1970) ... Les gens de Télémécanique mirent le paquet sur ce projet ... et livrèrent deux systèmes fin Octobre 1972. ... Le développement des LSx s'est étendu sur neuf années (1968-1976), avec quelques interruptions." It is similar to
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
, except with French-language instead of
English English usually refers to: * English language * English people English may also refer to: Peoples, culture, and language * ''English'', an adjective for something of, from, or related to England ** English national id ...
-language keywords. It was derived from an earlier language called ''LSD'', also developed at Supélec. It is most commonly said to be an acronym for ''Langage Symbolique d'Enseignement'' (Symbolic Teaching Language), but other expansions are also known (e.g. ''Langage de Sup-Élec'', or the more cynical ''Langage Sans Espoir'' (hopeless language)). It originally flourished due to support from the
French Ministry of National Education French (french: français(e), link=no) may refer to: * Something of, from, or related to France ** French language, which originated in France, and its various dialects and accents ** French people, a nation and ethnic group identified with France ...
, but declined as the ministry lost interest. It went through a number of revisions; earlier versions of LSE lacked full support for
structured programming Structured programming is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection ( if/then/else) and repetition (w ...
, later versions such as LSE-83 (aka LSE-1983) by Jacques Arsac added structured programming support, along with
exception handling In computing and computer programming, exception handling is the process of responding to the occurrence of ''exceptions'' – anomalous or exceptional conditions requiring special processing – during the execution of a program. In general, a ...
. Even later revisions, such as LSE-2000, added more functionality, new types, new operators (NI, ET QUE, OU QUE and SELON-DANS-SINON), flow control commands, etc.


Code examples


99 Bottles (AFNOR Z 65-020)

1*CHANSON DES 99 BOUTEILLES DE BIERE 2*PASCAL BOURGUIGNON, 2003 10 FAIRE 20 POUR N←99 PAS -1 JUSQUA 1 20 &STROF(N) 30 AFFICHER IL EST TEMPS D’’ALLER AU MAGASIN.',/ 40 TERMINER 100 PROCEDURE &STROF(N) LOCAL S1,S0;CHAINE S1,S0;S1←"S";S0←"S" 110 SI N=2 ALORS S0←"" SINON SI N=1 ALORS DEBUT S1←"";S0←"" FIN 120 AFFICHER ,' BOUTEILLE',U,' DE BIERE SUR LE MUR.',/,S1 130 AFFICHER ,' BOUTEILLE',U,' DE BIERE.',/,S1 140 AFFICHER EN PRENDRE UNE, LA FAIRE PASSER.',/ 150 AFFICHER ,' BOUTEILLE',U,' DE BIERE SUR LE MUR.',2/-1,S0 160 RETOUR


Anagrams (LSE-1983)

Example from Jacques Arsac in LSE83: 1 CHAINE A,B,BP 5 FAIRE 10 AFFICHER 'A = ' ;LIRE A ; SI A=’’ ALORS FINI IS 11 AFFICHER 'B = ' ;LIRE B ; BP ← B 12 15 R SI LGR(A) # LGR(B) ALORS .FAUX. SINON &ANAG(A,B) IS 20 SI R ALORS AFFICHER A, 'EST ANAGRAMME DE ',BP 21 SINON AFFICHER A, 'N’’EST PAS ANAGRAMME DE 1, BP 22 IS 25 BOUCLER 29 30 TERMINER 31 50 FONCTION &ANAG(U,V) LOCAL J 51 SI U=' ' ALORS RESULTAT .VRAI. IS 52 SI J = 0 ALORS RESULTAT .FAUX. IS 54 RESULTAT &ANAG(SCH(U,2, ' '),MCH(V,J,l, ' ')) $55 &ANAG $99


Largest common divisor, Euclid's algorithm (LSE2000)

(* ** MÉTHODE D'EUCLIDE POUR TROUVER LE PLUS GRAND DIVISEUR COMMUN D'UN ** NUMÉRATEUR ET D'UN DÉNOMINATEUR. ** L. Goulet 2010 *) PROCÉDURE &PGDC(ENTIER U, ENTIER V) : ENTIER LOCAL U, V ENTIER T TANT QUE U > 0 FAIRE SI U< V ALORS T←U U←V V←T FIN SI U ← U - V BOUCLER RÉSULTAT V FIN PROCÉDURE PROCÉDURE &DEMO(ENTIER U, ENTIER V) LOCAL U, V AFFICHER Le PGDC de ',U,'/',U,' est ',U,/U, V, &PGDC(U,V) FIN PROCÉDURE &DEMO(9,12)


References


External links



99 Bottles of Beer, 99 Bottles program written in LSE
An implementation of L.S.E.
{{BASIC Procedural programming languages Non-English-based programming languages BASIC programming language family Programming languages created in the 1970s