aboutsummaryrefslogtreecommitdiff
path: root/slr-table.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2025-06-30 19:51:44 +0300
committerkartofen <mladenovnasko0@gmail.com>2025-06-30 19:51:44 +0300
commit7743cb4f8a06ab79a521c4346aac74b47c8ce224 (patch)
tree41551b3955d5de311210c1d74b5f0c6b0642c2f4 /slr-table.c
parent7f796bc571941a9c14eeb3a65d349d628f022275 (diff)
minimal lr parser
Diffstat (limited to 'slr-table.c')
-rw-r--r--slr-table.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/slr-table.c b/slr-table.c
index 2454a65..39e95ae 100644
--- a/slr-table.c
+++ b/slr-table.c
@@ -235,6 +235,13 @@ void table_print()
else printf(" ");
printf("\n");
}
+
+ // for(size_t i = 0; i < table_states; i++) {
+ // printf("{");
+ // for(size_t sym = 0; sym < total_symbols; sym++)
+ // printf("{%d, %d},", table[i][sym].type, table[i][sym].arg);
+ // printf("},\n");
+ // }
}
#ifdef _SLR_TABLE_STANDALONE