From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Basic Literate Program Date: Thu, 10 Jul 2014 17:31:39 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160bbeeda95ab04fddd8cf6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5LwM-0006Kt-Ca for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 17:31:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5LwL-00029k-Em for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 17:31:42 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:62627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5LwL-00029e-6h for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 17:31:41 -0400 Received: by mail-lb0-f179.google.com with SMTP id z11so167160lbi.10 for ; Thu, 10 Jul 2014 14:31:39 -0700 (PDT) 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 --089e0160bbeeda95ab04fddd8cf6 Content-Type: text/plain; charset=UTF-8 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 --089e0160bbeeda95ab04fddd8cf6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi List,=C2=A0

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<= /div>
to try out this new method.

I have the b= asics of the program outlined in org mode already, and
envision s= imply adding SRC blocks to each list item. Tangling the org
file and compiling the result will give me my program.

<= /div>
I have several questions:
- Does this sound like a reas= onable use case and approach?
- I am writing this program in C++.= I believe that I can interweave
=C2=A0 SRC blocks with different header arguments so that they tangle = to my
=C2=A0 .h file and .cpp file as appropriate. Is this correc= t?
- I may need to share the tangled cpp files with colleagues. A= re there
=C2=A0 any ways to control the sequence of code in the resulting files=
=C2=A0 other than the sequence of SRC blocks in org mode?
<= div>- On a related note, are there any tools to take org content from
=
=C2=A0 outside the SRC blocks and tangle it into comments in the C++ f= iles?

Thanks,
Jake

--089e0160bbeeda95ab04fddd8cf6--