XmlAnnotationDoc/XmlAnnotation_NT_16.html

# Non-terminal symbol `SpecialForm`

rule(s) | occurrences

#### Description

A ``SpecialForm`` is introduced with a dollar sign (`'$'`) followed by specially interpreted contents; at present the available special forms are: the identifier `value`, in which case the CST node it refers to must be a terminal; the identifier `text`; followed with a sequence of arguments, each being wither a `SYMBOL` (i.e., a string literal (possibly single or double-quoted), or an expression of the form `n/attr`, this being a reference to the contents of attribute attr of the XML element for RHS position n.

Defining rules for nonterminal symbol `SpecialForm`:

`SpecialForm` |  | `VALUE`
|  | `TEXT` '`(`' `TextArguments` '`)`'

Occurrences of symbol `SpecialForm` in body of other rules:

`AttributeValue` |  | `SpecialForm`
`ChildXmlTree` |  | `SpecialForm`

Copyright © 2012 by Hassan Aït-Kaci; All Rights Reserved.