From: Eric Schulte <schulte.eric@gmail.com>
To: "orgmode@h-rd.org" <orgmode@h-rd.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: org babel support for tcl and awk
Date: Tue, 24 May 2011 06:51:58 -0600 [thread overview]
Message-ID: <8739k46z2p.fsf@gmail.com> (raw)
In-Reply-To: <20110524113109.fo2dcd0mwno0c4w4@webmail.dds.nl> (orgmode@h-rd.org's message of "Tue, 24 May 2011 11:31:09 +0200")
[-- Attachment #1: Type: text/plain, Size: 671 bytes --]
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
[-- Attachment #2: ob-awk.el --]
[-- Type: application/emacs-lisp, Size: 6815 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: example.org --]
[-- Type: text/x-org, Size: 419 bytes --]
* example use of ob-awk
Header Arguments
- cmd-line :: command line flags to pass to =awk=
- in-file :: the text file on which to run the resulting =awk= script
Currently only string results are returned directly from STDOUT.
Currently only external (i.e., non-session) evaluation is supported.
#+begin_src awk :in-file columns-of-numbers.txt
{print $1}
#+end_src
#+results:
: 0
: 1
: 2
: 3
: 4
: 5
: 6
: 7
: 8
[-- Attachment #4: Type: text/plain, Size: 554 bytes --]
"orgmode@h-rd.org" <orgmode@h-rd.org> writes:
> Hi,
>
> I am looking for support for Tcl (and AWK) for org-babel. Both have a
> supplied emacs mode and Tcl also has an inferior interpreter mode. I
> was trying to do it myself, however I am quite lost in the
> instructions. Is there someone with the knowledge and willingness to
> provide a support file for org babel for Tcl (and maybe awk)?
>
> thanks.
>
>
>
Footnotes:
[1] http://repo.or.cz/w/Worg.git/blob/HEAD:/org-contrib/babel/ob-template.el
--
Eric Schulte
http://cs.unm.edu/~eschulte/
next prev parent reply other threads:[~2011-05-24 12:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 9:31 org babel support for tcl and awk orgmode
2011-05-24 12:51 ` Eric Schulte [this message]
2011-05-24 17:53 ` Eric S Fraga
2011-05-24 19:03 ` Eric Schulte
2011-05-24 19:55 ` Sebastien Vauban
2011-05-24 23:51 ` Eric Schulte
2011-05-25 12:30 ` Sebastien Vauban
2011-05-25 15:57 ` Eric Schulte
2011-05-26 11:18 ` Sebastien Vauban
2011-05-26 13:37 ` Eric Schulte
2011-05-26 13:03 ` Eric Schulte
2011-05-26 15:15 ` Eric S Fraga
2011-05-24 18:57 ` orgmode
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739k46z2p.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=orgmode@h-rd.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).