OpenVAS Libraries  8.0.3
Data Structures | Macros | Typedefs | Functions
nasl_lex_ctxt.h File Reference
#include "nasl_tree.h"
#include "nasl_var.h"
#include "nasl_func.h"

Go to the source code of this file.

Data Structures

struct  struct_lex_ctxt
 

Macros

#define NASL_COMPAT_LEX_CTXT   "NASL compat lex context"
 

Typedefs

typedef struct struct_lex_ctxt lex_ctxt
 

Functions

lex_ctxtinit_empty_lex_ctxt (void)
 
void free_lex_ctxt (lex_ctxt *)
 
void dump_ctxt (lex_ctxt *)
 
nasl_funcget_func_ref_by_name (lex_ctxt *, const char *)
 
tree_celldecl_nasl_func (lex_ctxt *, tree_cell *)
 
nasl_funcinsert_nasl_func (lex_ctxt *, const char *, tree_cell *)
 
tree_cellnasl_func_call (lex_ctxt *, const nasl_func *, tree_cell *)
 
tree_cellget_variable_by_name (lex_ctxt *, const char *)
 
tree_cellget_array_elem (lex_ctxt *, const char *, tree_cell *)
 
anon_nasl_varadd_numbered_var_to_ctxt (lex_ctxt *, int, tree_cell *)
 
named_nasl_varadd_named_var_to_ctxt (lex_ctxt *, const char *, tree_cell *)
 
tree_cellnasl_read_var_ref (lex_ctxt *, tree_cell *)
 
tree_cellnasl_incr_variable (lex_ctxt *, tree_cell *, int, int)
 
tree_cellnasl_return (lex_ctxt *, tree_cell *)
 
tree_celldecl_local_variables (lex_ctxt *, tree_cell *)
 
tree_celldecl_global_variables (lex_ctxt *, tree_cell *)
 
tree_cellcell2atom (lex_ctxt *, tree_cell *)
 
int get_int_var_by_num (lex_ctxt *, int, int)
 
char * get_str_var_by_num (lex_ctxt *, int)
 
int get_int_var_by_name (lex_ctxt *, const char *, int)
 
int get_int_local_var_by_name (lex_ctxt *, const char *, int)
 
char * get_str_var_by_name (lex_ctxt *, const char *)
 
char * get_str_local_var_by_name (lex_ctxt *, const char *)
 
int get_var_size_by_name (lex_ctxt *, const char *)
 
int get_local_var_size_by_name (lex_ctxt *, const char *)
 
int get_local_var_type_by_name (lex_ctxt *, const char *)
 
int get_var_size_by_num (lex_ctxt *, int)
 
int get_var_type_by_num (lex_ctxt *, int)
 Returns NASL variable/cell type, VAR2_UNDEF if value is NULL. More...
 

Macro Definition Documentation

#define NASL_COMPAT_LEX_CTXT   "NASL compat lex context"

Typedef Documentation

typedef struct struct_lex_ctxt lex_ctxt

Function Documentation

named_nasl_var* add_named_var_to_ctxt ( lex_ctxt ,
const char *  ,
tree_cell  
)
anon_nasl_var* add_numbered_var_to_ctxt ( lex_ctxt ,
int  ,
tree_cell  
)
tree_cell* cell2atom ( lex_ctxt lexic,
tree_cell c1 
)
Returns
A 'referenced' cell.
tree_cell* decl_global_variables ( lex_ctxt ,
tree_cell  
)
tree_cell* decl_local_variables ( lex_ctxt ,
tree_cell  
)
tree_cell* decl_nasl_func ( lex_ctxt ,
tree_cell  
)
void dump_ctxt ( lex_ctxt )
void free_lex_ctxt ( lex_ctxt )
tree_cell* get_array_elem ( lex_ctxt ,
const char *  ,
tree_cell  
)
nasl_func* get_func_ref_by_name ( lex_ctxt ,
const char *   
)
int get_int_local_var_by_name ( lex_ctxt ,
const char *  ,
int   
)
int get_int_var_by_name ( lex_ctxt ,
const char *  ,
int   
)
int get_int_var_by_num ( lex_ctxt ,
int  ,
int   
)
int get_local_var_size_by_name ( lex_ctxt ,
const char *   
)
int get_local_var_type_by_name ( lex_ctxt ,
const char *   
)
char* get_str_local_var_by_name ( lex_ctxt ,
const char *   
)
char* get_str_var_by_name ( lex_ctxt ,
const char *   
)
char* get_str_var_by_num ( lex_ctxt ,
int   
)
int get_var_size_by_name ( lex_ctxt ,
const char *   
)
int get_var_size_by_num ( lex_ctxt ,
int   
)
int get_var_type_by_num ( lex_ctxt ,
int   
)

Returns NASL variable/cell type, VAR2_UNDEF if value is NULL.

tree_cell* get_variable_by_name ( lex_ctxt ,
const char *   
)
lex_ctxt* init_empty_lex_ctxt ( void  )
nasl_func* insert_nasl_func ( lex_ctxt ,
const char *  ,
tree_cell  
)
tree_cell* nasl_func_call ( lex_ctxt ,
const nasl_func ,
tree_cell  
)
tree_cell* nasl_incr_variable ( lex_ctxt ,
tree_cell ,
int  ,
int   
)
tree_cell* nasl_read_var_ref ( lex_ctxt ,
tree_cell  
)
tree_cell* nasl_return ( lex_ctxt ,
tree_cell  
)