#include "tinyap.h"
Go to the source code of this file.
Typedefs | |
typedef struct _pilot_t * | pilot_t |
abstract type for apes management | |
Enumerations | |
enum | WalkDirection { Up, Down, Next, Done, Error } |
Walk directions to use in returns from visit methods. More... | |
Functions | |
wast_t | wa_new (const char *op, int l, int c) |
create a new AST node | |
void | wa_del (wast_t) |
delete an AST node | |
wast_t | wa_father (wast_t) |
get a node's father | |
const char * | wa_op (wast_t) |
get a node's label | |
int | wa_opd_count (wast_t) |
get a node's children count | |
wast_t | wa_opd (wast_t, const unsigned int) |
get a node's child | |
void | wa_add (wast_t, wast_t) |
add the right-hand child to the left-hand node | |
int | wa_row (wast_t) |
get the line in source text that corresponds to this node | |
int | wa_col (wast_t) |
get the column in source text that corresponds to this node | |
wast_t | make_wast (ast_node_t a) |
transform a serializable AST into a walkable AST | |
ast_node_t | make_ast (wast_t a) |
transform a walkable AST into a serializable AST |
typedef struct _pilot_t* pilot_t |
enum WalkDirection |
ast_node_t make_ast | ( | wast_t | a | ) |
transform a walkable AST into a serializable AST
wast_t make_wast | ( | ast_node_t | a | ) |
transform a serializable AST into a walkable AST
int wa_col | ( | wast_t | ) |
get the column in source text that corresponds to this node
void wa_del | ( | wast_t | ) |
delete an AST node
wast_t wa_new | ( | const char * | op, | |
int | l, | |||
int | c | |||
) |
create a new AST node
const char* wa_op | ( | wast_t | ) |
get a node's label
int wa_opd_count | ( | wast_t | ) |
get a node's children count
int wa_row | ( | wast_t | ) |
get the line in source text that corresponds to this node