Forester 4.2 › New query language › Query operations are first-class values [00WV]

Previously, the built-in query operations were written like \query/and, etc.; these names, however, were hard-coded into the lexer which meant that they did not work in the expected way with Forester’s hierarchical namespacing. This hardcoding has been removed, and query operations are treated as first-class values that are resolved from primitive names in the \query/ namespace. As such, the following code is equivalent to \query/compl{\query/taxon{theorem}}:

\scope{
 \open\query
 \compl{\taxon{Theorem}}
}

A further consequence of this change is that queries can be defined compositionally by macros.