|Execution of a program in scripting language? firstname.lastname@example.org (Peng Yu) (2010-01-18)|
|Re: Execution of a program in scripting language? email@example.com (Tony Finch) (2010-01-19)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (Robin Holmes) (2010-01-20)|
|Re: Execution of a program in scripting language? email@example.com (BGB / cr88192) (2010-01-21)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (2010-01-21)|
|Re: Execution of a program in scripting language? email@example.com (kamal) (2010-02-08)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (glen herrmannsfeldt) (2010-02-10)|
|From:||"BGB / cr88192" <email@example.com>|
|Date:||Thu, 21 Jan 2010 06:27:39 -0700|
|Posted-Date:||21 Jan 2010 14:52:14 EST|
"Robin Holmes" <firstname.lastname@example.org> wrote in message
> You will be wanting to see the ECMAScript specification which can tell
> you step by step how to build a script compiler. For some example
> source code of various script engines, go to www.code.google.com/p/juke
> and download the juke source code. The compiler there has no running
> example but if you browse into the code to the vm/mod/sx folder you
> will find some file like jsParser and that might help you. Check out
> the root parser and the expression parsing if you are able.
I may need to look at this later in my case (could be interesting).
in my case, personally I could make little sense of the ECMAScript
spec in the past. then again, my implementations tend to work a bit
differently internally than in the spec (using built-in types and a
Scheme-like typesystem instead of the implied object-based one, ...).
> Actually a really good reference is also the ECMA335 specification
> from ECMA. Can tel lyou how to make a VM.
ECMA-335 is about the .NET CLI/CTS though...
implementing this seems a little "extreme" for implementing ECMAScript.
granted, if one wants a general-purpose VM, 335 is a good bet.
Return to the
Search the comp.compilers archives again.