[previous] [up] [next]     [contents] [index]
Next: Vocabulary Up: Parser Previous: Environment

Attribute

Attributes are used to inherit and synthesize information, and to also communicate it across top-level expression boundaries. An attribute has the following primitives:

tex2html_wrap_inline1697 make-attributes
tex2html_wrap_inline1699 attr
tex2html_wrap_inline1697 get-attribute
attr tex2html_wrap_inline1701 scheme-symbol tex2html_wrap_inline1699 (attr-entry + #f)
tex2html_wrap_inline1697 put-attribute
attr tex2html_wrap_inline1701 scheme-symbol tex2html_wrap_inline1701 attr-entry tex2html_wrap_inline1699 attr

make-attributes creates a new (empty) table of attributes. put-attribute updates the value of an attribute, adding it if not already present. get-attribute returns the value of the attribute, if present, and #f otherwise. The value of attr-entry is fixed by individual applications.



PLT