Re: PHP compiler
From: Andreas Rueckert (a_rueckert_at_gmx.net)
Date: 03/09/04
- Next message: carramba: "[GD]Could not find/open font - font problem"
- Previous message: Pedro Graca: "Re: mysql and serialized php objects?Q"
- In reply to: Nikola Skoric: "Re: PHP compiler"
- Next in thread: CountScubula: "Re: PHP compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Mar 2004 19:46:53 GMT
On Tue, 9 Mar 2004 10:15:31 +0000 (UTC),
Nikola Skoric <nick-news@net4u.hr> wrote:
--<snip>--
>Yes, I'm thinking about compiling to MSIL (.NET Framework language) because
>of all the built in methods that would minimize the effort of writing the
>built in functions. But, anyway, my compiler doesn't have to have more than
>15 built in functions, my aim is to show to my teacher that I understand the
>way compilers are dedigned, no to build a full scale compiler able to whash
>the dishes...
We were working on a Antlr parser for PHP, that is still incomplete yet.
But it does not actually contain any builtin PHP methods. It would just
parser to the point, where it's clear, that the current token is the name
of a builtin method. Then it should lookup the name in a list of methods,
that would reference the code to execute that method. So you could add
new methods dynamically without changing the parser.
Ciao,
Andreas
- Next message: carramba: "[GD]Could not find/open font - font problem"
- Previous message: Pedro Graca: "Re: mysql and serialized php objects?Q"
- In reply to: Nikola Skoric: "Re: PHP compiler"
- Next in thread: CountScubula: "Re: PHP compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|