|
librdesc
|
A node in the CST. More...
#include <rdesc.h>
Public Attributes | |
| union { | |
| uint32_t ty: 1 | |
| struct rdesc_token tk | |
| struct rdesc_nonterminal nt | |
| } | n |
| struct rdesc_node * | parent |
A node in the CST.
| union { ... } rdesc_node::n |
an union name is required for C99
| struct rdesc_nonterminal rdesc_node::nt |
nonterminal
| struct rdesc_node* rdesc_node::parent |
parent node
| struct rdesc_token rdesc_node::tk |
token
| uint32_t rdesc_node::ty |
type of the symbol (token = 0 / nonterminal = 1)