URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID8
Нить номер: 2657
[ Назад ]

Исходное сообщение
"PHP grammar"

Отправлено mirya , 17-Сен-04 17:54 
Does anyone know where to take the php grammar (BNF readable by yacc/lex) from?

Содержание

Сообщения в этом обсуждении
"PHP grammar"
Отправлено solotony , 22-Сен-04 02:30 
А в сырцах нету? Хотя у меня подозрение, что PHP этим грамматикам не соответствует.



"PHP grammar"
Отправлено mirya , 22-Сен-04 21:32 
>А в сырцах нету?

1) i've not searched yet, but as far they don't use yacc/bison for parsing (wise decision:) but some grammar-dependent code it's not there

>Хотя у меня подозрение, что PHP этим грамматикам
>не соответствует.

i don't think that would be delphi varaint (if you look through the grammar provided with help you'll find it's "bit" stripped); PHP grammar is simple enough to write it down w/o bugs :). I need it for internal PHP parser (yacc-generated) for some code analysis and modification tasks