Content deleted Content added
m Simplifying lead |
→“Hello, World!”: Clarity: rephrased 'the following output' so reader would not expect the output to be words in the article. Tags: Mobile edit Mobile web edit |
||
Line 208:
Hello, World!
The word <code>CR</code> (Carriage Return) causes the output following
to be displayed on a new line. The parsing word <code>."</code> (dot-quote) reads a double-quote delimited string and appends code to the current definition so that the parsed string will be displayed on execution. The space character separating the word <code>."</code> from the string <code>Hello, World!</code> is not included as part of the string. It is needed so that the parser recognizes <code>."</code> as a Forth word. A standard Forth system is also an interpreter, and the same output can be obtained by typing the following code fragment into the Forth console:
|