Boost logo

Boost Users :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2006-01-27 18:52:40


 
Elviin wrote:

> Before I'll investigate more I'd like to know if anybody
> knows why it is not allowed a rule object inside this
> directive: token_node_d.

The purpose of the token_node_id[] directive is to keep together in a node
all of the subnodes containing primitive parser matches (such as single
characters, strings or integers) and to create a single node containing the
full matched character sequence as a single string. The token_node_id[]
directive does not work recursive but works only for a flat subnode
structure not containing sub-subnodes.

Rules OTOH (may) produce arbitrary deep hierarchical subnode structures.

Regards Hartmut


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net