INDEX: различия между версиями
Перейти к навигации
Перейти к поиску
AtH (обсуждение | вклад) Нет описания правки |
AtH (обсуждение | вклад) Нет описания правки |
||
Строка 22: | Строка 22: | ||
Print the first line of each screen over the range from, to. This is | Print the first line of each screen over the range from, to. This is | ||
used to view the comment lines of an area of text on disc screens. | used to view the comment lines of an area of text on disc screens. | ||
== Реализация INDEX == | |||
Юрий Семёнов приводит следующее описание слова INDEX (стр. 105): | |||
: INDEX 1+ OVER - FOR ↵ ↑ 3 I.R SPACE 0 ( указание на нулевую | |||
строку) | |||
OVER (LINE) TYPE NEXT DROP ; ( м. табл. 20 ) | |||
Версия от 22:19, 9 сентября 2015
INDEX — стандартное слово Каллисто.
Выводит на индикатор верхние строчки экранов, номера блоков которых входят в диапазон от нач до кон.
INDEX в предыдущем стандарте Forth-83 (англ.)
INDEX u1 u2 -- M Print the first line of each screen over the range {u1..u2}. This displays the first line of each screen of source text, which conventionally contains a title.
INDEX в стандарте Forth-79 (англ.)
INDEX n1 n2 -- Print the first line of each screen over the range {n1..n2}. This displays the first line of each screen of source text, which conventionally contains a title.
INDEX в fig-FORTH Release 1 glossary, май 1979 (англ.)
INDEX from to -- Print the first line of each screen over the range from, to. This is used to view the comment lines of an area of text on disc screens.
Реализация INDEX
Юрий Семёнов приводит следующее описание слова INDEX (стр. 105):
: INDEX 1+ OVER - FOR ↵ ↑ 3 I.R SPACE 0 ( указание на нулевую строку) OVER (LINE) TYPE NEXT DROP ; ( м. табл. 20 )
У этой статьи нет иллюстраций. Вы можете помочь проекту, добавив их. |
Это заготовка статьи. Вы можете помочь проекту, дополнив её. |