Re: How to use Jasper to Parse JSP

2015-03-16 Thread Mark Thomas
On 16/03/2015 09:19, kaori hattanda wrote: > Dear Jasper > > I develop a tool for JSP's static code analysis. > > I would like to use parse result of jsp files for my tool. > I am assuming that the result is a syntax tree. Assumptions are never a good idea. Take a look at the source code for Ja

How to use Jasper to Parse JSP

2015-03-16 Thread kaori hattanda
Dear Jasper I develop a tool for JSP's static code analysis. I would like to use parse result of jsp files for my tool. I am assuming that the result is a syntax tree. Would you tell me how to use the syntax tree from external programs? Best Regards, Kaori Hattanda -- -

Re: How to use Jasper to Parse JSP

2015-02-03 Thread t-zhang
Dear Christopher > What do you want your checker to do? Anything more than make sure that > the JSP will compile? Yes, I need a source code analyzer. Which one will not only make sure that the JSP will compile. Best Regards On Thu, 29 Jan 2015 10:34:23 -0500 Christopher Schultz wrote: > -

Re: How to use Jasper to Parse JSP

2015-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zhang, On 1/29/15 7:22 AM, t-zhang wrote: > I need a JSP codecheck tool (like PMD) But PMD's JSP parser is not > enouth. So I need a better JSPparser and I want to try Jasper as a > parser. What do you want your checker to do? Anything more than ma

Re: How to use Jasper to Parse JSP

2015-01-29 Thread t-zhang
Thanks for your reply. I need a JSP codecheck tool (like PMD) But PMD's JSP parser is not enouth. So I need a better JSPparser and I want to try Jasper as a parser. Best Regards Tao Zhang On Tue, 27 Jan 2015 11:56:42 + Mark Thomas wrote: > On 27/01/2015 11:36, t-zhang wrote: > > Hi guys >

Re: How to use Jasper to Parse JSP

2015-01-27 Thread Mark Thomas
On 27/01/2015 11:36, t-zhang wrote: > Hi guys > > I am looking for a tool which can parse the JSP code(parse and generate > the AST) Why? What problem are you trying to solve? (There may be a better solution). Mark > If anyone use Jasper to parse the JSP, > Could you share your experience to

How to use Jasper to Parse JSP

2015-01-27 Thread t-zhang
Hi guys I am looking for a tool which can parse the JSP code(parse and generate the AST) If anyone use Jasper to parse the JSP, Could you share your experience to me? I guess the class "org.apache.jasper.compiler.Parser" in Jasper is able to generate the AST. But I can't get the Return Value ma