libsapling  0.8.0
parse_tree.h
Go to the documentation of this file.
1 #ifndef _LIBSAPLING_PARSE_TREE_H_
2 #define _LIBSAPLING_PARSE_TREE_H_
3 
9 #include "libsapling/dm/graph.h"
10 
11 const char **parse_tree__data(node_t node);
12 
13 node_t parse_tree__create_node(char *string);
14 void parse_tree__append_child(node_t *ref, node_t child);
15 
16 node_t parse_tree__get_child_by_position(node_t *ref, int pos);
17 node_t parse_tree__get_child_by_string(node_t *ref, const char *str);
18 int parse_tree__num_children(node_t node);
19 
20 void parse_tree__dump_dot(FILE *stream, node_t *ref);
21 
22 #endif
Graph implementation.