remove another useless nonterminal

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo 2006-05-03 16:46:55 +00:00
parent 34d67f7d09
commit e5b0c721e5
2 changed files with 607 additions and 626 deletions

File diff suppressed because it is too large Load Diff

View File

@ -117,7 +117,6 @@ static pval *update_last(pval *, YYLTYPE *);
%type <pval>file
/* XXX lr changes */
%type <pval>opt_else
%type <pval>elements_block
%type <pval>timespec
%type <pval>included_entry
@ -166,7 +165,6 @@ static pval *update_last(pval *, YYLTYPE *);
ignorepat element elements arglist assignment
global_statements globals macro context object objects
opt_else
elements_block
timespec included_entry
%destructor { free($$);} word word_list goto_word word3_list opt_word context_name
@ -194,10 +192,10 @@ context_name : word { $$ = $1; }
| KW_DEFAULT { $$ = strdup("default"); }
;
context : opt_abstract KW_CONTEXT context_name elements_block {
$$ = npval2(PV_CONTEXT, &@1, &@4);
context : opt_abstract KW_CONTEXT context_name LC elements RC {
$$ = npval2(PV_CONTEXT, &@1, &@6);
$$->u1.str = $3;
$$->u2.statements = $4;
$$->u2.statements = $5;
$$->u3.abstract = $1; }
;
@ -233,9 +231,6 @@ arglist : /* empty */ { $$ = NULL; }
| arglist error {$$=$1;}
;
elements_block : LC elements RC { $$ = $2; }
;
elements : {$$=0;}
| element elements { $$ = linku1($1, $2); }
| elements error { $$=$1;}