24 lines
554 B
C
24 lines
554 B
C
#ifndef DEBUG_H_
|
|
#define DEBUG_H_
|
|
|
|
#include "runtime/opcode.h"
|
|
#include "script-block.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct ast_node;
|
|
struct lex_token;
|
|
|
|
extern void print_lex_token(struct lex_token *tok);
|
|
extern void print_ast_node(struct ast_node *node);
|
|
extern void print_ast_node_recursive(struct ast_node *node);
|
|
extern void print_scriptblock(bshell_scriptblock *block, size_t depth);
|
|
extern void print_instruction(
|
|
size_t offset,
|
|
bshell_instruction instr,
|
|
bshell_scriptblock *container,
|
|
size_t depth);
|
|
extern void print_value(fx_value *val);
|
|
|
|
#endif
|