Re: [tcljava-dev] Parsing Jacl
Brought to you by:
mdejong
From: <vm...@en...> - 2005-03-07 20:10:56
|
Thank you Mo DeJong for the reply. It helped a lot. However, I have a small concern. What would happen to the tclparser when, in the process of parsing, it comes across some Jacl constructs which are not found in Tcl (for example, a command to access a Java library)? In that case, we might need to extend the tclparser, right? What are your views regarding this? Thank you. Vishal Quoting Mo DeJong <md...@un...>: > On Fri, 4 Mar 2005 13:28:58 -0500 > vm...@en... wrote: > > > Hi, > > > > I'm new to both this mailing list as well as Tcl. I'm supposed to parse > Jacl > > in order to convert it to Jython. After much effort, I came across > tclparser > > extension to Tcl. However, I'm not sure if tclparser will be able to parse > > > Jacl as well. > > Funny you should mention this now, I just started on a project to do > something > very much the same except that I am going to parse Jacl and write out .java > source code. > > > Like I said, I'm new to even Tcl. I don't know how it works or how to make > > > even the tclparser work. But, before I start to invest time in learning > that, > > I want to make sure that it serves my purpose .i.e parsing Jacl. Will it > parse > > Jacl inaccurately or will it hang altogether? > > Jacl is Tcl, so the tclparser extension should work with it just fine. I am > going > to be doing just this sort of thing in my project. > > > If tclparser does not do the job, what is the best way to go about parsing > > > Jacl? Is it possible to extend the tclparser to do that? Or, is there a > Jacl > > tool similar to tclparser? Or, is it possible the access the jacl parser > > (maybe by picking the right fragments of the jacl source code and then > > building them)? > > Well, tclparser is a C extension for the C version of Tcl. That is fine in > my > case, but keep in mind that you will not be able to run tclparser inside > Jacl. > Jacl does not support C extensions for Tcl. I hope that clears things up. > > cheers > Mo DeJong > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > tcljava-dev mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-dev > ---------------------------------------- This mail sent through www.mywaterloo.ca |