teto teto on the wall whos the skibidest of them all
This commit is contained in:
@@ -43,11 +43,10 @@ void print_node(const noomP_Node* node, noom_uint_t depth) {
|
|||||||
void pretty(const char* code, noom_LuaVersion version, const noomP_Node* node, noom_uint_t indent) {
|
void pretty(const char* code, noom_LuaVersion version, const noomP_Node* node, noom_uint_t indent) {
|
||||||
for (noom_uint_t i = 0; i < indent; i++) putchar('\t');
|
for (noom_uint_t i = 0; i < indent; i++) putchar('\t');
|
||||||
const noom_uint_t len = noomL_tokenlen(code, node->source_offset, version);
|
const noom_uint_t len = noomL_tokenlen(code, node->source_offset, version);
|
||||||
char* fuckoff = code;
|
for (int i = 0; i < len; i++) {
|
||||||
const char c = fuckoff[node->source_offset + len];
|
putchar(*(code + node->source_offset + i));
|
||||||
fuckoff[node->source_offset + len] = '\0';
|
}
|
||||||
printf("%*s%s %s", (int)len, code + node->source_offset, code[node->source_offset] != '\0' ? " -" : "", noomP_formatNodeType(node->type));
|
printf("%s %s", code[node->source_offset] != '\0' ? " -" : "", noomP_formatNodeType(node->type));
|
||||||
fuckoff[node->source_offset + len] = c;
|
|
||||||
if (node->subnodec) {
|
if (node->subnodec) {
|
||||||
printf(" with %lld entr%s {\n", node->subnodec, node->subnodec == 1 ? "y" : "ies");
|
printf(" with %lld entr%s {\n", node->subnodec, node->subnodec == 1 ? "y" : "ies");
|
||||||
for (int i = 0; i < node->subnodec; i++) {
|
for (int i = 0; i < node->subnodec; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user