Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_value_t Struct Reference

#include <core.h>

Collaboration diagram for srn_value_t:
[legend]

Data Fields

srn_value_tag_t type
srn_metadata_t * metadata
union { 
   int64_t   i64 
 We represent all the immidiate numbers with this field and cast as we to an appropriate type. More...
   double   f64 
   srn_closure_t *   closure 
   srn_namespace_t *   ns 
   srn_string_t *   string 
   srn_symbol_t *   symbol 
   srn_error_t *   error 
   srn_list_t *   list 
   srn_keyword_t *   keyword 
   srn_seq_t *   seq 
   srn_map_t *   map 
} as
 IMPORTANT NOTE: The size of this union should never be larger than a word.

Detailed Description

Definition at line 109 of file core.h.

Field Documentation

◆ [union]

union { ... } srn_value_t::as

IMPORTANT NOTE: The size of this union should never be larger than a word.

◆ closure

srn_closure_t* srn_value_t::closure

Definition at line 118 of file core.h.

◆ error

srn_error_t* srn_value_t::error

Definition at line 122 of file core.h.

◆ f64

double srn_value_t::f64

Definition at line 117 of file core.h.

◆ i64

int64_t srn_value_t::i64

We represent all the immidiate numbers with this field and cast as we to an appropriate type.

It might change in the future.

Definition at line 116 of file core.h.

◆ keyword

srn_keyword_t* srn_value_t::keyword

Definition at line 124 of file core.h.

◆ list

srn_list_t* srn_value_t::list

Definition at line 123 of file core.h.

◆ map

srn_map_t* srn_value_t::map

Definition at line 126 of file core.h.

◆ metadata

srn_metadata_t* srn_value_t::metadata

Definition at line 111 of file core.h.

◆ ns

srn_namespace_t* srn_value_t::ns

Definition at line 119 of file core.h.

◆ seq

srn_seq_t* srn_value_t::seq

Definition at line 125 of file core.h.

◆ string

srn_string_t* srn_value_t::string

Definition at line 120 of file core.h.

◆ symbol

srn_symbol_t* srn_value_t::symbol

Definition at line 121 of file core.h.

◆ type

srn_value_tag_t srn_value_t::type

Definition at line 110 of file core.h.


The documentation for this struct was generated from the following file: