|
Zen-C
|
#include "ast.h"#include "../parser/parser.h"#include "zprep.h"#include <stdlib.h>#include <string.h>
Data Structures | |
| struct | TraitReg |
Typedefs | |
| typedef struct TraitReg | TraitReg |
Functions | |
| void | register_trait (const char *name) |
| Register a trait. | |
| int | is_trait (const char *name) |
| Check if a name is a trait. | |
| ASTNode * | ast_create (NodeType type) |
| void | ast_free (ASTNode *node) |
| Type * | type_new (TypeKind kind) |
| Type * | type_new_ptr (Type *inner) |
| int | is_char_ptr (Type *t) |
| int | is_integer_type (Type *t) |
| int | is_float_type (Type *t) |
| int | type_eq (Type *a, Type *b) |
| char * | type_to_string (Type *t) |
| char * | type_to_c_string (Type *t) |


| void ast_free | ( | ASTNode * | node | ) |
| int is_char_ptr | ( | Type * | t | ) |

| int is_float_type | ( | Type * | t | ) |

| int is_integer_type | ( | Type * | t | ) |

| int is_trait | ( | const char * | name | ) |
Check if a name is a trait.

| void register_trait | ( | const char * | name | ) |
Register a trait.








| char * type_to_c_string | ( | Type * | t | ) |


| char * type_to_string | ( | Type * | t | ) |

