/*
* call-seq:
* node.nd_type => NodeType
*
* Returns a NodeType structure representing the type of the node.
*/
static VALUE node_nd_type(VALUE self)
{
NODE * n;
const Node_Type_Descrip * descrip;
Data_Get_Struct(self, NODE, n);
rb_check_type((VALUE)(self), T_DATA);
descrip = node_type_descrip(nd_type(n));
return rb_struct_new(
rb_cNodeType,
rb_str_new2(descrip->name),
INT2NUM(descrip->nt));
}