Re: [tcljava-dev] Parsing Jacl
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2005-03-04 23:26:25
|
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 |