|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include "serene/rt/print.h"#include <inttypes.h>#include "serene/rt/context.h"#include "serene/rt/core.h"#include "serene/rt/errors.h"#include "serene/rt/impl/seq.h"#include "serene/rt/keywords.h"#include "serene/rt/lists.h"#include "serene/rt/maps.h"#include "serene/rt/namespaces.h"#include "serene/rt/seqs.h"#include "serene/rt/strings.h"#include "serene/rt/symbols.h"#include "serene/utils.h"Go to the source code of this file.
Functions | |
| static void | print_string_payload (FILE *out, const srn_string_t *s) |
| static void | write_bytes (FILE *out, const uint8_t *buf, size_t len) |
| static void | print_list (FILE *out, srn_context_t *ctx, const srn_value_t *v) |
| static void | print_seq (FILE *out, srn_context_t *ctx, const srn_value_t *v) |
| void | srn_value_print (FILE *out, srn_context_t *ctx, const srn_value_t *v) |
| Print a value to out in its S-expression form. | |
| void | srn_value_println (FILE *out, srn_context_t *ctx, const srn_value_t *v) |
| Same as srn_value_print followed by ' '. | |
|
static |
Definition at line 66 of file print.c.
|
static |
Definition at line 80 of file print.c.
|
static |
Definition at line 32 of file print.c.
| void srn_value_print | ( | FILE * | out, |
| srn_context_t * | ctx, | ||
| const srn_value_t * | v ) |
Print a value to out in its S-expression form.
Atoms round-trip with the reader; compounds without a public iterator (VMap) print as opaque placeholders for now.
Definition at line 97 of file print.c.
| void srn_value_println | ( | FILE * | out, |
| srn_context_t * | ctx, | ||
| const srn_value_t * | v ) |