THE HELP SYSTEM

satellite carries its own help. You ask for it at the satl prompt, the place where you type one line and see it run straight away, and it answers with a page of plain text about one part of the language: what it is, the rules, and an example program.

Opening the prompt and asking

Start the prompt with satl --repl. Then type satellite.help() on a line of its own to see every topic there is:

BASH Download
Start the satl prompt
satl --repl
TEXT Download
Then type, at the prompt
satellite.help()
OUTPUT
--------------------------------------------------------------------------------
 THE SATELLITE HELP SYSTEM
--------------------------------------------------------------------------------
 usage: type satellite.help(include) or satellite.help(satellite.include)
 to bring up info on including other files
TOPICS:

1) satellite.include (other files)

2) satellite.help (the help system)

3) satellite.capsule (functions)

The list goes on through 28 topics, from numbers and strings to spacesuits, windows and the terminal. To read one, put its name between the brackets. You can name a topic in several ways:

  • by its whole name: satellite.help(satellite.include)
  • by its last part: satellite.help(include) finds the same topic
  • by a second spelling: satellite.help(colour) finds satellite.variable.color, and satellite.help(double) finds satellite.variable.float
  • by the start of its last part: satellite.help(percentage) finds satellite.variable.percent

satellite.help(help) brings up the help system’s own page. exit, quit or Ctrl-D leaves the prompt.

When a name fits two topics, or none

Two topics end in window, so satl will not guess which one you meant. It names both and lets you choose:

TEXT Download
Asking for a topic two topics answer to, and one that does not exist
satellite.help(window)
satl(prompt): window is more than one topic -- write satellite.help(satellite.variable.window) or satellite.help(satellite.window)
satellite.help(unicorns)
satl(prompt): there is no help on unicorns yet -- satellite.help() lists the topics there are

Help is for the prompt, not for a program

satellite.help is something you ask satl, not a statement your program runs. Written inside a program, it is refused before the program starts:

ask_for_help.satlSATELLITE 004 Download
satellite.help inside a program is refused
satellite.include(satellite)

satellite.capsule satellite.main()
{
    satellite.help(library)
    satellite.return(satellite)
}
OUTPUT
--------------------------------------------------------------------------------
SATELLITE CRITICAL ERROR REPORT
--------------------------------------------------------------------------------
S210: NOT_BUILT_YET
satl(check): in satellite.main, satellite.help has no library built for it yet

directory: ask_for_help.satl:5
syntax: satellite.help(library)
        /\

this word is numbered in the language and the library behind it does not exist
yet. The word is right; there is nothing yet to run.
machine code 14 not_built_yet -- satl exits with this.

--------------------------------------------------------------------------------

At the prompt it also has to be the whole line: satellite.console.display(satellite.help()) is refused, and satl says that help is written on a line of its own.

Every topic ends in a program you can run

Each topic finishes with an example. The examples are real programs: save one as a .satl file and run it with satl. This is the example from satellite.help(library):

rounds.satlSATELLITE 004 Download
The example program from the library topic
satellite.include(satellite)

satellite.library.rounds = 4
satellite.library.label = "rounds counted"

satellite.capsule satellite.main()
{
    satellite.variable.number count = 0
    satellite.statement.while (count < satellite.library.rounds)
    {
        count = count + 1
    }
    satellite.console.display(satellite.library.label)
    satellite.console.display(count)
    satellite.return(satellite)
}
OUTPUT
rounds counted
4

Comments in an example, such as // 42, often show what a line prints, so you can check your run against the page.

Help is plain text, and it is yours

Every topic is a plain text file, read at the moment you ask for it and never built into satl. That means you can open them, read them in any editor, and change them. The next time you ask, you get your version.

The files live in a folder named satellite.help:

  • satellite.help/help.txt is the list that satellite.help() prints.
  • Each topic is a folder named after it, holding a file called help_text.txt. The include topic is satellite.help/satellite.include/help_text.txt.
  • A new folder is a new topic. Make satellite.help/my_notes/help_text.txt, and satellite.help(my_notes) shows it. Add a line to help.txt if you want it in the list too.

satl looks for the satellite.help folder beside the satl program, or one folder up from it. If it finds neither, it tells you so and names both places it looked:

TEXT Download
What the prompt says when the help folder is not beside satl
satellite.help(include)
satl(prompt): the help files are not beside satl -- looked in ~/.satl/satellite.help and ~/.satl/../satellite.help

Where next

The FULL REFERENCE collects the whole language on one page. For the prompt and satl’s other options, see THE SATL COMMAND. The library example above is explained in SATELLITE.LIBRARY.

You may also like...

3 Responses

  1. lsoikjwfnm says:

    uzfhleyzwkpwooqpsszimqnvmwthhq

  2. Remont_exOr says:

    Профессиональный ремонт и диагностика двигателей в Москве — предлагаем капитальный ремонт легковых двигателей с гарантией 2 года [url=https://remont-dvig124.ru]Ремонт двигателей[/url]
    Проведение своевременной диагностики позволяет существенно снизить риск поломок двигателя в будущем. Это обеспечивает безопасность и надежность эксплуатации автомобиля.Современные сервисы в Москве оснащены профессиональной техникой, что позволяет точно определить проблему. Правильная диагностика — залог эффективного ремонта и долгой службы двигателя.

    Процесс капитального ремонта предполагает тщательную диагностику, замену изношенных деталей и тестирование после ремонта. Такой подход обеспечивает восстановление мощности и надежности двигателя.Многие мастерские в Москве предоставляют гарантию на выполненные работы сроком до двух лет. Это повышает доверие клиентов и гарантирует долгосрочную работу двигателя без поломок.

    При выборе мастерской в Москве важно учитывать наличие гарантии и опыт специалистов. Такой подход позволяет обеспечить безопасность и комфорт при эксплуатации автомобиля.Срок проведения капитального ремонта обычно составляет от нескольких дней до недели, что зависит от объема работ и модели двигателя. В результате заказчик получает надёжный двигатель и спокойствие за его дальнейшую работу.

  3. pin_fiMi says:

    Чтобы начать играть на официальном сайте Пин Ап и пройти регистрацию, перейдите по ссылке [url=https://t.me/pinupchat]пин ап казино вход[/url], где вы сможете пройти быструю и безопасную регистрацию.
    Онлайн-казино Пин Ап является одной из ведущих платформ для игры и азартных развлечений.
    Процесс регистрации на сайте Пин Ап необходим для начала игры и получения доступа к функционалу .
    Регистрация включает в себя заполнение личных данных и подтверждение учетной записи .
    Чтобы начать регистрацию, нужно нажать на кнопку «Зарегистрироваться» в верхнем меню .
    Заполняя форму, укажите актуальные данные и придумайте надежный пароль .
    После ввода данных подтвердите аккаунт, перейдя по ссылке в письме или в сообщении.
    Регистрация на платформе осуществляется по безопасным протоколам и защищена от несанкционированного доступа .
    После успешной регистрации вы получите доступ к личному кабинету и сможете вносить ставки .
    Таким образом, регистрация на официальном сайте Пин Ап — важный этап начала работы с платформой .

Leave a Reply

Your email address will not be published. Required fields are marked *