papierkorb:english_as_a_second_language_for_forth_programmers
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| papierkorb:english_as_a_second_language_for_forth_programmers [2025-08-10 21:03] – ↷ Seite von projects:english_as_a_second_language_for_forth_programmers nach papierkorb:english_as_a_second_language_for_forth_programmers verschoben mka | papierkorb:english_as_a_second_language_for_forth_programmers [2026-08-26 22:52] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | < | ||
| - | | ||
| - | There is a difference between spelling a word and saying a | ||
| - | word. In normal communication | ||
| - | words. | ||
| - | (Period.) | ||
| - | understanding | ||
| - | natural language is spoken. | ||
| - | |||
| - | A language may also have special signs & symbols which are | ||
| - | normally | ||
| - | " | ||
| - | to the pronunciation, | ||
| - | " | ||
| - | |||
| - | Forth is | ||
| - | |||
| - | " | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | in the Forth-79 and Forth-83 | ||
| - | spellings. | ||
| - | to teach and understand when natural English words are used for | ||
| - | the special signs. | ||
| - | |||
| - | An obvious example of this is "#" | ||
| - | give " | ||
| - | wrong. | ||
| - | The semantics of all occurrences of "#" | ||
| - | are connected with numbers. | ||
| - | spelled " | ||
| - | |||
| - | The standard specification of " | ||
| - | It makes more sense to say " | ||
| - | it. | ||
| - | function is called in other high-level | ||
| - | body of the definition of " | ||
| - | |||
| - | CURRENT @ CONTEXT ! | ||
| - | |||
| - | reads naturally as | ||
| - | |||
| - | current value context set | ||
| - | |||
| - | This says What it does, not How it does it. This agrees | ||
| - | the Forth-83 | ||
| - | names are to be preferred to " | ||
| - | |||
| - | | ||
| - | fragment of code | ||
| - | |||
| - | 0 #LINE ! 1 #PAGE +! | ||
| - | |||
| - | reads naturally as | ||
| - | |||
| - | zero number-line set one number-page add | ||
| - | |||
| - | The so-called natural pronunciation of the apostrophe | ||
| - | is | ||
| - | ignoring | ||
| - | this is " | ||
| - | Perry Line-Editor read | ||
| - | |||
| - | ' | ||
| - | |||
| - | as | ||
| - | |||
| - | | ||
| - | |||
| - | " | ||
| - | general say " | ||
| - | |||
| - | The function | ||
| - | " | ||
| - | display a message; the Forth word spelled " | ||
| - | to abort with a message. | ||
| - | and " | ||
| - | |||
| - | Forth has three common | ||
| - | parentheses. | ||
| - | |||
| - | " | ||
| - | |||
| - | (CR) (KEY) | ||
| - | |||
| - | " | ||
| - | |||
| - | (.) | ||
| - | |||
| - | " | ||
| - | |||
| - | (." | ||
| - | |||
| - | | ||
| - | |||
| - | All these uses can be covered by " | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | "," | ||
| - | say " | ||
| - | |||
| - | | ||
| - | invented, so the foregoing words were discovered in the order | ||
| - | given. | ||
| - | way. | ||
| - | |||
| - | " | ||
| - | a word in the controlled word-set. | ||
| - | |||
| - | A stumbling stone in learning | ||
| - | between " | ||
| - | |||
| - | | ||
| - | distinquish " | ||
| - | defined word into the dictionary; | ||
| - | necessary | ||
| - | words, literal values, logical structures, and anything else. | ||
| - | |||
| - | " | ||
| - | describes | ||
| - | at compile-time, | ||
| - | |||
| - | Some examples to show how this hangs together. | ||
| - | |||
| - | : ASCII ( -- c ) BL WORD COUNT 1- ABORT" ?" | ||
| - | STATE @ IF [COMPILE] LITERAL THEN ; IMMEDIATE | ||
| - | |||
| - | " | ||
| - | question-mark | ||
| - | then. Immediate." | ||
| - | |||
| - | Note that punctuation | ||
| - | can be spelled when necessary for comprehension. | ||
| - | |||
| - | | ||
| - | pronounced, i.e., " | ||
| - | |||
| - | From an integer-ascii conversion definition: | ||
| - | |||
| - | ... [ ASCII A 10 - ] LITERAL ... | ||
| - | |||
| - | " | ||
| - | |||
| - | The prefix " | ||
| - | operations. | ||
| - | " | ||
| - | " | ||
| - | |||
| - | How about " | ||
| - | it is part of a word, e.g., "maybe DUP" for "? | ||
| - | |||
| - | | ||
| - | be silent punctuation, | ||
| - | Western | ||
| - | |||
| - | | ||
| - | you think of any others? | ||
| - | |||
| - | # | ||
| - | | ||
| - | | ||
| - | | ||
| - | ' | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | , | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | ? | ||
| - | : | ||
| - | ; | ||
| - | |||
| - | FINIS | ||
| - | </ | ||