src/tinyape.h File Reference

#include "tinyap.h"

Include dependency graph for tinyape.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 Documentation

typedef struct _pilot_t* pilot_t

abstract type for apes management

Definition at line 71 of file tinyape.h.


Enumeration Type Documentation

enum WalkDirection

Walk directions to use in returns from visit methods.

Enumerator:
Up  to father
Down  to first child
Next  to next sibling
Done  success
Error  failure

Definition at line 56 of file tinyape.h.


Function Documentation

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

void wa_add ( wast_t  ,
wast_t   
)

add the right-hand child to the left-hand node

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_father ( wast_t   ) 

get a node's father

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

wast_t wa_opd ( wast_t  ,
const unsigned  int 
)

get a node's child

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


Generated on Sun May 11 14:32:44 2008 for TINYAP by  doxygen 1.5.3