|
From: Arnulf W. <ar...@wi...> - 2011-04-01 07:26:02
|
Hello Michal, just one more idea: perhaps we could use JTCL for the debugscript.tcl part, so we don't need to exec another process (means integrate JTCL into netbeans as plugin) For that part the functionality of Tcl 8.4 is enough and use whatever version of Tcl >= 8.4 for the edit.tcl script (we need some way to set a path to determine which tclsh to use in netbeans/debugscript.tcl). If I understood Lars correctly, he was mentioning that this should work because master and slave can be different tcl versions. Arnulf Am 31.03.2011 22:00, schrieb dmp: > Hello Arnulf, > > To update status of programming languages: C seems to be unused and > tcl part will be bigger, Java part unchanged. > > I was thinking about architecture. I'm sure it doesn't have to be a > deamon. My idea: User clicks "run with debug" event: netbeans debugger > executes tclsh to run prepared debugscript.tcl with path to edited.tcl > script from netbeans editor and also opens a socket for comunication > between debugscript.tcl and netbeans. debugscript.tcl(master) similar > to Lars's solution executes edited.tcl(slave) but also providing > builtin trace and info(debug information). debugscript.tcl capture > debug information and sends it to netbeans debugger via socket. > debugscript.tcl supervise execution, by socket from netbeans debugger > events. > > If tcl script from netbeans will be debug using tclsh. It would be > nice to have interactive tcl shell window in netbeans, and ability to > put commands. During breakpoint for example. > > Let me know what you think. > > Thanks, > Michal > > > 2011/3/31 Arnulf Wiedemann <ar...@wi...>: >> Hello Lars, >> yes I am interested in the code you mentioned. If you can wikify it or >> give us somehow access to it, that would be great. >> >> Arnulf, >> >> Am 31.03.2011 10:45, schrieb Lars Hellström: >>> Arnulf Wiedemann skrev 2011-03-30 19.54: >>>> I agree we could have plugin execute tclsh as you describe, but I would >>>> like to use netbeans plugin to edit sources of Tcl scripts with syntax >>>> highlighting and to be able to set breakpoints and get variable infos >>>> etc. . So I think the interface I described yesterday could also be used >>>> for this solution sending some requests to tclsh via socket or whatever >>>> interface and get back the required information from tclsh. >>>> >>>> So netbeans would drive an instance of tclsh using some dedicated >>>> interface and the Tcl side has to instrument the application using trace >>>> execution command using the info provided from netbeans GUI and using >>>> the handling script thereof for communicating with netbeans to deliver >>>> back info or instrument the application according to the request sent >>>> from netbeans. >>> >>> This reminds me of a piece of code I wrote a couple of years ago (as part >>> of an as-yet unfinished IPC project), which spawns a child tclsh and >>> effectively sets it up as a slave [interp], complete with the ability to >>> create aliases in the slave which call back to commands in the master. I >>> could have a go at wikifying it or something, if you're interested. >>> >>> In particular I might point out that the code was written before 8.5 was >>> released, so it handles 8.4 and 8.5 both, which might be convenient if >>> JTcl is to be used at one end; there is specifically no assumption that >>> master and slave must be running the same Tcl version. >>> >>> Lars Hellström >>> >>> >>> ------------------------------------------------------------------------------ >>> Create and publish websites with WebMatrix >>> Use the most popular FREE web apps or write code yourself; >>> WebMatrix provides all the features you need to develop and >>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>> _______________________________________________ >>> Tcl-gsoc mailing list >>> Tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcl-gsoc >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Tcl-gsoc mailing list >> Tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-gsoc >> |
|
From: Arnulf W. <ar...@wi...> - 2011-05-11 10:56:52
|
Hello Michal, I got an answer from Clif, he suggests the Tcl/Tk core logo not the Tcl Community Association logo, as he thinks - and I agree -, it is Tcl which needs more marketing: "My preference for logo is the traditional (ugly) feather. I like the blue feather better on things that are large enough for a real photo, but it doesn't reduce well." So please choose one of the logos, and let us know which one you would like to use. Arnulf Am 08.05.2011 23:18, schrieb dmp: > Hello Arnulf, > > Thanks for messages from all of you :) > > I spend today working with this tutorial: > http://wiki.netbeans.org/SyntaxColoringANTLR to check its compability > with Netbeans 7.0. Almost everything is working fine. Only .xml with > colors definitions doesn't work as it should, I hope I solve it. I > wasn't focusing on Tcl grammary, just playing today with antlr and > netbeans api. > > I've been investigating org.netbeans.api.lexer and general solution to > get syntax hilight. Still I'm not sure about parsing Tcl using Tcl in > netbeans environment. Most plugins used antlr, older ones javaCC also > for scripting languages like python and perl. For example using > ProcessBuilder or sockets for retrieving information from Tcl parser > may be too slow, lexer works during every textfield update to provide > syntax hilight. But I don't want to judge now. > > One more question to all of you: Module and Tcl Filetype Definition in > Netbeans needs Icon/Symbol. I found tcl's blue feather using Google > images but Is there any official source for Tcl Logo to scale it to > different sizes? > > Thanks, > Michal > > On 8 May 2011 20:43, Arnulf Wiedemann <ar...@wi...> wrote: >> I see that there are a lot of changes to the version of parsetcl I have >> seen, so my worries may no longer be true. >> >> @Michal: I think you should read the paper of Lars and think about the >> points Lars has written down here, to decide, which way to go. You know >> better what is needed from netbeans side, or if not, you should find it >> out :). You should make the decision what to use. Myself and others will >> give comments, if there are problems finding the decision, so please >> ask, if necessary. >> >> Arnulf >> >> Am 08.05.2011 12:34, schrieb Lars Hellström: >>> Colin McCormack skrev 2011-05-08 02.56: >>>> I haven't been following closely, but I noticed 'tcl parsing' and wanted >>>> to point out http://wiki.tcl.tk/9620 and also and especially >>>> http://wiki.tcl.tk/9649 (which I use and find very good.) >>> >>> Then I should point out http://abel.math.umu.se/~lars/tcl/parsetcl.pdf >>> contains more documentation that the wiki page, and also has been updated >>> to support the {*} feature of Tcl 8.5. >>> >>> Regarding Arnulf's worry about whitespace: Since character indices are >>> kept track of, it is straightforward to record whitespace in a >>> post-processing phase. parsetcl::reinsert_indentation shows how to do that >>> for indentation, and the same technique can be applied to interword >>> whitespace. Parsing is tricky in itself, so there is no need to further >>> complicate it with whitespace when that is not needed. KISS. >>> >>> However, I suspect these Tcl-oriented approaches may be suboptimal for the >>> Netbeans project; if a parser for context-free languages is available more >>> natively, then using that is probably easier than operating Tcl parsing by >>> remote. My reasoning is basically the following. >>> >>> 1. First distinguish the phases of lexing and parsing, for this >>> discussion. (It is generally possible to unify them, but the resulting >>> grammars don't tend to be something for human consumption.) >>> >>> 2. "Most" languages (well, C, Java, Pascal, and the like) tend to be >>> regular at the lexing phase -- you could write a regexp for "the next >>> token" -- but roughly context-free at the parsing phase. The latter is why >>> people write BNFs when describing their syntax. >>> >>> 3. Tcl, on the other hand, is non-regular context-free at the lexing >>> phase, and roughly regular[*] at the parsing phase. In fact, I think Tcl >>> might be LR(0) at the lexing phase (which is probably why it was feasible >>> to write parsetcl as an ad-hoc parser in the first place). Most of the >>> Dodekalogue (Tcl(n) manpage) is about the lexing grammar, whereas the >>> parsing grammar is presented on a per-command basis. >>> >>> [*] Since the set of "tokens" is infinite, some care is needed when >>> defining what it means to be "regular" in this case. I think one could >>> still have a requirement that there are only finitely many "token classes" >>> for the grammar to distinguish. Of course, some of those token classes are >>> things like "Tcl script" and "Tcl [expr]ession", so there is a recursion >>> which makes things complicated. Whether it is a problem depends on what >>> you want to do. >>> >>> Anyway, I think the basic point of "context-free lexer, regular parser" >>> might provide some insight into the peculiarities of parsing Tcl. >>> >>> Lars Hellström >>> >>> >>> ------------------------------------------------------------------------------ >>> WhatsUp Gold - Download Free Network Management Software >>> The most intuitive, comprehensive, and cost-effective network >>> management toolset available today. Delivers lowest initial >>> acquisition cost and overall TCO of any competing solution. >>> http://p.sf.net/sfu/whatsupgold-sd >>> _______________________________________________ >>> Tcl-gsoc mailing list >>> Tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcl-gsoc >> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Tcl-gsoc mailing list >> Tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-gsoc >> |
|
From: Arnulf W. <ar...@wi...> - 2011-05-15 20:05:20
|
Hello Michal, if you only have been inspired by that code, we have no problem :). I think for the moment we can well work with the french wiki logo, I will ask kroc (who has designed that, if I remember correctly), if we perhaps can use that. I know him personally from a European Tcl Conference. Thanks for putting your stuff into the repo, I will have a look at that (for today only a short one as it is late already). Keep making progress like until now :) and have a nice week with your study tasks at the university. Arnulf Am 15.05.2011 19:23, schrieb dmp: > Hello Arnulf, > > I just got inspired by their solutions because of some issues with my > layer.xml. Code was mostly adopted from different solutions at > Netbeans Wiki. Here is an information about license: > http://netbeans.org/about/legal/terms-of-use.html. All source codes > are governed by the New BSD License, so I guess everything is ok :) > > I've just commited basic module's code. > > Currently as a symbol for .tcl files module uses Tcl icon from french > wiki. It scaled well to 16x16 pixels (It's a standard for Netbeans > filetypes). I guess official logo could be used but after > modifications because it doesn't look good after scale to 16x16. > > Categorization is really nice idea for keywords from Tcl/itcl/TclOO > and providing different colors is quite easy. > > Thanks, > Michal > > On 15 May 2011 18:37, Arnulf Wiedemann <ar...@wi...> wrote: >> Hello Michal, >> great that you are making progress!! >> >> I am not familiar with the .svg files, maybe patthoyts can tell more >> about that. Your reference seems also ok and another source is to search >> for "tcl logo" in the wiki with search in page titles and use one of the >> images found there (some of them are already scaled differently and in >> the pages source you can find where the image can be found: like for >> example: http://wiki.tcl.tk/_/image?N=26852 >> >> What do you mean with based? Did you only get inspired from that code, >> or did you use parts of it. I am just asking because of possible copy >> right problems, as it is a GNU GPL v2 license and not a BSD or similar >> license (I am no expert on that, so perhaps others on the list can tell >> more about possible problems). >> >> From the technical side I am happy that you got that running. For the >> keywords you can use the mail I have written some weeks ago concerning >> how to figure out Tcl/itcl/TclOO command names. Best you try to make a >> list with a categorization and I will have a look over that and perhaps >> others on this list too. With categorization I mean, if it is a "normal" >> command or some itcl specific stuff or some TclOO specific stuff, so >> that you can color these perhaps differently. and within that different >> colors for example for method/proc variable/common and the itcl specials >> like delegate/option/component etc. We can also add more stuff during >> the project, when we find something, as I assume there is an editable >> syntax/grammar file, which can be easily enhanced. >> >> I will have a look at the repo, when your stuff is there. >> >> Just as a side note: I am on a business meeting from May, 19th to May >> 21st, where I will have no access to the internet. >> >> Arnulf >> >> >> Am 15.05.2011 14:56, schrieb dmp: >>> Hello Arnulf, >>> >>> Antlr is working fine. As I wrote previously, tutorial to create rich >>> client based on netbeans worked fine. Yesterday, I created standard >>> netbeans module which allows to open .tcl files and provides syntax >>> hilight for example language. I've based on already available >>> solutions: http://code.google.com/p/pl-sql-editor/ and >>> http://code.google.com/p/scss-editor/. Today I will work with >>> antlrworks to create grammary file for Tcl and I guess I will need >>> your little help to identify all keywords :) >>> >>> I couldn't find any .svg file in tcl8.5.9-src.tar.gz. Is it in >>> development version from repo? I guess scaled .eps version from >>> http://wiki.tcl.tk/26707 should be used. >>> >>> I will commit initial project files to fossil repository. >>> >>> Thanks, >>> Michal >>> >>> On 14 May 2011 19:39, Arnulf Wiedemann <ar...@wi...> wrote: >>>> Hello Michal, >>>> how are you doing with antlr, is it working as you expect, or do you >>>> have problems (I am just curious). >>>> >>>> Arnulf >>>> >> >> |
|
From: dmp <dmp...@gm...> - 2011-05-15 21:28:15
|
Hello Arnulf, I've just commited grammar file: http://chiselapp.com/user/wiede/repository/netbeanstcl/artifact?name=51d97e1a7c8ec2c89b43cd8b9ceefa62800af93f Please review selected Tcl/Tk/ITcl commands :) As I noticed there is a bug with hilight for more complicated tcl scripts like stepsource.tcl from wiki. It's my next goal to fix it. Thanks, Michal On 15 May 2011 22:05, Arnulf Wiedemann <ar...@wi...> wrote: > Hello Michal, > if you only have been inspired by that code, we have no problem :). > > I think for the moment we can well work with the french wiki logo, I > will ask kroc (who has designed that, if I remember correctly), if we > perhaps can use that. I know him personally from a European Tcl Conference. > > Thanks for putting your stuff into the repo, I will have a look at that > (for today only a short one as it is late already). > > Keep making progress like until now :) > > and have a nice week with your study tasks at the university. > > Arnulf > > Am 15.05.2011 19:23, schrieb dmp: >> Hello Arnulf, >> >> I just got inspired by their solutions because of some issues with my >> layer.xml. Code was mostly adopted from different solutions at >> Netbeans Wiki. Here is an information about license: >> http://netbeans.org/about/legal/terms-of-use.html. All source codes >> are governed by the New BSD License, so I guess everything is ok :) >> >> I've just commited basic module's code. >> >> Currently as a symbol for .tcl files module uses Tcl icon from french >> wiki. It scaled well to 16x16 pixels (It's a standard for Netbeans >> filetypes). I guess official logo could be used but after >> modifications because it doesn't look good after scale to 16x16. >> >> Categorization is really nice idea for keywords from Tcl/itcl/TclOO >> and providing different colors is quite easy. >> >> Thanks, >> Michal >> >> On 15 May 2011 18:37, Arnulf Wiedemann <ar...@wi...> wrote: >>> Hello Michal, >>> great that you are making progress!! >>> >>> I am not familiar with the .svg files, maybe patthoyts can tell more >>> about that. Your reference seems also ok and another source is to search >>> for "tcl logo" in the wiki with search in page titles and use one of the >>> images found there (some of them are already scaled differently and in >>> the pages source you can find where the image can be found: like for >>> example: http://wiki.tcl.tk/_/image?N=26852 >>> >>> What do you mean with based? Did you only get inspired from that code, >>> or did you use parts of it. I am just asking because of possible copy >>> right problems, as it is a GNU GPL v2 license and not a BSD or similar >>> license (I am no expert on that, so perhaps others on the list can tell >>> more about possible problems). >>> >>> From the technical side I am happy that you got that running. For the >>> keywords you can use the mail I have written some weeks ago concerning >>> how to figure out Tcl/itcl/TclOO command names. Best you try to make a >>> list with a categorization and I will have a look over that and perhaps >>> others on this list too. With categorization I mean, if it is a "normal" >>> command or some itcl specific stuff or some TclOO specific stuff, so >>> that you can color these perhaps differently. and within that different >>> colors for example for method/proc variable/common and the itcl specials >>> like delegate/option/component etc. We can also add more stuff during >>> the project, when we find something, as I assume there is an editable >>> syntax/grammar file, which can be easily enhanced. >>> >>> I will have a look at the repo, when your stuff is there. >>> >>> Just as a side note: I am on a business meeting from May, 19th to May >>> 21st, where I will have no access to the internet. >>> >>> Arnulf >>> >>> >>> Am 15.05.2011 14:56, schrieb dmp: >>>> Hello Arnulf, >>>> >>>> Antlr is working fine. As I wrote previously, tutorial to create rich >>>> client based on netbeans worked fine. Yesterday, I created standard >>>> netbeans module which allows to open .tcl files and provides syntax >>>> hilight for example language. I've based on already available >>>> solutions: http://code.google.com/p/pl-sql-editor/ and >>>> http://code.google.com/p/scss-editor/. Today I will work with >>>> antlrworks to create grammary file for Tcl and I guess I will need >>>> your little help to identify all keywords :) >>>> >>>> I couldn't find any .svg file in tcl8.5.9-src.tar.gz. Is it in >>>> development version from repo? I guess scaled .eps version from >>>> http://wiki.tcl.tk/26707 should be used. >>>> >>>> I will commit initial project files to fossil repository. >>>> >>>> Thanks, >>>> Michal >>>> >>>> On 14 May 2011 19:39, Arnulf Wiedemann <ar...@wi...> wrote: >>>>> Hello Michal, >>>>> how are you doing with antlr, is it working as you expect, or do you >>>>> have problems (I am just curious). >>>>> >>>>> Arnulf >>>>> >>> >>> > > |
|
From: dmp <dmp...@gm...> - 2011-07-04 22:28:28
|
Hello, Project is going fine. Currently, plugin could be useful already. For those of you who might be interested and didn't track changes at wiki pages: Project info could be found here: http://wiki.tcl.tk/28292 In short: Netbeans module file: http://plugins.netbeans.org/plugin/39119/tcl-plugin Instructions/Tutorial: http://wiki.tcl.tk/28455 Thanks, Michal |