Approaching the First Draft [of a language spec]
[email protected] (Sascha Schumann)
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
we need a clear roadmap on how to approach the goal of having
a language specification. Here is the earlier proposal I sent
to php-dev.
Note that this does not say anything about the format of the
final documentation. Your opinions and ideas are welcome.
Task 1: Defining the syntax
The syntax can be represented in the common pseudo-grammar
style, which has been used by K&R and many ANSI/ISO language
standards before. Everyone who is familiar with Yacc/Bison
will immediately recognize it. The file `Language_Notation.txt'
contains a definition and examples.
Task 2: Defining the semantics
This comes down to defining what meaning the various pieces of
the syntax have and what actions they cause.
The First Draft will be based upon the language implementation
which is used by PHP 4. The draft may differ from that implementation,
if the workgroup decides so.
Thanks,
- Sascha