mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
CGrammar: Remove under-construction warning and outdated todo list
This commit is contained in:
parent
9bb70278b7
commit
84ee56a15e
@ -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",
|
||||
};
|
||||
|
||||
|
@ -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'](?)
|
||||
|
Loading…
Reference in New Issue
Block a user