/
viktor-zin
/
afce
Обзор
Документация
Войти
/
viktor-zin
/
afce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
generators/py.json
45 строк
821 B
Rb37
Python code generation improvements part 2
15 фев 2018, 14:41
15 фев 2018, 14:41
bd3d47e
Код
Авторство
О чём код?
{ "name": { "en_US":"Python" }, "algorithm" : { "template" : "def main():%branch1%\nmain()" }, "if": { "template":"if %cond%:%branch1%\nelse: %branch2%", "template_shortened":"if %cond%:%branch1%" }, "for": { "template":"for %var% in range(%from%, %to%):%branch1%\n" }, "pre": { "template":"while %cond%:%branch1%\n" }, "post": { "template":"while True:%branch1%\n\tif %cond%:\n\t\tbreak" }, "assign": { "template":"%dest% = %src%" }, "process": { "template": "%text%" }, "io": { "template": "%vars%", "list": ["vars"], "separator": ",", "glue": "\n", "suffix": " = input()" }, "ou": { "template": "print(%vars%)", "list": ["vars"], "separator": ",", "glue": ", " }, "additional_settings": { "indentation_preference": " " } }