#include #include "core.cpp" #include "core.h" int main(int argc, char **argv) { int statusCode = 0; initialiseCore(); Arena *arena = arenaAlloc(Megabytes(64)); list args = getArgs(arena, argc, argv); log(strSplit(arena, "-"_s, "hallo-world"_s)); while (true) { string line; list split; WithScratch(temp) { line = PushString(temp.arena, 128); fgets(line.str, (int)line.length, stdin); split = strSplit(temp.arena, "-"_s, line); } if (line.str[0] == '\n' && line.str[1] == '\0') { break; } else { log(split); } } return statusCode; }