タグ

ブックマーク / phpspot.org (1)

  • PHPのソースコードをC のコードに変換する:phpspot開発日誌

    SourceForge.net: BinaryPHP BinaryPHP is a PHP To C converter which will convert PHP scripts into C equivalents ready to be compiled using any ANSI compiler. PHPのソースコードをC++のコードに変換するBinaryPHPの紹介。 token_get_all関数によってPHPのコードをトークンごとに分割してゴニョゴニョやって変換してるみたいです。 PHPC++のコード変換を実際に使うかどうかは微妙かもしれませんが、どういう仕組みで変換しているかを調べるのはなかなか楽しいです。 token_get_allのようなトークン処理用の関数が標準(4.3.0以降)で備わっているところがPHPのすごい所ですね^^; token_get_all -

    wata_d
    wata_d 2006/05/06
  • 1