[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /PECL_Gen RFC_proto.txt
From: "Hartmut Holzgraefe" <hholzgra () php ! net>
Date: 2004-12-27 16:38:04
Message-ID: cvshholzgra1104165484 () cvsserver
[Download RAW message or body]
hholzgra Mon Dec 27 11:38:04 2004 EDT
Added files:
/pecl/PECL_Gen RFC_proto.txt
Log:
proto grammer formerly stored in Function.php
http://cvs.php.net/co.php/pecl/PECL_Gen/RFC_proto.txt?r=1.1&p=1
Index: pecl/PECL_Gen/RFC_proto.txt
+++ pecl/PECL_Gen/RFC_proto.txt
the grammer for a prototype would look like this: ?
proto : type name '(' param-spec ')'
name : [A-Za-z_][A-Za-z0-9_]*
type : "void"
| typespec
typespec : typename
| typename '&'
typename : 'bool' | 'boolean'
| 'int' | 'integer' | 'long'
| 'float' | 'double' | 'real'
| 'string'
| 'array'
| 'object' | 'object' name
| 'resource' | 'resource' name
| 'mixed'
| 'callback'
| 'stream'
param-spec: 'void'
| '...'
| param-list
| param-list ',' '...'
param-list: parameter
| parm-list ',' parameter
parameter : typespec name
| typespec name '=' default
default : "true"
| "false"
| "array()"
| "null"
| numeric
| string
string : '"' character* '"'
numeric : ... the usual int, float, hex and octal stuff ...
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic