want to join us? register, it's easy | help
 

eriksank has submitted 2 links

category icon

A pluggable compiler and virtual machine in Php. Dogfood yourself with your own plugins!

in PHP added by eriksank, on 30/4/2012 advanced tutorials framework oo programming php

If you think compiler construction in a scripting language, such as Php, is indeed more fun than doing it in traditional C, you will like the following article too! We keep building our little compiler and virtual machine in Php. It now built entirely from plugins. Now you can take 5 minutes to create your own small plugin, to extend and improve the compiler and virtual machine. This has never been done before.

comment save report
category icon

Adding support for if, while, and do while, to a simple compiler and virtual machine written in Php

in PHP added by eriksank, on 4/1/2012 advanced tutorials

If you think compiler construction in a scripting language, such as Php, is indeed more fun than doing it in traditional C, you will like the following article too! We keep building our little compiler and virtual machine in Php. In its previous incarnation, it was already capable of handling expressions of arbitrary complexity. In order to attain Turing-completeness, I have now added support for the IF, the WHILE, and the DO WHILE statements.

comment save report