x-engine-c v0.2.13
The C engine for x-lang
Loading...
Searching...
No Matches
whitespace.c File Reference

Whitespace token type implementation for the tokenizer. More...

#include "x-eval.h"
#include "x-type/whitespace.h"
#include "x-token/sexp/whitespace.h"

Functions

x_obj_tx_type_whitespace_struct (x_obj_t *p_base, x_obj_t *p_obj)
 
x_obj_tx_type_whitespace_register (x_obj_t *p_base, x_obj_t *p_args)
 

Variables

x_satom_t x_type_whitespace_name = x_obj_set(x_type_atom_obj, X_OBJ_FLAG_NONE, { .s = (x_char_t *)X_TYPE_WHITESPACE_NAME })
 
x_satom_t x_type_whitespace_struct_prim = x_obj_set(x_type_atom_obj, X_OBJ_FLAG_NONE, { (x_obj_t *)&x_type_whitespace_struct })
 

Detailed Description

Whitespace token type implementation for the tokenizer.

Author
Jon Ruttan (jonru.nosp@m.ttan.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)

Function Documentation

◆ x_type_whitespace_register()

x_obj_t * x_type_whitespace_register ( x_obj_t p_base,
x_obj_t p_args 
)

Register (or retrieve) the WHITESPACE type struct on p_base.

Parameters
p_basex_obj_t* – Base (execution context)
p_argsx_obj_t* – Unused
Returns
The registered type struct object

◆ x_type_whitespace_struct()

x_obj_t * x_type_whitespace_struct ( x_obj_t p_base,
x_obj_t p_obj 
)

Build the WHITESPACE type struct descriptor.

Registers the s-expression whitespace analyse and delimit callbacks.

Parameters
p_basex_obj_t* – Base (execution context)
p_objx_obj_t* – Unused
Returns
Type struct pair list

Variable Documentation

◆ x_type_whitespace_name

◆ x_type_whitespace_struct_prim