From 5ef64ea66f87c4be3488262ade7b9e2dc0c857d6 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 12 Jan 2012 06:41:27 +1000 Subject: Space reduction. --- LuaSL/src/LuaSL_lemon_yaccer.y | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'LuaSL') diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index 49d2fe1..814f2b5 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y @@ -2,13 +2,13 @@ #include "LuaSL_LSL_tree.h" } -%extra_argument { LuaSL_yyparseParam *param } +%extra_argument {LuaSL_yyparseParam *param} %stack_size 256 %token_type {LSL_Leaf *} %default_type {LSL_Leaf *} -%token_destructor { burnLeaf($$); } +%token_destructor {burnLeaf($$);} program ::= script LSL_SCRIPT(A). { A->left = param->ast; param->ast = A; } // Lemon does not like the start symbol to be on the RHS, so give it a dummy one. @@ -82,17 +82,11 @@ script ::= statement(A). { A->left = param->ast; param->ast = A; } %parse_accept {printf("Parsing complete.\n");} -%parse_failure { - fprintf(stderr,"Giving up. Parser is hopelessly lost...\n"); -} +%parse_failure {fprintf(stderr,"Giving up. Parser is hopelessly lost...\n");} -%stack_overflow { - fprintf(stderr,"Giving up. Parser stack overflow!\n"); -} +%stack_overflow {fprintf(stderr,"Giving up. Parser stack overflow!\n");} -%syntax_error { - fprintf(stderr,"Syntax error!\n"); -} +%syntax_error {fprintf(stderr,"Syntax error!\n");} /* Undocumented shit that might be useful later. Pffft -- cgit v1.1