Einfach Erweitern


                                



    




            Author: Kay Schluehr

            Date: 25.05.2006
            Version: Noch nicht alles 1A



Prolog

Teuton is a german programming language. Teuton is probably that kind of language you ever wanted to write when you visited the Muenchner Oktoberfest or drank otherwise too much Hefeweizen. There is nothing really special about Teuton except that it is german. I grabbed the idea from a weblog entry of Andy Dent on Artima where he suggested those language localizations for his CEDSimply language.

Applikation

Point to the teuton directory and call your application:

    teuton\python fiber.py <myFile.py>

Exempel

# for ~ fuer
# in ~ im
# range ~ intervall
# print ~ drucke

fuer i im intervall(9)[::-1]:
     drucke i

# while ~ solange
# True ~ Wahr
# try ~ versuche
# except ~ ausser;
# ZeroDivisionError ~ NullDivisionsFehler
# return ~ zurueck

solange Wahr:
   versuche:
       1/0
   ausser NullDivisionsFehler:
       zurueck
   

Note that Teuton offers both keywords "im" and "in" for Pythons "in" alternatively. You might select the correct variant according to the right grammatical case ( dativ in the example ). Teuton is really approaching a human interface :)


Vokabular

Teuton replaces english words of original Python by german translations. Those are at least all keywords and also some frequently used identifiers. I admit Teuton is not yet perfect and the vocabulary could be extended which is even more true for the standard-library. It follows a table of yet implemented translations. The translations are not accurate and the list is not yet finished.



English
Deutsch


                        Keywords

del
entf
print
drucke
continue
weiter
return
zurueck
exec
erledige
yield
ergibt
import
importiere
raise
behandle
from
von
assert
behaupte
if
wenn
elif
wennsonst 
else
sonst
while
solange
for
fuer
except
ausser
class
klasse
and
und
or
oder
not
nicht
in
in / im
finally
schliesslich
break
abbrechen

                        Stdlib

ArithmeticError
ArithmetischerFehler