aboutsummaryrefslogtreecommitdiff
path: root/parts/grammar.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2025-07-09 17:23:04 +0300
committerkartofen <mladenovnasko0@gmail.com>2025-07-09 17:23:04 +0300
commit2c85f2d087b9b2f3922b856beed4e2dd5b0fc126 (patch)
tree49de0cef8eb32596f2629e3d2855400484fbd8aa /parts/grammar.h
parente911e95f697b0eb48ed4e68cb2586ffb0dc11341 (diff)
edit readme
Diffstat (limited to 'parts/grammar.h')
-rw-r--r--parts/grammar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/parts/grammar.h b/parts/grammar.h
index a02a99e..d1bf176 100644
--- a/parts/grammar.h
+++ b/parts/grammar.h
@@ -1,6 +1,8 @@
#ifndef GRAMMAR_H
#define GRAMMAR_H
+#include <stddef.h> // size_t
+
extern struct production {
symbol LHS;
symbol *RHS;
@@ -9,6 +11,8 @@ extern struct production {
extern size_t total_productions;
+#include <stdio.h>
+
void grammar_print()
{
for(size_t i = 0; i < total_productions; i++) {