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:
parent
c638b2c993
commit
5b10d9769e
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 ')'
|
||||||
|
Loading…
Reference in New Issue
Block a user