7.13.13 Rendering states

Prev Up Next Page 255 of 800 Search internet

The rendering done by the default renderer resembles the macro expander defined by the base page. Just like the macro expander works with a macro state, the renderer works with a rendering state. The rendering state, however, is a bit more complicated than the macro state.

A macro state has form f :: s prime where f is a recipe for macro expanding subterms expressed as a function and s prime can be used for passing down data from root to leaf in the parse tree being expanded. In contrast, a rendering state has form f :: C :: V where f is a recipe for rendering subterms, C is an accumulating state and V is a pass down state.

The macro state s prime is not used by macros described here. In contrast, the accumulating state C and the pass down state V are used a lot.

Prev Up Next Page 255 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05