Cthulhu  0.2.10
Cthulhu compiler collection
query_ast.h File Reference
#include <ctu_json_api.h>
#include "core/text.h"
#include <gmp.h>
Include dependency graph for query_ast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  query_ast_t
 

Enumerations

enum  query_ast_type_t {
  eQueryObject , eQueryField , eQueryMap , eQueryIndex ,
  eQueryCount
}
 

Functions

CT_BEGIN_API query_ast_tquery_ast_object (scan_t *scan, text_t name)
 
query_ast_tquery_ast_field (scan_t *scan, query_ast_t *object, text_t field)
 
query_ast_tquery_ast_map (scan_t *scan, query_ast_t *object, text_t field)
 
query_ast_tquery_ast_index (scan_t *scan, query_ast_t *object, mpz_t index)
 

Enumeration Type Documentation

◆ query_ast_type_t

Enumerator
eQueryObject 
eQueryField 
eQueryMap 
eQueryIndex 
eQueryCount 

Definition at line 14 of file query_ast.h.

Function Documentation

◆ query_ast_field()

query_ast_t* query_ast_field ( scan_t scan,
query_ast_t object,
text_t  field 
)

Definition at line 29 of file query_ast.c.

◆ query_ast_index()

query_ast_t* query_ast_index ( scan_t scan,
query_ast_t object,
mpz_t  index 
)

Definition at line 41 of file query_ast.c.

◆ query_ast_map()

query_ast_t* query_ast_map ( scan_t scan,
query_ast_t object,
text_t  field 
)

Definition at line 49 of file query_ast.c.

◆ query_ast_object()

CT_BEGIN_API query_ast_t* query_ast_object ( scan_t scan,
text_t  name 
)

Definition at line 19 of file query_ast.c.