GeeWhiz Prolog - Part Eight - Creating An NBMFriday, May 23. 2008
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Thanks, Stephen. Please let me know how it works out. I was thinking Python would be fun to try, too, even though it's been / being done already. Plus I want to make up my own language....
tell me how to add new class files to the existing .nbm file
premkumar, a .nbm file is essentially just a wrapped .jar file; in other words it is an end result, not a modifiable source program. What you would need to do is to work from the source programs (see GeeWhiz Prolog home page) and add your class(es) to the (uncompiled) GeeWhiz module, then create your own .nbm module as described above. Hope that helps.
thank you for the information about adding files to nbm,
can u just tell me the stepwise procedure for adding files to existing .nbm file
premkumar, I'm sorry but I don't know how to do what you're asking without recreating the .nbm file from the source. If you really need to do this then you'll have to look elsewhere for the answer.
Thanks for the tutorial. I had been trying to do this for the NWScript language (a C-like scripting language for the Neverwinter Nights game) for months and finally ran across your tutorial. It seems to work fine so far (I haven't tried compiling yet), although the grammer was a major issue to get my head around. I finally went back to my prior attempts where I had saved the javascript grammer from Netbeans 6.0 and adapted it. Thanks again for all your hard work!
Thanks lots, Karl. Sorry it took me so long to respond, but I certainly appreciate your comment. And FYI, I own a copy of Neverwinter Nights! Anyway, good luck and let me know if I can help somehow.
I wanted to use Eclipse to add support for an experimental language I was/am playing with. But eclipse is hard, especially for a one person team never doing this before. So I looked elsewhere, and found just casually browsing the web with terms like "make your own language IDE," a consistent theme, Netbeans is easier to get basic support for a language through the Schliemann project. So, I begin your tutorial, and realize something; it is not clear that I will be able to things like run the code from netbeans, or in my case interpret it. Charity is a functional language that is interpreted, I would like to be able to write a function, and then invoke an interpreter in a terminal like window, and be able to interact with the program. So I am wondering, how hard is it to go from something like Gheewhiz (which is great, don't get me wrong), to Gheewhiz + ability to run the project from netbeans? Are there any really nice (aka very explanatory) tutorials like this one that will show me how this is to be done? Or is it that each language is so different beyond the base that
Hi Jonathan. I think the best NetBeans solution to your dilemma is to use the (somewhat obscure) ProcessBuilder. Using ProcessBuilder to start a process may do just what you need. ProcessBuilder effectively creates a terminal environment from within NetBeans, which should allow you to interact with a command line interpreter. It is possible to connect both input and output pipes to a ProcessBuilder process, although I have only tried it one way. See GeeWhiz Part 5 for an example of this.
I hope this helps. You aren't the only one to ask about this; maybe I should do a followup tutorial on hooking into an interpreter (SWI Prolog is probably the one I would use).
Anyway, little time to do that right now, unfortunately. Take care and keep me posted on your quest.
Hi, I am trying to integrate FreeMarker/Sitemesh(ftl/ftd) in netbeans 6.5. Do you have any idea about it?
Hi. I'm sorry that I'm probably the wrong guy to talk to about Freemarker etc. I never had much luck using Freemarker in NetBeans myself, and the documentation for doing so is sparse at best. I kept getting errors when I would construct Freemarker scripts that I couldn't figure out without looking at (STILL MORE!) source code, dammit. So, sorry, but I don't have much constructive to say about Freemarker. But good luck!
|
Categoriessupersized.orgHelp Support This BlogIf you find this information useful, are entertained by it, or just want to do something nice you can help encourage further entries by clicking the button below. Major credit cards and PayPal are accepted. Thank you for your support.
|