Finish printing

This commit is contained in:
2026-08-13 14:10:29 -07:00
parent 20aed63851
commit 17c11d90ea
5 changed files with 177 additions and 13 deletions
+12
View File
@@ -5,6 +5,18 @@
#include <stddef.h>
#define READ_EOS -1
static ALWAYS_INLINE bool WHITESPACEP(int c) {
return c == ' ' || c == '\t' || c == '\n';
}
static ALWAYS_INLINE bool SYMBOL_END_P(int c) {
return WHITESPACEP(c) || c == READ_EOS || c == '(' || c == ')' || c == '['
|| c == ']' || c == '\'' || c == '\"' || c == ',' || c == '@'
|| c == '`' || c == ';';
}
typedef struct {
const char *buffer;
size_t len;