3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

CGrammar: Correct order of pointer abstract declarator -- now parses int *[] properly

This commit is contained in:
Pragmatic Software 2014-07-05 04:39:35 +00:00
parent c638b2c993
commit 5b10d9769e
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 707, BUILD_REVISION => 708,
BUILD_DATE => "2014-07-04", BUILD_DATE => "2014-07-04",
}; };

View File

@ -1394,9 +1394,9 @@ parameter_declaration:
{ $return = "unspecified arguments"; } { $return = "unspecified arguments"; }
abstract_declarator: abstract_declarator:
pointer pointer(?) direct_abstract_declarator(s)
| pointer(?) direct_abstract_declarator(s) { $return = join(' ',@{$item{'pointer(?)'}}) . ' ' . join(' ', @{$item{'direct_abstract_declarator(s)'}}); }
{ $return = join(' ',@{$item{'pointer(?)'}}) . join(' ', @{$item{'direct_abstract_declarator(s)'}}); } | pointer
direct_abstract_declarator: direct_abstract_declarator:
'(' abstract_declarator ')' '(' abstract_declarator ')'