Liste des Groupes | Revenir à cl forth |
The standard suggests/specifies that operators such as TO behave as ifThank you. So instead of wasting time on parsing during compilation- or
they parse. Ignore that for the moment and define
>
variable operator
>
: to 1 operator ! ; immediate
>
A child of VALUE is probably an immediate word that inspects OPERATOR
and compiles the fetch action if 0 or the store action if 1. This scheme
can
be extended to support a wide range of operators, such as +TO INCR DECR
and so on. MPE has used this scheme for several decades with no tech
support issues. If you really want to to be fussy and avoid the use of
the
"as if" rule for parsing, you can do something like (untested) the below
for TO. But why bother?
>
: to
1 operator ! ' execute
; immediate
Les messages affichés proviennent d'usenet.