3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02: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
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 707,
BUILD_REVISION => 708,
BUILD_DATE => "2014-07-04",
};

View File

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