Hash :
a21f47fa
Author :
Thomas de Grivel
Date :
2025-08-05T01:59:28
wip backup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
/* kc3
* Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
#ifndef EKC3_H
#define EKC3_H
#include "types.h"
/* Parser. */
s_tag * ekc3_parse_template (s_buf *input, s_tag *dest);
s_tag * ekc3_parse_template_1 (const char *input, s_tag *dest);
/* Stack-allocation compatible functions, call ekc3_clean after use. */
/*
void ekc3_clean (p_ekc3 *ekc3);
p_ekc3 * ekc3_init (p_ekc3 *ekc3);
*/
/* Operators. */
/*
s_list *** ekc3_append_and_empty_buf (s_list ***tail, s_buf *buf);
s_list *** ekc3_append_do_block (s_list ***tail, s_do_block *do_block);
s_list *** ekc3_append_silent_do_block (s_list ***tail,
s_do_block *do_block);
s_list *** ekc3_append_str (s_list ***tail, s_str *str);
s_list *** ekc3_append_sym (s_list ***tail, const s_sym *sym);
sw ekc3_buf_parse (s_buf *buf, p_ekc3 *dest);
sw ekc3_buf_parse_kc3_do_block (s_buf *buf, s_do_block *dest);
sw ekc3_buf_parse_kc3_silent_do_block (s_buf *buf,
s_do_block *dest);
sw ekc3_buf_peek_kc3_silent_do_block (s_buf *buf);
bool ekc3_eval_silent_do_block (const s_do_block *do_block);
*/
/* Observers. */
/*
s_str * ekc3_inspect_do_block (const s_do_block *do_block, s_str *dest);
sw ekc3_render (s_buf *buf, const p_ekc3 *ekc3);
s_str * ekc3_render_buf_to_str (s_buf *in, s_str *dest);
s_str * ekc3_render_file_to_str (const s_str *path, s_str *dest);
sw ekc3_render_raw_do_block (s_buf *buf,
const s_do_block *do_block);
sw ekc3_render_raw_do_block_size (s_pretty *pretty,
const s_do_block *do_block);
sw ekc3_render_size (s_pretty *pretty, const p_ekc3 *ekc3);
s_str * ekc3_render_to_str (const p_ekc3 *ekc3, s_str *dest);
sw ekc3_render_tag (s_buf *buf, const s_tag *tag);
sw ekc3_render_tag_size (s_pretty *pretty, const s_tag *tag);
*/
#endif /* EKC3_H */