Maybe look at something like tiny-js which has a much simpler codebase ( https://code.google.com/p/tiny-js/).
-L On Monday, September 16, 2013, Ivan P. wrote: > Yes, I know, but this is what I'm asking about - does anyone could get it > out from the deep inside of v8 and make use of it? > In other worlds, what needs to be done to instantiate v8's parser object, > run parsing and achieve AST? Any examples of the code? > I really need that, and I need that exactly in C++, so things like > uglifyjs do not match for me. However, although it is possible to run > uglifyjs and then using V8 c++ api parse uglifyjs output and build own C++ > AST on the top, it seems to me and overcoding when there's good ready > parser inside v8, just need to learn how to invoke it. > > суббота, 14 сентября 2013 г., 16:55:30 UTC+3 пользователь Ben Noordhuis > написал: >> >> On Sat, Sep 14, 2013 at 1:21 PM, Ivan P. <[email protected]> wrote: >> > Hello, Does anyone has experience with using V8 as standalone parser? >> > Please share any links and/or code if possble. >> > The idea is to get AST and traverse it. >> > I need only traverse AST, not modify it. >> >> V8 doesn't have a public API for its AST. Maybe try uglifyjs or acorn. >> > -- > -- > v8-users mailing list > [email protected] <javascript:_e({}, 'cvml', > '[email protected]');> > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:_e({}, 'cvml', > 'v8-users%[email protected]');>. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
