3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Rename global_var_declaration to external_declaration

This commit is contained in:
Pragmatic Software 2014-06-07 13:02:50 +00:00
parent 730120be36
commit 8e818baa52
2 changed files with 3 additions and 3 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 => 617,
BUILD_REVISION => 618,
BUILD_DATE => "2014-06-07",
};

View File

@ -25,7 +25,7 @@ startrule : translation_unit
startrule(?)
translation_unit : (comment
| global_var_declaration
| external_declaration
| function_definition
| function_prototype
| preproc[matchrule => 'translation_unit'])
@ -145,7 +145,7 @@ token : <skip: '[ \t]*'> /\S+/
$return =~ s/"/\\"/; # escaping all quotes.
}
global_var_declaration : declaration
external_declaration : declaration
function_definition : <skip: '\s*'> declaration_specifiers(?) declarator[context => 'function_definition']
'(' parameter_type_list(?) ')' '{' declaration_list(?) statement_list(?) '}'