3 ms·
I am not sure what you mean. "(" and ")" as their own words form comments in Forth. As an example: (if (< a b) Would be parsed completely differently from
by shadowofneptune 4y ago
I am not sure what you mean. "(" and ")" as their own words form comments in Forth. As an example:
(if (< a b)
Would be parsed completely differently from:
( if ( < a b )
The first will have the interpreter look up and execute the words "(if", "(<", "a", and "b)". The second will have the interpeter look up the word "(", which will skip all the text that comes before a ")".
- timonoko 4y agoOf course we fix the parser too, so that ( and ) are always separate. Otherwise too ugly.