Re: Serialization of dchar and schar

On Monday 27 December 2021 10:11:31 (+01:00), Norm Tovey-Walsh wrote:


> Why don’t the rules for dchar and schar need to be marked “-”?


Because they are in all cases descendents of attributes.


Under serialization, you will see:


A nonterminal attribute is serialised by outputting the name of the node as an attribute, and serialising all non-hidden terminal descendants of the node (regardless of marking of intermediate nonterminals), in order, as the value of the attribute.


That "regardless of intermediate marking" means that they could be marked as hidden, but it would make no difference.


Steven

Received on Monday, 27 December 2021 13:28:41 UTC