|Execution of a program in scripting language? email@example.com (Peng Yu) (2010-01-18)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (Tony Finch) (2010-01-19)|
|Re: Execution of a program in scripting language? email@example.com (Robin Holmes) (2010-01-20)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (BGB / cr88192) (2010-01-21)|
|Re: Execution of a program in scripting language? email@example.com (2010-01-21)|
|Re: Execution of a program in scripting language? firstname.lastname@example.org (kamal) (2010-02-08)|
|Re: Execution of a program in scripting language? email@example.com (glen herrmannsfeldt) (2010-02-10)|
|From:||"BGB / cr88192" <firstname.lastname@example.org>|
|Date:||Thu, 21 Jan 2010 06:27:39 -0700|
|Posted-Date:||21 Jan 2010 14:52:14 EST|
"Robin Holmes" <email@example.com> 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.