Fixed failing printing of compound types

This commit is contained in:
2022-09-01 18:56:28 +01:00
parent 90b504d3a4
commit ea3ca2751c
8 changed files with 586 additions and 622 deletions

View File

@@ -109,3 +109,13 @@ bool _isTruthy(Literal x);
Literal _toStringLiteral(char* str, int length);
Literal _toIdentifierLiteral(char* str, int length);
Literal* _typePushSubtype(Literal* lit, Literal subtype);
//utils
Literal copyLiteral(Literal original);
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*));