From: thomas <thomas@friendlyvillagers.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: ob-csharp
Date: Mon, 06 Jun 2016 08:56:30 +0200 [thread overview]
Message-ID: <57551E9E.8090205@friendlyvillagers.com> (raw)
In-Reply-To: <55EDC82E.2080501@friendlyvillagers.com>
Hi,
I'm sorry, I could not find the time yet to figure out how to
"officially" contribute to Emacs (the papers are signed, though).
In the meantime you can find ob-csharp on github:
https://github.com/thomas-villagers/ob-csharp
- thomas
On 07.09.2015 19:23, thomas wrote:
> Hi,
>
> could not find ob-csharp in org mode. I created one to make the pointy
> haired boss happy.
>
> It's based on Eric's ob-java.el with some bits taken from other ob files.
>
> It works for the simple examples following below.
>
> Hope this is useful and I'm open for hints to improve the code.
>
> - thomas
>
>
>
> * ob-csharp Tests
>
> ** Hello World
>
> #+BEGIN_SRC csharp
> class HelloWorld {
> public static void Main()
> {
> System.Console.WriteLine("Hello World!");
> }
> }
> #+END_SRC
>
> #+RESULTS:
> : Hello World!
>
>
>
> ** Tables
>
> #+BEGIN_SRC csharp
> class Table {
> public static void Main()
> {
> for (char c = 'a'; c < 'd'; c++)
> System.Console.Write("{0} ",c);
> System.Console.WriteLine();
> for (int i = 0; i < 3; i++)
> System.Console.Write("{0} ",i);
> }
> }
> #+END_SRC
>
> #+RESULTS:
> | a | b | c |
> | 0 | 1 | 2 |
>
> ** Compiler flags and command line args
>
> #+BEGIN_SRC csharp :cmpflag -warnaserror+
> public class TestFlags {
> public static void Main()
> {
> int i; // unused; throw error
> System.Console.WriteLine("You won't see this!");
> }
> }
> #+END_SRC
>
> #+RESULTS:
>
> #+BEGIN_SRC csharp :results verbatim :cmdline --version
> public class TestCmd {
> public static void Main()
> {
> System.Console.WriteLine("You won't see this!");
> }
> }
> #+END_SRC
>
> #+RESULTS:
> #+begin_example
> Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10)
> Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
> www.mono-project.com
> TLS: __thread
> SIGSEGV: altstack
> Notifications: epoll
> Architecture: amd64
> Disabled: none
> Misc: softdebug
> LLVM: supported, not enabled.
> GC: sgen
> #+end_example
>
>
next prev parent reply other threads:[~2016-06-06 6:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 17:23 ob-csharp thomas
2015-09-07 19:28 ` ob-csharp Thomas S. Dye
2015-09-07 20:10 ` ob-csharp Grant Rettke
2015-09-07 22:44 ` ob-csharp Rüdiger Sonderfeld
2015-09-08 7:36 ` ob-csharp thomas
2015-09-08 10:05 ` ob-csharp thomas
2015-09-08 15:51 ` ob-csharp Nicolas Goaziou
2016-06-06 6:56 ` thomas [this message]
2016-06-06 7:40 ` ob-csharp Rasmus
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=57551E9E.8090205@friendlyvillagers.com \
--to=thomas@friendlyvillagers.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).