/
viktor-zin
/
afce
Обзор
Документация
Войти
/
viktor-zin
/
afce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
generators/ruby.json
41 строка
671 B
viktor-zin
Ruby added (#24)
15 окт 2014, 18:13
15 окт 2014, 18:13
08b92dc
Код
Авторство
О чём код?
{ "name": { "en_US":"Ruby" }, "algorithm" : { "template" : "def main%branch1%\nend" }, "if": { "template":"if %cond% then%branch1%\nelse%branch2%\nend" }, "for": { "template":"for %var% in %from%..%to%%branch1%\nend" }, "pre": { "template":"while %cond%%branch1%\nend" }, "post": { "template":"begin%branch1%\nend while %cond%" }, "assign": { "template":"%dest% = %src%" }, "process": { "template": "%text%" }, "io": { "template": "%vars%", "list": ["vars"], "separator": ",", "glue": "\n", "suffix": " = gets" }, "ou": { "template": "puts [%vars%]", "list": ["vars"], "separator": ",", "glue": ", " } }