summaryrefslogtreecommitdiff
path: root/pbx/ael/ael.y
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-05-03 16:28:48 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-05-03 16:28:48 +0000
commit673607f87a0e66b02062afce6c2ffd4ce8e86786 (patch)
treec4c51c2ba3f37ad270d1803287d2299211ca5d83 /pbx/ael/ael.y
parent9ebc190fdc88d52bd7756e485b2d4cae270ff3cc (diff)
reduce shift/reduce warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r--pbx/ael/ael.y22
1 files changed, 9 insertions, 13 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y
index e46a002d3..2b4108b90 100644
--- a/pbx/ael/ael.y
+++ b/pbx/ael/ael.y
@@ -217,12 +217,10 @@ macro : KW_MACRO word LP arglist RP LC macro_statements RC {
globals : KW_GLOBALS LC global_statements RC {
$$ = npval2(PV_GLOBALS, &@1, &@4);
$$->u1.statements = $3;}
- | KW_GLOBALS LC RC { /* empty globals is OK */
- $$ = npval2(PV_GLOBALS, &@1, &@3); }
;
-global_statements : assignment {$$=$1;}
- | global_statements assignment {$$ = linku1($1, $2); }
+global_statements : { $$ = NULL; }
+ | assignment global_statements {$$ = linku1($1, $2); }
| global_statements error {$$=$1;}
;
@@ -238,13 +236,11 @@ arglist : /* empty */ { $$ = NULL; }
| arglist error {$$=$1;}
;
-elements_block : LC RC { $$ = NULL; }
- | LC elements RC { $$ = $2; }
+elements_block : LC elements RC { $$ = $2; }
;
-elements : element { $$=$1;}
- | error {$$=0;}
- | elements element { $$ = linku1($1, $2); }
+elements : {$$=0;}
+ | element elements { $$ = linku1($1, $2); }
| elements error { $$=$1;}
;
@@ -599,16 +595,16 @@ switchlist : word SEMI { $$ = nword($1, &@1); }
| switchlist error {$$=$1;}
;
-included_entry : context_name SEMI { $$ = nword($1, &@1); }
- | context_name BAR timespec SEMI {
+included_entry : context_name { $$ = nword($1, &@1); }
+ | context_name BAR timespec {
$$ = nword($1, &@1);
$$->u2.arglist = $3;
prev_word=0; /* XXX sure ? */ }
;
/* list of ';' separated context names followed by optional timespec */
-includeslist : included_entry { $$ = $1; }
- | includeslist included_entry { $$ = linku1($1, $2); }
+includeslist : included_entry SEMI { $$ = $1; }
+ | includeslist included_entry SEMI { $$ = linku1($1, $2); }
| includeslist error {$$=$1;}
;