Re: Getting the AST from the JavaScript source

2009-05-19 Thread Jean-Philippe Bernardy
You can add a mode-dependent function on the model of modeFollow; start looking in the datatype Mode in Yi.Buffer.Misc. On Tue, May 19, 2009 at 6:51 PM, Deniz Dogan wrote: > > Hi all, > > I'm currently trying to write a light-weight verifier (think > jslint[1]) for the JavaScript mode.  My verif

Getting the AST from the JavaScript source

2009-05-19 Thread Deniz Dogan
Hi all, I'm currently trying to write a light-weight verifier (think jslint[1]) for the JavaScript mode. My verifier has the type "verify :: Tree -> IO ()" (kind of), so it needs the AST which is returned from the JavaScript parser. How do I extract that information? Thanks, Deniz [1] http://w