Vocabulary/ModifierTrains/DerivedHooks
Many examples of modifier tridents form modifier forks. These forks are documented on the modifier trains page. (And, many other examples of modifier tridents are invalid, for example (a:a:a:)
throws an error.)
However, some modifier trains evaluate two items of the trident and (if the evaluation succeeds without error) can then form a hook with the result of that evaluation and the remaining parsed item. For example, (-1&)
would become the adverb _1&
When a verb is evaluated, its result is always a noun (unless an error occurs).
Usually, when evaluated, adverbs and conjunctions create verb results. For example, +/
is a verb and +&1
is a verb. But not always. For example, (2 :'u%v')
produces a conjunction.
- NAA/VAA
N0 A1
orV0 A1
is evaluated and, depending on A1 the parse action then becomes
- ANA/AVA
N1 A2
orV1 A2
is evaluated and, depending on A2 the parse action then becomes
- NNA
N1 A2
is evaluated and the parse action then becomes- NN (invalid) or
- NV (invalid) or
- NA (evaluates) as
(N0 A12)
or - NC adverb ...like:
{{N0 C12 u}}
- VNA/VVA
N1 A2
orV1 A2
is evaluated and the parse action then becomes- VN (evaluates) as
(V0 N12)
or - VV verb hook which behaves like:
({{y V01 V2 y}} : {{x V01 V2 y}})
or - VA (evaluates) as
(V0 A12)
or - VC adverb ...like:
{{V0 C12 u}}
- VN (evaluates) as
- VNC
V0 N1
is evaluated and the parse action then becomes NC adverb ...like:{{N01 C2 u}}
- NAC/VAC
N0 A1
orV0 A1
is evaluated and the parse action then becomes
- NAN/VAN
N0 A1
orV0 A1
is evaluated and the parse action then becomes- NN (invalid) or
- VN (evaluates) as
(V01 N2)
or - AN (invalid) or
- CN adverb ...like:
{{u C01 N2}}
- NAV/VAV
N0 A1
orV0 A1
is evaluated and the parse action then becomes
Also, some important combinations of three adjacent items are evaluated in higher priority parsing actions, and are documented elsewhere:
- NVN
- Dyadic verb
- NCN/NCV/VCN/VCV
- Conjunction
- VVV
- Verb fork