From 03682eca92747a6d7f12a24b45ec2ff742617e39 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Tue, 1 Jan 2002 06:17:39 +0000 Subject: [PATCH] eliminate shift/reduce conflicts in output file attributes. --- parser.y | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parser.y b/parser.y index a64a030..c13d4cd 100644 --- a/parser.y +++ b/parser.y @@ -164,10 +164,13 @@ pdf_file_attribute: | SUBJECT STRING { output_set_subject ($2); } | KEYWORDS STRING { output_set_keywords ($2); } ; +pdf_file_attribute_list: + pdf_file_attribute + | pdf_file_attribute_list pdf_file_attribute ; + pdf_file_attributes: /* empty */ - | pdf_file_attribute - | pdf_file_attributes pdf_file_attribute ; + | pdf_file_attribute_list ; output_file_clause: FILE_KEYWORD STRING { output_set_file ($2); }