add nilptrs, more conversion functions and change how ptrs work

Pointers now no longer point to the Value struct (the internal wrapper for
values) but to the value itself.
This commit is contained in:
r4
2021-12-28 17:53:27 +01:00
parent befce544e7
commit ba8d2f0702
5 changed files with 51 additions and 10 deletions

2
tok.h
View File

@@ -31,7 +31,7 @@ typedef struct Value {
char Char;
struct {
Type type;
struct Value *val;
void *val;
} Ptr;
struct {
Type type;