util.h (411B)
1 2 // functions for user 3 void Die(); // brings down the program 4 void *CheckedMalloc(long size); // malloc checked with autofree 5 void *CheckedRealloc(void *out, long size); // realloc checked with autofree 6 7 literal *giveType(char *tok); // gives a string a type 8 9 // gives strings types 10 I64 *isNum(char *str); 11 Float *isFloat(char *str); 12 Char *isChar(char *str); 13 literal *isArr(char *str); 14 Vdef *isVdef(char *str);