Implement tokenisation

This commit is contained in:
2025-08-09 12:13:55 +01:00
parent 657f0922bb
commit 3e8a9d6789
10 changed files with 550 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef MEMORY_STREAM_H
#define MEMORY_STREAM_H
#include "stream.h"
#include <stddef.h>
typedef struct {
stream_t stream;
const uint8_t *src, *end;
} memory_stream_t;
void memory_stream_init(memory_stream_t *s, const uint8_t *src, size_t size);
#endif