grammar of JSP

I have to design a translator from JSP to JAVA (using OCAML, a functional programming language). Hence I need to define the grammar of JSP. Now can anyone tell me where do I find the grammar for JSP as writing it from the scratch is quite a tedious job!
[260 byte] By [pallavibansala] at [2007-10-3 0:03:31]
# 1
Are you aiming to write a jsp - servlet converter?
ram_pa at 2007-7-14 16:51:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
no, not tht!! rather I just want to translate the source code f JSP to tht of JAVA (ASTs can be wrked upon after tht, if possible).
pallavibansala at 2007-7-14 16:51:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> no, not tht!! rather I just want to translate the

> source code f JSP to tht of JAVA (ASTs can be wrked

> upon after tht, if possible).

Well, that's what a servlet is. Anyways here's the [url http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html] jsp official syntax guide[/url]. You'll have to map this to java code snippets in an xml file or someplace.

ram.

Madathil_Prasada at 2007-7-14 16:51:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...