News Feed
Jobs Feed
Sections




News Archive
Sankuru Blog:
A simple bytecode compiler with virtual machine, written in Php, for the EL language
December 30, 2011 @ 11:06:36

On the Sankuru blog there's a recent post looking at the construction of a simple bytecode compiler with a virtual machine as written in PHP (for Expression Language).

In my previous blog posts, I demonstrated how we can use the builtin PCRE library, to create a lexer in Php. I also showed how to use Bison-generated LALR1 parser tables in Php. In this blog post, I will re-use these lexing and parsing facilities to compile EL programs from within Php.

He uses his lexer/parser (available for download) in an example program that outputs some values and does some simple mathematical operations. There's sections detailing the Bison grammar used, execution stacks, callbacks and the bytecode it produces.

0 comments voice your opinion now!
bytecode compiler virtual machine expression language


blog comments powered by Disqus

Similar Posts

International PHP Magazine: Poll Question: You Did Not Know That

PHPClasses.org: Lately in PHP Podcast Episode 19 - The Debate of Making PHP Faster using a JIT

Stefan Mischook's Blog: PHP Video Tutorial: Functions

Reddit.com: Less obvious PHP tricks?

Tony Bibbs' Blog: The Problem with PHP is PHP Itself


Community Events











Don't see your event here?
Let us know!


development conference interview zendframework2 introduction phpunit unittest release functional object series opinion podcast framework community code tool language example testing

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework