> Introduction

php.internals

Weyert de Boer

21 years ago
Hello! I would like to introduce myself on this internals list, as you can read my name is Weyert de Boer and a flying dutchman. My goal is help PHP development, and learning more about compiler development. My first question to start my fame on this list is, does anyone on this list happen to have the grammar of PHP language?
-- Yours, Weyert de Boer (wdb@innerfuse.biz) innerfuse* http://www.innerfuse.biz/

Marcus Boerger

21 years ago
Hello Weyert, look into Zend/*.l and Zend/*.y. Further more several things in php are done using re2c. SQLite uses its own stuff, lemon. And the engine uses a script zend_vm_gen.php to generate the engine code. Have fun by looking into all that stuff. marcus Tuesday, July 19, 2005, 8:46:19 PM, you wrote:
> Hello!
> I would like to introduce myself on this internals list, as you can > read my name is Weyert de Boer and a flying dutchman. My goal is help PHP > development, and learning more about compiler development.
> My first question to start my fame on this list is, does anyone on this > list happen to have the grammar of PHP language?
> -- > Yours,
> Weyert de Boer (wdb@innerfuse.biz) > innerfuse*
> http://www.innerfuse.biz/
-- Best regards, Marcus mailto:mail@marcus-boerger.de

Ondrej Ivanič

21 years ago
Weyert de Boer wrote:
> My first question to start my fame on this list is, does anyone on this > list happen to have the grammar of PHP language?
I think, you can start with zend_language_parser.y in "Zend" subdirectory in tar ball. Rules in section 'Rules' :) can be easy rewritten into BNF or whatever you want.
-- Ondrej Ivanic (ondrej@kmit.sk)