Subj : Re: The root of the syntax tree To : netscape.public.mozilla.jseng From : Brendan Eich Date : Wed Jul 07 2004 01:59 pm joao wrote: > Looking at the definition of > JSParseNodeArity, just before the definition of JSParseNode, there seems > to be a mapping between those enum values and the sub-fields, so the > reader is led to believe that if it's a PN_NAME, then you can access > pn_atom, otherwise you can't. And if it's PN_NULLARY, then there's > nothing else (dval maybe ?). Yes, pn_dval and pn_atom are the variants (the latter a member in a larger variant type, but the other pn_u.name members are used only for PN_NAME, not for PN_NULLARY) used for leaf literals (numbers, strings, objects [regexps, xml soon]). /be .