Node:The REPL,
Next:Описание синтаксиса,
Previous:Вычисления,
Up:О выражениях
[Показать/скрыть оригинал] [Показать/скрыть перевод] [Переключить перевод и оригинал]
If you start Guile without specifying a particular program for it to execute, Guile enters its standard Read Evaluate Print Loop -- or REPL for short. In this mode, Guile repeatedly reads in the next Scheme expression that the user types, evaluates it, and prints the resulting value.
Если вы запустите Guile без указания программы для выполнения, Guile начнёт выполнять стандартный цикл Чтение-Вычисление-Печать (Read Evaluate Print Loop - REPL). В этом режиме Guile циклически читает вводо пользователя, вычисляет его введённые выражения и выводит результирующее значение.
The REPL is a useful mechanism for exploring the evaluation behaviour
described in the previous subsection. If you type string-append,
for example, the REPL replies #<primitive-procedure
string-append>, illustrating the relationship between the variable
string-append and the procedure value stored in that variable.
REPL это полезный механизм для исследования поведения вычислений,
описанных в предыдущих разделах. Если вы начепятаете, например, string-append,
REPL ответит #< primitive-procedure string-append>, демонстрируя связь
между переменной string-append и процедурным значением, хранящимся в ней.
In this manual, the notation => is used to mean "evaluates to". Wherever you see an example of the form
В этом руководстве запись => используется в смысле "результат вычислений".
Всюду, где вы видете пример в виде:
expression => result
feel free to try it out yourself by typing expression into the REPL and checking that it gives the expected result.
можете спокойно пробовать его вводя expression в REPL и проверяя, что результат совпадает с result.
> > далее > >