X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=binutils%2Farparse.y;h=b1f5a97980662663dd3cc66bf3669c3dfe45ab43;hb=3cb5a3a16af2cae1a5059b7571c514b3fa575df9;hp=113c5483b914aa780ef2649c4b2b14ed64e1f2f9;hpb=aa820537ead0135a7c38c619039dce8a6fc74ed1;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/arparse.y b/binutils/arparse.y index 113c5483b9..b1f5a97980 100644 --- a/binutils/arparse.y +++ b/binutils/arparse.y @@ -1,8 +1,7 @@ %{ -/* arparse.y - Stange script language parser */ +/* arparse.y - Strange script language parser */ -/* Copyright 1992, 1993, 1995, 1997, 1999, 2002, 2003, 2005, 2007 - Free Software Foundation, Inc. +/* Copyright (C) 1992-2019 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -60,7 +59,7 @@ struct list *list ; %token SAVE %token OPEN -%type modulelist +%type modulelist %type modulename %type optional_filename %% @@ -79,8 +78,8 @@ command_line: ; command: - open_command - | create_command + open_command + | create_command | verbose_command | directory_command | addlib_command @@ -103,11 +102,11 @@ extract_command: { ar_extract($2); } ; -replace_command: +replace_command: REPLACE modulename { ar_replace($2); } ; - + clear_command: CLEAR { ar_clear(); } @@ -122,12 +121,12 @@ addmod_command: { ar_addmod($2); } ; -list_command: +list_command: LIST { ar_list(); } ; -save_command: +save_command: SAVE { ar_save(); } ; @@ -135,12 +134,12 @@ save_command: open_command: - OPEN FILENAME + OPEN FILENAME { ar_open($2,0); } ; create_command: - CREATE FILENAME + CREATE FILENAME { ar_open($2,1); } ; @@ -163,7 +162,7 @@ optional_filename: ; modulelist: - '(' modulename ')' + '(' modulename ')' { $$ = $2; } | { $$ = 0; } @@ -172,22 +171,22 @@ modulelist: modulename: modulename optcomma FILENAME { struct list *n = (struct list *) malloc(sizeof(struct list)); - n->next = $1; + n->next = $1; n->name = $3; $$ = n; } | { $$ = 0; } ; - + optcomma: ',' | ; - - + + verbose_command: - VERBOSE + VERBOSE { verbose = !verbose; } ;