cvs: pear /CodeGen_PECL RFC_proto.txt /CodeGen_PECL/docs RFC_proto.txt
| From: | Hartmut Holzgraefe | Date: | Sun, 24 Jul 2005 16:54:23 +0000 |
| Subject: | cvs: pear /CodeGen_PECL RFC_proto.txt /CodeGen_PECL/docs RFC_proto.txt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33266@lists.php.net to get a copy of this message | ||
hholzgra Sun Jul 24 12:54:23 2005 EDT
Added files:
/pear/CodeGen_PECL/docs RFC_proto.txt
Removed files:
/pear/CodeGen_PECL RFC_proto.txt
Log:
another file moved
http://cvs.php.net/co.php/pear/CodeGen_PECL/docs/RFC_proto.txt?r=1.1&p=1
Index: pear/CodeGen_PECL/docs/RFC_proto.txt
+++ pear/CodeGen_PECL/docs/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 ...