From d3adac8a59c135edc25ce31b1cdba35ff26fa1ef Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 25 Jan 2023 13:17:57 +0000 Subject: [PATCH] Fixed the parser - whoops --- source/toy_common.h | 2 +- source/toy_parser.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/toy_common.h b/source/toy_common.h index a593acd..512f903 100644 --- a/source/toy_common.h +++ b/source/toy_common.h @@ -6,7 +6,7 @@ #define TOY_VERSION_MAJOR 0 #define TOY_VERSION_MINOR 8 -#define TOY_VERSION_PATCH 0 +#define TOY_VERSION_PATCH 1 #define TOY_VERSION_BUILD __DATE__ " " __TIME__ //platform-specific specifications diff --git a/source/toy_parser.c b/source/toy_parser.c index 68d83cb..5f8158e 100644 --- a/source/toy_parser.c +++ b/source/toy_parser.c @@ -112,7 +112,8 @@ typedef struct { PrecedenceRule precedence; } ParseRule; -static ParseRule parseRules[]; +//no static! +ParseRule parseRules[]; //forward declarations static void declaration(Toy_Parser* parser, Toy_ASTNode** nodeHandle);