DiskIn help: prioritise object-style example over OSC example
[supercollider.git] / SCDoc / SCDoc.h
blob3cec713eb1fe16035d9ee886bdb2b7b314c9f9bb
1 #ifndef SCDOC_H
2 #define SCDOC_H
4 #define SCDOC_PARSE_FULL 0
5 #define SCDOC_PARSE_PARTIAL 1
6 #define SCDOC_PARSE_METADATA 2
8 typedef struct DocNode {
9 const char *id;
10 char *text;
11 int n_childs;
12 struct DocNode **children;
13 } DocNode;
15 char *strmerge(char *a, char *b);
17 DocNode * doc_node_make_take_children(const char *id, char *text, DocNode *src);
18 DocNode * doc_node_make(const char *id, char *text, DocNode *child);
19 DocNode * doc_node_add_child(DocNode *n, DocNode *child);
20 DocNode * doc_node_create(const char *id);
21 void doc_node_free_tree(DocNode *n);
23 DocNode * scdoc_parse_file(char *fn, int mode);
24 void doc_node_dump(DocNode *n);
26 extern char * scdoc_current_file;
28 #endif