Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
afw_compile.c File Reference

AFW parse functions. More...

#include "afw_internal.h"

Go to the source code of this file.

Macros

#define XX(name, data_type, compile_function, description)
 
#define XX(name, data_type, compile_function, description)
 

Functions

 afw_compile_and_evaluate (const afw_utf8_t *string, const afw_utf8_t *source_location, afw_compile_type_t compile_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile and evaluate a string. More...
 
 afw_compile_type_get_info_by_pneumonic (const afw_utf8_t *pneumonic, const afw_xctx_t *xctx)
 Return compile type info for a pneumonic. More...
 
 afw_compile_type_get_info (afw_compile_type_t compile_type, const afw_xctx_t *xctx)
 Return info for a afw_compile_type_t. More...
 
 afw_compile_to_value_with_callback (const afw_utf8_t *string, afw_utf8_octet_get_cb_t callback, void *callback_data, const afw_utf8_t *source_location, afw_compile_type_t compile_type, afw_compile_residual_check_t residual_check, const afw_value_compiled_value_t *parent, const afw_compile_shared_t *shared, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile string to adaptive value with callback. More...
 
 afw_compile_to_object (const afw_utf8_t *string, const afw_utf8_t *source_location, const afw_utf8_t *adaptor_id, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, afw_boolean_t cede_p, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile string to adaptive object. More...
 
 afw_compile_hybrid (const afw_value_t *value, const afw_utf8_t *source_location, const afw_value_compiled_value_t *parent, const afw_compile_shared_t *shared, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile hybrid. More...
 
 afw_compile_expressions_templates_and_hybrids (const afw_object_t *object, const afw_utf8_t *source_location, afw_boolean_t recursive, const afw_compile_shared_t *shared, afw_xctx_t *xctx)
 Compile object's expressions, templates, and hybrids. More...
 
 afw_compile_object_all_hybrid_properties (const afw_object_t *object, const afw_utf8_t *source_location, const afw_compile_shared_t *shared, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile an object with all hybrid properties. More...
 
 afw_compile_split_qualified_name (const afw_utf8_t *qualified_name, afw_utf8_t *qualifier, afw_utf8_t *name, afw_xctx_t *xctx)
 Split name with optional qualifier. More...
 
const afw_utf8_tafw_compile_source_location_of_value (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Return the source location of a value. More...
 

Detailed Description

AFW parse functions.

Definition in file afw_compile.c.

Macro Definition Documentation

◆ XX [1/2]

#define XX (   name,
  data_type,
  compile_function,
  description 
)
Value:
\
static const afw_utf8_t \
impl_compile_type_ ## name ## _name = \
AFW_UTF8_LITERAL(#name); \
\
static const afw_value_string_t \
impl_compile_type_ ## name ## _name_value = \
\
static const afw_utf8_t \
impl_compile_type_ ## name ## _description = \
AFW_UTF8_LITERAL(#description); \
\
static const afw_value_string_t \
impl_compile_type_ ## name ## _description_value = \
afw_value_evaluated_string_inf
Unmanaged evaluated value inf for data type string.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582

Definition at line 17 of file afw_compile.c.

◆ XX [2/2]

#define XX (   name,
  data_type,
  compile_function,
  description 
)
Value:
{ \
afw_compile_type_ ## name, \
&impl_compile_type_ ## name ## _name, \
(const afw_value_t *)&impl_compile_type_ ## name ## _name_value, \
&impl_compile_type_ ## name ## _description, \
(const afw_value_t *)&impl_compile_type_ ## name ## _description_value, \
&afw_data_type_ ## data_type ##_direct, \
compile_function \
}, \
Interface afw_value public struct.

Definition at line 17 of file afw_compile.c.