Serene Runtime 1.0.0
C runtime for the Serene programming language
Loading...
Searching...
No Matches
keywords.h File Reference
#include "serene/rt/core.h"
Include dependency graph for keywords.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  srn_keyword_t
 A keyword: just a name. More...
 

Typedefs

typedef struct srn_keyword_t srn_keyword_t
 A keyword: just a name.
 

Functions

srn_value_tsrn_keyword_make (srn_context_t *ctx, srn_metadata_t *metadata, const char *name)
 

Typedef Documentation

◆ srn_keyword_t

typedef struct srn_keyword_t srn_keyword_t

A keyword: just a name.

Unlike Clojure, slashes are part of the name, so :foo/bar is a single keyword named "foo/bar" with no namespace component. Keywords are interned engine-wide; two srn_keyword_make calls with the same name return the same srn_value_t*.

Function Documentation

◆ srn_keyword_make()

srn_value_t * srn_keyword_make ( srn_context_t * ctx,
srn_metadata_t * metadata,
const char * name )

Definition at line 22 of file keywords.c.

22 {
23 return srn_engine_intern_keyword(ctx, metadata, name);
24}