|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include "serene/rt/context.h"#include "serene/rt/engine.h"#include "serene/rt/impl/hashmap.h"#include "serene/utils.h"Go to the source code of this file.
Data Structures | |
| struct | srn_namespace_src_buffer_t |
| struct | srn_namespace_t |
Macros | |
| #define | MAX_NS_NAME_LEN 4096 |
| There's no reason behind this number, just me guessing. | |
Typedefs | |
| typedef struct srn_namespace_src_buffer_t | srn_namespace_src_buffer_t |
| typedef struct srn_namespace_t | srn_namespace_t |
Functions | |
| srn_value_t * | srn_namespace_make (srn_context_t *ctx, srn_metadata_t *metadata, srn_string_t *name) |
| Creates a new namespace in the give context. | |
| srn_namespace_t * | srn_namespace_load (srn_namespace_t *ns) |
| Load the namespace from the filesystem by looking up the file in the filesystem, load the file into the src_buffer, parse the code, and populate the symtable. | |
| #define MAX_NS_NAME_LEN 4096 |
There's no reason behind this number, just me guessing.
Definition at line 29 of file namespaces.h.
| typedef struct srn_namespace_src_buffer_t srn_namespace_src_buffer_t |
| typedef struct srn_namespace_t srn_namespace_t |
| srn_namespace_t * srn_namespace_load | ( | srn_namespace_t * | ns | ) |
Load the namespace from the filesystem by looking up the file in the filesystem, load the file into the src_buffer, parse the code, and populate the symtable.
Definition at line 50 of file namespaces.c.
| srn_value_t * srn_namespace_make | ( | srn_context_t * | ctx, |
| srn_metadata_t * | metadata, | ||
| srn_string_t * | name ) |
Creates a new namespace in the give context.
The given context will NOT be the namespace's root context
Definition at line 27 of file namespaces.c.