Serene Runtime 1.0.0
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_tmetadata
 
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 131 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 140 of file core.h.

◆ error

srn_error_t* srn_value_t::error

Definition at line 144 of file core.h.

◆ f64

double srn_value_t::f64

Definition at line 139 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 138 of file core.h.

◆ keyword

srn_keyword_t* srn_value_t::keyword

Definition at line 146 of file core.h.

◆ list

srn_list_t* srn_value_t::list

Definition at line 145 of file core.h.

◆ map

srn_map_t* srn_value_t::map

Definition at line 148 of file core.h.

◆ metadata

srn_metadata_t* srn_value_t::metadata

Definition at line 133 of file core.h.

◆ ns

srn_namespace_t* srn_value_t::ns

Definition at line 141 of file core.h.

◆ seq

srn_seq_t* srn_value_t::seq

Definition at line 147 of file core.h.

◆ string

srn_string_t* srn_value_t::string

Definition at line 142 of file core.h.

◆ symbol

srn_symbol_t* srn_value_t::symbol

Definition at line 143 of file core.h.

◆ type

srn_value_tag_t srn_value_t::type

Definition at line 132 of file core.h.


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