modified readme and removed debug code

This commit is contained in:
cozis
2022-01-22 03:40:27 +01:00
parent e4d6663879
commit 6b983cbafd
2 changed files with 29 additions and 26 deletions
-25
View File
@@ -103,36 +103,11 @@ static int parse_args(Options *opts, int argc, char **argv, Error *error)
return i;
}
#include "buildvalue.h"
int main(int argc, char **argv)
{
Error error;
Error_Init(&error);
{
Heap *heap = Heap_New(-1);
if(heap == NULL)
{
fprintf(stderr, "ERROR: Failed to create heap.\n");
return -1;
}
Object *o = buildValue(heap, &error, "[${ return 3*1; }, $i, {}, {${return 'name';}: $s, ${return 'name';}: [$s]}]", 4, "Francesco", "Giovanni");
if(o == NULL)
{
fprintf(stderr, "ERROR: %s.\n", error.message);
return -1;
}
Object_Print(o, stdout);
Heap_Free(heap);
}
// Parse command line options.
Options opts;