|
maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
Go to the source code of this file.
Functions | |
| const char * | get_token_type_name (t_token_type type) |
| void | print_ast_node (t_ast *node, int depth, char *prefix, int is_left) |
| void | build_new_prefix (char *new_prefix, char *prefix, int is_left) |
| void | print_ast_graphical (t_ast *node, int depth, char *prefix, int is_left) |
| void | print_ast_root (t_ast *root) |
| void build_new_prefix | ( | char * | new_prefix, |
| char * | prefix, | ||
| int | is_left | ||
| ) |
Definition at line 63 of file visualiser.c.
Referenced by print_ast_graphical().

| const char * get_token_type_name | ( | t_token_type | type | ) |
Definition at line 15 of file visualiser.c.
References ENV_VAR, PHRASE, PIPE, REDIR_APPEND, REDIR_HEREDOC, REDIR_IN, and REDIR_OUT.
Referenced by print_ast_node().

| void print_ast_graphical | ( | t_ast * | node, |
| int | depth, | ||
| char * | prefix, | ||
| int | is_left | ||
| ) |
Definition at line 91 of file visualiser.c.
References build_new_prefix(), s_ast::left, print_ast_graphical(), print_ast_node(), and s_ast::right.
Referenced by print_ast_graphical(), and print_ast_root().


| void print_ast_node | ( | t_ast * | node, |
| int | depth, | ||
| char * | prefix, | ||
| int | is_left | ||
| ) |
Definition at line 35 of file visualiser.c.
References s_ast::args, ft_printf(), get_token_type_name(), and s_ast::type.
Referenced by print_ast_graphical().


| void print_ast_root | ( | t_ast * | root | ) |
Definition at line 103 of file visualiser.c.
References print_ast_graphical().
