Finish printing
This commit is contained in:
+12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user