|
x-engine-c v0.2.13
The C engine for x-lang
|
Comment token type for the tokenizer. More...
#include "x-type.h"Go to the source code of this file.
Macros | |
| #define | X_TYPE_COMMENT_NAME "COMMENT" |
Type predicates | |
| #define | x_obj_type_iscomment(B, X) x_obj_is_type((B), (X), X_TYPE_COMMENT_NAME) |
Field accessors | |
| #define | x_commentval(X) x_firststr((X)) |
| #define | x_commentlen(X) x_lib_strlen(x_strval((X))) |
Functions | |
| x_obj_t * | x_type_comment_struct (x_obj_t *p_base, x_obj_t *p_args) |
| x_obj_t * | x_type_comment_register (x_obj_t *p_base, x_obj_t *p_args) |
Comment token type for the tokenizer.
| #define x_commentlen | ( | X | ) | x_lib_strlen(x_strval((X))) |
Length of comment text.
| #define x_commentval | ( | X | ) | x_firststr((X)) |
Comment text as C string.
| #define x_obj_type_iscomment | ( | B, | |
| X | |||
| ) | x_obj_is_type((B), (X), X_TYPE_COMMENT_NAME) |
Test if object is a comment.
| #define X_TYPE_COMMENT_NAME "COMMENT" |
Type name string.
Register (or retrieve) the COMMENT type struct on p_base.
Register (or retrieve) the COMMENT type struct on p_base.
| p_base | x_obj_t* – Base (execution context) |
| p_args | x_obj_t* – Unused |
Build the COMMENT type struct descriptor.
Build the COMMENT type struct descriptor.
Registers the s-expression comment analyse and delimit callbacks.
| p_base | x_obj_t* – Base (execution context) |
| p_obj | x_obj_t* – Unused |