Files
Toy/source/literal_util.h

13 lines
340 B
C

#pragma once
#include "literal.h"
char* copyString(char* original, int length);
bool literalsAreEqual(Literal lhs, Literal rhs);
int hashLiteral(Literal lit);
void printLiteral(Literal literal);
void printLiteralCustom(Literal literal, void (printFn)(const char*));
//TODO: copy literal (to be used in dictionaries and arrays, as well)