Glagol (Russian Глагол, "verb") is a programming language based on the Russian lexicon. It is strongly reminiscent of Oberon and Pascal. The language is the subject of serious academic study and is under active development. The complete distribution includes, along with the compiler, a set of mathematical and system libraries, games and applications with source code attached.
Contents |
Of course, these problems can be eliminated as compiler development goes on.
The terminology used in Glagol is different from what is used to describe most programming languages. While it is closer to everyday Russian speech, it may confuse those who want to learn Glagol but who already know another programming language.
| Glagol term | Direct translation | Traditional term | English term |
|---|---|---|---|
| вид (vid) | kind | тип (tip) | type |
| данное (dannoye) | datum | переменная (peremennaya) | variable |
| действие (deystvie) | action | операция (operatsia) | operation |
| доступ (dostup) | access | указатель (ukazatel) | pointer |
| задача (zadacha) | task | процедура (protsedura), функция (funktsia) | procedure, function |
| ключ (kluch) | key | логическая переменная (logical variable) | boolean variable |
| набор (nabor) | set, collection | запись (zapis'), структура (struktura), объект (obyekt), класс (klass) | record, structure, object, class |
| название (nazvanie) | name | идентификатор (identifikator) | identifier |
| отдел (otdel) | section | модуль (modul') | unit, module |
| пояснение (poyasnenie) | explanation | комментарий (kommentariy) | comment |
| преобразователь (preoprazovatel) | transformer | компилятор (kompilator) | compiler |
| приёмник (priyomnik) | receiver | параметр (parametr) | parameter |
| ряд (r'ad) | row | массив (massiv) | array |
| тексторез (tekstorez) | text cutter | препроцессор (preprotsessor) | preprocessor |
| уборка памяти (uborka pam'ati) | memory cleanup | сборка мусора (sborka musora) | garbage collection |
| указание (ukazanie) | instruction | оператор (operator) | operator |
| цепочка (tsepochka) | (small) chain | строка (stroka) | string |
«Hello world»:
ОТДЕЛ Привет+;
ИСПОЛЬЗУЕТ Вывод ИЗ "...\Отделы\Обмен\";
УКАЗ
Вывод.Цепь("Здравствуй, мир!")
КОН Привет.
|
|