fx9860g and fxcg50 2D math rendering library with support for TeX syntax.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
742 B

// print: Command-line structure printing
#ifdef TEX_PRINT
#include <TeX/node.h>
#include <TeX/flow.h>
#include <TeX/env.h>
#define GRAY "\e[30;1m"
#define END "\e[0m"
/* TeX_print_node(): Print a node's tree */
void TeX_print_node(struct TeX_Node *node, int indent);
/* TeX_print_flow(): Print a flow's tree */
void TeX_print_flow(struct TeX_Flow *flow, int indent);
/* TeX_print_env(): Recursively print an environment */
void TeX_print_env(struct TeX_Env *env, int indent);
/* TeX_print_env_primary(): Print a primary environment to stdout */
void TeX_print_env_primary(struct TeX_Env *env, int indent);
/* TeX_print_lex(): Print the result of lexing */
void TeX_print_lex(char const *formula);
#endif /* TEX_PRINT */