44 const char *
const nt_names[],
62 const char *
const tk_names[],
63 const char *
const nt_names[],
Context-free grammar definition.
Definition: cfg.h:18
A node in the CST.
Definition: rdesc.h:68
nonterminal (syntatic variable) object for context-free grammar
Definition: rdesc.h:51
terminal (token) object for context-free grammar
Definition: rdesc.h:43
void rdesc_dump_dot(const struct rdesc_node *n, rdesc_tk_printer_func tk_printer, const char *const nt_names[], FILE *out)
Dumps the Concrete Syntax Tree (CST) as a Graphviz DOT graph.
void rdesc_dump_bnf(const struct rdesc_cfg *cfg, const char *const tk_names[], const char *const nt_names[], FILE *out)
Dumps the Context-Free Grammar in BNF format.
Definition: dump_bnf.c:42
void(* rdesc_tk_printer_func)(const struct rdesc_token *, FILE *out)
Function pointer type for printing tokens.
Definition: util.h:22