From e5af28536bfb0f4c9131df56d2009ba5196f5e3a Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Sun, 12 Apr 2026 20:57:06 +0200 Subject: init --- src/print.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/print.h (limited to 'src/print.h') diff --git a/src/print.h b/src/print.h new file mode 100644 index 0000000..06d6fde --- /dev/null +++ b/src/print.h @@ -0,0 +1,22 @@ +#ifndef ANIMTOOL_PRINT_H_ +#define ANIMTOOL_PRINT_H_ + +#include +#include "scene.h" +#include "lex.h" + +enum scene_stage +{ + SCENE_PARSED, + SCENE_BOUND, + SCENE_LOADED, +}; + +void print_token(FILE *f, struct token *tok, unsigned int indent); +void print_expr(FILE *f, struct expr *expr); +void print_seq(FILE *f, size_t n_inst, struct seq_inst inst[n_inst], enum scene_stage stage); +void print_surface(FILE *f, struct surface *surf, enum scene_stage stage); +void print_node(FILE *f, struct node *node, enum scene_stage stage, unsigned int indent); +void print_scene(FILE *f, struct scene *scene, enum scene_stage stage); + +#endif -- cgit v1.2.3