There are a few ways to deal with a child tag.
Parser tags start out in a "raw" form, using numbers to represent the
location. All raw tags need to be "cooked", which is the process of
converting the location information into an overlay, or into a vector
that can be saved to disk.
This happens automatically for top-level tags. When you create a child
tag, you have two choices. In the wisent manual, you will see a section
on grammar styles. The bison style uses the EXPANDTAG macro to say that
the created tag needss to be cooked. If you instead use the iterative
style, you would use EXPANDFULL on some region of the buffer to recurse
into the parser and expand all generated tags there. Iterative style
can be tricky if you are used to regular Bison parsing, but can make
life a lot easier.
On 02/20/2012 11:35 AM, antoine no wrote:
> I resolved this by adding (car (EXPANDTAG ...)) arroud the TAG
> generation in wisent grammar.
> I don't know if it is the right thing to do?