From 44b910bb829f6e5920b0a51985624c345019711e Mon Sep 17 00:00:00 2001 From: François Pottier Date: Thu, 8 Oct 2015 01:20:31 +0200 Subject: Factorized [declaration_specifier_no_type]. This saves a few states. --- cparser/pre_parser.mly | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cparser/pre_parser.mly') diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly index 78641e58..0aa884c9 100644 --- a/cparser/pre_parser.mly +++ b/cparser/pre_parser.mly @@ -354,10 +354,14 @@ storage_class_specifier_no_typedef: (* [declaration_specifiers_no_type] matches declaration specifiers that do not contain either "typedef" nor type specifiers. *) +declaration_specifier_no_type: +| storage_class_specifier_no_typedef +| type_qualifier +| function_specifier + {} + declaration_specifiers_no_type: -| storage_class_specifier_no_typedef declaration_specifiers_no_type? -| type_qualifier declaration_specifiers_no_type? -| function_specifier declaration_specifiers_no_type? +| declaration_specifier_no_type declaration_specifiers_no_type? {} (* [declaration_specifiers_no_typedef_name] matches declaration -- cgit