From mboxrd@z Thu Jan 1 00:00:00 1970 From: "orgmode@h-rd.org" Subject: Re: org babel support for tcl and awk Date: Tue, 24 May 2011 20:57:20 +0200 Message-ID: <20110524205720.hsbl9kywa8gsc4gw@webmail.dds.nl> References: <20110524113109.fo2dcd0mwno0c4w4@webmail.dds.nl> <8739k46z2p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOwnK-0002qZ-Ec for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOwnJ-0002QL-IM for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:30 -0400 Received: from rotring.dds.nl ([85.17.178.138]:59394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOwnJ-0002QA-Dz for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:29 -0400 In-Reply-To: <8739k46z2p.fsf@gmail.com> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org, Eric Schulte Cc: orgmode@h-rd.org Hi Eric, yes I am aware of op-template and tried to use it. However it was not =20 clear to me how to proceed and I looked into ob-perl, ob-ruby, =20 ob-scheme and ob-python. But it seemed to me they use a different =20 structure than op-template and I was stuck. I also saw that the file =20 ob-template is documented, however I am not so good in org-emacs-speak =20 that I can decipher it. Really thanks for the awk example, I will tru to study it. thanks. Quoting Eric Schulte : > Hi, > > Are you aware of the ob-template.el file [1], which can be used as a > jumping off point to simplify the addition of new languages? After > globally replacing the term "template" with you language name, the only > function that necessarily needs to be re-written is the main > `org-babel-execute:template' function. > > I would recommend starting with only non-session based evaluation, and > then slowly adding functionality. If you run into any specific problems > I am happy to help trouble shoot. > > As an example, I've worked up an very simple ob-awk.el file from > ob-template.el, it is attached along with an example org-mode file which > demonstrates its usage. > > Best -- Eric > >