From: Jacob Gerlach <jacobgerlach@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Basic Literate Program
Date: Thu, 10 Jul 2014 17:31:39 -0400 [thread overview]
Message-ID: <CAA6UvuHebL7CpKjK3ujRtLQ-nY+GrM=HbQ0ZsiVrefQe7Wukqg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]
Hi List,
I only became aware of literate programming through org and have been
looking for a chance to try it out. I need to write a small command
line utility that parses through a plain text log file and performs
some operations, which I think is a reasonably simple use case for me
to try out this new method.
I have the basics of the program outlined in org mode already, and
envision simply adding SRC blocks to each list item. Tangling the org
file and compiling the result will give me my program.
I have several questions:
- Does this sound like a reasonable use case and approach?
- I am writing this program in C++. I believe that I can interweave
SRC blocks with different header arguments so that they tangle to my
.h file and .cpp file as appropriate. Is this correct?
- I may need to share the tangled cpp files with colleagues. Are there
any ways to control the sequence of code in the resulting files
other than the sequence of SRC blocks in org mode?
- On a related note, are there any tools to take org content from
outside the SRC blocks and tangle it into comments in the C++ files?
Thanks,
Jake
[-- Attachment #2: Type: text/html, Size: 1451 bytes --]
next reply other threads:[~2014-07-10 21:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 21:31 Jacob Gerlach [this message]
2014-07-10 22:28 ` Basic Literate Program Thorsten Jolitz
2014-07-10 22:54 ` Jacob Gerlach
2014-07-10 23:31 ` Grant Rettke
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='CAA6UvuHebL7CpKjK3ujRtLQ-nY+GrM=HbQ0ZsiVrefQe7Wukqg@mail.gmail.com' \
--to=jacobgerlach@gmail.com \
--cc=emacs-orgmode@gnu.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).