From 21a7afe66d6cf8538c5a99271e2fe4a64b5f1204 Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Sun, 3 Jan 2016 23:50:07 -0500 Subject: [PATCH] Updated grammer to allow any statement as the child of an if_comp. Much more work incoming, but it will take past midnight, and I want to get what was finished earlier in before then to keep up my streak. --- krakenGrammer.kgm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/krakenGrammer.kgm b/krakenGrammer.kgm index 1055153..2b6e781 100644 --- a/krakenGrammer.kgm +++ b/krakenGrammer.kgm @@ -37,8 +37,10 @@ line_end = maybe_line_white ";" | maybe_line_white line_break | maybe_line_white # line_end = "( | )+" ending | ending ; # ending = ";" | line_break | cpp_comment ; -if_comp = "__if_comp__" WS identifier WS if_comp_pred ; -if_comp_pred = code_block | simple_passthrough ; +if_comp = "__if_comp__" WS identifier WS statement ; +#if_comp = "__if_comp__" WS identifier WS if_comp_pred ; +#if_comp_pred = code_block | simple_passthrough ; + simple_passthrough = "simple_passthrough" WS passthrough_params WS triple_quoted_string ; passthrough_params = "\(" WS in_passthrough_params WS ":" WS out_passthrough_params WS ":" WS opt_string WS "\)" | ; in_passthrough_params = opt_param_assign_list ;