3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

CGrammar: Remove under-construction warning and outdated todo list

This commit is contained in:
Pragmatic Software 2014-06-23 11:17:23 +00:00
parent 9bb70278b7
commit 84ee56a15e
2 changed files with 4 additions and 9 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 => 671, BUILD_REVISION => 672,
BUILD_DATE => "2014-06-23", BUILD_DATE => "2014-06-23",
}; };

View File

@ -1,10 +1,5 @@
# C-to-English Grammar # C-to-English Grammar
# # Pragmatic Software
# Warning: work-in-progress. Some things are incomplete or non-functional.
#
# todo:
# 1. pointers to functions. (getting there)
# 2. preprocessor directives. (getting there)
{ {
my @defined_types = ('`FILE`'); my @defined_types = ('`FILE`');
@ -24,7 +19,7 @@ startrule:
translation_unit: translation_unit:
comment comment
| external_declaration[context => 'external declaration'] | external_declaration
| function_definition | function_definition
| preproc[matchrule => 'translation_unit'] | preproc[matchrule => 'translation_unit']
@ -141,7 +136,7 @@ token:
{ $return = $item[-1]; } { $return = $item[-1]; }
external_declaration: external_declaration:
declaration declaration[context => 'external declaration']
function_definition: function_definition:
declaration_specifiers[context => 'function definition'](?) declarator[context => 'function definition'] compound_statement[context => 'function definition statement'](?) declaration_specifiers[context => 'function definition'](?) declarator[context => 'function definition'] compound_statement[context => 'function definition statement'](?)