Forth (programming language): Difference between revisions

Content deleted Content added
Uses: Spelling: Changed 'chosedn' to 'chosen'. 'Choose' has a weird conjugation. But not so weird as 'chosedn'.
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
Line 213:
 
The word <code>CR</code> (Carriage Return) causes the output following <code>CR</code>
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 onupon 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: