You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
この記事はPHP Advent Calendar 2019の3日目の記事です。 言語実装入門編として、PHPでPHPを実装してみました。 AST生成はPHP-Parserに一任 バイトコードやバイナリ生成などはせず、Tree Walkなインタープリターとして実装 という感じで作っていきます。 実装したものはこちら↓ tzmfreedom/phphp composer global require tzmfreedom/phphp でもインストールできます HelloWorld まずは composer require nikic/php-parser してPHP-Parserを追加します。 基本形はこんな感じになります。 <?php require_once 'vendor/autoload.php'; use PhpParser\ParserFactory; use PhpParser\
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く