Marc van Woerkom
Tue Jul 17 18:55:16 CEST 2007
Am Mon, 16 Jul 2007 10:35:49 +0200 hat
"Joe Armstrong" <> geschrieben:
> I have on occasion thought that it would be fun to
You should be aware of
Specifying ECMAScript via ML
(Sorry, if somebody posted this already)
>in process and
> message parsing
> would be fun.
> The first step would be a simple interpretor - from that
> is easy :-)
> The difficulty of wring an interpretor seems mainly to
>do with getting
> an accurate
> parse tree of the js source into Erlang - the
>interpretor should be pretty easy.
> So now I wonder "how can I get a parse tree of some
>produced a JSON
> parse tree.
> If such a parser exists please tell me where to find it
>Failing this I guess the easiest approach is to take
> the stand-alone
> version and fix the parser to dump the parse tree in
> format. Unfortunately
> I suspect that spidermonkey make C data structures
> rather than parse trees as such.
> The next alternative would be to find a yacc grammar for
> and put this into yecc
> but I suspect this would be out-of-sync with real
>Failing that it's back to the ECMA-262 spec ( I suppose)
>and try to convert the
> grammar in the appendices to something sensible.
> In projects like this I always think that writing an
> is the tricky bit.
> On 7/14/07, Joel Reymont <> wrote:
>> This is the reason I asked.
>> Think scalable web development for the masses.
>> On top of Erlang.
>> On Jul 13, 2007, at 8:11 PM, denis wrote:
>> > We are building an infrastructure allowing giving some
>>services to our
>> > users. But external developers (same company, but
>> > could build
>> > their own custom services inside the infrastructure.
>> > new users
>> > to learn a new language to build a custom services
>>(which can be quite
>> > simple) can be badly perceived.
>> http://topdog.cc - EasyLanguage to C# compiler
>> http://wagerlabs.com - Blog
>> erlang-questions mailing list
> erlang-questions mailing list
More information about the erlang-questions