Burp
|
#include "syntax_analyse.h"
Macros | |
#define | ERROR_UNKNOWN_OCCURED(token) |
#define | ERROR_OCCURED(token) |
#define | ERROR_INT_UNEXCEPTED(token, error_token_tmp) |
Typedefs | |
typedef Tree | branch() |
Functions | |
void | freeTree (Tree t) |
char * | message_error () |
void | freeSyntaxAnalyseContest () |
Tree | init_file_tree (char *pathname) |
#define ERROR_INT_UNEXCEPTED | ( | token, | |
error_token_tmp | |||
) |
from for a case if a G_TOKEN_INT IS NOT EXCEPTED ( need to declare int size_cur_token before ) [ size_cur_token ] should be defined and have the good value, error_token_tmp is the buffer to stock the result temporarily
#define ERROR_OCCURED | ( | token | ) |
macro executed when an error occured during the syntax analyse ( with a string value )
#define ERROR_UNKNOWN_OCCURED | ( | token | ) |
macro executed when a analyse error occure with something we do not know ( v_string could be without \0 )
typedef Tree branch() |
void freeSyntaxAnalyseContest | ( | ) |
Free the context of the syntax analyse, excepted syntax tree Todo after last syntax analyse
void freeTree | ( | Tree | t | ) |
free a syntax tree
Tree init_file_tree | ( | char * | pathname | ) |
Do the syntax analyse of the file [ pathname ] and return it return NULL if an error occured, if message_error is also at NULL then the bug is a file opening error
char* message_error | ( | ) |
if an error occured return it if not, return NULL