From 84ee56a15ec162b1889ad9c9f168d9ec7b5a0562 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 23 Jun 2014 11:17:23 +0000 Subject: [PATCH] CGrammar: Remove under-construction warning and outdated todo list --- PBot/VERSION.pm | 2 +- modules/c2english/CGrammar.pm | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 302b69c6..11e06f56 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 671, + BUILD_REVISION => 672, BUILD_DATE => "2014-06-23", }; diff --git a/modules/c2english/CGrammar.pm b/modules/c2english/CGrammar.pm index 841a9ca4..39d44e51 100644 --- a/modules/c2english/CGrammar.pm +++ b/modules/c2english/CGrammar.pm @@ -1,10 +1,5 @@ # C-to-English Grammar -# -# Warning: work-in-progress. Some things are incomplete or non-functional. -# -# todo: -# 1. pointers to functions. (getting there) -# 2. preprocessor directives. (getting there) +# Pragmatic Software { my @defined_types = ('`FILE`'); @@ -24,7 +19,7 @@ startrule: translation_unit: comment - | external_declaration[context => 'external declaration'] + | external_declaration | function_definition | preproc[matchrule => 'translation_unit'] @@ -141,7 +136,7 @@ token: { $return = $item[-1]; } external_declaration: - declaration + declaration[context => 'external declaration'] function_definition: declaration_specifiers[context => 'function definition'](?) declarator[context => 'function definition'] compound_statement[context => 'function definition statement'](?)