From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas Subject: Re: ob-csharp Date: Mon, 06 Jun 2016 08:56:30 +0200 Message-ID: <57551E9E.8090205@friendlyvillagers.com> References: <55EDC82E.2080501@friendlyvillagers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9oSn-0002dO-8P for emacs-orgmode@gnu.org; Mon, 06 Jun 2016 02:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9oSj-0004HO-2w for emacs-orgmode@gnu.org; Mon, 06 Jun 2016 02:56:40 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::5]:42840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9oSi-0004Gq-Kv for emacs-orgmode@gnu.org; Mon, 06 Jun 2016 02:56:37 -0400 Received: from [192.168.178.54] (p5796A42E.dip0.t-ipconnect.de [87.150.164.46]) by smtp.strato.de (RZmta 38.2 DYNA|AUTH) with ESMTPSA id 00b51es566uUFTR (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Mon, 6 Jun 2016 08:56:30 +0200 (CEST) In-Reply-To: <55EDC82E.2080501@friendlyvillagers.com> 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" To: Org Mode 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 > >