3 ms·
> there is only one global (uniform) syntax. Not quite. You have access to the reader in Forth, and it's quite typical to write a word that takes over for the
by madhadron 8y ago
> there is only one global (uniform) syntax.
Not quite. You have access to the reader in Forth, and it's quite typical to write a word that takes over for the reader for some time and then hands back to the usual reader. Julian Noble used this to implement a subset of FORTRAN for computational physics (more convenient than postfix for doing that) and to make state machine transition tables into code. Sadly, he is no longer with us.
Common Lisp also provides access to the reader, so you can do the same trick, but it's not a ubiquitous thing to do the way it is in Forth.